/* ==========================================================================
   Atölye — Kadinlara Ozel
   Paper, clay, olive and mustard. Measuring-tape rules, stitched edges,
   arched frames and hanging price tags.
   ========================================================================== */

@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-latin-ext-full-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Caveat";
	src: url("../fonts/caveat-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Caveat";
	src: url("../fonts/caveat-latin-ext-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
	--paper: #f4ede3;
	--paper-2: #ebe0cf;
	--card: #fbf7f1;
	--ink: #2a211c;
	--ink-2: #574840;
	--line: #d9cab4;
	--clay: #b24a25;
	--clay-deep: #8f3a1c;
	--olive: #5b6030;
	--olive-soft: #c9c9a3;
	--mustard: #dca33b;
	--blush: #ecc8b5;

	--f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	--f-hand: "Caveat", "Bradley Hand", cursive;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--r-s: 10px;
	--r-m: 18px;
	--r-l: 28px;
	--arch: 999px 999px var(--r-m) var(--r-m);

	--shadow: 0 1px 0 rgba(42, 33, 28, .06), 0 14px 30px -18px rgba(42, 33, 28, .45);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* faint paper grain */
	background-image:
		radial-gradient(rgba(42, 33, 28, .035) 1px, transparent 1px),
		radial-gradient(rgba(42, 33, 28, .025) 1px, transparent 1px);
	background-size: 22px 22px, 13px 13px;
	background-position: 0 0, 7px 11px;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; margin: 0; font-variation-settings: "SOFT" 100, "WONK" 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--mustard); color: var(--ink); }

:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-s);
	text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.eyebrow {
	font: 600 .75rem/1.2 var(--f-body);
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--olive); margin: 0 0 .7rem;
}
.eyebrow--hand {
	font: 700 1.5rem/1 var(--f-hand); letter-spacing: 0; text-transform: none;
	color: var(--clay); transform: rotate(-2deg); transform-origin: left; display: inline-block;
}
.section-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; margin-bottom: 1.75rem; }
.squiggle { width: 96px; height: 12px; color: var(--clay); }

/* ---------- Buttons & chips ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55rem;
	min-height: 48px; padding: .75rem 1.35rem;
	border-radius: 999px; border: 1.5px solid var(--ink);
	font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer;
	transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--clay { background: var(--clay); border-color: var(--clay); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn--clay:hover { background: var(--clay-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--clay-deep); border-color: var(--clay-deep); }

.chip {
	display: inline-flex; align-items: center; gap: .4rem;
	font: 600 .72rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase;
	color: var(--olive); text-decoration: none;
	padding: .45rem .7rem .42rem; border: 1px dashed currentColor; border-radius: 999px;
	transition: background-color .2s, color .2s;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip:hover { background: var(--olive); color: var(--paper); border-style: solid; }
.chip--solid { background: var(--olive); color: var(--paper); border-style: solid; border-color: var(--olive); }
.chip--solid:hover { background: var(--ink); border-color: var(--ink); }

.meta { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-2); }
.meta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--clay); }

/* ---------- Header ---------- */
.site-head {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	backdrop-filter: saturate(1.2) blur(10px);
}
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-head { top: 0; } }

.site-head__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 46px; height: 46px; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-14deg); }
.brand__word { display: flex; align-items: baseline; gap: .3rem; line-height: 1; }
.brand__first { font: 600 1.6rem/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; letter-spacing: -.02em; }
.brand__rest { font: 700 1.9rem/1 var(--f-hand); color: var(--clay); transform: rotate(-4deg) translateY(2px); }
.brand__img { max-height: 56px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
	position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
	font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 999px;
	transition: background-color .2s, color .2s;
}
.nav__link:hover { background: var(--paper-2); }
.nav__link.is-current, .current-menu-item > .nav__link { color: var(--clay); }
.nav__link.is-current::after, .current-menu-item > .nav__link::after {
	content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 8px; height: 2px;
	background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px);
}

.site-head__tools { display: flex; gap: .35rem; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
	transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.icon-btn--menu { display: none; }

/* measuring tape */
.tape {
	height: 14px;
	background:
		repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 60px) 0 0 / 100% 14px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px) 0 6px / 100% 8px no-repeat,
		var(--mustard);
	border-block: 1px solid var(--ink);
	opacity: .95;
}

