/* ==========================================================================
   Ihlamur — "care almanac" theme for huzurevlerim.com
   Warm paper, clay & linden-sage, arched-window imagery, hyperlegible type.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/newsreader-latin-opsz-normal.woff2) format("woff2"); 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: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2"); 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: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(../fonts/newsreader-latin-opsz-italic.woff2) format("woff2"); 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: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(../fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2"); 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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); 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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2) format("woff2"); 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: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); 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: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-ext-400-italic.woff2) format("woff2"); 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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); 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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2) format("woff2"); 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; }

/* ---------- Tokens (semantic, daisyUI-style naming) ---------- */
:root {
	/* primitives */
	--ih-paper: #F5EFE3;      /* base-100 */
	--ih-paper-2: #EDE4D3;    /* base-200 */
	--ih-paper-3: #E3D7C1;    /* base-300 */
	--ih-ink: #2A2320;        /* base-content */
	--ih-ink-soft: #5A5048;   /* muted text, 7:1 on paper */
	--ih-clay: #A8481F;       /* primary */
	--ih-clay-deep: #8A3814;
	--ih-sage: #4E6147;       /* secondary */
	--ih-sage-deep: #232C1E;  /* band background */
	--ih-honey: #E2A13A;      /* accent */
	--ih-line: #D6C8AF;

	/* semantic */
	--color-base-100: var(--ih-paper);
	--color-base-200: var(--ih-paper-2);
	--color-base-content: var(--ih-ink);
	--color-primary: var(--ih-clay);
	--color-primary-content: #FFF8EE;
	--color-secondary: var(--ih-sage);
	--color-accent: var(--ih-honey);

	--font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 0 rgba(42, 35, 32, .06), 0 10px 30px -12px rgba(42, 35, 32, .28);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-size="lg"] { font-size: 118.75%; }
html[data-size="xl"] { font-size: 131.25%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background-color: var(--color-base-100);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.18 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	color: var(--color-base-content);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ih-honey); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ih-honey); color: var(--ih-ink); }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ih-ink); color: var(--ih-paper); padding: .75rem 1rem; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 1rem; }

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; margin: 0 0 .5em; }

/* ---------- Icons, chips, buttons, meta ---------- */
.ih-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.chip {
	display: inline-flex; align-items: center; gap: .4em;
	font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--ih-sage); text-decoration: none;
	padding: .3em .75em; border: 1.5px solid currentColor; border-radius: 999px;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.chip::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: var(--ih-honey); }
.chip:hover { background: var(--ih-sage); color: var(--ih-paper); }

.btn {
	display: inline-flex; align-items: center; gap: .55em; min-height: 48px;
	padding: .7em 1.35em; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--color-primary); color: var(--color-primary-content);
	font: 700 1rem/1 var(--font-body); text-decoration: none;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
	transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover, a:hover > .btn { background: var(--ih-clay-deep); transform: translateY(-1px); }
.btn .ih-icon { transition: transform .25s var(--ease); }
a:hover > .btn .ih-icon { transform: translateX(3px); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0; font-size: .9rem; color: var(--ih-ink-soft); }
.meta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ih-clay); }
.meta__by { font-weight: 700; color: var(--ih-ink); }

