/*
Theme Name: Adelonas Journal
Description: Adelonas Labs'ın görsel diliyle teknoloji ve gezi yazıları.
Version: 1.1.42
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: adelonas-journal
*/

:root {
	--background: #0c1b21;
	--surface: #102229;
	--text: #f2f7f5;
	--muted: #b6c9c6;
	--mint: #5efc8d;
	--teal: #4fe6c6;
	--line: #294149;
	--gradient: linear-gradient(90deg, var(--mint), var(--teal) 55%, #47d9e7);
	--heading: "Space Grotesk", "Inter", system-ui, sans-serif;
	--body: "Inter", system-ui, sans-serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--background);
	color: var(--text);
	font: 1rem/1.7 var(--body);
}
main { flex: 1; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.15; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	padding: .5rem 1rem;
	background: var(--background);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	border-bottom: 1px solid var(--line);
	background: rgb(12 27 33 / .94);
	backdrop-filter: blur(16px);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner, .site-footer__inner {
	display: flex;
	min-height: 62px;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 700 1.125rem var(--heading); letter-spacing: -.3px; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: .5rem; }
.brand strong { color: var(--mint); font-weight: 500; }
.brand, .site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav, .site-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .3rem clamp(.65rem, 1.6vw, 1.15rem);
}
.site-header nav { justify-content: flex-end; }
.site-menu { justify-content: inherit; padding: 0; margin: 0; list-style: none; }
.site-menu a { white-space: nowrap; }
.site-menu .current-menu-item > a { color: var(--mint); }
.site-header nav a, .site-footer__inner { font-size: .875rem; color: var(--muted); }
.site-header nav a { font-weight: 500; }
.site-header nav a:hover { color: var(--mint); }

.archive-header {
	border-bottom: 1px solid var(--line);
	background: radial-gradient(ellipse at 22% -25%, rgb(79 230 198 / .16), transparent 65%), var(--background);
}
:is(.blog, .search) .archive-header {
	position: relative;
	background: radial-gradient(ellipse 60% 50% at 50% -5%, rgb(79 230 198 / .15), transparent 65%),
		linear-gradient(180deg, var(--surface), var(--background) 75%);
}
:is(.blog, .search) .archive-header::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgb(255 255 255 / .03) 1px, transparent 1px),
		linear-gradient(90deg, rgb(255 255 255 / .03) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, black 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, black 30%, transparent 75%);
}
:is(.blog, .search) .archive-header__inner { position: relative; }
.archive-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: .6rem 2rem;
	padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
}
.archive-header__inner > :not(form) { grid-column: 1; }
.eyebrow { margin: 0; color: var(--mint); font-size: .75rem; font-weight: 700; letter-spacing: .16em; }
.archive-header h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 5.5rem); letter-spacing: -.07em; }
.archive-header h1 span { padding-inline-end: .12em; color: var(--teal); background: var(--gradient); background-clip: text; -webkit-text-fill-color: transparent; }
.archive-description { margin: 0; color: var(--muted); }
.search-form { display: flex; align-items: center; gap: .5rem; }
.archive-header .search-form { grid-column: 2; grid-row: 2 / span 2; }
input, textarea {
	max-width: 100%;
	padding: .65rem .75rem;
	border: 1px solid var(--line);
	border-radius: .65rem;
	background: var(--surface);
	color: var(--text);
	font: inherit;
}
.search-field { width: min(12rem, 42vw); }
button, input[type="submit"] { cursor: pointer; }
input[type="submit"]:hover { border-color: var(--teal); }

.archive-content { padding-block: 2.25rem 4rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); }
.post-card:hover, .post-card:focus-within { border-color: #4e8e7f; }
.post-card__media { aspect-ratio: 16 / 9; background: var(--background); }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card__media--fallback { display: grid; place-items: center; }
.post-card__media--fallback img { width: 3.5rem; height: auto; border-radius: .75rem; }
.post-card__body { padding: 1.25rem; }
.post-card h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--mint); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .65rem; color: var(--muted); font-size: .8rem; }
.post-meta a { color: var(--teal); text-decoration: none; }
.post-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: .75rem; }
.post-table { width: 100%; min-width: 40rem; border-collapse: collapse; text-align: left; font-size: .875rem; }
.post-table th, .post-table td { padding: .45rem .65rem; border-bottom: 1px solid var(--line); }
:is(.blog, .category) .post-table tbody tr > * { padding-block: .6875rem; }
.post-table thead { background: var(--surface); color: var(--text); }
.post-table thead th { font-weight: 600; }
.post-table tbody tr:nth-child(even) { background: rgb(255 255 255 / .025); }
.post-table tbody tr:hover, .post-table tbody tr:focus-within { background: rgb(79 230 198 / .08); }
.post-table tbody tr:last-child > * { border-bottom: 0; }
.post-table tbody th { font-size: .9375rem; font-weight: 500; }
.post-table tbody th a { color: var(--text); text-decoration: none; }
.post-table tbody th a:hover { color: var(--mint); text-decoration: underline; }
.post-table td { color: var(--muted); }
.post-table__comments { text-align: center; font-variant-numeric: tabular-nums; }
.post-table time { white-space: nowrap; }
.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers, .post-tags a {
	padding: .3rem .65rem;
	border: 1px solid var(--line);
	border-radius: .5rem;
	text-decoration: none;
}
.page-numbers.current { background: var(--surface); color: var(--text); }