.search-panel { border-bottom: 1px solid var(--line); background: var(--card); }
.search-panel[hidden] { display: none; }
.search-panel__inner { display: flex; gap: .75rem; align-items: center; padding-block: 1rem; }
.search-form { display: flex; gap: .5rem; flex: 1; width: 100%; }
.search-form__input {
	flex: 1; min-width: 0; min-height: 50px; padding: .7rem 1.1rem;
	border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper);
	font-size: 1rem;
}
.search-form__input::placeholder { color: #7b6c63; }

@media (max-width: 860px) {
	.icon-btn--menu { display: inline-grid; }
	.site-head__inner { min-height: 68px; gap: .75rem; }
	.site-head__tools { margin-left: auto; }
	.nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--card); border-bottom: 1px solid var(--line);
		padding: .75rem var(--gutter) 1.25rem; display: none;
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; align-items: stretch; }
	.nav__link { font-size: 1.1rem; padding: 0 .5rem; }
	.brand__mark { width: 40px; height: 40px; }
	.brand__first { font-size: 1.35rem; }
	.brand__rest { font-size: 1.6rem; }
}

/* ---------- Header widget area (raw code, no box) ---------- */
.site-head + script, .site-head + ins { display: block; }

/* ---------- Main ---------- */
.site-main { padding-bottom: clamp(3rem, 6vw, 6rem); }

/* ---------- Covers ---------- */
.cover__img { width: 100%; height: 100%; object-fit: cover; }
.cover__fallback {
	position: relative; display: grid; place-items: center; width: 100%; height: 100%;
	overflow: hidden; background: var(--olive);
}
.cover__fallback::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(circle at 20% 25%, rgba(255, 255, 255, .18) 0 2px, transparent 3px) 0 0 / 22px 22px,
		radial-gradient(circle at 120% 120%, rgba(0, 0, 0, .2), transparent 60%);
}
.cover__fallback::after {
	content: ""; position: absolute; inset: 12px; border: 1.5px dashed rgba(255, 255, 255, .45); border-radius: calc(var(--r-m) - 6px);
}
.cover__initial {
	position: relative; font: 600 clamp(3rem, 6vw, 5.5rem)/1 var(--f-display);
	font-variation-settings: "SOFT" 100, "WONK" 1; color: rgba(255, 255, 255, .92); font-style: italic;
}
.tone-1 { background: var(--olive); }
.tone-2 { background: var(--clay); }
.tone-3 { background: #8a6a3b; }
.tone-4 { background: #6d4b45; }
.tone-5 { background: #4f5e57; }

/* ---------- Hero ---------- */
.lead { padding-top: clamp(1.75rem, 4vw, 3.5rem); }
.hero {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(1.5rem, 5vw, 5rem); align-items: center;
}
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hero__text .eyebrow { margin: 0; }
.hero__title {
	font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em;
	font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 560;
	text-wrap: balance;
}
.hero__link { text-decoration: none; background: linear-gradient(var(--mustard), var(--mustard)) 0 88% / 0 .18em no-repeat; transition: background-size .45s var(--ease); }
.hero__link:hover { background-size: 100% .18em; }
.hero__excerpt { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin: 0; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: .5rem; }

.hero__media { position: relative; display: block; aspect-ratio: 5 / 6; }
.hero__media > .cover__img, .hero__media > .cover__fallback {
	border-radius: var(--arch); box-shadow: var(--shadow);
	outline: 1.5px solid var(--ink); outline-offset: 10px;
}
.stamp {
	position: absolute; left: -34px; bottom: 38px; width: 124px; height: 124px;
	animation: spin 24s linear infinite;
}
.stamp text { font: 700 11.5px var(--f-body); letter-spacing: .12em; text-transform: uppercase; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; }
	.hero__media { order: -1; aspect-ratio: 4 / 4.2; max-width: 520px; width: calc(100% - 22px); margin-inline: auto; }
	.stamp { left: -12px; bottom: 12px; width: 96px; height: 96px; }
	.duo { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--card); border-radius: var(--r-l); padding: 10px;
	box-shadow: var(--shadow);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(42, 33, 28, .06), 0 22px 40px -22px rgba(42, 33, 28, .55); }
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--r-l) - 8px); }
.card__media .cover__img { transition: transform .6s var(--ease); }
.card:hover .card__media .cover__img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1rem .7rem .8rem; flex: 1; }
.card__title { font-size: 1.3rem; line-height: 1.2; text-wrap: balance; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .chip { position: relative; z-index: 2; }
.card__excerpt { color: var(--ink-2); font-size: .98rem; margin: 0; }
.card .meta { margin-top: auto; }

/* wide card (horizontal) */
.card--wide { flex-direction: row; align-items: stretch; }
.card--wide .card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 220px; }
.card--wide .card__body { padding: 1.1rem 1.1rem 1rem 1.4rem; justify-content: center; }
.card--wide .card__title { font-size: 1.45rem; }
@media (max-width: 560px) {
	.card--wide { flex-direction: column; }
	.card--wide .card__media { flex-basis: auto; aspect-ratio: 4 / 3; min-height: 0; }
	.card--wide .card__body { padding: 1rem .7rem .8rem; }
}

