/*
Theme Name: Nurfu Kitchen
Theme URI: https://nurfu.com/
Author: Nurfu
Description: A warm, editorial recipe theme made for nurfu.com. Arched "oven door" imagery, scalloped tablecloth edges, a cached random Popular Topics grid and a Header widget area for analytics and ad code.
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: nurfu
Tags: blog, food-and-drink, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Fonts (bundled, no external requests) ---------- */
@font-face { font-family: "Gloock"; src: url("assets/fonts/gloock.woff2") format("woff2"); font-weight: 400; 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: "Gloock"; src: url("assets/fonts/gloock-ext.woff2") format("woff2"); font-weight: 400; 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: "Figtree"; src: url("assets/fonts/figtree.woff2") format("woff2"); font-weight: 400 800; 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: "Figtree"; src: url("assets/fonts/figtree-ext.woff2") format("woff2"); font-weight: 400 800; 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: "Figtree"; src: url("assets/fonts/figtree-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; 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: "Figtree"; src: url("assets/fonts/figtree-italic-ext.woff2") format("woff2"); font-weight: 400 800; font-style: italic; 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; }

/* ---------- Tokens ---------- */
:root {
	--cream: #F7F0E3;
	--paper: #FFFBF4;
	--oat: #EFE3CF;
	--ink: #2A1730;
	--ink-soft: #5A4560;
	--paprika: #C2401F;
	--paprika-deep: #9E3115;
	--saffron: #E9A23B;
	--sage: #56703F;
	--line: #E3D4BC;
	--radius: 18px;
	--arch: 999px 999px 18px 18px;
	--wrap: 1220px;
	--gap: clamp(16px, 2.4vw, 28px);
	--f-display: "Gloock", Georgia, "Times New Roman", serif;
	--f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--paprika-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paprika); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1.1em; }
.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; }
.screen-reader-text:focus { background: var(--paper); clip: auto !important; clip-path: none; display: block; height: auto; left: 8px; top: 8px; padding: 12px 18px; width: auto; z-index: 100000; color: var(--ink); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Header ---------- */
.site-header { position: relative; background: var(--paper); z-index: 20; }
.site-header::after {
	/* scalloped tablecloth edge */
	content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px;
	background: radial-gradient(circle at 12px 0, var(--paper) 11px, transparent 12px) 0 0 / 24px 14px repeat-x;
}
.topline { background: var(--ink); color: var(--cream); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.topline .wrap { display: flex; justify-content: center; gap: 10px; padding: 7px 0; }
.topline span { color: var(--saffron); }
@media (max-width: 600px) { .topline { font-size: .7rem; letter-spacing: .08em; } .topline span { display: none; } }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a { display: block; padding: 10px 16px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav a[aria-current="page"] { background: var(--oat); color: var(--paprika-deep); }
.main-nav .sub-menu { display: none; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.icon-btn:hover { background: var(--oat); border-color: var(--ink-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }
.header-search { display: none; padding: 0 0 22px; }
.header-search.is-open { display: block; }
.after-header-widgets { position: relative; z-index: 1; }
.after-header-widgets:empty { display: none; }

@media (max-width: 900px) {
	.menu-toggle { display: inline-grid; }
	.brand img { height: 46px; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px 26px; box-shadow: 0 18px 30px -20px rgba(42,23,48,.35); }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { padding: 14px 16px; border-radius: 12px; }
}

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px; }
.search-form label { flex: 1; display: flex; }
.search-field { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font: inherit; color: var(--ink); }
.search-field:focus { outline: none; }
.search-form:focus-within { border-color: var(--paprika); }
.search-submit { border: 0; border-radius: 999px; background: var(--paprika); color: #fff; font: 700 .95rem var(--f-body); padding: 10px 22px; cursor: pointer; }
.search-submit:hover { background: var(--paprika-deep); }

/* ---------- Buttons & pills ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 700; text-decoration: none; transition: transform .2s var(--ease), background .2s var(--ease); }
.btn:hover { background: var(--paprika); color: #fff; transform: translateY(-2px); }
.cat-pill { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--saffron); color: var(--ink); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.cat-pill:hover { background: var(--ink); color: var(--cream); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--paprika-deep); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(44px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-media { position: relative; }
.hero-media > a { display: block; }
.hero-media img, .hero-media .ph { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--arch); }
.hero-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--paprika); border-radius: var(--arch); z-index: -1; }
.hero-stamp { position: absolute; left: -22px; bottom: 34px; width: 112px; height: 112px; border-radius: 50%; background: var(--saffron); display: grid; place-items: center; text-align: center; font: 400 1.05rem/1.05 var(--f-display); color: var(--ink); transform: rotate(-12deg); box-shadow: 0 10px 24px -12px rgba(42,23,48,.5); }
.hero-copy h1, .hero-copy h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); margin: 18px 0 18px; }
.hero-copy h2 a { color: inherit; text-decoration: none; background: linear-gradient(var(--saffron), var(--saffron)) 0 92% / 0 .22em no-repeat; transition: background-size .35s var(--ease); }
.hero-copy h2 a:hover { background-size: 100% .22em; }
.hero-copy p { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 26px; color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.hero-cta > a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 700; text-decoration: none; transition: background .2s var(--ease), transform .2s var(--ease); }
.hero-cta > a:hover { background: var(--paprika); color: #fff; transform: translateY(-2px); }
@media (max-width: 820px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-media { width: calc(100% - 26px); max-width: 460px; margin: 0 0 0 8px; }
	.hero-stamp { width: 90px; height: 90px; font-size: .9rem; left: -6px; }
}

/* ---------- Section heads ---------- */
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 3vw, 36px); border-bottom: 2px dashed var(--line); padding-bottom: 16px; }
.section-head h2, .section-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 8px 0 0; }
.section-head .count { font: 400 1.1rem var(--f-display); color: var(--ink-soft); }

/* ---------- Recipe cards (list) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px) var(--gap); }
.r-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); padding: 12px 12px 22px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.r-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(42,23,48,.45); }
.r-card .r-thumb { display: block; overflow: hidden; border-radius: 999px 999px 12px 12px; aspect-ratio: 4 / 4.3; background: var(--oat); }
.r-card .r-thumb img, .r-card .r-thumb .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.r-card:hover .r-thumb img { transform: scale(1.05); }
.r-card .r-body { padding: 18px 8px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.r-card .r-num { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font: 400 1rem var(--f-display); color: var(--paprika-deep); box-shadow: 0 4px 12px -6px rgba(42,23,48,.4); }
.r-card h2, .r-card h3 { font-size: 1.42rem; margin: 0; }
.r-card h2 a, .r-card h3 a { color: var(--ink); text-decoration: none; }
.r-card h2 a:hover, .r-card h3 a:hover { color: var(--paprika-deep); }
.r-card .r-excerpt { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.r-card .r-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.r-card .r-more a { font-weight: 800; color: var(--paprika-deep); text-decoration: none; }
.r-card .r-more a:hover { text-decoration: underline; }
.card-grid > .r-card:nth-child(3n+2) { margin-top: 36px; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-grid > .r-card:nth-child(3n+2) { margin-top: 0; } .card-grid > .r-card:nth-child(2n) { margin-top: 36px; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } .card-grid > .r-card:nth-child(n) { margin-top: 0; } }

/* ---------- Pagination ---------- */
.pagination { margin-top: clamp(36px, 5vw, 56px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.page-numbers.current { background: var(--ink); color: var(--cream); border-color: var(--ink); }
a.page-numbers:hover { border-color: var(--paprika); color: var(--paprika-deep); }

/* ---------- Popular Topics ---------- */
.popular { background: var(--ink); color: var(--cream); position: relative; padding: clamp(48px, 6vw, 80px) 0; margin-top: 30px; }
.popular::before, .popular::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; }
.popular::before { top: -13px; background: radial-gradient(circle at 12px 14px, var(--ink) 11px, transparent 12px) 0 0 / 24px 14px repeat-x; }
.popular::after { bottom: -13px; background: radial-gradient(circle at 12px 0, var(--ink) 11px, transparent 12px) 0 0 / 24px 14px repeat-x; }
.popular .pt-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.popular .pt-head h2 { color: var(--cream); font-size: clamp(1.9rem, 3.8vw, 3rem); margin: 6px 0 0; }
.popular .eyebrow { color: var(--saffron); }
.pt-grid { display: flex; flex-wrap: wrap; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.pt-card { flex: 1 1 calc(25% - var(--gap)); min-width: 200px; display: flex; }
.pt-card > a { flex: 1; display: flex; flex-direction: column; text-decoration: none; color: var(--cream); background: rgba(247,240,227,.06); border: 1px solid rgba(247,240,227,.14); border-radius: var(--radius); padding: 10px 10px 18px; transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease); }
.pt-card > a:hover { background: rgba(247,240,227,.12); border-color: var(--saffron); transform: translateY(-3px); }
.pt-thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: rgba(247,240,227,.08); }
.pt-thumb img, .pt-thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.pt-idx { position: absolute; left: 10px; top: 10px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--saffron); color: var(--ink); display: grid; place-items: center; font: 400 .95rem var(--f-display); }
.pt-title { display: block; padding: 14px 6px 0; font: 400 1.14rem/1.25 var(--f-display); }
.pt-card > a:hover .pt-title { color: var(--saffron); }
@media (max-width: 980px) { .pt-card { flex-basis: calc(50% - var(--gap)); } }
@media (max-width: 480px) { .pt-card { min-width: 140px; } .pt-title { font-size: 1rem; } }

/* Popular Topics in the side column (single posts) */
.side-col .popular { background: var(--ink); border-radius: 26px; padding: 26px 18px 22px; margin: 0; }
.side-col .popular::before, .side-col .popular::after { display: none; }
.side-col .popular .pt-head { margin-bottom: 18px; }
.side-col .popular .pt-head h2 { font-size: 1.7rem; }
.side-col .pt-grid { gap: 12px; }
.side-col .pt-card { flex-basis: calc(50% - 12px); min-width: 120px; }
.side-col .pt-card > a { padding: 7px 7px 12px; border-radius: 14px; }
.side-col .pt-thumb { aspect-ratio: 1 / 1; border-radius: 999px 999px 10px 10px; }
.side-col .pt-idx { min-width: 28px; height: 28px; font-size: .82rem; left: 6px; top: auto; bottom: 6px; }
.side-col .pt-title { font-size: .98rem; padding: 10px 2px 0; }

/* ---------- Single ---------- */
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; padding: clamp(30px, 4vw, 52px) 0 clamp(40px, 5vw, 70px); }
.side-col { position: sticky; top: 24px; }
.admin-bar .side-col { top: 56px; }
@media (max-width: 1060px) { .single-layout { grid-template-columns: 1fr; } .side-col { position: static; } .side-col .pt-card { flex-basis: calc(25% - 12px); } }
@media (max-width: 700px) { .side-col .pt-card { flex-basis: calc(50% - 12px); } }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 20px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--paprika-deep); }
.crumbs .sep { opacity: .5; }
.entry-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); margin: 14px 0 18px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-soft); font-size: .93rem; font-weight: 600; padding: 14px 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); margin-bottom: 28px; }
.entry-meta .m { display: inline-flex; align-items: center; gap: 8px; }
.entry-meta svg { width: 18px; height: 18px; color: var(--paprika); }
.jump-link { display: none; margin-left: auto; padding: 8px 16px; border-radius: 999px; background: var(--paprika); color: #fff; font-weight: 800; font-size: .88rem; text-decoration: none; }
.jump-link.is-visible { display: inline-flex; }
.jump-link:hover { background: var(--paprika-deep); color: #fff; }
.entry-figure { margin: 0 0 34px; }
.entry-figure img { width: 100%; max-height: 720px; object-fit: cover; border-radius: 280px 280px 22px 22px; }
.entry-figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

.entry-content { font-size: 1.1rem; line-height: 1.78; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 1.6em 0 .55em; }
.entry-content h3 { font-size: 1.5rem; margin: 1.4em 0 .5em; }
.entry-content h2::before { content: ""; display: block; width: 42px; height: 6px; border-radius: 6px; background: var(--saffron); margin-bottom: 14px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--paprika); }
.entry-content ol li::marker { color: var(--paprika); font-family: var(--f-display); }
.entry-content img { border-radius: 16px; }
.entry-content blockquote { margin: 1.6em 0; padding: 22px 26px; background: var(--paper); border-left: 6px solid var(--saffron); border-radius: 0 16px 16px 0; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.45; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; background: var(--paper); border-radius: 12px; overflow: hidden; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content figure { margin: 1.6em 0; }
.entry-content .wp-block-image figcaption { font-size: .88rem; color: var(--ink-soft); text-align: center; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .88rem; color: var(--ink-soft); }
.sticky, .bypostauthor { }

/* Recipe card plugins: soften to match */
.wprm-recipe-container, .tasty-recipes, .mv-create-card { border-radius: 22px !important; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.tag-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-soft); font-size: .86rem; font-weight: 700; text-decoration: none; }
.tag-chip:hover { border-color: var(--paprika); color: var(--paprika-deep); }
.page-links { margin: 26px 0; font-weight: 700; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 44px 0 0; }
.post-nav > div > a { display: block; height: 100%; padding: 20px 22px; border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink); border: 1.5px solid transparent; transition: border-color .2s var(--ease); }
.post-nav > div > a:hover { border-color: var(--paprika); }
.post-nav small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--paprika-deep); margin-bottom: 6px; }
.post-nav strong { font: 400 1.2rem/1.3 var(--f-display); }
.post-nav .next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* ---------- Page ---------- */
.page-wrap { max-width: 820px; margin: 0 auto; padding: clamp(36px, 5vw, 70px) 0; }
.page-wrap .entry-head h1 { text-align: center; }
.page-wrap .entry-head { text-align: center; margin-bottom: 34px; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 54px; padding: clamp(22px, 3vw, 36px); background: var(--paper); border-radius: 24px; }
.comments-title, .comment-reply-title { font-size: 1.8rem; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(16px, 4vw, 40px); }
.comment-body { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; }
.comment-author img { border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 8px; }
.comment-author .fn { font-weight: 800; font-style: normal; }
.comment-metadata, .comment-metadata a { color: var(--ink-soft); text-decoration: none; font-size: .82rem; }
.comment-content { margin-top: 8px; }
.comment-reply-link { font-weight: 800; font-size: .86rem; color: var(--paprika-deep); text-decoration: none; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1.5px solid var(--line); background: var(--cream); border-radius: 14px; padding: 12px 14px; font: inherit; color: var(--ink); }
.comment-form textarea { min-height: 150px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--paprika); }
.comment-form .submit { border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font: 700 1rem var(--f-body); padding: 14px 28px; cursor: pointer; }
.comment-form .submit:hover { background: var(--paprika); }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 500; }