/* ---------- Arched-window covers ---------- */
.cover { display: block; position: relative; overflow: hidden; background: var(--ih-paper-3); isolation: isolate; }
.cover__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s var(--ease); filter: saturate(.92) sepia(.06); }
a:hover .cover__img { transform: scale(1.04); filter: none; }
.arch { border-radius: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius); }
.arch--wide { border-radius: clamp(80px, 22vw, 320px) clamp(80px, 22vw, 320px) var(--radius) var(--radius); }
.cover__fallback { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.cover__fallback.tone-0 { background: linear-gradient(160deg, #C9805A, var(--ih-clay)); }
.cover__fallback.tone-1 { background: linear-gradient(160deg, #7F9171, var(--ih-sage)); }
.cover__fallback.tone-2 { background: linear-gradient(160deg, #EBC27A, #C98A2B); }
.cover__fallback.tone-3 { background: linear-gradient(160deg, #6B5A50, var(--ih-ink)); }
.cover__initial { font: italic 500 clamp(3rem, 9vw, 6rem)/1 var(--font-display); color: rgba(255, 248, 238, .92); }
.cover__mark { position: absolute; right: 8%; bottom: 8%; width: 22%; max-width: 54px; opacity: .55; }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(245, 239, 227, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 0; position: relative; } }
.masthead__almanac { background: var(--ih-ink); color: #E9DFCC; font-size: .8rem; }
.masthead__almanac-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 38px; }
.almanac__date { color: var(--ih-honey); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.almanac__note { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; font-style: italic; }
.textsize { display: flex; gap: 2px; margin-left: auto; }
.textsize__btn { min-width: 34px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; font: 700 .8rem/1 var(--font-body); }
.textsize__btn--lg { font-size: .98rem; }
.textsize__btn--xl { font-size: 1.15rem; }
.textsize__btn[aria-pressed="true"] { background: var(--ih-honey); color: var(--ih-ink); }
.textsize__btn:hover { background: rgba(255, 255, 255, .12); }

.masthead__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; border-bottom: 1px solid var(--ih-line); box-shadow: 0 3px 0 -2px var(--ih-line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ih-ink); flex: none; }
.brand__mark { width: 44px; height: 44px; }
.brand__word { font: italic 560 1.7rem/1 var(--font-display); letter-spacing: -.02em; }
.brand__word::first-letter { color: var(--ih-clay); }
.brand__img { max-height: 56px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: .6rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 700; }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { background: var(--ih-paper-2); color: var(--ih-clay); }
.site-nav__list .sub-menu { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ih-line); background: transparent; color: var(--ih-ink); cursor: pointer; }

.masthead__search { position: relative; display: flex; align-items: center; margin-left: auto; }
.site-nav + .masthead__search { margin-left: 0; }
.masthead__search input { width: 230px; min-height: 46px; padding: .55rem 3rem .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--ih-line); background: #FFFBF4; font: inherit; color: var(--ih-ink); transition: border-color .2s, width .3s var(--ease); }
.masthead__search input:focus { outline: none; border-color: var(--ih-clay); width: 280px; }
.masthead__search button { position: absolute; right: 4px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ih-ink); color: var(--ih-paper); cursor: pointer; display: grid; place-items: center; }
.progress { height: 3px; background: transparent; }
.progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--ih-sage), var(--ih-honey), var(--ih-clay)); }
body:not(.is-reading) .progress { display: none; }

/* ---------- Hero (front page) ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 4vw, 3rem); position: relative; }
.hero__eyebrow, .archive-head__eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ih-sage); margin: 0 0 1rem; }
.hero__title { font-size: clamp(2.3rem, 6.2vw, 4.9rem); font-weight: 400; max-width: 17ch; line-height: 1.02; margin: 0; }
.hero__title em { color: var(--ih-clay); font-weight: 500; }
.hero__page { font: italic 1.25rem var(--font-display); color: var(--ih-ink-soft); margin: 1rem 0 0; }
.hero::after { content: ""; position: absolute; right: 0; bottom: 1.5rem; width: clamp(90px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #F2C77B 0 45%, var(--ih-honey) 69%, transparent 70%); opacity: .5; pointer-events: none; }

/* ---------- Layout: list + rail ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4.5rem); padding-bottom: 4rem; align-items: start; }
.layout__rail { position: sticky; top: 140px; }
.admin-bar .layout__rail { top: 172px; }

/* Lead story */
.lead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-bottom: clamp(2rem, 4vw, 3rem); margin-bottom: .5rem; border-bottom: 1px solid var(--ih-line); }
.lead > a { display: block; }
.lead__cover { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.lead__kicker { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.lead__no { font: italic 400 3.2rem/1 var(--font-display); color: var(--ih-clay); }
.lead__title { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
.lead__title a, .row__title a { text-decoration: none; background: linear-gradient(var(--ih-honey), var(--ih-honey)) 0 100% / 0 .12em no-repeat; transition: background-size .35s var(--ease); }
.lead__title a:hover, .row__title a:hover { background-size: 100% .12em; }
.lead__dek { font-size: 1.1rem; color: var(--ih-ink-soft); margin: 0 0 1.1rem; }
.lead .meta { margin-bottom: 1.5rem; }
.lead__body > a { text-decoration: none; }

/* Ledger rows */
.ledger { counter-reset: row; }
.row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 190px; gap: 1.25rem; align-items: start; padding: 1.75rem 0; border-bottom: 1px dashed var(--ih-line); }
.row:not(:has(.row__no)) { grid-template-columns: minmax(0, 1fr) 190px; }
.row__no { font: italic 400 2.2rem/1 var(--font-display); color: var(--ih-clay); padding-top: .2rem; }
.row__kicker { margin-bottom: .55rem; }
.row__title { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin-bottom: .4rem; }
.row__excerpt { margin: 0 0 .7rem; color: var(--ih-ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row > a { display: block; }
.row__cover { aspect-ratio: 4 / 5; }

/* Pagination */
.pager { margin-top: 2.5rem; }
.pager ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--ih-line); text-decoration: none; font-weight: 700; }
.pager a.page-numbers:hover { border-color: var(--ih-clay); color: var(--ih-clay); }
.pager .current { background: var(--ih-ink); color: var(--ih-paper); border-color: var(--ih-ink); }
.pager .dots { border: 0; min-width: auto; }

/* Archive head */
.archive-head { padding: clamp(2.25rem, 5vw, 4rem) 0 1.5rem; border-bottom: 1px solid var(--ih-line); margin-bottom: 1rem; }
.archive-head__title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 400; }
.archive-head__desc { max-width: 60ch; color: var(--ih-ink-soft); }
.archive-head .searchform { margin-top: 1.25rem; }

/* ---------- Popular Topics ---------- */
.popular__head { margin-bottom: 1.1rem; }
.popular__kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ih-sage); }
.popular__title { font-size: 1.9rem; font-style: italic; margin: .15rem 0 0; }
.popular__grid { list-style: none; margin: 0; padding: 0; }
.pcard a { text-decoration: none; color: inherit; display: grid; }
.pcard__no { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ih-clay); }
.pcard__title { font-family: var(--font-display); font-weight: 500; line-height: 1.22; text-wrap: pretty; }
.pcard__meta { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ih-ink-soft); }
.pcard__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }

/* Rail variant: numbered index list */
.popular--rail { background: #FBF6EC; border: 1px solid var(--ih-line); border-radius: var(--radius); padding: 1.4rem 1.25rem .5rem; box-shadow: var(--shadow); position: relative; }
.popular--rail::before { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--ih-clay) 0 33%, var(--ih-honey) 33% 66%, var(--ih-sage) 66%); }
.popular--rail .pcard + .pcard { border-top: 1px dashed var(--ih-line); }
.popular--rail .pcard a { grid-template-columns: 72px minmax(0, 1fr); gap: .95rem; align-items: center; padding: .85rem 0; }
.popular--rail .pcard__cover { width: 72px; aspect-ratio: 4 / 5; border-radius: 50% 50% 8px 8px / 36% 36% 8px 8px; }
.popular--rail .pcard__title { font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.popular--rail .pcard a:hover .pcard__title { color: var(--ih-clay); }
.popular--rail .cover__initial { font-size: 2rem; }
.popular--rail .cover__mark { display: none; }

/* Band variant: index cards on a linden-green field */
.popular--band { background: var(--ih-sage-deep); color: #EFE7D6; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); margin-top: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.popular--band::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(226, 161, 58, .16), transparent 62%); pointer-events: none; }
.popular--band .popular__head, .popular--band .popular__grid { width: min(100%, var(--wrap)); margin-inline: auto; position: relative; }
.popular--band .popular__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(239, 231, 214, .2); padding-bottom: 1rem; }
.popular--band .popular__kicker { color: var(--ih-honey); }
.popular--band .popular__title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 400; color: #FFF8EE; }
.popular--band .popular__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.75rem); }
.popular--band .pcard { background: var(--ih-paper); color: var(--ih-ink); border-radius: var(--radius); padding: .7rem .7rem 1.1rem; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .65); transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease), box-shadow .35s var(--ease); position: relative; }
.popular--band .pcard:nth-child(4n+1) { --tilt: -.8deg; }
.popular--band .pcard:nth-child(4n+2) { --tilt: .6deg; }
.popular--band .pcard:nth-child(4n+3) { --tilt: -.4deg; }
.popular--band .pcard:nth-child(4n+4) { --tilt: .9deg; }
.popular--band .pcard::before { content: ""; position: absolute; z-index: 2; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ih-honey); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.popular--band .pcard:hover, .popular--band .pcard:focus-within { transform: rotate(0) translateY(-6px); box-shadow: 0 26px 40px -18px rgba(0, 0, 0, .75); }
.popular--band .pcard a { height: 100%; grid-template-rows: auto 1fr; gap: .9rem; }
.popular--band .pcard__cover { aspect-ratio: 4 / 3; border-radius: 50% 50% 10px 10px / 30% 30% 10px 10px; }
.popular--band .pcard__body { padding: 0 .35rem; }
.popular--band .pcard__title { font-size: 1.18rem; }
.popular--band .pcard__meta { margin-top: auto; padding-top: .35rem; }
.popular--band .pcard a:hover .pcard__title { color: var(--ih-clay); }