/* main grid: the last row is always filled, never a hole */
.latest { margin-top: clamp(3rem, 7vw, 6rem); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.grid > .card:nth-child(6n + 2) .card__media { aspect-ratio: 1 / 1; }
.grid > .card:nth-child(6n + 4) .card__media { aspect-ratio: 4 / 5; }
@media (min-width: 1021px) {
	.grid > .card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; flex-direction: row; }
	.grid > .card:last-child:nth-child(3n + 2) { grid-column: span 2; flex-direction: row; }
	.grid > .card:last-child:nth-child(3n + 1) .card__media,
	.grid > .card:last-child:nth-child(3n + 2) .card__media { flex: 0 0 50%; aspect-ratio: 16 / 10; }
	.grid > .card:last-child:nth-child(3n + 1) .card__body,
	.grid > .card:last-child:nth-child(3n + 2) .card__body { justify-content: center; padding: 1.5rem; }
	.grid > .card:last-child:nth-child(3n + 1) .card__title,
	.grid > .card:last-child:nth-child(3n + 2) .card__title { font-size: 1.7rem; }
}
@media (max-width: 1020px) and (min-width: 621px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
	.grid > .card:last-child:nth-child(odd) .card__media { flex: 0 0 50%; aspect-ratio: 4 / 3; }
	.grid > .card:last-child:nth-child(odd) .card__body { justify-content: center; }
}
@media (max-width: 620px) {
	.grid { grid-template-columns: 1fr; }
	.grid > .card .card__media { aspect-ratio: 4 / 3 !important; }
}

/* ---------- Popular topics ---------- */
.popular { margin-top: clamp(3rem, 7vw, 6rem); }
.popular__head { margin-bottom: 1.75rem; }
.popular__list { list-style: none; margin: 0; padding: 0; counter-reset: pop; }

/* grid layout: 4 → 2 columns, row always complete */
.popular--grid {
	position: relative; padding: clamp(1.5rem, 4vw, 3rem);
	background: var(--ink); color: var(--paper); border-radius: var(--r-l);
	overflow: hidden;
}
.popular--grid::before {
	content: ""; position: absolute; inset: 12px; border: 1.5px dashed rgba(244, 237, 227, .28);
	border-radius: calc(var(--r-l) - 8px); pointer-events: none;
}
.popular--grid .eyebrow { color: var(--mustard); }
.popular--grid .popular__head { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; }
.popular--grid .popular__head .eyebrow { flex-basis: 100%; margin: 0; }
.popular--grid .popular__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }

.pop-card { margin: 0; display: flex; }
.pop-card__link { position: relative; display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit; }
.pop-card__media {
	position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r-m);
	overflow: visible;
}
.pop-card__media > .cover__img, .pop-card__media > .cover__fallback {
	position: absolute; inset: 0; border-radius: var(--r-m); transition: transform .5s var(--ease), border-radius .5s var(--ease);
}
.pop-card__media > .cover__fallback .cover__initial { font-size: 3.4rem; }
.pop-card:nth-child(4n + 2) .pop-card__media > *:first-child,
.pop-card:nth-child(4n + 3) .pop-card__media > *:first-child { border-radius: var(--arch); }
.pop-card__link:hover .pop-card__media > *:first-child { transform: rotate(-1.5deg) scale(1.02); }

