/*
Theme Name: Loam
Theme URI: https://bildirimlerim.com/
Author: bildirimlerim
Description: A warm, hand-made editorial theme for home decor, DIY projects and everyday living. Pebble-shaped imagery, stitched dividers, a numbered story ledger and a random Popular Topics band under every post. No cards, no boxes. Fully responsive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loam
Tags: blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #F3E9CF;
	--paper-deep: #E8D9B0;
	--ink: #2A1631;
	--ink-soft: #5E4863;
	--persimmon: #D9512C;
	--persimmon-ink: #A93A17;
	--sage: #A3B184;
	--blush: #EDBFA8;
	--butter: #F7DE8B;

	--f-display: "Gloock", "Georgia", serif;
	--f-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--f-accent: "Fraunces", "Georgia", serif;

	--gutter: clamp(1rem, 4vw, 3.5rem);
	--measure: 42rem;
	--wide: 82rem;

	--ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--f-text);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body::before { /* faint paper grain */
	content: "";
	position: fixed; inset: 0;
	pointer-events: none; z-index: 0;
	opacity: .35;
	background-image: radial-gradient(rgba(42,22,49,.06) 1px, transparent 1.2px);
	background-size: 5px 5px;
}
body > * { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--persimmon-ink); }
:focus-visible { outline: 3px solid var(--persimmon); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 1em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--ink); color: var(--paper); padding: .7rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.kicker {
	font: 600 .78rem/1 var(--f-text);
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--ink-soft);
	display: flex; align-items: center; gap: .6rem;
	margin-bottom: 1.1rem;
}
.kicker .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--persimmon); box-shadow: 0 0 0 4px rgba(217,81,44,.18); }