.reading { width: min(100% - 3rem, 76rem); padding-block: 2.25rem 4rem; }
.entry-content, .comments-area, .post-tags, .post-navigation { max-width: 47rem; margin-inline: auto; }
.back-link { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; }
.article-heading { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .35rem 1rem; margin: .55rem 0 1.5rem; text-align: center; }
.article-heading h1 { margin: 0; min-width: 0; font-size: clamp(1.125rem, 1.5vw, 1.2rem); letter-spacing: -.025em; }
.article-heading .post-meta { justify-content: center; }
.entry-content { font-size: clamp(1rem, 1.8vw, 1.1rem); overflow-wrap: anywhere; }
.single-post .entry-content, .comment-respond { font-size: 12px; }
.entry-content img { border-radius: .6rem; }
.entry-content .alignleft { float: left; margin: 0 1rem .75rem 0; }
.entry-content .alignright { float: right; margin: 0 0 .75rem 1rem; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content figure, .entry-content .wp-caption { max-width: 100%; }
.entry-content figcaption, .wp-caption-text { color: var(--muted); font-size: .875rem; }
.entry-content .alignwide { width: min(100% + 5rem, 100vw - 3rem); max-width: none; margin-inline: 50%; transform: translateX(-50%); }
.entry-content pre, .entry-content blockquote, .entry-content table {
	margin: 1.4rem 0;
	border: 1px solid var(--line);
	border-radius: .75rem;
	background: var(--surface);
}
.entry-content pre, .entry-content blockquote { padding: 1rem 1.25rem; }
.entry-content pre { overflow: auto; }
.entry-content table { display: block; overflow-x: auto; border-collapse: collapse; }
.entry-content td, .entry-content th { padding: .45rem .65rem; border: 1px solid var(--line); }
.entry-content pre code { white-space: pre; }
.entry-content iframe { max-width: 100%; }
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: 2rem; font-size: 12px; }
.comment-form input[type="submit"] { color: var(--text); border: 1px solid var(--line); border-radius: .5rem; font-weight: 600; }
.post-tags a:hover, .pagination a.page-numbers:hover,
.search-form [type="submit"]:hover, .comment-form input[type="submit"]:hover {
	border-color: var(--mint);
	background-color: rgba(255, 255, 255, 0.07);
}
.search-form [type="submit"]:hover, .comment-form input[type="submit"]:hover { color: var(--mint); }
.comments-area, .post-navigation { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.post-navigation { margin-top: 1.25rem; padding-top: .5rem; font-size: .75rem; }
.post-navigation .nav-links { flex-wrap: nowrap; gap: 1rem; }
.post-navigation .nav-links > div { flex: 1 1 0; min-width: 0; }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-links a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-list { padding-left: 1.5rem; }
.comment-body { margin-bottom: 1rem; }
.comment-form label { display: block; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-reply-title { font-family: inherit; font-size: 1em; }
.comment-form .comment-notes, .comment-form .logged-in-as { color: var(--muted); }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.site-footer__inner > span { font-size: .8125rem; }
@media (max-height: 700px) and (max-width: 480px) {
	.site-footer__inner, .site-footer__inner > span { font-size: .78125rem; }
}
:is(.blog, .category) main { flex: 0 0 auto; }
:is(.blog, .category) .site-footer { margin-top: 0; }
@media (min-width: 901px) {
	:is(.blog, .category, .search) .archive-header__inner { padding-block: .5rem; gap: .125rem 1.5rem; }
	:is(.blog, .category, .search) .archive-header h1 { font-size: 2rem; }
	:is(.blog, .category) .archive-description { font-size: .875rem; }
	:is(.blog, .category) .archive-content { padding-block: .5rem; }
	.post-table { table-layout: fixed; line-height: 1.1; }
	.post-table th, .post-table td { padding-block: 1px; }
	:is(.blog, .category) .post-table tbody tr > * { padding-block: clamp(1px, calc(1.9dvh - 11.65px), 6px); }
	.post-table thead th { padding-block: 3px; }
	.post-table thead th:first-child { width: 56%; }
	.post-table thead th:nth-child(2) { width: 10%; }
	.post-table thead th:nth-child(3) { width: 16%; }
	.post-table thead .post-table__comments { width: 6%; }
	.post-table tbody th a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	:is(.blog, .category) .pagination { margin-top: .5rem; }
	:is(.blog, .category) .site-footer__inner { min-height: 44px; }
}
@media (max-width: 900px) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-height: 760px) {
	:is(.blog, .category, .search) :is(.archive-header__inner, .archive-content) { padding-block: .25rem; }
	:is(.blog, .category) .archive-content { padding-block: .125rem; }
	:is(.blog, .category) .pagination { margin-top: .25rem; }
	:is(.blog, .category) .site-footer__inner { min-height: 32px; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.wrap, .reading { width: calc(100% - 2rem); }
	.admin-bar .site-header { top: 0; }
	.site-header__inner { align-items: flex-start; flex-direction: column; gap: .5rem; padding-block: .75rem; }
	.site-header nav { justify-content: flex-start; }
	.archive-header__inner, .post-grid { grid-template-columns: 1fr; }
	.archive-header .search-form { grid-column: 1; grid-row: auto; margin-top: .6rem; }
	.entry-content .alignwide { width: 100%; margin-inline: 0; transform: none; }
}