/* hanging price tag */
.pop-card__tag {
	position: absolute; top: -8px; right: 14px; z-index: 2;
	display: grid; place-items: center; width: 50px; height: 62px; padding-top: 12px;
	font: 700 1.5rem/1 var(--f-hand); color: var(--ink);
	background: var(--mustard);
	clip-path: polygon(50% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
	transform-origin: 50% 0; transform: rotate(6deg);
	transition: transform .5s var(--ease);
}
.pop-card__tag::before {
	content: ""; position: absolute; top: 8px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
	border-radius: 50%; background: var(--ink);
}
.pop-card:nth-child(even) .pop-card__tag { background: var(--blush); transform: rotate(-5deg); }
.pop-card__link:hover .pop-card__tag { transform: rotate(-8deg); }

.pop-card__body { display: flex; flex-direction: column; gap: .45rem; padding: .95rem .15rem 0; flex: 1; }
.pop-card__title {
	font: 560 1.12rem/1.25 var(--f-display); font-variation-settings: "SOFT" 100;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pop-card__more {
	margin-top: auto; display: inline-flex; align-items: center; gap: .35rem;
	font: 600 .78rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--mustard);
}
.pop-card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.pop-card__link:hover .pop-card__more svg { transform: translateX(4px); }
.pop-card__link:hover .pop-card__title { text-decoration: underline; text-decoration-color: var(--mustard); text-underline-offset: .2em; }

@media (max-width: 1020px) {
	.popular--grid .popular__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.pop-card__title { font-size: 1rem; -webkit-line-clamp: 4; }
}
@media (max-width: 380px) {
	.pop-card__title { font-size: .95rem; }
	.pop-card__tag { width: 42px; height: 54px; font-size: 1.25rem; }
}
/* odd count fallback: the last card stretches so no blank cell is left */
.popular--grid .pop-card:last-child:nth-child(4n + 1) { grid-column: 1 / -1; }
.popular--grid .pop-card:last-child:nth-child(4n + 2) { grid-column: span 3; }
.popular--grid .pop-card:last-child:nth-child(4n + 3) { grid-column: span 2; }
@media (max-width: 1020px) {
	.popular--grid .pop-card:last-child { grid-column: auto; }
	.popular--grid .pop-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.popular--grid .pop-card:last-child:not(:nth-child(4n)) .pop-card__media { aspect-ratio: 21 / 9; }
@media (max-width: 1020px) {
	.popular--grid .pop-card:last-child .pop-card__media { aspect-ratio: 1 / 1; }
	.popular--grid .pop-card:last-child:nth-child(odd) .pop-card__media { aspect-ratio: 21 / 9; }
}

/* rail layout (single post sidebar) */
.popular--rail { margin-top: 0; }
.popular--rail .popular__head { padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1.5px solid var(--ink); }
.popular--rail .section-title { font-size: 1.7rem; }
.popular--rail .popular__list { display: flex; flex-direction: column; }
.popular--rail .pop-card { border-bottom: 1px dashed var(--line); }
.popular--rail .pop-card__link { flex-direction: row; align-items: center; gap: 1rem; padding: .9rem 0; }
.popular--rail .pop-card__media { flex: 0 0 88px; width: 88px; height: 88px; aspect-ratio: auto; }
.popular--rail .pop-card__media > *:first-child { border-radius: 50% 50% var(--r-s) var(--r-s) !important; }
.popular--rail .pop-card__media > .cover__fallback .cover__initial { font-size: 2rem; }
.popular--rail .pop-card__media > .cover__fallback::after { inset: 6px; }
.popular--rail .pop-card__tag {
	top: auto; bottom: -6px; right: auto; left: -6px; width: 34px; height: 34px; padding: 0;
	clip-path: none; border-radius: 50%; font-size: 1.05rem; transform: none;
	border: 2px solid var(--paper);
}
.popular--rail .pop-card__tag::before { display: none; }
.popular--rail .pop-card__link:hover .pop-card__tag { transform: rotate(-12deg); }
.popular--rail .pop-card__body { padding: 0; }
.popular--rail .pop-card__title { font-size: 1.02rem; }
.popular--rail .pop-card__more { color: var(--clay); }

@media (max-width: 1100px) {
	.popular--rail .popular__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
	.popular--rail .pop-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
	.popular--rail .popular__list { grid-template-columns: 1fr; }
}

/* ---------- Page head (archives) ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head__title {
	font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); letter-spacing: -.025em;
	font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 560; text-wrap: balance;
}
.page-head__desc { max-width: 60ch; color: var(--ink-2); margin-top: 1rem; }
.page-head .squiggle { margin-top: 1rem; width: 140px; }

/* ---------- Single ---------- */
.reading-bar { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.reading-bar span { display: block; height: 100%; width: 100%; background: var(--clay); transform-origin: 0 50%; transform: scaleX(0); }
.admin-bar .reading-bar { top: 32px; }

.entry__head { padding-top: clamp(2rem, 5vw, 4rem); max-width: 980px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.entry--page .entry__head { padding-bottom: 1.5rem; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; align-items: center; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.crumbs__link { text-decoration: none; color: var(--olive); padding: .3rem 0; border-bottom: 1px dashed transparent; }
.crumbs__link:hover { border-color: currentColor; }
.crumbs__sep { color: var(--line); }
.entry__title {
	font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.2rem); letter-spacing: -.025em; line-height: 1.05;
	font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 560; text-wrap: balance;
}
.entry__dek { font: italic 400 1.3rem/1.45 var(--f-display); color: var(--ink-2); max-width: 46ch; margin: 0; }
.entry__meta { padding: .5rem 1.1rem; border: 1px dashed var(--line); border-radius: 999px; }

.entry__cover { margin-top: clamp(1.75rem, 4vw, 3rem); margin-bottom: 0; }
.entry__img { width: 100%; max-height: 720px; object-fit: cover; border-radius: var(--r-l); box-shadow: var(--shadow); }
.entry__cover figcaption { font-size: .85rem; color: var(--ink-2); text-align: center; margin-top: .7rem; }

.entry__layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 5rem);
	margin-top: clamp(2rem, 5vw, 3.5rem); align-items: start;
}
.entry__main { min-width: 0; max-width: 720px; justify-self: end; width: 100%; }
@media (max-width: 1100px) {
	.entry__layout { grid-template-columns: 1fr; }
	.entry__main { justify-self: center; }
	.entry__aside { margin-top: 1rem; padding-top: 2rem; border-top: 1.5px solid var(--ink); }
	.popular--rail .popular__head { border-bottom: 0; }
}

/* prose */
.prose { font-size: 1.12rem; line-height: 1.75; }
.prose--center { max-width: 720px; margin-inline: auto; }
.prose > * + * { margin-top: 1.25em; }
.prose p { margin: 0; }
.prose > p:first-of-type::first-letter {
	float: left; font: 600 4.6em/.82 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1;
	color: var(--clay); margin: .06em .1em 0 0;
}
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-top: 2em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.2rem; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose a { color: var(--clay-deep); text-decoration-color: var(--mustard); text-decoration-thickness: 2px; }
.prose a:hover { background: color-mix(in srgb, var(--mustard) 30%, transparent); }
.prose img, .prose figure img { border-radius: var(--r-m); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { font-size: .85rem; color: var(--ink-2); text-align: center; margin-top: .6rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--clay); }
.prose ol li::marker { font-family: var(--f-hand); font-weight: 700; font-size: 1.25em; color: var(--clay); }
.prose blockquote {
	margin-inline: 0; padding: 1.25rem 1.5rem 1.25rem 1.75rem; position: relative;
	font: italic 400 1.35rem/1.5 var(--f-display); background: var(--card); border-radius: var(--r-m);
	border-left: 4px solid var(--clay);
}
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 14px; background: radial-gradient(circle, var(--clay) 2px, transparent 2.5px) center / 18px 14px repeat-x; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose code { background: var(--paper-2); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--ink); color: var(--paper); padding: 1rem 1.25rem; border-radius: var(--r-m); overflow-x: auto; }
.prose .alignwide { width: min(100vw - 2 * var(--gutter), 1000px); margin-inline: calc(50% - min(50vw - var(--gutter), 500px)); }
.prose .alignfull { width: 100%; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: .3em 1.25em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.25em; max-width: 50%; }
.prose iframe { max-width: 100%; }
.wp-block-image img { height: auto; }

.page-links { display: flex; gap: .5rem; margin-top: 2rem; }

.entry__foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tag { display: inline-block; padding: .45rem .85rem; border-radius: 999px; background: var(--paper-2); text-decoration: none; font-size: .9rem; font-weight: 600; }
.tag:hover { background: var(--ink); color: var(--paper); }

.below-post .widget + .widget { margin-top: 1.5rem; }
.widget__title { font-size: 1.3rem; margin-bottom: .75rem; }

.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.postnav__item {
	display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem; text-decoration: none;
	border: 1.5px solid var(--ink); border-radius: var(--r-m); background: var(--card);
	transition: background-color .2s, transform .2s var(--ease);
}
.postnav__item--next { text-align: right; grid-column: 2; }
.postnav__item:hover { background: var(--blush); transform: translateY(-2px); }
.postnav__label { font: 700 1.2rem/1 var(--f-hand); color: var(--clay); }
.postnav__title { font: 560 1.08rem/1.3 var(--f-display); }
@media (max-width: 560px) {
	.postnav { grid-template-columns: 1fr; }
	.postnav__item--next { grid-column: auto; }
}

/* comments */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1.5px solid var(--ink); }
.comments__title { font-size: 1.6rem; margin-bottom: 1.5rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(1rem, 4vw, 2.5rem); border-left: 1px dashed var(--line); }
.comment__body { padding: 1.1rem 0; }
.comment__head { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; }
.comment__avatar { border-radius: 50%; }
.comment__author { display: block; font-weight: 700; }
.comment__author a { text-decoration: none; }
.comment__time { font-size: .82rem; color: var(--ink-2); text-decoration: none; }
.comment__reply a { font-weight: 600; font-size: .9rem; color: var(--clay-deep); }
.comment__pending { font-style: italic; color: var(--olive); }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.5rem; margin-bottom: 1rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--ink); border-radius: var(--r-s); background: var(--card);
}
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* pager */
.pager { margin-top: 3rem; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.pager .page-numbers {
	display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .8rem;
	border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 600;
	transition: background-color .2s, color .2s;
}
.pager a.page-numbers:hover { background: var(--ink); color: var(--paper); }
.pager .page-numbers.current { background: var(--clay); border-color: var(--clay); color: #fff; }
.pager .page-numbers.dots { border-color: transparent; }

/* empty / 404 */
.empty, .lost { padding: clamp(2rem, 6vw, 5rem) 0 0; max-width: 720px; text-align: center; }
.empty .search-form, .lost .search-form { margin: 1.5rem auto; max-width: 560px; }
.empty__lead { font-size: 1.15rem; color: var(--ink-2); }
.lost__num {
	font: 600 clamp(6rem, 22vw, 13rem)/.9 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1;
	color: transparent; -webkit-text-stroke: 2px var(--clay); margin: 0 0 1rem; letter-spacing: -.04em;
}
.lost .page-head__title { margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--olive); color: var(--paper); position: relative; }
.site-foot::before {
	content: ""; display: block; height: 18px;
	background: radial-gradient(circle at 9px -2px, var(--paper) 9px, transparent 9.5px) 0 0 / 18px 18px repeat-x;
}
.site-foot__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.site-foot .brand__mark circle:first-child { fill: var(--mustard); }
.site-foot .brand__rest { color: var(--mustard); }
.site-foot__brand { max-width: 380px; }
.site-foot__note { margin: 1rem 0 0; color: rgba(244, 237, 227, .85); }
.foot-menu { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.foot-menu .nav__link { padding: 0; min-height: 44px; font-weight: 500; }
.foot-menu .nav__link:hover { background: none; text-decoration: underline; }
.to-top {
	display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem;
	border: 1.5px solid rgba(244, 237, 227, .6); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem;
}
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--paper); color: var(--olive); }
.site-foot__base {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
	padding: 1.25rem 0 1.75rem; border-top: 1px dashed rgba(244, 237, 227, .35); font-size: .88rem;
}
.site-foot__base p { margin: 0; }
.site-foot__made { font: 700 1.25rem/1 var(--f-hand); color: var(--mustard); }
.site-foot :focus-visible { outline-color: var(--mustard); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

@media print {
	.site-head, .site-foot, .entry__aside, .popular, .reading-bar, .comments { display: none !important; }
	body { background: #fff; }
}