.chip {
	display: inline-block;
	font: 600 .72rem/1 var(--f-text);
	letter-spacing: .12em; text-transform: uppercase;
	text-decoration: none;
	padding: .45rem .75rem .4rem;
	border-radius: 999px;
	background: var(--ink); color: var(--paper);
	transition: background .2s var(--ease), color .2s var(--ease);
}
.chip:hover { background: var(--persimmon); color: var(--paper); }
.chip--diy-projects, .chip--diy { background: var(--persimmon-ink); }
.chip--home-decor { background: var(--ink); }
.chip--everyday-living { background: #4E5B34; }

.stitch { display: block; width: 100%; height: 24px; color: var(--ink); opacity: .35; }
.scribble { display: block; width: 9rem; height: 1.2rem; color: var(--persimmon); margin-top: .5rem; }

/* ---------- Pebbles (organic image masks) ---------- */
.pebble { display: block; position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--paper-deep); transition: border-radius .6s var(--ease), transform .5s var(--ease); }
.pebble img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pebble--1 { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; }
.pebble--2 { border-radius: 42% 58% 38% 62% / 55% 40% 60% 45%; }
.pebble--3 { border-radius: 50% 50% 62% 38% / 40% 55% 45% 60%; }
.pebble--4 { border-radius: 63% 37% 48% 52% / 52% 63% 37% 48%; }
.pebble--5 { border-radius: 38% 62% 57% 43% / 60% 44% 56% 40%; }
.pebble--6 { border-radius: 53% 47% 41% 59% / 45% 52% 48% 55%; }
.pebble-fill { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(2.5rem, 7vw, 5rem)/1 var(--f-display); color: var(--paper); }
.tone-1 { background: radial-gradient(circle at 30% 30%, #E36B45, var(--persimmon-ink)); }
.tone-2 { background: radial-gradient(circle at 30% 30%, #B8C59A, #6F7E4E); }
.tone-3 { background: radial-gradient(circle at 30% 30%, #6E4B76, var(--ink)); }
.tone-4 { background: radial-gradient(circle at 30% 30%, #F2CDB9, #C98D72); }

/* ---------- Header ---------- */
.site-header { padding: 1.1rem var(--gutter) 0; }
.masthead {
	max-width: var(--wide); margin: 0 auto;
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand:hover .brand-mark { transform: rotate(-12deg); }
.brand-mark { transition: transform .5s var(--ease); flex: none; }
.brand-word { font: 400 1.85rem/1 var(--f-display); letter-spacing: -.02em; }
.brand--image img { max-height: 56px; width: auto; }
.masthead-note { margin: 0; font: italic 400 1rem/1.3 var(--f-accent); color: var(--ink-soft); text-align: center; }
.quick-nav { display: flex; align-items: center; gap: .3rem; }
.quick-link {
	font: 600 .92rem/1 var(--f-text);
	text-decoration: none; padding: .7rem .85rem; border-radius: 999px;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.quick-link:hover, .quick-link.is-current { background: var(--ink); color: var(--paper); }
.search-toggle {
	display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-left: .3rem;
	border: 0; border-radius: 50%; background: var(--persimmon); color: var(--paper); cursor: pointer;
	transition: transform .3s var(--ease), background .2s;
}
.search-toggle:hover { transform: rotate(-14deg) scale(1.05); background: var(--persimmon-ink); }
.search-toggle[aria-expanded="true"] { background: var(--ink); }
.site-header .stitch { margin-top: 1rem; }
.site-search { max-width: var(--wide); margin: 1rem auto 0; }

.search-form { display: flex; gap: .5rem; max-width: 38rem; }
.search-field {
	flex: 1; min-width: 0;
	font: 400 1.05rem/1.2 var(--f-text); color: var(--ink);
	background: transparent; border: 0; border-bottom: 2px solid var(--ink);
	padding: .8rem .2rem; border-radius: 0;
}
.search-field::placeholder { color: var(--ink-soft); opacity: .8; }
.search-field:focus { outline: none; border-bottom-color: var(--persimmon); }
.search-submit, .pill-button, .comment-form .submit {
	font: 600 .92rem/1 var(--f-text); color: var(--paper); background: var(--ink);
	border: 0; border-radius: 999px; padding: .95rem 1.4rem; cursor: pointer;
	transition: background .2s var(--ease);
}
.search-submit:hover, .pill-button:hover, .comment-form .submit:hover { background: var(--persimmon-ink); }

.header-widget { max-width: var(--wide); margin: 1rem auto 0; padding: 0 var(--gutter); }

/* ---------- Hero ---------- */
.hero {
	max-width: var(--wide); margin: 0 auto;
	padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
	display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.025em; margin-bottom: 1.4rem; text-wrap: balance; }
.hero-title a { text-decoration: none; background: linear-gradient(var(--butter), var(--butter)) 0 92% / 0 .28em no-repeat; transition: background-size .6s var(--ease); }
.hero-title a:hover { color: var(--ink); background-size: 100% .28em; }
.hero-excerpt { font: italic 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.45 var(--f-accent); color: var(--ink-soft); max-width: 34rem; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .9rem; color: var(--ink-soft); margin: 1.4rem 0 2rem; }
.pill-link {
	display: inline-flex; align-items: center; gap: .6rem;
	font: 600 1rem/1 var(--f-text); text-decoration: none;
	padding: 1.05rem 1.6rem; border-radius: 999px;
	background: var(--persimmon); color: var(--paper);
	transition: gap .3s var(--ease), background .2s;
}
.pill-link:hover { background: var(--ink); color: var(--paper); gap: 1rem; }
.hero-visual { position: relative; }
.hero-image { display: block; position: relative; z-index: 1; }
.hero-image .pebble { aspect-ratio: 4 / 5; }
.hero-image:hover .pebble { border-radius: 45% 55% 52% 48% / 55% 45% 55% 45%; }
.hero-image:hover img { transform: scale(1.04); }
.blob { position: absolute; z-index: 0; border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
.blob--sage { width: 78%; height: 70%; left: -14%; bottom: -8%; background: var(--sage); }
.seal { position: absolute; z-index: 2; width: clamp(6.5rem, 11vw, 8.5rem); height: auto; top: -1rem; right: -1rem; animation: spin 22s linear infinite; }
.seal path { animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ledger (story list, no cards) ---------- */
.section-head { max-width: var(--wide); margin: 0 auto 1rem; padding: 0 var(--gutter); }
.section-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.ledger { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem); }
.ledger-list { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wide); }
.row {
	position: relative;
	display: grid; grid-template-columns: 5.5rem minmax(9rem, 15rem) 1fr; gap: clamp(1rem, 3vw, 3rem); align-items: center;
	padding: clamp(1.6rem, 3vw, 2.6rem) 0;
}
.row .stitch { position: absolute; left: 0; right: 0; bottom: -12px; }
.row:last-child .stitch { display: none; }
.row-num { font: 400 clamp(2.4rem, 4.5vw, 4rem)/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.4px var(--persimmon); align-self: start; padding-top: .4rem; }
.row-image { display: block; }
.row-image:hover .pebble { transform: rotate(-4deg); }
.row-image:hover img { transform: scale(1.06); }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .85rem; color: var(--ink-soft); margin-bottom: .8rem; }
.row-title { font-size: clamp(1.55rem, 2.8vw, 2.35rem); margin-bottom: .6rem; text-wrap: balance; }
.row-title a { text-decoration: none; }
.row-title a:hover { color: var(--persimmon-ink); }
.row-excerpt { color: var(--ink-soft); max-width: 40rem; margin-bottom: .6rem; }
.row-time { font: italic 400 .95rem/1 var(--f-accent); color: var(--ink-soft); margin: 0; }
@media (min-width: 901px) {
	.row:nth-child(even) { grid-template-columns: 5.5rem 1fr minmax(9rem, 15rem); }
	.row:nth-child(even) .row-image { order: 3; }
	.row:nth-child(even) .row-text { text-align: right; }
	.row:nth-child(even) .row-meta { justify-content: flex-end; }
	.row:nth-child(even) .row-excerpt { margin-left: auto; }
}

.pager { margin-top: 2.5rem; }
.pager ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pager li > .page-numbers { white-space: nowrap; display: grid; place-items: center; min-width: 2.9rem; height: 2.9rem; padding: 0 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
.pager a.page-numbers:hover { background: var(--paper-deep); color: var(--ink); }
.pager .current { background: var(--ink); color: var(--paper); }

.list-head { max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 1rem; }
.list-title { font-size: clamp(2.4rem, 6vw, 4.8rem); text-wrap: balance; }
.list-desc { max-width: 40rem; color: var(--ink-soft); margin-top: 1rem; }

.empty-state { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter); text-align: center; }
.empty-state .search-form { margin: 2rem auto 0; }
.empty-state .list-title { margin-bottom: 1rem; }
.big-404 { font: 400 clamp(6rem, 22vw, 14rem)/.9 var(--f-display); margin: 0 0 1rem; color: var(--ink); }
.big-404 span { color: var(--persimmon); display: inline-block; transform: rotate(-8deg); }

/* ---------- Popular Topics band ---------- */
.popular { color: var(--ink); margin-top: clamp(2rem, 5vw, 4rem); }
.popular-edge { display: block; width: 100%; height: clamp(30px, 4vw, 60px); margin-bottom: -1px; }
.popular-inner { background: var(--ink); color: var(--paper); padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) clamp(3.5rem, 7vw, 6rem); }
.popular-head { max-width: var(--wide); margin: 0 auto clamp(2rem, 4vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; }
.popular-title { font-size: clamp(2.4rem, 5.5vw, 4.4rem); color: var(--paper); }
.popular-title::after { content: ""; display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--persimmon); margin-left: .12em; }
.popular-sub { font: italic 400 1.15rem/1.4 var(--f-accent); color: var(--blush); margin: 0; max-width: 24rem; }
.popular-list {
	list-style: none; margin: 0 auto; padding: 0; max-width: var(--wide);
	display: flex; flex-wrap: wrap; justify-content: center;
	--cols: 4; --gap: clamp(1.25rem, 3vw, 2.75rem);
	gap: calc(var(--gap) * 1.2) var(--gap);
}
.pop { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.pop-link { position: relative; display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: var(--paper); }
.pop-link:hover { color: var(--butter); }
.pop .pebble { aspect-ratio: 1 / 1; }
.pop-link:hover .pebble { border-radius: 50%; transform: rotate(6deg); }
.pop-link:hover img { transform: scale(1.08); }
.pop-num {
	position: absolute; top: -.4rem; left: -.2rem;
	width: 2.6rem; height: 2.6rem; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--persimmon); color: var(--paper);
	font: 400 1.15rem/1 var(--f-display);
	box-shadow: 0 0 0 4px var(--ink);
}
.pop:nth-child(3n+2) .pop-num { background: var(--sage); color: var(--ink); }
.pop:nth-child(3n) .pop-num { background: var(--butter); color: var(--ink); }
.pop-title { font: 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.2 var(--f-display); text-wrap: balance; }

/* ---------- Single story ---------- */
.story { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.story-head { max-width: 58rem; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.story-meta-top { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1rem; font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.story-title { font-size: clamp(2.5rem, 6.5vw, 5.4rem); line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
.story--page .story-head { text-align: left; max-width: calc(var(--measure) + 2 * var(--gutter)); }
.story--page .story-title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.story-dek { font: italic 400 clamp(1.15rem, 2vw, 1.45rem)/1.45 var(--f-accent); color: var(--ink-soft); max-width: 40rem; margin: 1.4rem auto 0; }
.story-byline { display: flex; justify-content: center; gap: .6rem; font-size: .92rem; font-weight: 600; margin: 1.6rem 0 0; }
.story-figure { max-width: 76rem; margin: clamp(2rem, 5vw, 3.5rem) auto 0; padding: 0 var(--gutter); }
.story-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 46% 54% 50% 50% / 14% 12% 18% 16%; }
.story-figure figcaption { text-align: center; font: italic 400 .95rem/1.4 var(--f-accent); color: var(--ink-soft); margin-top: .9rem; }

.entry-content { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: clamp(2rem, 5vw, 3.5rem) auto 0; padding: 0 var(--gutter); font-size: 1.14rem; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content p { margin: 0; }
.entry-content p + p { margin-top: 1.1em; }
.story:not(.story--page) .entry-content > p:first-of-type::first-letter {
	float: left; font: 400 5.2em/.78 var(--f-display); color: var(--persimmon); margin: .08em .1em 0 0;
}
.entry-content h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-top: 2em; }
.entry-content h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 1.8em; }
.entry-content h4 { font: 700 1.05rem/1.3 var(--f-text); letter-spacing: .04em; text-transform: uppercase; margin-top: 1.8em; }
.entry-content a { color: var(--persimmon-ink); text-decoration-thickness: 2px; }
.entry-content a:hover { color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content ul li::marker { color: var(--persimmon); content: "✳  "; }
.entry-content ol li::marker { color: var(--persimmon); font-family: var(--f-display); }
.entry-content blockquote {
	margin: 2em 0; padding: 0 0 0 1.4rem; border-left: 4px solid var(--persimmon);
	font: italic 400 1.45rem/1.45 var(--f-accent); color: var(--ink);
}
.entry-content blockquote cite { display: block; font: 600 .82rem/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1rem; font-style: normal; }
.entry-content img, .entry-content .wp-block-image img { border-radius: 28px 64px 28px 64px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font: italic 400 .92rem/1.4 var(--f-accent); color: var(--ink-soft); text-align: center; margin-top: .7rem; }
.entry-content .alignwide { margin-left: calc(-1 * min(8rem, 10vw)); margin-right: calc(-1 * min(8rem, 10vw)); max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.entry-content th, .entry-content td { padding: .7rem .5rem; border-bottom: 1px dashed rgba(42,22,49,.35); text-align: left; }
.entry-content pre { background: var(--ink); color: var(--paper); padding: 1.2rem; border-radius: 18px; overflow-x: auto; font-size: .9rem; }
.entry-content hr { border: 0; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M0 12c20-8 40 8 60 0s40-8 60 0' fill='none' stroke='%23D9512C' stroke-width='2' stroke-dasharray='5 5'/%3E%3C/svg%3E") center / 120px 24px repeat-x; margin: 2.5em 0; }
.entry-content::after { content: ""; display: table; clear: both; }
.page-links { margin-top: 2rem; font-weight: 600; }

.story-nav {
	max-width: calc(var(--measure) + 2 * var(--gutter)); margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: 0 var(--gutter);
	display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.story-nav-link { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; }
.story-nav-link.is-next { text-align: right; grid-column: 2; }
.story-nav-label { font: 600 .75rem/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--persimmon-ink); }
.story-nav-title { font: 400 1.3rem/1.2 var(--f-display); }
.story-nav-link:hover .story-nav-title { text-decoration: underline; text-decoration-color: var(--persimmon); text-decoration-thickness: 2px; }

/* ---------- Comments ---------- */
.talk { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter); }
.talk-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.5rem; }
.talk-list, .talk-list .children { list-style: none; padding: 0; margin: 0; }
.talk-list .children { padding-left: clamp(1rem, 4vw, 2.5rem); }
.talk-list .comment-body { padding: 1.4rem 0; border-bottom: 1px dashed rgba(42,22,49,.3); }
.talk-list .avatar { border-radius: 50%; float: left; margin-right: .9rem; }
.talk-list .comment-meta { font-size: .9rem; color: var(--ink-soft); }
.talk-list .fn { font-style: normal; font-weight: 700; color: var(--ink); }
.talk-list .says { display: none; }
.talk-list .reply a { font-weight: 600; font-size: .9rem; color: var(--persimmon-ink); }
.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%; font: inherit; color: var(--ink); background: rgba(255,255,255,.35);
	border: 0; border-bottom: 2px solid var(--ink); border-radius: 12px 12px 0 0; padding: .8rem;
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-bottom-color: var(--persimmon); background: rgba(255,255,255,.6); }
.comment-form p { margin-bottom: 1.1rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .6rem; align-items: start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-deep); overflow: hidden; padding: clamp(3rem, 6vw, 5rem) var(--gutter) 0; }
.popular + .site-footer, .popular + .talk { margin-top: 0; }
.footer-inner { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 2rem 3rem; align-items: start; }
.footer-line { font: italic 400 1.05rem/1.4 var(--f-accent); color: var(--ink-soft); margin-top: 1rem; max-width: 20rem; }
.page-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.page-list a { font-weight: 600; text-decoration: none; background: linear-gradient(var(--persimmon), var(--persimmon)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); padding: .45rem 0; display: inline-block; }
.page-list a:hover { background-size: 100% 2px; color: var(--ink); }
.page-list .children { display: none; }
.to-top { font-weight: 600; text-decoration: none; white-space: nowrap; padding: .45rem 0; }
.footer-base { max-width: var(--wide); margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px dashed rgba(42,22,49,.35); font-size: .88rem; color: var(--ink-soft); }
.footer-giant {
	margin: 1rem 0 0; text-align: center; white-space: nowrap;
	font: 400 clamp(3.5rem, 16vw, 15rem)/.78 var(--f-display); letter-spacing: -.04em;
	color: transparent; -webkit-text-stroke: 1.5px rgba(42,22,49,.28);
	transform: translateY(12%); user-select: none;
}

/* ---------- WordPress core classes ---------- */
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font: italic 400 .92rem/1.4 var(--f-accent); color: var(--ink-soft); }
.sticky { position: relative; }
.bypostauthor > .comment-body .fn::after { content: " ✳"; color: var(--persimmon); }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.popular-list { --cols: 3; }
}
@media (max-width: 900px) {
	.masthead { grid-template-columns: 1fr auto; }
	.masthead-note { display: none; }
	.hero { grid-template-columns: 1fr; }
	.hero-visual { order: -1; max-width: 30rem; width: 88%; margin: 0 auto; }
	.hero-image .pebble { aspect-ratio: 1 / 1; }
	.row { grid-template-columns: 3.6rem 8rem 1fr; }
	.footer-inner { grid-template-columns: 1fr; }
	.popular-list { --cols: 2; }
}
@media (max-width: 600px) {
	body { font-size: 1rem; }
	.site-header { padding-top: .8rem; }
	.masthead { gap: .6rem; }
	.brand-word { font-size: 1.45rem; }
	.brand-mark { width: 36px; height: 36px; }
	.quick-link { padding: .65rem .55rem; font-size: .86rem; }
	.quick-link.is-current { background: transparent; color: var(--ink); text-decoration: underline; text-decoration-color: var(--persimmon); text-decoration-thickness: 2px; }
	.search-toggle { width: 2.6rem; height: 2.6rem; }
	.masthead { grid-template-columns: 1fr; justify-items: start; }
	.quick-nav { width: 100%; justify-content: space-between; }
	.row { grid-template-columns: 6.5rem 1fr; gap: 1rem 1.1rem; align-items: start; }
	.row-num { position: absolute; top: 1.2rem; left: -.2rem; z-index: 2; font-size: 2rem; -webkit-text-stroke: 0; color: var(--paper); background: var(--persimmon); border-radius: 50%; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; font-size: 1.05rem; padding: 0; }
	.row-title { font-size: 1.35rem; }
	.row-excerpt { display: none; }
	.row-meta { margin-bottom: .5rem; }
	.popular-list { --gap: 1rem; }
	.pop-num { width: 2.2rem; height: 2.2rem; font-size: 1rem; }
	.story-nav { grid-template-columns: 1fr; }
	.story-nav-link.is-next { grid-column: 1; }
	.entry-content { font-size: 1.06rem; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em 0; max-width: 100%; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
	.seal { width: 5.5rem; right: -.4rem; top: -.6rem; }
}
@media (max-width: 380px) {
	.popular-list { --cols: 2; }
	.pop-title { font-size: 1rem; }
}
@media print {
	.site-header, .popular, .site-footer, .talk, .story-nav { display: none; }
	body::before { display: none; }
}