/* ---------- Single story ---------- */
.story__head { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.25rem); text-align: center; display: flex; flex-direction: column; align-items: center; }
.story__kicker { margin-bottom: 1.1rem; }
.story__title { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 400; max-width: 22ch; margin-bottom: .6rem; }
.story__dek { font: italic 400 clamp(1.15rem, 2vw, 1.4rem)/1.45 var(--font-display); color: var(--ih-ink-soft); max-width: 46ch; margin: 0 0 1.25rem; }
.story__meta { justify-content: center; padding-top: 1rem; border-top: 1px solid var(--ih-line); min-width: min(100%, 420px); }
.story__figure { margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.story__figure .cover { aspect-ratio: 16 / 8; box-shadow: var(--shadow); }
.story__figure figcaption { text-align: center; font-size: .88rem; color: var(--ih-ink-soft); margin-top: .75rem; }
.story__grid { display: grid; justify-items: center; }
.story--page .story__head { padding-bottom: 1rem; }

.prose { width: 100%; max-width: 70ch; font-size: 1.08rem; line-height: 1.75; }
.prose > * { margin-block: 0 1.25em; }
.prose > p:first-of-type::first-letter { float: left; font: 500 4.4em/.82 var(--font-display); color: var(--ih-clay); padding: .08em .1em 0 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-top: 2em; position: relative; padding-top: .9rem; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--ih-honey); }
.prose h3 { font-size: 1.4rem; margin-top: 1.7em; }
.prose a { color: var(--ih-clay); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ih-clay-deep); text-decoration-thickness: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ih-clay); font-weight: 700; }
.prose blockquote { margin-inline: 0; padding: 1.25rem 1.5rem 1.25rem 1.75rem; background: #FBF6EC; border-left: 4px solid var(--ih-sage); border-radius: 0 var(--radius) var(--radius) 0; font: italic 400 1.25rem/1.5 var(--font-display); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: .88rem; color: var(--ih-ink-soft); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #FBF6EC; border-radius: var(--radius-sm); overflow: hidden; }
.prose th, .prose td { padding: .7rem .85rem; border-bottom: 1px solid var(--ih-line); text-align: left; vertical-align: top; }
.prose th { background: var(--ih-paper-2); font-weight: 700; }
.prose hr { border: 0; height: 18px; background: radial-gradient(circle, var(--ih-clay) 2px, transparent 3px) center / 22px 18px repeat-x; width: 90px; margin: 2.5em auto; }
.prose .alignwide { max-width: min(100vw - 2 * var(--gutter), 1100px); margin-inline: auto; }
.prose pre, .prose code { font-size: .9em; background: var(--ih-paper-2); border-radius: 6px; }
.prose code { padding: .1em .35em; }
.prose pre { padding: 1rem; overflow: auto; }
.prose .wp-block-button__link { background: var(--ih-clay); color: #FFF8EE; border-radius: 999px; text-decoration: none; }

.story__foot { max-width: 70ch; margin-top: 2.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 2rem; padding: 0; }
.tag { display: inline-block; padding: .4rem .85rem; border-radius: 999px; background: var(--ih-paper-2); text-decoration: none; font-size: .88rem; }
.tag::before { content: "#"; color: var(--ih-clay); margin-right: .1em; }
.tag:hover { background: var(--ih-paper-3); }
.sibling { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sibling a { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.25rem; border: 1.5px solid var(--ih-line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, background .2s; }
.sibling a:last-child:not(:first-child) { text-align: right; }
.sibling a:hover { border-color: var(--ih-clay); background: #FBF6EC; }
.sibling__label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ih-sage); }
.sibling__title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; }

.crumbs { font-size: .88rem; color: var(--ih-ink-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--ih-sage); }

/* ---------- Forms, comments, empty ---------- */
.searchform { display: flex; gap: .5rem; max-width: 520px; }
.searchform input[type="search"] { flex: 1; min-height: 48px; padding: .6rem 1.1rem; border: 1.5px solid var(--ih-line); border-radius: 999px; background: #FFFBF4; font: inherit; color: var(--ih-ink); }
.searchform input[type="search"]:focus { outline: none; border-color: var(--ih-clay); }
.none { padding: 2rem 0; }
.none__title { font-size: 2rem; }

.comments { padding: 3rem 0 1rem; }
.comments__title, .comment-reply-title { font-size: 1.8rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: clamp(1rem, 4vw, 2.5rem); }
.comment-body { padding: 1.25rem; background: #FBF6EC; border: 1px solid var(--ih-line); border-radius: var(--radius); margin-bottom: 1rem; }
.comment-author { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .82rem; color: var(--ih-ink-soft); }
.comment-metadata a, .comment-reply-link { color: var(--ih-sage); }
.comment-form label { display: block; font-weight: 700; margin-bottom: .3rem; }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: start; }
.comment-form-cookies-consent input { margin-top: .35rem; width: 18px; height: 18px; flex: none; }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--ih-line); border-radius: var(--radius-sm); background: #FFFBF4; font: inherit; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--ih-clay); }

/* ---------- Footer ---------- */
.colophon { background: var(--ih-ink); color: #E9DFCC; padding-top: clamp(3rem, 6vw, 4.5rem); }
.popular--band + .colophon, main:has(> .popular--band:last-child) + .colophon { margin-top: 0; }
.colophon__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(233, 223, 204, .16); }
.colophon .brand { color: #FFF8EE; }
.colophon__motto { font: italic 400 clamp(1.3rem, 2.6vw, 1.9rem)/1.35 var(--font-display); max-width: 30ch; margin: 1.1rem 0 0; color: #F2E9D8; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .35rem 2rem; justify-content: end; }
.footer-links a { display: inline-block; padding: .4rem 0; text-decoration: none; color: #E9DFCC; border-bottom: 1px solid transparent; }
.footer-links a:hover { color: var(--ih-honey); border-color: currentColor; }
.colophon__base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0 1.5rem; font-size: .86rem; color: #BDB2A0; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
.to-top:hover { color: var(--ih-honey); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.popular--band .popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.layout__rail { position: static; }
	.popular--rail .popular__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
	.popular--rail .pcard + .pcard { border-top: 0; }
	.popular--rail .pcard { border-bottom: 1px dashed var(--ih-line); }
	.nav-toggle { display: grid; place-items: center; }
	.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ih-paper); border-bottom: 1px solid var(--ih-line); padding: .5rem var(--gutter) 1rem; display: none; }
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; }
	.site-nav + .masthead__search { margin-left: 0; }
	.masthead__bar { position: relative; flex-wrap: wrap; }
}
@media (max-width: 720px) {
	.masthead__bar { gap: .75rem; min-height: 66px; padding: .5rem 0; }
	.brand__mark { width: 38px; height: 38px; }
	.brand__word { font-size: 1.45rem; }
	.masthead__search { order: 3; width: 100%; margin: 0 0 .25rem; }
	.masthead__search input, .masthead__search input:focus { width: 100%; }
	.masthead { position: relative; }
	.almanac__note { display: none; }
	.lead { grid-template-columns: minmax(0, 1fr); }
	.lead__cover { aspect-ratio: 4 / 3; }
	.row, .row:not(:has(.row__no)) { grid-template-columns: minmax(0, 1fr) 92px; gap: .4rem 1rem; padding: 1.4rem 0; }
	.row__no { grid-column: 1 / -1; font-size: 1.5rem; padding: 0; }
	.row > a { grid-row: span 1; }
	.row__excerpt { -webkit-line-clamp: 2; font-size: .95rem; }
	.popular--rail .popular__grid { grid-template-columns: minmax(0, 1fr); }
	.popular--band .popular__head { flex-direction: column; align-items: start; }
	.sibling { grid-template-columns: 1fr; }
	.sibling a:last-child:not(:first-child) { text-align: left; }
	.colophon__inner { grid-template-columns: 1fr; }
	.footer-links { justify-content: start; }
	.hero::after { display: none; }
}
@media (max-width: 480px) {
	.popular--band .popular__grid { grid-template-columns: minmax(0, 1fr); }
	.popular--band .pcard a { grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: none; align-items: center; }
	.popular--band .pcard__cover { aspect-ratio: 4 / 5; }
	.row__cover { aspect-ratio: 1; }
	.colophon__base { flex-direction: column; align-items: start; }
}

@media print {
	.masthead, .popular, .colophon, .sibling, .comments { display: none !important; }
	body { background: #fff; }
}