/* ---------- Archive / search / 404 ---------- */
.archive-hero { padding: clamp(40px, 5vw, 70px) 0 10px; text-align: center; }
.archive-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin: 14px 0 10px; }
.archive-hero .desc { color: var(--ink-soft); max-width: 60ch; margin: 0 auto; }
.archive-hero .search-form { max-width: 560px; margin: 22px auto 0; }
.empty-state { text-align: center; padding: 40px 0 10px; }
.empty-state .big { font: 400 clamp(5rem, 14vw, 9rem)/1 var(--f-display); color: var(--paprika); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--paprika-deep); color: var(--cream); margin-top: 0; padding: clamp(50px, 6vw, 76px) 0 26px; }
.popular + .site-footer { margin-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: radial-gradient(circle at 12px 14px, var(--paprika-deep) 11px, transparent 12px) 0 0 / 24px 14px repeat-x; }
.popular + .site-footer::before { display: none; }
.popular + .site-footer { padding-top: clamp(66px, 7vw, 90px); }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.footer-brand img { height: 62px; width: auto; }
.footer-brand p { margin: 18px 0 0; max-width: 42ch; color: rgba(247,240,227,.85); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 4px; }
.footer-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--cream); text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { background: rgba(247,240,227,.14); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px dashed rgba(247,240,227,.3); font-size: .86rem; color: rgba(247,240,227,.8); }
.to-top { color: var(--cream); text-decoration: none; font-weight: 700; }
.to-top:hover { color: var(--saffron); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } .footer-nav ul { justify-content: flex-start; } }

/* ---------- Placeholder thumb ---------- */
.ph { display: block; background: var(--oat) url("assets/img/placeholder.svg") center / 46% no-repeat; }
.popular .ph { background-color: rgba(247,240,227,.1); }
