:root {
    --bg: #f8f6f1;
    --surface: #efede7;
    --surface-deep: #e6e2d9;
    --ink: #202321;
    --muted: #747873;
    --line: #d9d7d0;
    --accent: #d86b45;
    --accent-dark: #a94b2f;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --container: 1220px;
    --narrow: 760px;
    --radius: 4px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body:has(.single-post) { background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.narrow-container { width: min(calc(100% - 64px), var(--narrow)); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--ink); color: var(--bg); font-family: var(--serif); font-size: 19px; font-weight: 700;
}
.brand-name { font-size: 18px; }
.brand-logo { max-height: 38px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 34px; }
.site-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; }
.site-nav a, .footer-links a { color: var(--muted); font-size: 13px; transition: color .2s ease; }
.site-nav a:hover, .footer-links a:hover, .text-link:hover { color: var(--accent-dark); }
.header-tools { display: flex; align-items: center; gap: 19px; }
.icon-link { display: inline-flex; color: var(--ink); }
.icon-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px 0 8px 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 1px; margin: 5px 0; background: var(--ink); transition: transform .2s ease; }

/* Type and common controls */
.eyebrow { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 750; line-height: 1.4; }
.post-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.post-meta time::before, .post-meta span::before { content: "·"; margin-right: 12px; color: var(--line); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 0 21px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button:hover { background: var(--accent-readable); border-color: var(--accent-readable); color: var(--accent-on-readable); transform: translateY(-2px); }
.button-small { min-height: 37px; padding: 0 17px; font-size: 11px; }
.button-arrow span { font-size: 18px; line-height: 0; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 700; }
.text-link span { color: var(--accent-readable); font-size: 18px; line-height: 0; }

/* Home */
.home-hero { padding: 104px 0 116px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr); align-items: center; gap: 9%; }
.hero-copy { padding-left: clamp(0px, 5vw, 76px); }
.hero-copy h1 { max-width: 650px; margin: 19px 0 27px; font-family: var(--serif); font-size: clamp(58px, 7.3vw, 104px); line-height: .92; letter-spacing: -.075em; font-weight: 400; text-wrap: balance; }
.hero-copy h1 em { color: var(--accent-readable); font-style: italic; }
.hero-description { max-width: 430px; margin: 0 0 36px; color: var(--muted); font-size: 16px; }
.hero-image-wrap { position: relative; max-width: 540px; justify-self: end; }
.hero-image { width: 100%; aspect-ratio: .94; object-fit: cover; filter: saturate(.85); }
.hero-stamp { position: absolute; right: -24px; bottom: 36px; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--accent-readable); color: var(--accent-on-readable); font-family: var(--serif); font-size: 14px; font-style: italic; line-height: 1.05; text-align: center; transform: rotate(11deg); }
.hero-art { position: relative; min-height: 460px; overflow: hidden; background: #d8ddd1; }
.hero-art-circle { position: absolute; border: 1px solid rgba(32,35,33,.45); border-radius: 50%; }
.hero-art-circle-one { width: 380px; height: 380px; top: 20px; left: 4%; }
.hero-art-circle-two { width: 240px; height: 240px; top: 90px; left: 23%; background: var(--accent-readable); border: 0; opacity: .9; }
.hero-art-line { position: absolute; width: 2px; height: 570px; top: -42px; left: 52%; background: var(--ink); transform: rotate(35deg); transform-origin: center; }
.hero-art-note { position: absolute; bottom: 36px; left: 36px; font-family: var(--serif); font-size: 27px; font-style: italic; line-height: 1.03; }
.featured-section { padding: 88px 0 100px; background: var(--surface); }
.section-heading { margin-bottom: 37px; }
.section-heading h2 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); font-weight: 400; letter-spacing: -.055em; line-height: 1; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.featured-card { border-right: 1px solid var(--line); }
.featured-card:first-child { border-left: 1px solid var(--line); }
.featured-card-link { position: relative; display: flex; align-items: flex-start; min-height: 240px; gap: 24px; padding: 29px 26px; transition: background .2s ease; }
.featured-card-link:hover { background: var(--bg); }
.featured-number { color: var(--accent-readable); font-family: var(--serif); font-size: 20px; font-style: italic; }
.featured-card h3 { margin: 11px 22px 10px 0; font-family: var(--serif); font-size: 27px; line-height: 1.08; font-weight: 400; letter-spacing: -.04em; }
.featured-card p { max-width: 260px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.featured-arrow { position: absolute; top: 28px; right: 26px; color: var(--accent-readable); font-size: 22px; }
.feed-section { padding: 104px 0 118px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-note { color: var(--muted); font-size: 12px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px 25px; }
.post-card-image { display: block; overflow: hidden; aspect-ratio: 1.33; margin-bottom: 20px; background: var(--surface-deep); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform .45s ease, filter .45s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); filter: saturate(1); }
.post-card-body { padding-right: 14px; }
.post-card .post-meta { margin-bottom: 10px; }
.post-card-title { margin: 0 0 10px; font-family: var(--serif); font-size: 29px; line-height: 1.05; letter-spacing: -.045em; font-weight: 400; }
.post-card-title a { transition: color .2s ease; }
.post-card-title a:hover { color: var(--accent-dark); }
.post-excerpt { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.empty-state { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); }

/* Archives */
.archive-hero { padding: 104px 0 86px; border-bottom: 1px solid var(--line); }
.archive-hero h1, .page-header h1, .author-hero h1 { margin: 14px 0 20px; font-family: var(--serif); font-size: clamp(55px, 7vw, 94px); line-height: .92; letter-spacing: -.075em; font-weight: 400; }
.archive-intro { max-width: 580px; margin: 0; color: var(--muted); font-size: 17px; }
.archive-count { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.archive-feed { padding-top: 78px; }
.author-hero { padding: 88px 0 85px; background: var(--surface); }
.author-hero-inner { display: flex; align-items: center; gap: 35px; }
.author-avatar-large, .author-avatar-fallback { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.author-avatar-large { filter: saturate(.8); }
.author-avatar-fallback { display: grid; place-items: center; background: var(--accent-readable); color: var(--accent-on-readable); font-family: var(--serif); font-size: 56px; font-style: italic; }
.author-hero h1 { margin-bottom: 13px; font-size: clamp(48px, 6vw, 78px); }
.author-bio { max-width: 550px; margin: 0; color: var(--muted); }

/* Single post and page */
.post-header { padding-top: 104px; padding-bottom: 63px; text-align: center; }
.post-meta-large { justify-content: center; }
.post-header h1 { max-width: 900px; margin: 24px auto 25px; font-family: var(--serif); font-size: clamp(52px, 7.4vw, 104px); line-height: .93; letter-spacing: -.075em; font-weight: 400; text-wrap: balance; }
.post-lede { max-width: 650px; margin: 0 auto; color: var(--muted); font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.post-byline { display: inline-flex; align-items: center; gap: 13px; margin-top: 36px; text-align: left; }
.author-stack { display: flex; }
.author-stack img, .author-initial { width: 35px; height: 35px; margin-right: -9px; border: 2px solid var(--bg); border-radius: 50%; object-fit: cover; }
.author-initial { display: grid; place-items: center; background: var(--accent-readable); color: var(--accent-on-readable); font-family: var(--serif); font-style: italic; font-size: 16px; }
.byline-label { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.byline-names { font-size: 12px; font-weight: 700; }
.byline-names a:hover { color: var(--accent-dark); }
.post-feature-image { width: min(calc(100% - 64px), 1180px); margin-bottom: 80px; }
.post-feature-image img, .page-feature-image img { width: 100%; max-height: 700px; object-fit: cover; }
.post-feature-image figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; text-align: center; }
.post-content-wrap { display: grid; grid-template-columns: minmax(0, var(--narrow)) 170px; align-items: start; justify-content: center; gap: 80px; }
.gh-content { min-width: 0; font-family: var(--serif); font-size: 20px; line-height: 1.68; }
.gh-content > * { max-width: 100%; }
.gh-content p, .gh-content ul, .gh-content ol { margin: 0 0 1.5em; }
.gh-content h2, .gh-content h3, .gh-content h4 { margin: 1.8em 0 .55em; font-family: var(--serif); line-height: 1.1; letter-spacing: -.045em; }
.gh-content h2 { font-size: 38px; }
.gh-content h3 { font-size: 30px; }
.gh-content h4 { font-size: 24px; }
.gh-content a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }
.gh-content strong { font-weight: 700; }
.gh-content blockquote { margin: 2em 0; padding: 12px 0 12px 28px; border-left: 2px solid var(--accent); font-size: 26px; font-style: italic; line-height: 1.3; }
.gh-content pre { overflow-x: auto; padding: 22px; border-radius: var(--radius); background: #222622; color: #f3f2ed; font: 14px/1.6 var(--mono); }
.gh-content code { padding: 2px 5px; border-radius: 3px; background: var(--surface-deep); font: .78em var(--mono); }
.gh-content pre code { padding: 0; background: transparent; font-size: inherit; }
.gh-content img { width: 100%; height: auto; margin: 2em 0; }
.gh-content figure { margin: 2em 0; }
.gh-content figcaption { color: var(--muted); font: 12px/1.4 var(--sans); text-align: center; }
.gh-content hr { width: 70px; margin: 3em auto; border: 0; border-top: 1px solid var(--accent); }
.gh-content table { width: 100%; border-collapse: collapse; font: 14px/1.5 var(--sans); }
.gh-content th, .gh-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.gh-content th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.gh-content .kg-width-wide { width: min(75vw, 1100px); margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-card { margin-top: 2em; margin-bottom: 2em; }
.gh-content .kg-image-card img { margin: 0 auto; }
.gh-content .kg-gallery-container { width: 100%; }
.gh-content .kg-gallery-row { display: flex; gap: 8px; }
.gh-content .kg-gallery-image { flex: 1; }
.gh-content .kg-gallery-image img { height: 100%; margin: 0; object-fit: cover; }
.gh-content .kg-callout-card { display: flex; gap: 12px; padding: 18px; border-radius: 4px; background: var(--surface); font: 15px/1.55 var(--sans); }
.post-share { position: sticky; top: 25px; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding-top: 8px; color: var(--muted); font-size: 11px; }
.post-share > span { margin-bottom: 3px; color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.post-share a, .share-button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-align: left; }
.post-share a:hover, .share-button:hover { color: var(--accent-dark); }
.post-share .share-button.is-copied { color: var(--accent-dark); }
.post-footer { padding-top: 76px; padding-bottom: 105px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.post-tags a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.post-tags a:hover { border-color: var(--accent-readable); color: var(--accent-dark); }
.post-footer-rule { margin: 42px 0 23px; border-top: 1px solid var(--line); }
.back-link { color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--accent-dark); }
.single-page { padding-bottom: 100px; }
.page-header { padding-top: 104px; padding-bottom: 62px; text-align: center; }
.page-header h1 { margin-bottom: 0; }
.page-feature-image { width: min(calc(100% - 64px), 1100px); margin-bottom: 72px; }
.page-content { margin-bottom: 40px; }

.gh-content .kg-bookmark-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--sans); }
.gh-content .kg-bookmark-container { display: flex; min-height: 150px; color: var(--ink); }
.gh-content .kg-bookmark-content { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 20px; }
.gh-content .kg-bookmark-title { margin-bottom: 6px; font-size: 17px; font-weight: 700; line-height: 1.2; }
.gh-content .kg-bookmark-description { overflow: hidden; margin-bottom: 10px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.gh-content .kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.gh-content .kg-bookmark-icon { width: 16px; height: 16px; border-radius: 2px; }
.gh-content .kg-bookmark-author { color: var(--muted); }
.gh-content .kg-bookmark-publisher { color: var(--muted); }
.gh-content .kg-bookmark-thumbnail { flex: 0 0 31%; min-height: 150px; }
.gh-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; margin: 0; object-fit: cover; }

body[data-theme="Light"] { color-scheme: light; --bg: var(--bg-light, #f8f6f1); --surface: var(--surface-light, #efede7); --surface-deep: color-mix(in srgb, var(--surface) 74%, var(--ink) 6%); --ink: var(--ink-light, #202321); --muted: var(--muted-light, #6c716b); --line: var(--line-light, #d9d7d0); --accent-dark: #a94b2f; }
body[data-theme="Dark"] { color-scheme: dark; --bg: var(--bg-dark, #171a18); --surface: var(--surface-dark, #252a25); --surface-deep: #303630; --ink: var(--ink-dark, #f3f0e9); --muted: var(--muted-dark, #b7bbb4); --line: var(--line-dark, #3b403b); --accent-dark: #ef8a64; }

.hero-visual { display: none; }
.home-hero[data-hero-style="Editorial"] .hero-visual-editorial { display: block; }
.home-hero[data-hero-style="Immersive"] .hero-visual-immersive { display: block; }

.hero-minimal-mark { position: relative; display: grid; place-items: center; min-height: 460px; overflow: hidden; background: var(--surface); }
.hero-minimal-mark::before, .hero-minimal-mark::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.hero-minimal-mark::before { width: 360px; height: 360px; }
.hero-minimal-mark::after { width: 220px; height: 220px; border-color: var(--accent-readable); }
.hero-minimal-letter { position: relative; z-index: 1; color: var(--accent-readable); font: italic 180px/.8 var(--serif); letter-spacing: -.15em; transform: translateX(-12px); }
.hero-minimal-caption { position: absolute; z-index: 1; right: 31px; bottom: 30px; color: var(--muted); font: italic 17px/1.05 var(--serif); text-align: right; }

/* Newsletter and footer */
.pagination { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 78px; padding-top: 24px; border-top: 1px solid var(--line); }
.pagination-side { display: flex; min-width: 0; }
.pagination-side-right { justify-content: flex-end; }
.pagination-button { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 4px 0; color: var(--ink); transition: color .2s ease, opacity .2s ease; }
.pagination-button:not(.is-disabled):hover { color: var(--accent-dark); }
.pagination-button small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; line-height: 1; text-transform: uppercase; }
.pagination-button strong { display: block; font-size: 12px; font-weight: 700; line-height: 1.2; }
.pagination-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-readable); font-size: 18px; line-height: 1; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.pagination-button:not(.is-disabled):hover .pagination-icon { border-color: var(--accent-readable); background: var(--accent-readable); color: var(--accent-on-readable); }
.pagination-button-prev:not(.is-disabled):hover .pagination-icon { transform: translateX(-3px); }
.pagination-button-next:not(.is-disabled):hover .pagination-icon { transform: translateX(3px); }
.pagination-button.is-disabled { opacity: .28; cursor: default; }
.pagination-center { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 72px; color: var(--muted); }
.pagination-current { color: var(--accent-readable); font: italic 34px/.85 var(--serif); letter-spacing: -.05em; }
.pagination-total { font: 17px/.9 var(--serif); }
.pagination-divider { width: 18px; height: 1px; background: var(--line); }
.pagination-label { position: absolute; top: calc(100% + 8px); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; line-height: 1; text-transform: uppercase; }

.newsletter-section { padding: 106px 0; border-top: 1px solid var(--line); background: var(--surface); }
.newsletter-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); align-items: center; gap: clamp(45px, 8vw, 110px); overflow: hidden; padding: 72px clamp(30px, 6vw, 82px); border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 3px; background: var(--ink); color: var(--bg); }
.newsletter-card::before, .newsletter-card::after { content: ""; position: absolute; border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); border-radius: 50%; pointer-events: none; }
.newsletter-card::before { width: 420px; height: 420px; right: -160px; top: -220px; }
.newsletter-card::after { width: 290px; height: 290px; right: -70px; bottom: -190px; }
.newsletter-copy, .newsletter-form { position: relative; z-index: 1; }
.newsletter-kicker { display: flex; align-items: center; gap: 9px; color: var(--accent-readable); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.newsletter-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-readable); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 17%, transparent); }
.newsletter-copy h2 { max-width: 560px; margin: 18px 0 17px; color: var(--bg); font-family: var(--serif); font-size: clamp(38px, 4.8vw, 68px); line-height: .94; letter-spacing: -.07em; font-weight: 400; }
.newsletter-copy > p { max-width: 460px; margin: 0; color: color-mix(in srgb, var(--bg) 72%, transparent); font-size: 14px; line-height: 1.6; }
.newsletter-benefit-list { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 25px; color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 11px; }
.newsletter-benefit-list span { display: inline-flex; align-items: center; gap: 7px; }
.newsletter-benefit-list i { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); border-radius: 50%; color: var(--accent-readable); font-style: normal; font-size: 10px; }
.newsletter-form { padding: 25px; border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); border-radius: 3px; background: color-mix(in srgb, var(--bg) 7%, transparent); }
.newsletter-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; color: var(--bg); font-size: 12px; font-weight: 700; }
.newsletter-free-label { color: var(--accent-readable); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.newsletter-field { display: flex; gap: 6px; padding: 5px; border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); border-radius: 3px; background: color-mix(in srgb, var(--bg) 9%, transparent); }
.newsletter-field input { min-width: 0; flex: 1; height: 46px; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--bg); font-size: 13px; }
.newsletter-field input::placeholder { color: color-mix(in srgb, var(--bg) 53%, transparent); }
.newsletter-field input:focus { box-shadow: inset 0 -1px var(--accent); }
.newsletter-submit { min-height: 46px; padding: 0 16px; gap: 12px; border-color: var(--accent-readable); border-radius: 2px; background: var(--accent-readable); color: var(--accent-on-readable); }
.newsletter-submit:hover { border-color: var(--bg); background: var(--bg); color: var(--ink); }
.newsletter-submit > span:last-child { font-size: 17px; line-height: 0; }
.form-note { margin: 12px 0 0; color: color-mix(in srgb, var(--bg) 53%, transparent); font-size: 10px; }
.form-message { display: none; margin: 13px 0 0; font-size: 12px; line-height: 1.45; }
.form-message-success { color: var(--accent-readable); }
.form-message-error { color: #f28b78; }
.newsletter-form.success .form-message-success, .newsletter-form.error .form-message-error { display: block; }
.newsletter-form.success .newsletter-form-heading, .newsletter-form.success .newsletter-field, .newsletter-form.success .form-note { display: none; }
.newsletter-form.loading .newsletter-submit { opacity: .55; pointer-events: none; }
.site-footer { padding: 76px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 50px; padding-bottom: 70px; }
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--footer-line); color: var(--footer-ink); }
.footer-brand { color: var(--footer-ink); }
.footer-brand .brand-mark { background: var(--accent-readable); color: var(--accent-on-readable); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.footer-brand .brand-name { color: var(--footer-ink); }
.footer-description { max-width: 310px; margin: 21px 0 0; color: var(--footer-muted); font-size: 13px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links a { color: var(--footer-muted); }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--footer-link); text-decoration-color: var(--accent-readable); text-underline-offset: 4px; }
.footer-label { margin-bottom: 10px; color: var(--footer-kicker); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--footer-line); color: var(--footer-muted); font-size: 11px; }
.footer-bottom a { color: var(--footer-link); }

/* Errors */
.error-page { padding: 150px 0; text-align: center; }
.error-code { margin: 0; color: var(--accent-readable); font: italic 24px var(--serif); }
.error-page h1 { margin: 15px 0; font-family: var(--serif); font-size: clamp(44px, 6vw, 78px); line-height: .95; letter-spacing: -.07em; font-weight: 400; }
.error-page p:not(.error-code) { color: var(--muted); }
.error-actions { display: flex; justify-content: center; align-items: center; gap: 25px; margin-top: 30px; }

body[data-theme="System"] { color-scheme: light; --bg: var(--bg-light, #f8f6f1); --surface: var(--surface-light, #efede7); --surface-deep: color-mix(in srgb, var(--surface) 74%, var(--ink) 6%); --ink: var(--ink-light, #202321); --muted: var(--muted-light, #6c716b); --line: var(--line-light, #d9d7d0); --accent-dark: #a94b2f; }
@media (prefers-color-scheme: dark) {
    body[data-theme="System"] { color-scheme: dark; --bg: var(--bg-dark, #171a18); --surface: var(--surface-dark, #252a25); --surface-deep: #303630; --ink: var(--ink-dark, #f3f0e9); --muted: var(--muted-dark, #b7bbb4); --line: var(--line-dark, #3b403b); --accent-dark: #ef8a64; }
}

@media (max-width: 900px) {
    .container, .narrow-container { width: min(calc(100% - 40px), var(--container)); }
    .hero-grid { grid-template-columns: 1fr; gap: 55px; }
    .hero-copy { padding-left: 0; }
    .hero-image-wrap, .hero-art { width: min(100%, 560px); justify-self: start; }
    .home-hero { padding: 75px 0 80px; }
    .featured-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card:nth-child(3) { border-top: 1px solid var(--line); }
    .post-content-wrap { grid-template-columns: minmax(0, var(--narrow)); }
    .post-share { position: static; flex-direction: row; align-items: center; gap: 15px; padding-top: 28px; }
    .post-share > span { margin-right: 4px; }
    .newsletter-card { gap: 48px; padding: 58px 44px; }
}

@media (max-width: 680px) {
    .container, .narrow-container { width: calc(100% - 40px); }
    .header-inner { min-height: 72px; }
    .menu-toggle { display: block; }
    .header-actions { position: absolute; z-index: 10; top: 72px; left: 0; right: 0; display: none; padding: 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
    .header-actions.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
    .header-tools { justify-content: space-between; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
    .hero-copy h1 { font-size: clamp(54px, 16vw, 78px); }
    .hero-image-wrap { width: calc(100% - 16px); }
    .hero-stamp { right: -13px; bottom: 22px; width: 76px; height: 76px; font-size: 12px; }
    .hero-art, .hero-minimal-mark { min-height: 330px; }
    .hero-minimal-letter { font-size: 130px; }
    .hero-minimal-mark::before { width: 260px; height: 260px; }
    .hero-minimal-mark::after { width: 160px; height: 160px; }
    .hero-art-circle-one { width: 290px; height: 290px; }
    .hero-art-circle-two { width: 180px; height: 180px; }
    .featured-grid, .post-grid { grid-template-columns: 1fr; }
    .featured-card, .featured-card:first-child { border-right: 1px solid var(--line); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
    .featured-card:first-child { border-top: 0; }
    .featured-card-link { min-height: 190px; }
    .section-heading-row { display: block; }
    .section-note { display: block; margin-top: 15px; }
    .feed-section { padding: 78px 0 85px; }
    .archive-hero, .author-hero { padding: 75px 0 62px; }
    .archive-hero h1, .page-header h1, .author-hero h1 { font-size: clamp(50px, 16vw, 76px); }
    .author-hero-inner { align-items: flex-start; flex-direction: column; gap: 22px; }
    .author-avatar-large, .author-avatar-fallback { width: 85px; height: 85px; }
    .author-avatar-fallback { font-size: 40px; }
    .post-header, .page-header { padding-top: 75px; padding-bottom: 48px; }
    .post-meta-large { flex-wrap: wrap; row-gap: 3px; }
    .post-header h1 { font-size: clamp(50px, 15vw, 78px); }
    .post-lede { font-size: 18px; }
    .post-feature-image, .page-feature-image { width: 100%; margin-bottom: 48px; }
    .gh-content { font-size: 18px; }
    .gh-content h2 { font-size: 33px; }
    .gh-content h3 { font-size: 27px; }
    .gh-content .kg-width-wide, .gh-content .kg-width-full { width: 100%; margin-left: 0; transform: none; }
    .pagination { grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-top: 58px; padding-top: 18px; }
    .pagination-center { grid-column: 1 / -1; grid-row: 1; padding-bottom: 10px; }
    .pagination-side { grid-row: 2; }
    .pagination-side-right { justify-content: flex-end; }
    .pagination-button { gap: 8px; }
    .pagination-button small { display: none; }
    .pagination-button strong { font-size: 11px; }
    .pagination-icon { width: 32px; height: 32px; font-size: 16px; }
    .newsletter-section { padding: 64px 0; }
    .newsletter-card { grid-template-columns: 1fr; gap: 36px; padding: 40px 24px; }
    .newsletter-copy h2 { font-size: clamp(40px, 12vw, 58px); }
    .newsletter-form { padding: 20px; }
    .newsletter-field { flex-direction: column; gap: 8px; padding: 0; border: 0; background: transparent; }
    .newsletter-field input { width: 100%; height: 49px; border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); border-radius: 3px; background: color-mix(in srgb, var(--bg) 9%, transparent); }
    .newsletter-submit { width: 100%; }
    .form-row { flex-direction: column; }
    .form-row input, .form-row .button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 25px; padding-bottom: 55px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 7px; }
    .error-page { padding: 100px 0; }
    .error-actions { flex-direction: column; }
}


/* Luma 1.2 visual variants and theme system */
:root { color-scheme: light; }

body[data-theme="Light"] .theme-toggle,
body[data-theme="Dark"] .theme-toggle,
body[data-theme="System"] .theme-toggle { border-color: var(--line); }
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .04em;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.theme-toggle:hover { border-color: var(--accent-readable); color: var(--accent-dark); background: var(--surface); }
.theme-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme-toggle span[data-theme-label] { min-width: 38px; text-align: left; }

/* Header variants: Editorial, Centered, Compact */
body[data-header-style="Centered"] .header-inner { min-height: 126px; flex-wrap: wrap; padding: 22px 0 17px; }
body[data-header-style="Centered"] .brand { margin-inline: auto; }
body[data-header-style="Centered"] .header-actions { flex-basis: 100%; justify-content: center; gap: 30px; }
body[data-header-style="Centered"] .header-tools { position: absolute; right: max(32px, calc((100vw - var(--container)) / 2)); }
body[data-header-style="Compact"] .site-header { background: var(--surface); border-bottom-color: transparent; }
body[data-header-style="Compact"] .header-inner { min-height: 68px; }
body[data-header-style="Compact"] .header-actions { gap: 22px; }
body[data-header-style="Compact"] .site-nav ul { gap: 18px; }
body[data-header-style="Compact"] .brand-mark { width: 27px; height: 27px; font-size: 16px; }
body[data-header-style="Compact"] .brand-name { font-size: 15px; }

/* Homepage hero: Editorial */
.home-hero { position: relative; overflow: hidden; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: var(--accent-dark); font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.hero-kicker-line { display: inline-block; width: 30px; height: 1px; background: var(--accent-readable); }
.home-hero[data-hero-style="Editorial"] .hero-copy h1 { max-width: 700px; }
.hero-image-frame { position: relative; margin: 0; padding: 0 0 42px 36px; }
.hero-image-frame::before { position: absolute; z-index: 0; top: -30px; left: 4px; width: 75%; height: 75%; border: 1px solid var(--accent); content: ""; opacity: .7; }
.hero-image-frame::after { position: absolute; right: -18px; bottom: 68px; width: 72px; height: 72px; border-radius: 50%; background: var(--accent-readable); content: ""; opacity: .92; }
.hero-image-frame .hero-image { position: relative; z-index: 1; width: 100%; aspect-ratio: .9; object-fit: cover; filter: saturate(.82) contrast(.98); }
.hero-image-frame figcaption { position: absolute; z-index: 2; right: 12px; bottom: 0; max-width: 210px; color: var(--muted); font: italic 14px/1.25 var(--serif); text-align: right; }
.hero-image-frame figcaption span { display: block; margin-bottom: 5px; color: var(--accent-readable); font: 700 10px/1 var(--sans); letter-spacing: .16em; }
.hero-placeholder { position: relative; min-height: 470px; overflow: hidden; background: var(--surface); }
.hero-placeholder::after { position: absolute; right: 12%; bottom: 12%; width: 110px; height: 110px; border-radius: 50%; background: var(--accent-readable); content: ""; opacity: .88; }
.hero-placeholder-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 50%; }
.hero-placeholder-orbit-one { width: 400px; height: 400px; top: 5%; left: 5%; }
.hero-placeholder-orbit-two { width: 245px; height: 245px; top: 22%; left: 27%; border-color: var(--accent-readable); }
.hero-placeholder-word { position: absolute; z-index: 1; left: 16%; bottom: 17%; color: var(--ink); font: italic 90px/.8 var(--serif); letter-spacing: -.1em; }
.hero-placeholder-caption { position: absolute; z-index: 1; right: 10%; top: 13%; color: var(--muted); font: italic 17px/1.05 var(--serif); text-align: right; }

/* Homepage hero: Immersive */
.home-hero[data-hero-style="Immersive"] { padding: 72px 0 82px; background: var(--ink); color: var(--bg); border-bottom: 0; }
.home-hero[data-hero-style="Immersive"] .hero-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 7%; }
.home-hero[data-hero-style="Immersive"] .hero-kicker { color: var(--accent-readable); }
.home-hero[data-hero-style="Immersive"] .hero-kicker-line { background: var(--accent-readable); }
.home-hero[data-hero-style="Immersive"] .hero-copy h1 { max-width: 620px; color: var(--bg); font-size: clamp(60px, 7vw, 104px); }
.home-hero[data-hero-style="Immersive"] .hero-description { color: color-mix(in srgb, var(--bg) 68%, transparent); }
.home-hero[data-hero-style="Immersive"] .button { border-color: var(--bg); background: var(--bg); color: var(--ink); }
.home-hero[data-hero-style="Immersive"] .button:hover { border-color: var(--accent-readable); background: var(--accent-readable); color: var(--accent-on-readable); }
.immersive-panel { position: relative; min-height: 500px; overflow: hidden; background: var(--accent-readable); }
.immersive-panel::before { position: absolute; inset: 20px; border: 1px solid color-mix(in srgb, #fff 46%, transparent); content: ""; }
.immersive-index { position: absolute; z-index: 2; top: 42px; left: 42px; color: var(--accent-on-readable); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.immersive-orbit { position: absolute; border: 1px solid color-mix(in srgb, #fff 67%, transparent); border-radius: 50%; }
.immersive-orbit-one { width: 530px; height: 530px; top: -84px; right: -100px; }
.immersive-orbit-two { width: 310px; height: 310px; top: 75px; right: 14%; border-color: color-mix(in srgb, var(--ink) 62%, transparent); }
.immersive-line { position: absolute; top: -70px; right: 44%; width: 2px; height: 650px; background: color-mix(in srgb, var(--ink) 60%, transparent); transform: rotate(34deg); }
.immersive-word { position: absolute; z-index: 1; left: 45px; bottom: 46px; color: var(--accent-on-readable); font: 400 clamp(54px, 7vw, 100px)/.83 var(--serif); letter-spacing: -.08em; }
.immersive-word em { color: var(--ink); font-style: italic; }
.immersive-note { position: absolute; z-index: 1; right: 40px; bottom: 45px; color: color-mix(in srgb, #fff 74%, transparent); font: italic 16px/1.05 var(--serif); text-align: right; }

/* Archive hero variants */
.archive-hero[data-archive-hero-style="Minimal"],
.author-hero[data-archive-hero-style="Minimal"] { padding-top: 67px; padding-bottom: 62px; background: transparent; border-bottom: 0; }
.archive-hero[data-archive-hero-style="Minimal"] h1,
.author-hero[data-archive-hero-style="Minimal"] h1 { margin-top: 9px; font-size: clamp(48px, 6vw, 80px); }
.archive-hero[data-archive-hero-style="Minimal"] .archive-intro,
.author-hero[data-archive-hero-style="Minimal"] .author-bio { max-width: 480px; padding-left: 18px; border-left: 2px solid var(--accent); font-size: 15px; }
.author-hero[data-archive-hero-style="Minimal"] .author-hero-inner { gap: 24px; }
.author-hero[data-archive-hero-style="Minimal"] .author-avatar-large,
.author-hero[data-archive-hero-style="Minimal"] .author-avatar-fallback { width: 80px; height: 80px; }

/* Newsletter variants: Card and Split */
.newsletter-section[data-newsletter-style="Split"] { background: var(--bg); }
.newsletter-section[data-newsletter-style="Split"] .newsletter-card { grid-template-columns: minmax(0, .86fr) minmax(330px, 1.14fr); padding: 58px 0; border-width: 1px 0; border-radius: 0; background: transparent; color: var(--ink); }
.newsletter-section[data-newsletter-style="Split"] .newsletter-card::before,
.newsletter-section[data-newsletter-style="Split"] .newsletter-card::after { display: none; }
.newsletter-section[data-newsletter-style="Split"] .newsletter-copy h2 { color: var(--ink); }
.newsletter-section[data-newsletter-style="Split"] .newsletter-copy > p { color: var(--muted); }
.newsletter-section[data-newsletter-style="Split"] .newsletter-benefit-list { color: var(--muted); }
.newsletter-section[data-newsletter-style="Split"] .newsletter-form { border-color: var(--line); background: var(--surface); }
.newsletter-section[data-newsletter-style="Split"] .newsletter-form-heading { color: var(--ink); }
.newsletter-section[data-newsletter-style="Split"] .newsletter-field { border-color: var(--line); background: var(--bg); }
.newsletter-section[data-newsletter-style="Split"] .newsletter-field input { color: var(--ink); }
.newsletter-section[data-newsletter-style="Split"] .newsletter-field input::placeholder { color: var(--muted); }
.newsletter-section[data-newsletter-style="Split"] .form-note { color: var(--muted); }

/* Pagination variants: Editorial and Minimal */
.pagination[data-pagination-style="Minimal"] { margin-top: 58px; padding-top: 16px; border-top: 0; }
.pagination[data-pagination-style="Minimal"] .pagination-icon { border: 0; background: var(--surface); }
.pagination[data-pagination-style="Minimal"] .pagination-button strong { font-weight: 600; }
.pagination[data-pagination-style="Minimal"] .pagination-label { display: none; }
.pagination[data-pagination-style="Minimal"] .pagination-current { font-size: 26px; font-style: normal; }

/* Footer variants: Editorial, Compact and Split */
body[data-footer-style="Compact"] .site-footer { padding: 32px 0 20px; background: var(--footer-surface); color: var(--footer-ink); }
body[data-footer-style="Compact"] .footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 28px; }
body[data-footer-style="Compact"] .footer-description,
body[data-footer-style="Compact"] .footer-label { display: none; }
body[data-footer-style="Compact"] .footer-links { flex-direction: row; align-items: center; gap: 17px; }
body[data-footer-style="Compact"] .footer-links ul { flex-direction: row; gap: 17px; }
body[data-footer-style="Compact"] .footer-links a { color: var(--muted); }
body[data-footer-style="Compact"] .footer-links a:hover, body[data-footer-style="Compact"] .footer-links a:focus-visible { color: var(--ink); }
body[data-footer-style="Compact"] .footer-bottom { border-top-color: var(--line); color: var(--muted); }
body[data-footer-style="Compact"] .footer-bottom a { color: var(--ink); }
body[data-footer-style="Split"] .site-footer { background: var(--footer-surface); color: var(--footer-ink); }
body[data-footer-style="Split"] .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(130px, .7fr)); padding: 66px 0 58px; }
body[data-footer-style="Split"] .footer-brand-block { padding: 32px; background: var(--accent-readable); color: var(--accent-on-readable); }
body[data-footer-style="Split"] .footer-brand { color: var(--accent-on-readable); }
body[data-footer-style="Split"] .footer-brand .brand-mark { background: #fff; color: var(--accent-readable); }
body[data-footer-style="Split"] .footer-brand .brand-name { color: var(--accent-on-readable); }
body[data-footer-style="Split"] .footer-description { color: color-mix(in srgb, #fff 78%, transparent); }
body[data-footer-style="Split"] .footer-label { color: var(--ink); }
body[data-footer-style="Split"] .footer-links a { color: var(--muted); }
body[data-footer-style="Split"] .footer-links a:hover, body[data-footer-style="Split"] .footer-links a:focus-visible { color: var(--ink); }
body[data-footer-style="Split"] .footer-bottom { border-top-color: var(--line); color: var(--muted); }
body[data-footer-style="Split"] .footer-bottom a { color: var(--ink); }

/* Single post variants: Classic, Focused and Magazine */
.single-post[data-post-style="Focused"] .post-header { text-align: left; }
.single-post[data-post-style="Focused"] .post-meta-large { justify-content: flex-start; }
.single-post[data-post-style="Focused"] .post-header h1,
.single-post[data-post-style="Focused"] .post-lede { margin-left: 0; margin-right: 0; }
.single-post[data-post-style="Focused"] .post-header h1 { max-width: 780px; font-size: clamp(50px, 6.4vw, 90px); }
.single-post[data-post-style="Focused"] .post-feature-image { width: min(calc(100% - 64px), 1000px); }
.single-post[data-post-style="Focused"] .post-content-wrap { gap: 42px; }
.single-post[data-post-style="Magazine"] .post-header { padding-top: 76px; padding-bottom: 48px; text-align: left; }
.single-post[data-post-style="Magazine"] .post-meta-large { justify-content: flex-start; }
.single-post[data-post-style="Magazine"] .post-header h1 { max-width: 1100px; margin-left: 0; margin-right: 0; font-size: clamp(54px, 8vw, 122px); }
.single-post[data-post-style="Magazine"] .post-lede { margin-left: 0; margin-right: 0; font-size: 22px; }
.single-post[data-post-style="Magazine"] .post-feature-image { width: min(calc(100% - 64px), 1260px); margin-bottom: 92px; }
.single-post[data-post-style="Magazine"] .post-content-wrap { grid-template-columns: minmax(0, var(--narrow)) 220px; gap: 60px; }
.single-post[data-post-style="Magazine"] .post-share { padding: 16px 0 0 24px; border-left: 1px solid var(--line); }

@media (max-width: 900px) {
    body[data-header-style="Centered"] .header-tools { right: 20px; }
    .home-hero[data-hero-style="Immersive"] .hero-grid { grid-template-columns: 1fr; }
    .home-hero[data-hero-style="Immersive"] .hero-copy { order: 1; }
    .home-hero[data-hero-style="Immersive"] .hero-visual { order: 2; }
    .newsletter-section[data-newsletter-style="Split"] .newsletter-card { gap: 44px; }
}

@media (max-width: 680px) {
    .theme-toggle { padding: 0 8px; }
    .theme-toggle span[data-theme-label] { min-width: 30px; font-size: 9px; }
    body[data-header-style="Centered"] .header-inner { min-height: 72px; padding: 0; }
    body[data-header-style="Centered"] .brand { margin-inline: 0; }
    body[data-header-style="Centered"] .header-actions { flex-basis: auto; }
    body[data-header-style="Centered"] .header-tools { position: static; }
    .hero-image-frame { padding-left: 16px; padding-bottom: 42px; }
    .hero-image-frame::after { right: -8px; bottom: 67px; width: 58px; height: 58px; }
    .hero-image-frame figcaption { right: 3px; max-width: 170px; font-size: 12px; }
    .hero-placeholder { min-height: 330px; }
    .hero-placeholder-orbit-one { width: 290px; height: 290px; }
    .hero-placeholder-orbit-two { width: 178px; height: 178px; }
    .hero-placeholder-word { font-size: 65px; }
    .home-hero[data-hero-style="Immersive"] { padding: 56px 0 62px; }
    .immersive-panel { min-height: 330px; }
    .immersive-panel::before { inset: 14px; }
    .immersive-index { top: 29px; left: 29px; }
    .immersive-word { left: 29px; bottom: 30px; font-size: 64px; }
    .immersive-note { right: 28px; bottom: 30px; font-size: 13px; }
    .archive-hero[data-archive-hero-style="Minimal"], .author-hero[data-archive-hero-style="Minimal"] { padding-top: 58px; padding-bottom: 48px; }
    .newsletter-section[data-newsletter-style="Split"] .newsletter-card { grid-template-columns: 1fr; padding: 42px 0; }
    body[data-footer-style="Compact"] .footer-grid { display: grid; grid-template-columns: 1fr; padding-bottom: 32px; }
    body[data-footer-style="Compact"] .footer-links { flex-wrap: wrap; }
    body[data-footer-style="Compact"] .footer-links:nth-child(3) { display: none; }
    body[data-footer-style="Split"] .footer-grid { grid-template-columns: 1fr 1fr; }
    body[data-footer-style="Split"] .footer-brand-block { grid-column: 1 / -1; }
    .single-post[data-post-style="Magazine"] .post-header h1 { font-size: clamp(50px, 15vw, 82px); }
    .single-post[data-post-style="Magazine"] .post-lede { font-size: 18px; }
    .single-post[data-post-style="Magazine"] .post-feature-image { margin-bottom: 48px; }
    .single-post[data-post-style="Magazine"] .post-content-wrap { grid-template-columns: minmax(0, var(--narrow)); }
    .single-post[data-post-style="Magazine"] .post-share { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}


/* Luma 1.4 design presets: typography, spacing, shape, elevation and density */
body[data-design-preset="Editorial Warm"] {
    --preset-heading-font: var(--serif);
    --preset-body-font: var(--sans);
    --preset-body-size: 16px;
    --preset-body-leading: 1.65;
    --preset-heading-leading: .94;
    --preset-radius: 4px;
    --preset-control-radius: 999px;
    --preset-shadow: 0 18px 48px color-mix(in srgb, var(--ink) 9%, transparent);
    --preset-container: 1220px;
    --preset-narrow: 760px;
    --preset-hero-y: clamp(76px, 8vw, 104px);
    --preset-section-y: clamp(68px, 7vw, 88px);
    --preset-feed-y: clamp(78px, 8vw, 104px);
    --preset-card-gap: 25px;
}

body[data-design-preset="Modern Contrast"] {
    --preset-heading-font: var(--sans);
    --preset-body-font: var(--sans);
    --preset-body-size: 15.5px;
    --preset-body-leading: 1.62;
    --preset-heading-leading: .98;
    --preset-radius: 9px;
    --preset-control-radius: 9px;
    --preset-shadow: 0 20px 55px color-mix(in srgb, var(--ink) 14%, transparent);
    --preset-container: 1280px;
    --preset-narrow: 780px;
    --preset-hero-y: clamp(68px, 7vw, 92px);
    --preset-section-y: clamp(58px, 6vw, 78px);
    --preset-feed-y: clamp(68px, 7vw, 92px);
    --preset-card-gap: 22px;
}

body[data-design-preset="Soft Magazine"] {
    --preset-heading-font: var(--serif);
    --preset-body-font: var(--sans);
    --preset-body-size: 16px;
    --preset-body-leading: 1.75;
    --preset-heading-leading: .98;
    --preset-radius: 16px;
    --preset-control-radius: 999px;
    --preset-shadow: 0 22px 60px color-mix(in srgb, var(--ink) 11%, transparent);
    --preset-container: 1180px;
    --preset-narrow: 760px;
    --preset-hero-y: clamp(88px, 9vw, 124px);
    --preset-section-y: clamp(78px, 8vw, 108px);
    --preset-feed-y: clamp(88px, 9vw, 118px);
    --preset-card-gap: 30px;
}

body[data-design-preset="Minimal Mono"] {
    --preset-heading-font: var(--sans);
    --preset-body-font: var(--sans);
    --preset-body-size: 15px;
    --preset-body-leading: 1.58;
    --preset-heading-leading: 1;
    --preset-radius: 0;
    --preset-control-radius: 0;
    --preset-shadow: none;
    --preset-container: 1120px;
    --preset-narrow: 700px;
    --preset-hero-y: clamp(60px, 6vw, 80px);
    --preset-section-y: clamp(52px, 5vw, 70px);
    --preset-feed-y: clamp(60px, 6vw, 82px);
    --preset-card-gap: 18px;
}

body[data-design-preset] {
    --container: var(--preset-container);
    --narrow: var(--preset-narrow);
    font-family: var(--gh-font-body, var(--preset-body-font));
    font-size: var(--preset-body-size);
    line-height: var(--preset-body-leading);
}

body[data-design-preset] h1,
body[data-design-preset] h2,
body[data-design-preset] h3,
body[data-design-preset] h4,
body[data-design-preset] .hero-copy h1,
body[data-design-preset] .section-heading h2,
body[data-design-preset] .post-card-title,
body[data-design-preset] .post-header h1,
body[data-design-preset] .page-header h1,
body[data-design-preset] .archive-hero h1,
body[data-design-preset] .author-hero h1,
body[data-design-preset] .gh-content h2,
body[data-design-preset] .gh-content h3,
body[data-design-preset] .gh-content h4,
body[data-design-preset] .newsletter-copy h2 {
    font-family: var(--gh-font-heading, var(--preset-heading-font));
    line-height: var(--preset-heading-leading);
}

body[data-design-preset] .gh-content,
body[data-design-preset] .post-lede {
    font-family: var(--gh-font-heading, var(--preset-heading-font));
}

body[data-design-preset] .button,
body[data-design-preset] .theme-toggle,
body[data-design-preset] .pagination-icon,
body[data-design-preset] .post-tags a,
body[data-design-preset] .newsletter-card,
body[data-design-preset] .newsletter-form,
body[data-design-preset] .gh-content .kg-bookmark-card,
body[data-design-preset] .gh-content .kg-callout-card,
body[data-design-preset] .post-card-image,
body[data-design-preset] .hero-image-frame .hero-image,
body[data-design-preset] .author-avatar-large,
body[data-design-preset] .author-avatar-fallback {
    border-radius: var(--preset-radius);
}

body[data-design-preset] .button,
body[data-design-preset] .theme-toggle,
body[data-design-preset] .newsletter-submit {
    border-radius: var(--preset-control-radius);
}

body[data-design-preset] .newsletter-card,
body[data-design-preset] .post-card-image,
body[data-design-preset] .featured-card-link,
body[data-design-preset] .gh-content .kg-bookmark-card,
body[data-design-preset] .gh-content .kg-callout-card {
    box-shadow: var(--preset-shadow);
}

body[data-design-preset] .home-hero { padding-block: var(--preset-hero-y); }
body[data-design-preset] .featured-section { padding-block: var(--preset-section-y); }
body[data-design-preset] .feed-section { padding-block: var(--preset-feed-y); }
body[data-design-preset] .post-header { padding-top: var(--preset-hero-y); }
body[data-design-preset] .archive-hero { padding-top: var(--preset-hero-y); }
body[data-design-preset] .post-grid { gap: clamp(28px, 4vw, 54px) var(--preset-card-gap); }
body[data-design-preset="Modern Contrast"] .eyebrow,
body[data-design-preset="Minimal Mono"] .eyebrow,
body[data-design-preset="Minimal Mono"] .post-meta,
body[data-design-preset="Minimal Mono"] .footer-label {
    letter-spacing: .18em;
}
body[data-design-preset="Modern Contrast"] .post-card-title { font-weight: 650; letter-spacing: -.035em; }
body[data-design-preset="Minimal Mono"] .post-card-title,
body[data-design-preset="Minimal Mono"] .section-heading h2 { letter-spacing: -.025em; }
body[data-design-preset="Soft Magazine"] .post-card-image,
body[data-design-preset="Soft Magazine"] .featured-card-link { border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
body[data-design-preset="Minimal Mono"] .site-header { border-bottom-width: 2px; }
body[data-design-preset="Minimal Mono"] .button { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }

.gh-content pre { background: color-mix(in srgb, var(--ink) 92%, var(--surface)); color: var(--bg); }
.form-message-error { color: color-mix(in srgb, #ef6a55 82%, var(--muted)); }

/* Footer tokens are mode-specific so a dark theme never inherits a light footer. */
body[data-theme="Light"], body[data-theme="System"] {
    --footer-bg: color-mix(in srgb, #182019 88%, var(--ink-light) 12%);
    --footer-surface: color-mix(in srgb, var(--surface-light) 92%, var(--ink-light) 8%);
    --footer-ink: color-mix(in srgb, #fff 88%, var(--accent) 12%);
    --footer-muted: color-mix(in srgb, #fff 66%, transparent);
    --footer-line: color-mix(in srgb, #fff 24%, transparent);
    --footer-link: var(--footer-ink);
    --footer-kicker: color-mix(in srgb, #fff 80%, var(--accent) 20%);
}
body[data-theme="Dark"] {
    --footer-bg: color-mix(in srgb, #070a08 88%, var(--bg-dark) 12%);
    --footer-surface: color-mix(in srgb, var(--bg-dark) 84%, var(--ink-dark) 16%);
    --footer-ink: color-mix(in srgb, #fff 90%, var(--accent) 10%);
    --footer-muted: color-mix(in srgb, #fff 64%, transparent);
    --footer-line: color-mix(in srgb, #fff 24%, transparent);
    --footer-link: var(--footer-ink);
    --footer-kicker: color-mix(in srgb, #fff 80%, var(--accent) 20%);
}
@media (prefers-color-scheme: dark) {
    body[data-theme="System"] {
        --footer-bg: color-mix(in srgb, #070a08 88%, var(--bg-dark) 12%);
        --footer-surface: color-mix(in srgb, var(--bg-dark) 84%, var(--ink-dark) 16%);
        --footer-ink: color-mix(in srgb, #fff 90%, var(--accent) 10%);
        --footer-muted: color-mix(in srgb, #fff 64%, transparent);
        --footer-line: color-mix(in srgb, #fff 24%, transparent);
        --footer-link: var(--footer-ink);
        --footer-kicker: color-mix(in srgb, #fff 80%, var(--accent) 20%);
    }
}


/* Hero image visibility controls */
.home-hero[data-hero-style$="No Image"] .hero-visual { display: none !important; }
.home-hero[data-hero-style="Editorial — No Image"] .hero-grid,
.home-hero[data-hero-style="Immersive — No Image"] .hero-grid { grid-template-columns: minmax(0, 1fr); }
.home-hero[data-hero-style="Editorial — No Image"] .hero-copy { max-width: 900px; }
.home-hero[data-hero-style="Immersive — No Image"] .hero-copy { max-width: 780px; }
.home-hero[data-hero-style="Immersive — No Image"] .hero-copy h1 { max-width: 780px; }

/* Archive hero image */
.archive-hero-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr); align-items: end; gap: clamp(32px, 8vw, 120px); }
.archive-hero-image-wrap { position: relative; margin: 0; }
.archive-hero-image-wrap::before { position: absolute; z-index: 0; top: -18px; left: -18px; width: 68%; height: 68%; border: 1px solid var(--accent); content: ""; opacity: .72; }
.archive-hero-image { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 1.18; object-fit: cover; border-radius: var(--preset-radius, 0); filter: saturate(.84); }
.archive-hero[data-archive-hero-style$="No Image"] .archive-hero-image-wrap { display: none; }
.archive-hero[data-archive-hero-style$="No Image"] .archive-hero-layout { grid-template-columns: minmax(0, 1fr); }
.archive-hero[data-archive-hero-style="Editorial — No Image"] .archive-hero-copy { max-width: 850px; }
.archive-hero[data-archive-hero-style="Minimal — No Image"] { padding-top: 67px; padding-bottom: 62px; }

.author-hero[data-archive-hero-style$="No Image"] .author-avatar-large,
.author-hero[data-archive-hero-style$="No Image"] .author-avatar-fallback { display: none; }
.author-hero[data-archive-hero-style$="No Image"] .author-hero-inner { gap: 0; }

@media (max-width: 700px) {
    .archive-hero-layout { grid-template-columns: 1fr; gap: 34px; }
    .archive-hero-image-wrap { max-width: 420px; }
    .archive-hero-image-wrap::before { top: -10px; left: -10px; }
    .archive-hero[data-archive-hero-style$="No Image"] .archive-hero-layout { grid-template-columns: 1fr; }
    .home-hero[data-hero-style="Editorial — No Image"] .hero-copy,
    .home-hero[data-hero-style="Immersive — No Image"] .hero-copy { max-width: none; }
}

/* Additional Luma design presets */
body[data-design-preset="Ink & Paper"] {
    --preset-heading-font: var(--serif);
    --preset-body-font: var(--serif);
    --preset-body-size: 17px;
    --preset-body-leading: 1.72;
    --preset-heading-leading: .9;
    --preset-radius: 0;
    --preset-control-radius: 2px;
    --preset-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 18%, transparent);
    --preset-container: 1160px;
    --preset-narrow: 720px;
    --preset-hero-y: clamp(88px, 10vw, 136px);
    --preset-section-y: clamp(76px, 8vw, 108px);
    --preset-feed-y: clamp(82px, 9vw, 116px);
    --preset-card-gap: 28px;
}

body[data-design-preset="Ink & Paper"] .post-card-title,
body[data-design-preset="Ink & Paper"] .section-heading h2,
body[data-design-preset="Ink & Paper"] .hero-copy h1 {
    letter-spacing: -.045em;
}

body[data-design-preset="Digital Bloom"] {
    --preset-heading-font: var(--sans);
    --preset-body-font: var(--sans);
    --preset-body-size: 15.5px;
    --preset-body-leading: 1.64;
    --preset-heading-leading: .96;
    --preset-radius: 20px;
    --preset-control-radius: 999px;
    --preset-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 16%, transparent);
    --preset-container: 1240px;
    --preset-narrow: 780px;
    --preset-hero-y: clamp(62px, 7vw, 94px);
    --preset-section-y: clamp(58px, 6vw, 80px);
    --preset-feed-y: clamp(64px, 7vw, 90px);
    --preset-card-gap: 20px;
}

body[data-design-preset="Digital Bloom"] .post-card-title {
    font-weight: 700;
    letter-spacing: -.04em;
}

body[data-design-preset="Digital Bloom"] .eyebrow,
body[data-design-preset="Digital Bloom"] .footer-label {
    letter-spacing: .12em;
}

body[data-design-preset="Quiet Grid"] {
    --preset-heading-font: var(--sans);
    --preset-body-font: var(--sans);
    --preset-body-size: 15px;
    --preset-body-leading: 1.6;
    --preset-heading-leading: .98;
    --preset-radius: 0;
    --preset-control-radius: 0;
    --preset-shadow: none;
    --preset-container: 1180px;
    --preset-narrow: 740px;
    --preset-hero-y: clamp(64px, 7vw, 88px);
    --preset-section-y: clamp(56px, 6vw, 76px);
    --preset-feed-y: clamp(64px, 7vw, 88px);
    --preset-card-gap: 16px;
}

body[data-design-preset="Quiet Grid"] .post-card,
body[data-design-preset="Quiet Grid"] .featured-card-link,
body[data-design-preset="Quiet Grid"] .newsletter-card,
body[data-design-preset="Quiet Grid"] .gh-content .kg-bookmark-card,
body[data-design-preset="Quiet Grid"] .gh-content .kg-callout-card {
    border: 1px solid var(--line);
}

body[data-design-preset="Quiet Grid"] .eyebrow,
body[data-design-preset="Quiet Grid"] .post-meta,
body[data-design-preset="Quiet Grid"] .footer-label {
    letter-spacing: .16em;
}

body[data-design-preset="Quiet Grid"] .post-card-title,
body[data-design-preset="Quiet Grid"] .section-heading h2 {
    letter-spacing: -.025em;
}


/* Luma 1.5 art direction layer
   This block intentionally comes last so each preset owns its component styling. */

/* Cross-variant fixes: the raw Ghost setting values include the em dash. */
.home-hero[data-hero-style="Immersive — No Image"] {
    padding-block: clamp(70px, 8vw, 104px);
    background: var(--ink);
    color: var(--bg);
    border-bottom: 0;
}
.home-hero[data-hero-style="Immersive — No Image"] .hero-grid {
    grid-template-columns: minmax(0, 1fr);
}
.home-hero[data-hero-style="Immersive — No Image"] .hero-copy {
    max-width: 900px;
    padding-left: 0;
}
.home-hero[data-hero-style="Immersive — No Image"] .hero-copy h1 { color: var(--bg); }
.home-hero[data-hero-style="Immersive — No Image"] .hero-description { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.home-hero[data-hero-style="Immersive — No Image"] .button {
    border-color: var(--bg);
    background: var(--bg);
    color: var(--ink);
}
.home-hero[data-hero-style="Immersive — No Image"] .button:hover {
    border-color: var(--accent-readable);
    background: var(--accent-readable);
    color: var(--accent-on-readable);
}
.archive-hero[data-archive-hero-style="Minimal — No Image"],
.author-hero[data-archive-hero-style="Minimal — No Image"] {
    padding-top: 67px;
    padding-bottom: 62px;
    background: transparent;
    border-bottom: 0;
}
.archive-hero[data-archive-hero-style="Minimal — No Image"] h1,
.author-hero[data-archive-hero-style="Minimal — No Image"] h1 {
    margin-top: 9px;
    font-size: clamp(48px, 6vw, 80px);
}
.archive-hero[data-archive-hero-style="Minimal — No Image"] .archive-intro,
.author-hero[data-archive-hero-style="Minimal — No Image"] .author-bio {
    max-width: 480px;
    padding-left: 18px;
    border-left: 2px solid var(--accent);
    font-size: 15px;
}
.author-hero[data-archive-hero-style="Minimal — No Image"] .author-hero-inner { gap: 0; }

/* Shared final defaults: remove accidental shadows from components that are flat by design. */
body[data-design-preset="Editorial Warm"] .post-card,
body[data-design-preset="Modern Contrast"] .post-card,
body[data-design-preset="Soft Magazine"] .post-card,
body[data-design-preset="Minimal Mono"] .post-card,
body[data-design-preset="Ink & Paper"] .post-card,
body[data-design-preset="Digital Bloom"] .post-card,
body[data-design-preset="Quiet Grid"] .post-card { min-width: 0; }

/* Editorial Warm — literary, asymmetrical and paper-led. */
body[data-design-preset="Editorial Warm"] {
    --preset-heading-font: var(--serif);
    --preset-body-font: var(--sans);
    --preset-radius: 2px;
    --preset-control-radius: 999px;
    --preset-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 8%, transparent);
    --preset-container: 1220px;
    --preset-narrow: 760px;
}
body[data-design-preset="Editorial Warm"] .site-header {
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
body[data-design-preset="Editorial Warm"] .brand-name,
body[data-design-preset="Editorial Warm"] .brand-mark { font-family: var(--serif); }
body[data-design-preset="Editorial Warm"] .brand-mark {
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
}
body[data-design-preset="Editorial Warm"] .home-hero {
    background: color-mix(in srgb, var(--surface) 28%, var(--bg));
    border-bottom: 1px solid var(--line);
}
body[data-design-preset="Editorial Warm"] .hero-copy h1,
body[data-design-preset="Editorial Warm"] .post-header h1,
body[data-design-preset="Editorial Warm"] .archive-hero h1,
body[data-design-preset="Editorial Warm"] .author-hero h1 {
    font-weight: 400;
    letter-spacing: -.08em;
}
body[data-design-preset="Editorial Warm"] .hero-image-frame { padding-left: 42px; }
body[data-design-preset="Editorial Warm"] .hero-image-frame::before { border-color: var(--accent-readable); }
body[data-design-preset="Editorial Warm"] .hero-image-frame .hero-image {
    border-radius: 2px;
    filter: saturate(.74) sepia(.08);
}
body[data-design-preset="Editorial Warm"] .featured-section { background: var(--surface); }
body[data-design-preset="Editorial Warm"] .featured-card-link {
    box-shadow: none;
    border-radius: 0;
}
body[data-design-preset="Editorial Warm"] .post-card-image {
    border-radius: 2px;
    box-shadow: 0 7px 18px color-mix(in srgb, var(--ink) 8%, transparent);
}
body[data-design-preset="Editorial Warm"] .post-card-title { font-weight: 400; }
body[data-design-preset="Editorial Warm"] .newsletter-card {
    border-radius: 2px;
    box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 12%, transparent);
}
body[data-design-preset="Editorial Warm"] .pagination { border-top-style: double; }
body[data-design-preset="Editorial Warm"] .site-footer { border-top: 1px solid var(--footer-line); }

/* Modern Contrast — assertive digital magazine with dark editorial blocks. */
body[data-design-preset="Modern Contrast"] {
    --preset-heading-font: var(--sans);
    --preset-body-font: var(--sans);
    --preset-heading-leading: .94;
    --preset-radius: 8px;
    --preset-control-radius: 8px;
    --preset-shadow: 0 18px 42px color-mix(in srgb, var(--ink) 17%, transparent);
    --preset-container: 1280px;
    --preset-narrow: 780px;
}
body[data-design-preset="Modern Contrast"] .site-header {
    background: var(--ink);
    border-bottom: 0;
    color: var(--bg);
}
body[data-design-preset="Modern Contrast"] .brand,
body[data-design-preset="Modern Contrast"] .icon-link,
body[data-design-preset="Modern Contrast"] .menu-toggle span:not(.sr-only) { color: var(--bg); }
body[data-design-preset="Modern Contrast"] .brand-mark { border-radius: 8px; background: var(--accent-readable); color: var(--accent-on-readable); }
body[data-design-preset="Modern Contrast"] .site-nav a { color: color-mix(in srgb, var(--bg) 72%, transparent); }
body[data-design-preset="Modern Contrast"] .site-nav a:hover { color: var(--accent-readable); }
body[data-design-preset="Modern Contrast"] .theme-toggle {
    border-color: color-mix(in srgb, var(--bg) 35%, transparent);
    color: var(--bg);
}
body[data-design-preset="Modern Contrast"] .theme-toggle:hover { background: var(--accent-readable); border-color: var(--accent-readable); color: var(--accent-on-readable); }
body[data-design-preset="Modern Contrast"] .home-hero {
    background: var(--ink);
    color: var(--bg);
    border-bottom: 0;
}
body[data-design-preset="Modern Contrast"] .hero-copy h1 {
    color: var(--bg);
    font-weight: 800;
    letter-spacing: -.085em;
}
body[data-design-preset="Modern Contrast"] .hero-description { color: color-mix(in srgb, var(--bg) 68%, transparent); }
body[data-design-preset="Modern Contrast"] .hero-image-frame { padding: 0; }
body[data-design-preset="Modern Contrast"] .hero-image-frame::before,
body[data-design-preset="Modern Contrast"] .hero-image-frame::after { display: none; }
body[data-design-preset="Modern Contrast"] .hero-image-frame .hero-image {
    aspect-ratio: 1.2;
    border-radius: 8px;
    filter: grayscale(1) contrast(1.15);
}
body[data-design-preset="Modern Contrast"] .featured-section {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
body[data-design-preset="Modern Contrast"] .featured-grid { border-top: 2px solid var(--ink); }
body[data-design-preset="Modern Contrast"] .featured-card { border-color: var(--ink); }
body[data-design-preset="Modern Contrast"] .featured-card-link { box-shadow: none; }
body[data-design-preset="Modern Contrast"] .featured-card-link:hover { background: var(--accent-readable); color: var(--accent-on-readable); }
body[data-design-preset="Modern Contrast"] .featured-card-link:hover .eyebrow,
body[data-design-preset="Modern Contrast"] .featured-card-link:hover .featured-number,
body[data-design-preset="Modern Contrast"] .featured-card-link:hover .featured-arrow { color: var(--accent-on-readable); }
body[data-design-preset="Modern Contrast"] .post-grid { gap: 30px 18px; }
body[data-design-preset="Modern Contrast"] .post-card-image { border-radius: 8px; }
body[data-design-preset="Modern Contrast"] .post-card-title { font-weight: 800; letter-spacing: -.06em; }
body[data-design-preset="Modern Contrast"] .post-card .text-link { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
body[data-design-preset="Modern Contrast"] .gh-content,
body[data-design-preset="Modern Contrast"] .post-lede { font-family: var(--sans); }
body[data-design-preset="Modern Contrast"] .gh-content h2,
body[data-design-preset="Modern Contrast"] .gh-content h3,
body[data-design-preset="Modern Contrast"] .gh-content h4 { font-weight: 800; letter-spacing: -.06em; }
body[data-design-preset="Modern Contrast"] .newsletter-card { background: var(--accent-readable); color: var(--accent-on-readable); }
body[data-design-preset="Modern Contrast"] .newsletter-copy h2 { color: var(--accent-on-readable); font-weight: 800; }
body[data-design-preset="Modern Contrast"] .newsletter-form { border-color: color-mix(in srgb, #fff 48%, transparent); background: color-mix(in srgb, var(--ink) 14%, transparent); }
body[data-design-preset="Modern Contrast"] .site-footer { background: var(--ink); }
body[data-design-preset="Modern Contrast"] .pagination-icon { border-radius: 8px; }

/* Soft Magazine — rounded lifestyle publication with soft surfaces and generous rhythm. */
body[data-design-preset="Soft Magazine"] {
    --preset-heading-font: var(--serif);
    --preset-body-font: var(--sans);
    --preset-body-leading: 1.75;
    --preset-radius: 22px;
    --preset-control-radius: 999px;
    --preset-shadow: 0 20px 55px color-mix(in srgb, var(--ink) 10%, transparent);
    --preset-container: 1180px;
}
body[data-design-preset="Soft Magazine"] .site-header {
    background: var(--surface);
    border-bottom: 0;
}
body[data-design-preset="Soft Magazine"] .brand-mark {
    border-radius: 14px;
    background: var(--accent-readable);
    color: var(--accent-on-readable);
}
body[data-design-preset="Soft Magazine"] .site-nav a {
    padding: 8px 13px;
    border-radius: 999px;
}
body[data-design-preset="Soft Magazine"] .site-nav a:hover { background: var(--bg); }
body[data-design-preset="Soft Magazine"] .home-hero {
    background: var(--surface);
    border-bottom: 0;
}
body[data-design-preset="Soft Magazine"] .hero-copy h1 { letter-spacing: -.065em; }
body[data-design-preset="Soft Magazine"] .hero-image-frame { padding: 0; }
body[data-design-preset="Soft Magazine"] .hero-image-frame::before { display: none; }
body[data-design-preset="Soft Magazine"] .hero-image-frame::after { right: -14px; bottom: 30px; }
body[data-design-preset="Soft Magazine"] .hero-image-frame .hero-image {
    border-radius: 28px;
    filter: saturate(.9);
    box-shadow: 0 22px 55px color-mix(in srgb, var(--ink) 13%, transparent);
}
body[data-design-preset="Soft Magazine"] .featured-section { background: var(--bg); }
body[data-design-preset="Soft Magazine"] .featured-grid { gap: 18px; border-top: 0; }
body[data-design-preset="Soft Magazine"] .featured-card,
body[data-design-preset="Soft Magazine"] .featured-card:first-child { border: 0; }
body[data-design-preset="Soft Magazine"] .featured-card-link {
    min-height: 270px;
    padding: 28px;
    border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--preset-shadow);
}
body[data-design-preset="Soft Magazine"] .featured-card-link:hover { background: var(--surface-deep); transform: translateY(-4px); }
body[data-design-preset="Soft Magazine"] .post-grid { gap: 52px 30px; }
body[data-design-preset="Soft Magazine"] .post-card-image {
    border-radius: 22px;
    box-shadow: var(--preset-shadow);
}
body[data-design-preset="Soft Magazine"] .post-card-title { font-size: 31px; }
body[data-design-preset="Soft Magazine"] .newsletter-card {
    border: 0;
    border-radius: 28px;
    box-shadow: var(--preset-shadow);
}
body[data-design-preset="Soft Magazine"] .newsletter-form { border-radius: 18px; }
body[data-design-preset="Soft Magazine"] .newsletter-submit { border-radius: 999px; }
body[data-design-preset="Soft Magazine"] .pagination-icon { width: 42px; height: 42px; }
body[data-design-preset="Soft Magazine"] .site-footer { border-top: 0; }

/* Minimal Mono — utility-driven, square and deliberately unornamented. */
body[data-design-preset="Minimal Mono"] {
    --preset-heading-font: var(--sans);
    --preset-body-font: var(--sans);
    --preset-body-size: 15px;
    --preset-body-leading: 1.58;
    --preset-heading-leading: 1;
    --preset-radius: 0;
    --preset-control-radius: 0;
    --preset-shadow: none;
    --preset-container: 1120px;
    --preset-narrow: 700px;
}
body[data-design-preset="Minimal Mono"] .site-header { border-bottom: 2px solid var(--ink); }
body[data-design-preset="Minimal Mono"] .brand-name,
body[data-design-preset="Minimal Mono"] .eyebrow,
body[data-design-preset="Minimal Mono"] .post-meta,
body[data-design-preset="Minimal Mono"] .footer-label,
body[data-design-preset="Minimal Mono"] .button,
body[data-design-preset="Minimal Mono"] .theme-toggle { font-family: var(--mono); }
body[data-design-preset="Minimal Mono"] .brand-mark { border-radius: 0; background: var(--ink); color: var(--bg); }
body[data-design-preset="Minimal Mono"] .home-hero { border-bottom: 2px solid var(--ink); }
body[data-design-preset="Minimal Mono"] .hero-copy h1 { font-weight: 750; letter-spacing: -.055em; }
body[data-design-preset="Minimal Mono"] .hero-kicker-line { background: var(--ink); }
body[data-design-preset="Minimal Mono"] .hero-image-frame { padding: 0; }
body[data-design-preset="Minimal Mono"] .hero-image-frame::before,
body[data-design-preset="Minimal Mono"] .hero-image-frame::after { display: none; }
body[data-design-preset="Minimal Mono"] .hero-image-frame .hero-image {
    border: 1px solid var(--ink);
    border-radius: 0;
    filter: grayscale(1) contrast(1.08);
}
body[data-design-preset="Minimal Mono"] .featured-section { background: var(--bg); }
body[data-design-preset="Minimal Mono"] .featured-grid { border-top: 2px solid var(--ink); }
body[data-design-preset="Minimal Mono"] .featured-card,
body[data-design-preset="Minimal Mono"] .featured-card:first-child { border-color: var(--ink); }
body[data-design-preset="Minimal Mono"] .featured-card-link { box-shadow: none; }
body[data-design-preset="Minimal Mono"] .featured-number { font-family: var(--mono); font-style: normal; font-size: 14px; }
body[data-design-preset="Minimal Mono"] .post-grid { gap: 42px 18px; }
body[data-design-preset="Minimal Mono"] .post-card { border-top: 2px solid var(--ink); padding-top: 17px; }
body[data-design-preset="Minimal Mono"] .post-card-image { border: 1px solid var(--line); border-radius: 0; box-shadow: none; }
body[data-design-preset="Minimal Mono"] .post-card-title { font-size: 25px; font-weight: 650; }
body[data-design-preset="Minimal Mono"] .post-card .text-link { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
body[data-design-preset="Minimal Mono"] .gh-content,
body[data-design-preset="Minimal Mono"] .post-lede { font-family: var(--sans); }
body[data-design-preset="Minimal Mono"] .gh-content h2,
body[data-design-preset="Minimal Mono"] .gh-content h3,
body[data-design-preset="Minimal Mono"] .gh-content h4 { font-family: var(--sans); font-weight: 700; }
body[data-design-preset="Minimal Mono"] .gh-content pre,
body[data-design-preset="Minimal Mono"] .gh-content code { border-radius: 0; }
body[data-design-preset="Minimal Mono"] .newsletter-card {
    border: 2px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
}
body[data-design-preset="Minimal Mono"] .newsletter-copy h2,
body[data-design-preset="Minimal Mono"] .newsletter-form-heading { color: var(--ink); }
body[data-design-preset="Minimal Mono"] .newsletter-copy > p,
body[data-design-preset="Minimal Mono"] .newsletter-benefit-list,
body[data-design-preset="Minimal Mono"] .form-note { color: var(--muted); }
body[data-design-preset="Minimal Mono"] .newsletter-form { border-color: var(--line); border-radius: 0; background: var(--surface); }
body[data-design-preset="Minimal Mono"] .newsletter-field { border-color: var(--line); border-radius: 0; background: var(--bg); }
body[data-design-preset="Minimal Mono"] .newsletter-field input { color: var(--ink); }
body[data-design-preset="Minimal Mono"] .newsletter-field input::placeholder { color: var(--muted); }
body[data-design-preset="Minimal Mono"] .site-footer { background: var(--ink); }
body[data-design-preset="Minimal Mono"] .site-footer .brand,
body[data-design-preset="Minimal Mono"] .site-footer .footer-brand .brand-name { color: var(--bg); }

/* Ink & Paper — print review, narrow measure and rule-led composition. */
body[data-design-preset="Ink & Paper"] {
    --preset-heading-font: var(--serif);
    --preset-body-font: var(--serif);
    --preset-body-size: 17px;
    --preset-body-leading: 1.78;
    --preset-heading-leading: .9;
    --preset-radius: 0;
    --preset-control-radius: 0;
    --preset-shadow: none;
    --preset-container: 1140px;
    --preset-narrow: 700px;
}
body[data-design-preset="Ink & Paper"] .site-header {
    border-top: 4px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}
body[data-design-preset="Ink & Paper"] .brand-name { font-family: var(--serif); font-size: 20px; }
body[data-design-preset="Ink & Paper"] .brand-mark { border-radius: 0; background: var(--ink); color: var(--bg); }
body[data-design-preset="Ink & Paper"] .site-nav a,
body[data-design-preset="Ink & Paper"] .footer-label { font-family: var(--serif); letter-spacing: .08em; text-transform: uppercase; }
body[data-design-preset="Ink & Paper"] .home-hero {
    padding-block: clamp(86px, 10vw, 132px);
    border-bottom: 1px solid var(--ink);
    background: var(--bg);
}
body[data-design-preset="Ink & Paper"] .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 7%; }
body[data-design-preset="Ink & Paper"] .hero-copy { padding-left: 0; }
body[data-design-preset="Ink & Paper"] .hero-copy h1 { font-size: clamp(58px, 7.8vw, 108px); letter-spacing: -.085em; }
body[data-design-preset="Ink & Paper"] .hero-image-frame { padding: 0; }
body[data-design-preset="Ink & Paper"] .hero-image-frame::before,
body[data-design-preset="Ink & Paper"] .hero-image-frame::after { display: none; }
body[data-design-preset="Ink & Paper"] .hero-image-frame .hero-image {
    aspect-ratio: .78;
    border-radius: 0;
    filter: grayscale(1) contrast(1.06);
}
body[data-design-preset="Ink & Paper"] .featured-section { background: var(--surface); border-bottom: 1px solid var(--ink); }
body[data-design-preset="Ink & Paper"] .section-heading h2 { letter-spacing: -.08em; }
body[data-design-preset="Ink & Paper"] .featured-grid { border-top: 2px solid var(--ink); }
body[data-design-preset="Ink & Paper"] .featured-card,
body[data-design-preset="Ink & Paper"] .featured-card:first-child { border-color: var(--ink); }
body[data-design-preset="Ink & Paper"] .featured-card-link { min-height: 285px; box-shadow: none; }
body[data-design-preset="Ink & Paper"] .post-grid { gap: 55px 28px; }
body[data-design-preset="Ink & Paper"] .post-card { border-top: 1px solid var(--ink); padding-top: 19px; }
body[data-design-preset="Ink & Paper"] .post-card-image { aspect-ratio: .86; border-radius: 0; box-shadow: none; filter: grayscale(.12); }
body[data-design-preset="Ink & Paper"] .post-card-title { font-size: 30px; letter-spacing: -.065em; }
body[data-design-preset="Ink & Paper"] .post-excerpt,
body[data-design-preset="Ink & Paper"] .text-link { font-family: var(--sans); }
body[data-design-preset="Ink & Paper"] .gh-content { font-family: var(--serif); line-height: 1.86; }
body[data-design-preset="Ink & Paper"] .gh-content p { text-align: justify; hyphens: auto; }
body[data-design-preset="Ink & Paper"] .gh-content h2,
body[data-design-preset="Ink & Paper"] .gh-content h3,
body[data-design-preset="Ink & Paper"] .gh-content h4,
body[data-design-preset="Ink & Paper"] .gh-content blockquote,
body[data-design-preset="Ink & Paper"] .gh-content figcaption { text-align: left; }
body[data-design-preset="Ink & Paper"] .gh-content blockquote { border-left: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 22px 0; }
body[data-design-preset="Ink & Paper"] .newsletter-card {
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    background: var(--surface);
    box-shadow: none;
}
body[data-design-preset="Ink & Paper"] .newsletter-form { border-radius: 0; background: var(--bg); }
body[data-design-preset="Ink & Paper"] .newsletter-field,
body[data-design-preset="Ink & Paper"] .newsletter-submit { border-radius: 0; }
body[data-design-preset="Ink & Paper"] .site-footer { border-top: 1px solid var(--ink); background: var(--surface); }
body[data-design-preset="Ink & Paper"] .pagination { border-top: 2px solid var(--ink); }
body[data-design-preset="Ink & Paper"] .pagination-icon { border-radius: 0; }

/* Digital Bloom — saturated, playful and elevated. */
body[data-design-preset="Digital Bloom"] {
    --preset-heading-font: var(--sans);
    --preset-body-font: var(--sans);
    --preset-body-size: 15.5px;
    --preset-body-leading: 1.64;
    --preset-heading-leading: .94;
    --preset-radius: 24px;
    --preset-control-radius: 999px;
    --preset-shadow: 0 20px 52px color-mix(in srgb, var(--accent) 22%, transparent);
    --preset-container: 1240px;
    --preset-narrow: 780px;
}
body[data-design-preset="Digital Bloom"] .site-header { border-bottom: 0; background: var(--bg); }
body[data-design-preset="Digital Bloom"] .brand-mark {
    border-radius: 14px;
    background: var(--accent-readable);
    color: var(--accent-on-readable);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 15%, transparent);
}
body[data-design-preset="Digital Bloom"] .site-nav a { padding: 8px 12px; border-radius: 999px; }
body[data-design-preset="Digital Bloom"] .site-nav a:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
body[data-design-preset="Digital Bloom"] .home-hero {
    background: color-mix(in srgb, var(--accent) 9%, var(--bg));
    border-bottom: 0;
}
body[data-design-preset="Digital Bloom"] .hero-copy h1 { font-weight: 800; letter-spacing: -.09em; }
body[data-design-preset="Digital Bloom"] .hero-copy h1 em { color: var(--accent-readable); font-style: normal; }
body[data-design-preset="Digital Bloom"] .hero-image-frame { padding: 0; }
body[data-design-preset="Digital Bloom"] .hero-image-frame::before { top: 20px; left: -18px; width: 90%; height: 90%; border: 0; border-radius: 24px; background: color-mix(in srgb, var(--accent) 25%, transparent); }
body[data-design-preset="Digital Bloom"] .hero-image-frame::after { right: -18px; bottom: 22px; width: 82px; height: 82px; border-radius: 24px; }
body[data-design-preset="Digital Bloom"] .hero-image-frame .hero-image { border-radius: 24px; filter: saturate(1.15) contrast(1.03); box-shadow: var(--preset-shadow); }
body[data-design-preset="Digital Bloom"] .featured-section { background: var(--bg); }
body[data-design-preset="Digital Bloom"] .featured-grid { gap: 22px; border-top: 0; }
body[data-design-preset="Digital Bloom"] .featured-card,
body[data-design-preset="Digital Bloom"] .featured-card:first-child { border: 0; }
body[data-design-preset="Digital Bloom"] .featured-card-link {
    min-height: 260px;
    padding: 28px;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--preset-shadow);
}
body[data-design-preset="Digital Bloom"] .featured-card-link:hover { background: var(--accent-readable); color: var(--accent-on-readable); transform: translateY(-6px) rotate(-.6deg); }
body[data-design-preset="Digital Bloom"] .featured-card-link:hover .eyebrow,
body[data-design-preset="Digital Bloom"] .featured-card-link:hover .featured-number,
body[data-design-preset="Digital Bloom"] .featured-card-link:hover .featured-arrow { color: var(--accent-on-readable); }
body[data-design-preset="Digital Bloom"] .post-grid { gap: 50px 24px; }
body[data-design-preset="Digital Bloom"] .post-card-image { border-radius: 24px; box-shadow: var(--preset-shadow); }
body[data-design-preset="Digital Bloom"] .post-card-title { font-weight: 800; letter-spacing: -.07em; }
body[data-design-preset="Digital Bloom"] .post-card:hover .post-card-image { transform: translateY(-4px); }
body[data-design-preset="Digital Bloom"] .newsletter-section { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
body[data-design-preset="Digital Bloom"] .newsletter-card { border: 0; border-radius: 30px; box-shadow: var(--preset-shadow); }
body[data-design-preset="Digital Bloom"] .newsletter-form { border-radius: 20px; }
body[data-design-preset="Digital Bloom"] .site-footer { border-top: 0; }
body[data-design-preset="Digital Bloom"] .pagination-icon { width: 42px; height: 42px; }

/* Quiet Grid — Swiss modular system with visible structure and no elevation. */
body[data-design-preset="Quiet Grid"] {
    --preset-heading-font: var(--sans);
    --preset-body-font: var(--sans);
    --preset-body-size: 15px;
    --preset-body-leading: 1.6;
    --preset-heading-leading: .98;
    --preset-radius: 0;
    --preset-control-radius: 0;
    --preset-shadow: none;
    --preset-container: 1180px;
    --preset-narrow: 740px;
}
body[data-design-preset="Quiet Grid"] .site-header { border-bottom: 1px solid var(--ink); }
body[data-design-preset="Quiet Grid"] .header-inner { min-height: 78px; border-inline: 1px solid var(--line); padding-inline: 22px; }
body[data-design-preset="Quiet Grid"] .brand-mark { border-radius: 0; background: var(--ink); color: var(--bg); }
body[data-design-preset="Quiet Grid"] .brand-name,
body[data-design-preset="Quiet Grid"] .eyebrow,
body[data-design-preset="Quiet Grid"] .post-meta,
body[data-design-preset="Quiet Grid"] .footer-label,
body[data-design-preset="Quiet Grid"] .button { font-family: var(--mono); }
body[data-design-preset="Quiet Grid"] .home-hero { border-bottom: 1px solid var(--ink); }
body[data-design-preset="Quiet Grid"] .hero-grid { gap: 0; }
body[data-design-preset="Quiet Grid"] .hero-copy { padding: 46px 7% 46px 0; }
body[data-design-preset="Quiet Grid"] .hero-copy h1 { font-weight: 700; letter-spacing: -.065em; }
body[data-design-preset="Quiet Grid"] .hero-visual { border-left: 1px solid var(--ink); padding-left: clamp(24px, 4vw, 55px); }
body[data-design-preset="Quiet Grid"] .hero-image-frame { padding: 0; }
body[data-design-preset="Quiet Grid"] .hero-image-frame::before,
body[data-design-preset="Quiet Grid"] .hero-image-frame::after { display: none; }
body[data-design-preset="Quiet Grid"] .hero-image-frame .hero-image { border-radius: 0; filter: grayscale(1); }
body[data-design-preset="Quiet Grid"] .featured-section { background: var(--bg); border-bottom: 1px solid var(--ink); }
body[data-design-preset="Quiet Grid"] .featured-grid { border-top: 1px solid var(--ink); }
body[data-design-preset="Quiet Grid"] .featured-card,
body[data-design-preset="Quiet Grid"] .featured-card:first-child { border-color: var(--ink); }
body[data-design-preset="Quiet Grid"] .featured-card-link { min-height: 255px; box-shadow: none; }
body[data-design-preset="Quiet Grid"] .featured-card-link:hover { background: var(--surface); }
body[data-design-preset="Quiet Grid"] .post-grid { gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
body[data-design-preset="Quiet Grid"] .post-card {
    padding: 22px;
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}
body[data-design-preset="Quiet Grid"] .post-card-image { border-radius: 0; box-shadow: none; }
body[data-design-preset="Quiet Grid"] .post-card-title { font-weight: 700; letter-spacing: -.045em; }
body[data-design-preset="Quiet Grid"] .post-card .text-link { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
body[data-design-preset="Quiet Grid"] .newsletter-card { border: 1px solid var(--ink); border-radius: 0; box-shadow: none; }
body[data-design-preset="Quiet Grid"] .newsletter-form { border-radius: 0; }
body[data-design-preset="Quiet Grid"] .newsletter-field,
body[data-design-preset="Quiet Grid"] .newsletter-submit { border-radius: 0; }
body[data-design-preset="Quiet Grid"] .site-footer { border-top: 1px solid var(--ink); }
body[data-design-preset="Quiet Grid"] .footer-grid { border-inline: 1px solid var(--line); padding-inline: 22px; }
body[data-design-preset="Quiet Grid"] .pagination { border-top: 1px solid var(--ink); }
body[data-design-preset="Quiet Grid"] .pagination-icon { border-radius: 0; }
body[data-design-preset="Quiet Grid"] .post-content-wrap { border-top: 1px solid var(--ink); padding-top: 34px; }
body[data-design-preset="Quiet Grid"] .gh-content { font-family: var(--sans); }
body[data-design-preset="Quiet Grid"] .gh-content h2,
body[data-design-preset="Quiet Grid"] .gh-content h3,
body[data-design-preset="Quiet Grid"] .gh-content h4 { font-weight: 700; letter-spacing: -.05em; }
body[data-design-preset="Quiet Grid"] .gh-content h2 { padding-top: 18px; border-top: 1px solid var(--line); }

/* Final responsive adjustments for the stronger art directions. */
@media (max-width: 900px) {
    body[data-design-preset="Quiet Grid"] .hero-grid { gap: 0; }
    body[data-design-preset="Quiet Grid"] .hero-copy { padding-right: 0; }
    body[data-design-preset="Quiet Grid"] .hero-visual { border-left: 0; border-top: 1px solid var(--ink); padding: 34px 0 0; }
    body[data-design-preset="Ink & Paper"] .hero-grid { grid-template-columns: 1fr; }
    body[data-design-preset="Ink & Paper"] .hero-image-wrap { max-width: 500px; }
}
@media (max-width: 680px) {
    body[data-design-preset="Modern Contrast"] .site-header { background: var(--ink); }
    body[data-design-preset="Modern Contrast"] .header-actions { background: var(--ink); border-bottom-color: color-mix(in srgb, var(--bg) 24%, transparent); }
    body[data-design-preset="Modern Contrast"] .header-tools { border-top-color: color-mix(in srgb, var(--bg) 24%, transparent); }
    body[data-design-preset="Soft Magazine"] .featured-card-link,
    body[data-design-preset="Digital Bloom"] .featured-card-link { min-height: 220px; }
    body[data-design-preset="Ink & Paper"] .hero-copy h1 { font-size: clamp(54px, 15vw, 82px); }
    body[data-design-preset="Ink & Paper"] .gh-content p { text-align: left; hyphens: manual; }
    body[data-design-preset="Quiet Grid"] .header-inner { border-inline: 0; padding-inline: 0; }
    body[data-design-preset="Quiet Grid"] .hero-copy { padding: 0 0 34px; }
    body[data-design-preset="Quiet Grid"] .post-grid { border-left: 0; }
    body[data-design-preset="Quiet Grid"] .post-card { padding: 18px 0; border-right: 0; }
    body[data-design-preset="Quiet Grid"] .footer-grid { border-inline: 0; padding-inline: 0; }
    body[data-design-preset="Minimal Mono"] .newsletter-card { padding-inline: 20px; }
}


/* ==========================================================================\n   Ghost 6 engagement layer — v1.7\n   ========================================================================== */
.post-meta .access-badge,
.access-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.55em;
    padding: 0.18em 0.58em;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}
.access-badge-paid { color: var(--accent-readable); }
.access-badge-members { color: var(--muted); }
.post-comment-count {
    color: var(--muted);
    white-space: nowrap;
}
.post-card-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.post-access-hint {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.header-signin,
.button-account {
    white-space: nowrap;
}
.member-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: var(--control-radius, 999px);
    background: var(--accent-readable);
    color: var(--accent-on-readable);
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}
.member-cta:hover,
.member-cta:focus-visible {
    background: var(--accent-dark);
    color: var(--accent-on-readable);
    transform: translateY(-2px);
}
.post-comments {
    margin-top: clamp(48px, 8vw, 96px);
    padding-top: clamp(28px, 5vw, 56px);
    border-top: 1px solid var(--line);
}
.post-comments .gh-comments {
    color: var(--ink);
}
.post-comments .gh-comments h2,
.post-comments .gh-comments h3 {
    font-family: var(--heading-font, var(--serif));
}
.share-button-native[hidden] { display: none; }
.share-button-native.is-share-error { border-color: var(--accent-readable); color: var(--accent-readable); }
.author-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.author-socials:empty { display: none; }
.author-socials a {
    display: inline-flex;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--control-radius, 999px);
    color: var(--ink);
    font-size: 0.8rem;
    text-decoration: none;
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}
.author-socials a:hover,
.author-socials a:focus-visible {
    border-color: var(--accent-readable);
    background: var(--surface);
    color: var(--accent-dark);
}
.recommendations-section {
    margin: clamp(56px, 9vw, 120px) 0 0;
    padding: clamp(36px, 6vw, 72px) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}
.recommendations-trigger {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--preset-card-gap, 20px);
    margin-top: 28px;
}
.recommendation-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.recommendation-card:hover,
.recommendation-card:focus-visible {
    border-color: var(--accent-readable);
    box-shadow: var(--preset-shadow, 0 12px 28px rgba(32, 35, 33, 0.08));
    transform: translateY(-3px);
}
.recommendation-card-media {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    overflow: hidden;
    border-radius: calc(var(--radius) * 0.75);
    background: var(--surface-deep);
    color: var(--accent-readable);
}
.recommendation-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recommendation-card-mark { font-weight: 800; }
.recommendation-card-content {
    display: grid;
    gap: 6px;
}
.recommendation-card-content strong { font-family: var(--heading-font, var(--serif)); }
.recommendation-card-content span,
.recommendation-card-content small {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}
.recommendation-card-content small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Preset-specific engagement treatments */
body[data-design-preset="Editorial Warm"] .recommendations-section {
    background: transparent;
    border-top: 3px double var(--line);
    border-bottom: 3px double var(--line);
}
body[data-design-preset="Editorial Warm"] .recommendation-card {
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body[data-design-preset="Modern Contrast"] .post-comments,
body[data-design-preset="Modern Contrast"] .recommendations-section {
    background: var(--ink);
    color: var(--bg);
}
body[data-design-preset="Modern Contrast"] .recommendations-section { border-color: var(--ink); }
body[data-design-preset="Modern Contrast"] .recommendation-card {
    border-color: color-mix(in srgb, var(--bg) 28%, transparent);
    background: transparent;
    color: var(--bg);
}
body[data-design-preset="Modern Contrast"] .recommendation-card-content span,
body[data-design-preset="Modern Contrast"] .recommendation-card-content small { color: color-mix(in srgb, var(--bg) 68%, transparent); }
body[data-design-preset="Modern Contrast"] .post-comments .gh-comments { color: var(--bg); }
body[data-design-preset="Soft Magazine"] .recommendations-section {
    border: 0;
    background: transparent;
}
body[data-design-preset="Soft Magazine"] .recommendation-card {
    border: 0;
    border-radius: calc(var(--radius) * 1.25);
    box-shadow: 0 16px 38px rgba(108, 92, 80, 0.12);
}
body[data-design-preset="Soft Magazine"] .recommendation-card-media { border-radius: 50%; }
body[data-design-preset="Minimal Mono"] .post-comments,
body[data-design-preset="Minimal Mono"] .recommendations-section,
body[data-design-preset="Minimal Mono"] .recommendation-card { border-radius: 0; }
body[data-design-preset="Minimal Mono"] .recommendation-card,
body[data-design-preset="Minimal Mono"] .author-socials a,
body[data-design-preset="Minimal Mono"] .access-badge {
    border-color: var(--ink);
}
body[data-design-preset="Minimal Mono"] .recommendation-card { box-shadow: none; }
body[data-design-preset="Minimal Mono"] .recommendation-card-content strong,
body[data-design-preset="Minimal Mono"] .post-comments h2,
body[data-design-preset="Minimal Mono"] .post-comments h3 { font-family: var(--preset-body-font); }
body[data-design-preset="Ink & Paper"] .recommendations-section {
    background: transparent;
    border-top: 4px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}
body[data-design-preset="Ink & Paper"] .recommendations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-design-preset="Ink & Paper"] .recommendation-card {
    min-height: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body[data-design-preset="Ink & Paper"] .recommendation-card-content span { text-align: justify; }
body[data-design-preset="Digital Bloom"] .recommendations-section {
    border: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--surface));
}
body[data-design-preset="Digital Bloom"] .recommendation-card {
    border: 0;
    border-radius: calc(var(--radius) * 1.2);
    box-shadow: 0 18px 42px color-mix(in srgb, var(--accent) 20%, transparent);
}
body[data-design-preset="Digital Bloom"] .recommendation-card:hover,
body[data-design-preset="Digital Bloom"] .recommendation-card:focus-visible { transform: translateY(-8px) rotate(-1deg); }
body[data-design-preset="Digital Bloom"] .recommendation-card-media { border-radius: 14px; background: var(--accent-readable); color: var(--accent-on-readable); }
body[data-design-preset="Quiet Grid"] .recommendations-section,
body[data-design-preset="Quiet Grid"] .recommendation-card,
body[data-design-preset="Quiet Grid"] .post-comments { border-radius: 0; }
body[data-design-preset="Quiet Grid"] .recommendations-section { background: transparent; }
body[data-design-preset="Quiet Grid"] .recommendation-card { box-shadow: none; }
body[data-design-preset="Quiet Grid"] .recommendations-grid { gap: 0; }
body[data-design-preset="Quiet Grid"] .recommendation-card { border-right: 0; }
body[data-design-preset="Quiet Grid"] .recommendation-card:last-child { border-right: 1px solid var(--line); }

@media (max-width: 900px) {
    .recommendations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .post-card-footer,
    .section-heading-row { align-items: flex-start; flex-direction: column; }
    .recommendations-grid,
    body[data-design-preset="Ink & Paper"] .recommendations-grid { grid-template-columns: 1fr; }
    .recommendation-card { min-height: 0; }
    .post-comments { margin-top: 56px; }
}


/* Luma 1.8 content architecture and reading tools.
   New components intentionally use the shared mode tokens so Light, Dark and System stay in sync. */
.directory-hero,
.layout-hero {
    padding: var(--preset-hero-y, clamp(68px, 8vw, 104px)) 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.directory-hero-inner,
.layout-hero-inner { max-width: var(--narrow); }
.directory-hero h1,
.layout-hero h1 { max-width: 900px; margin: 11px 0 18px; letter-spacing: -.07em; }
.directory-intro,
.layout-hero-intro { max-width: 620px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.55; }
.directory-section { padding: var(--preset-section-y, clamp(68px, 7vw, 96px)) 0; }
.topic-directory-grid,
.author-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.topic-directory-card,
.author-directory-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--preset-radius, 4px);
    background: var(--bg);
    color: var(--ink);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.topic-directory-card:hover,
.author-directory-card:hover,
.topic-directory-card:focus-visible,
.author-directory-card:focus-visible {
    border-color: var(--accent-readable);
    background: var(--surface-deep);
    color: var(--ink);
    transform: translateY(-2px);
}
.topic-directory-index,
.topic-directory-arrow,
.author-directory-arrow { color: var(--accent-dark); font-family: var(--mono); font-size: 11px; }
.topic-directory-copy,
.author-directory-copy { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.topic-directory-copy strong,
.author-directory-copy strong { font-family: var(--preset-heading-font, var(--serif)); font-size: 24px; letter-spacing: -.04em; }
.topic-directory-copy span,
.author-directory-copy span { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; }
.topic-directory-copy small,
.author-directory-copy small { color: var(--muted); font-size: 11px; }
.author-directory-avatar { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-deep); color: var(--accent-dark); font-family: var(--mono); }
.author-directory-card { grid-template-columns: 42px minmax(0, 1fr) 24px; }
.author-directory-avatar img { width: 100%; height: 100%; object-fit: cover; }

.layout-featured-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: clamp(28px, 6vw, 90px); align-items: end; }
.layout-featured-lead { display: grid; grid-template-columns: minmax(220px, .92fr) minmax(0, 1.08fr); min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--preset-radius, 4px); background: var(--bg); color: var(--ink); }
.layout-featured-lead img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; filter: saturate(.86); }
.layout-featured-lead-copy { display: flex; flex-direction: column; justify-content: end; gap: 15px; padding: clamp(25px, 5vw, 56px); }
.layout-featured-lead-copy h1 { margin: 0; font-family: var(--preset-heading-font, var(--serif)); font-size: clamp(36px, 5vw, 72px); letter-spacing: -.08em; }
.layout-featured-lead-copy > span:last-child { color: var(--muted); font-size: 15px; line-height: 1.6; }
.layout-featured-lead-empty { display: flex; min-height: 360px; flex-direction: column; justify-content: end; padding: clamp(25px, 5vw, 56px); }
.layout-featured-lead-empty h1 { margin: 12px 0; font-size: clamp(36px, 5vw, 72px); }
.layout-featured-lead-empty > span:last-child { max-width: 420px; color: var(--muted); }
.layout-featured-intro { align-self: center; max-width: 360px; }
.layout-featured-intro > p:not(.eyebrow) { margin: 0 0 24px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.layout-feed { padding-block: var(--preset-feed-y, clamp(72px, 8vw, 104px)); }
.layout-feed-grid { background: var(--bg); }
.layout-sidebar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .36fr); gap: clamp(42px, 7vw, 100px); align-items: start; }
.layout-main-column .section-heading { margin-bottom: 34px; }
.post-list-layout { display: grid; gap: 0; }
.post-list-layout .post-card { display: grid; grid-template-columns: minmax(180px, .38fr) minmax(0, .62fr); gap: 24px; padding: 25px 0; border-top: 1px solid var(--line); }
.post-list-layout .post-card:first-child { padding-top: 0; border-top: 0; }
.post-list-layout .post-card-image { margin: 0; }
.post-list-layout .post-card-body { padding: 0; }
.layout-sidebar-rail { position: sticky; top: 28px; display: grid; gap: 28px; }
.sidebar-module { padding: 24px; border: 1px solid var(--line); border-radius: var(--preset-radius, 4px); background: var(--surface); }
.sidebar-module p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.sidebar-story-list { display: grid; gap: 0; margin-top: 15px; }
.sidebar-story { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.sidebar-story:first-child { border-top: 0; }
.sidebar-story-number { color: var(--accent-dark); font-family: var(--mono); font-size: 11px; }
.sidebar-story strong { display: block; font-family: var(--preset-heading-font, var(--serif)); font-size: 17px; line-height: 1.15; }
.sidebar-story small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.sidebar-module-links { display: grid; gap: 9px; margin-top: 18px; }
.layout-featured-picks { background: var(--surface); }
.layout-featured-latest { background: var(--bg); }

.reading-progress { position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; height: 3px; pointer-events: none; background: color-mix(in srgb, var(--line) 74%, transparent); }
.reading-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: var(--accent-readable); transition: transform .08s linear; }
.post-header-wide { max-width: 1040px; }
.post-feature-image-wide { width: min(calc(100% - 64px), 1440px); max-width: 1440px; }
.post-content-wrap-wide { grid-template-columns: minmax(0, var(--narrow)) 170px; }
.post-content-wrap-no-image { padding-top: 22px; }
.single-post-no-image .post-header { padding-bottom: 62px; }
.post-content-wrap-toc { grid-template-columns: 190px minmax(0, var(--narrow)) 170px; align-items: start; gap: clamp(22px, 4vw, 70px); }
.post-content-wrap-toc .post-share { grid-column: 3; grid-row: 1; }
.post-toc { position: sticky; top: 28px; min-width: 0; padding-top: 8px; }
.post-toc ol { display: grid; gap: 8px; margin: 16px 0 0; padding: 0 0 0 16px; border-left: 1px solid var(--line); list-style: none; }
.post-toc li { margin: 0; }
.post-toc li.toc-level-h3 { padding-left: 10px; }
.post-toc a { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.post-toc a:hover,
.post-toc a:focus-visible,
.post-toc a.is-active { color: var(--accent-dark); }
.related-posts { padding-top: var(--preset-section-y, 78px); padding-bottom: 20px; border-top: 1px solid var(--line); }
.related-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--preset-card-gap, 24px); }
.post-neighbors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.post-neighbor { display: grid; gap: 9px; min-width: 0; padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink); }
.post-neighbor-next { text-align: right; }
.post-neighbor strong { overflow: hidden; font-family: var(--preset-heading-font, var(--serif)); font-size: 20px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.code-block { position: relative; overflow: auto; }
.code-copy-button { position: absolute; z-index: 1; top: 10px; right: 10px; padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--bg) 34%, transparent); border-radius: var(--preset-control-radius, 4px); background: color-mix(in srgb, var(--bg) 10%, transparent); color: var(--bg); font: 10px/1 var(--mono); cursor: pointer; }
.code-copy-button:hover,
.code-copy-button:focus-visible,
.code-copy-button.is-copied { border-color: var(--accent-readable); background: var(--accent-readable); color: var(--accent-on-readable); }
.gh-content img[data-zoom-ready] { cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.gh-content img[data-zoom-ready].is-zoomed { position: relative; z-index: 4; transform: scale(1.035); cursor: zoom-out; box-shadow: 0 22px 60px color-mix(in srgb, var(--ink) 22%, transparent); }

/* Preset ownership for v1.8 modules. */
body[data-design-preset="Editorial Warm"] .directory-hero,
body[data-design-preset="Editorial Warm"] .layout-hero { background: color-mix(in srgb, var(--surface) 42%, var(--bg)); }
body[data-design-preset="Editorial Warm"] .topic-directory-copy strong,
body[data-design-preset="Editorial Warm"] .author-directory-copy strong,
body[data-design-preset="Editorial Warm"] .sidebar-story strong { font-weight: 400; }
body[data-design-preset="Modern Contrast"] .directory-hero,
body[data-design-preset="Modern Contrast"] .layout-hero { background: var(--ink); color: var(--bg); border-bottom: 0; }
body[data-design-preset="Modern Contrast"] .directory-intro,
body[data-design-preset="Modern Contrast"] .layout-hero-intro { color: color-mix(in srgb, var(--bg) 70%, transparent); }
body[data-design-preset="Modern Contrast"] .topic-directory-card,
body[data-design-preset="Modern Contrast"] .author-directory-card { border-color: var(--ink); }
body[data-design-preset="Modern Contrast"] .topic-directory-card:hover,
body[data-design-preset="Modern Contrast"] .author-directory-card:hover { background: var(--accent-readable); color: var(--accent-on-readable); }
body[data-design-preset="Modern Contrast"] .topic-directory-card:hover span,
body[data-design-preset="Modern Contrast"] .author-directory-card:hover span { color: var(--accent-on-readable); }
body[data-design-preset="Soft Magazine"] .directory-hero,
body[data-design-preset="Soft Magazine"] .layout-hero { border-bottom: 0; }
body[data-design-preset="Soft Magazine"] .topic-directory-card,
body[data-design-preset="Soft Magazine"] .author-directory-card,
body[data-design-preset="Soft Magazine"] .sidebar-module,
body[data-design-preset="Soft Magazine"] .layout-featured-lead { border: 0; box-shadow: var(--preset-shadow); }
body[data-design-preset="Soft Magazine"] .topic-directory-card:hover,
body[data-design-preset="Soft Magazine"] .author-directory-card:hover { transform: translateY(-4px); }
body[data-design-preset="Minimal Mono"] .directory-hero,
body[data-design-preset="Minimal Mono"] .layout-hero { border-bottom: 2px solid var(--ink); background: var(--bg); }
body[data-design-preset="Minimal Mono"] .topic-directory-card,
body[data-design-preset="Minimal Mono"] .author-directory-card,
body[data-design-preset="Minimal Mono"] .sidebar-module,
body[data-design-preset="Minimal Mono"] .layout-featured-lead { border: 2px solid var(--ink); border-radius: 0; box-shadow: none; }
body[data-design-preset="Minimal Mono"] .topic-directory-copy strong,
body[data-design-preset="Minimal Mono"] .author-directory-copy strong,
body[data-design-preset="Minimal Mono"] .sidebar-story strong { font-family: var(--sans); font-weight: 650; }
body[data-design-preset="Minimal Mono"] .post-toc a,
body[data-design-preset="Minimal Mono"] .post-neighbor .eyebrow,
body[data-design-preset="Minimal Mono"] .code-copy-button { font-family: var(--mono); }
body[data-design-preset="Ink & Paper"] .directory-hero,
body[data-design-preset="Ink & Paper"] .layout-hero { background: var(--bg); }
body[data-design-preset="Ink & Paper"] .gh-content { text-align: justify; hyphens: auto; }
body[data-design-preset="Ink & Paper"] .topic-directory-grid,
body[data-design-preset="Ink & Paper"] .author-directory-grid { grid-template-columns: 1fr; }
body[data-design-preset="Ink & Paper"] .topic-directory-card,
body[data-design-preset="Ink & Paper"] .author-directory-card { border-width: 1px 0; border-right: 0; border-left: 0; border-radius: 0; }
body[data-design-preset="Digital Bloom"] .directory-hero,
body[data-design-preset="Digital Bloom"] .layout-hero { border: 0; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
body[data-design-preset="Digital Bloom"] .topic-directory-card,
body[data-design-preset="Digital Bloom"] .author-directory-card,
body[data-design-preset="Digital Bloom"] .layout-featured-lead { border: 0; box-shadow: var(--preset-shadow); }
body[data-design-preset="Digital Bloom"] .topic-directory-card:hover,
body[data-design-preset="Digital Bloom"] .author-directory-card:hover { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); transform: translateY(-5px) rotate(-.35deg); }
body[data-design-preset="Quiet Grid"] .directory-hero,
body[data-design-preset="Quiet Grid"] .layout-hero { border-bottom: 1px solid var(--ink); background: var(--bg); }
body[data-design-preset="Quiet Grid"] .topic-directory-card,
body[data-design-preset="Quiet Grid"] .author-directory-card,
body[data-design-preset="Quiet Grid"] .sidebar-module,
body[data-design-preset="Quiet Grid"] .layout-featured-lead { border-color: var(--ink); border-radius: 0; box-shadow: none; }
body[data-design-preset="Quiet Grid"] .topic-directory-card:hover,
body[data-design-preset="Quiet Grid"] .author-directory-card:hover { background: var(--surface-deep); transform: none; }

@media (max-width: 900px) {
    .layout-featured-hero-grid,
    .layout-sidebar-grid { grid-template-columns: 1fr; }
    .layout-featured-intro { max-width: 640px; }
    .layout-sidebar-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-content-wrap-toc { grid-template-columns: minmax(0, var(--narrow)) 170px; }
    .post-content-wrap-toc .post-toc { display: none; }
    .post-content-wrap-toc .post-share { grid-column: 2; }
}

@media (max-width: 680px) {
    .topic-directory-grid,
    .author-directory-grid,
    .related-post-grid,
    .post-neighbors,
    .layout-sidebar-rail { grid-template-columns: 1fr; }
    .layout-featured-lead { grid-template-columns: 1fr; }
    .layout-featured-lead img { min-height: 250px; max-height: 360px; }
    .layout-featured-lead-copy { padding: 28px 24px 32px; }
    .post-list-layout .post-card { grid-template-columns: 1fr; gap: 18px; }
    .post-list-layout .post-card-image { max-width: none; }
    .post-content-wrap-toc { grid-template-columns: 1fr; }
    .post-content-wrap-toc .post-share { grid-column: 1; }
    .post-neighbor-next { text-align: left; }
    .post-neighbor strong { white-space: normal; }
    .post-feature-image-wide { width: calc(100% - 40px); }
    .directory-hero h1,
    .layout-hero h1 { letter-spacing: -.06em; }
}

@media (prefers-reduced-motion: reduce) {
    .topic-directory-card,
    .author-directory-card,
    .code-copy-button,
    .gh-content img[data-zoom-ready] { transition: none; }
}

/* Accessible accent tokens: decorative --accent remains expressive; readable UI uses these mode-aware values. */
:root {
    --accent-readable: #a94b2f;
    --accent-on-readable: #fff;
}
body[data-theme="Light"],
body[data-theme="System"] {
    --accent-readable: #a94b2f;
    --accent-on-readable: #fff;
}
body[data-theme="Dark"] {
    --accent-readable: #ef8a64;
    --accent-on-readable: #171a18;
}
@media (prefers-color-scheme: dark) {
    body[data-theme="System"] {
        --accent-readable: #ef8a64;
        --accent-on-readable: #171a18;
    }
}

/* Ensure readable tokens win over older preset declarations in every mode. */
body[data-theme="Light"] .button:hover,
body[data-theme="System"] .button:hover { color: var(--accent-on-readable); }
body[data-theme="Dark"] .button:hover { color: var(--accent-on-readable); }
body[data-theme="Light"] .newsletter-submit,
body[data-theme="System"] .newsletter-submit,
body[data-theme="Dark"] .newsletter-submit { color: var(--accent-on-readable); }

/* End of v1.8 color accessibility layer. */


/* v1.8.1 sticky header layer — mode-aware, preset-aware and safe for mobile navigation. */
html { scroll-padding-top: 96px; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.header-inner { transition: min-height .24s ease, padding .24s ease; }
.site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-bottom-color: color-mix(in srgb, var(--line) 90%, transparent);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 10%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
}
.site-header.is-menu-open { z-index: 120; }
.site-header.is-scrolled .header-inner { min-height: 72px; }
body[data-header-style="Centered"] .site-header.is-scrolled .header-inner {
    min-height: 104px;
    padding-top: 13px;
    padding-bottom: 10px;
}
body[data-header-style="Compact"] .site-header.is-scrolled .header-inner { min-height: 60px; }
.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 2px solid var(--accent-readable);
    outline-offset: 4px;
}

/* Preserve each preset's surface language while the header is elevated. */
body[data-design-preset="Editorial Warm"] .site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 8%, transparent);
}
body[data-design-preset="Modern Contrast"] .site-header.is-scrolled {
    background: color-mix(in srgb, var(--ink) 96%, transparent);
    border-bottom-color: color-mix(in srgb, var(--bg) 24%, transparent);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 24%, transparent);
}
body[data-design-preset="Soft Magazine"] .site-header.is-scrolled {
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent);
    box-shadow: 0 12px 34px color-mix(in srgb, var(--ink) 10%, transparent);
}
body[data-design-preset="Minimal Mono"] .site-header.is-scrolled,
body[data-design-preset="Quiet Grid"] .site-header.is-scrolled {
    background: var(--bg);
    border-bottom-color: var(--ink);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
body[data-design-preset="Ink & Paper"] .site-header.is-scrolled {
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    border-bottom-color: var(--ink);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
body[data-design-preset="Digital Bloom"] .site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 18%, transparent);
}

.post-content h2,
.post-content h3,
.post-content h4,
[data-toc-content] [id] { scroll-margin-top: 112px; }

@media (max-width: 900px) {
    html { scroll-padding-top: 80px; }
    .site-header.is-scrolled .header-inner { min-height: 66px; }
    body[data-header-style="Centered"] .site-header.is-scrolled .header-inner { min-height: 76px; padding-block: 0; }
    .post-content h2,
    .post-content h3,
    .post-content h4,
    [data-toc-content] [id] { scroll-margin-top: 88px; }
}

@media (max-width: 680px) {
    html { scroll-padding-top: 72px; }
    .site-header.is-scrolled .header-inner,
    body[data-header-style="Centered"] .site-header.is-scrolled .header-inner,
    body[data-header-style="Compact"] .site-header.is-scrolled .header-inner {
        min-height: 64px;
        padding-block: 0;
    }
    .site-header.is-scrolled .header-actions { top: 64px; }
    .site-header.is-scrolled .brand-logo { max-height: 30px; }
    .post-content h2,
    .post-content h3,
    .post-content h4,
    [data-toc-content] [id] { scroll-margin-top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .site-header,
    .header-inner { transition: none; }
}

body[data-design-preset="Modern Contrast"] .menu-toggle span:not(.sr-only) { background: var(--bg); }

/* End of v1.8.1 sticky header layer. */


/* v1.8.3 scroll-to-top utility */
.scroll-to-top {
    position: fixed;
    inset-inline-end: clamp(1rem, 3vw, 2rem);
    inset-block-end: clamp(1rem, 3vw, 2rem);
    z-index: 190;
    display: inline-grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(.75rem);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.scroll-to-top.is-visible:not([hidden]) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top span {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-.06rem);
}

.scroll-to-top:hover {
    border-color: var(--accent-readable);
    background: var(--accent-readable);
    color: var(--accent-on-readable);
}

.scroll-to-top:focus-visible {
    outline: 3px solid var(--accent-readable);
    outline-offset: 3px;
}

body[data-design-preset="Editorial Warm"] .scroll-to-top,
body[data-design-preset="Ink & Paper"] .scroll-to-top {
    border-radius: 0;
    box-shadow: none;
    font-family: var(--preset-heading-font);
}

body[data-design-preset="Modern Contrast"] .scroll-to-top {
    border-radius: 0;
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
    box-shadow: none;
}

body[data-design-preset="Modern Contrast"] .scroll-to-top:hover {
    border-color: var(--accent-readable);
    background: var(--accent-readable);
    color: var(--accent-on-readable);
}

body[data-design-preset="Soft Magazine"] .scroll-to-top,
body[data-design-preset="Digital Bloom"] .scroll-to-top {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 1.1rem;
    box-shadow: var(--shadow-lg, var(--shadow));
}

body[data-design-preset="Digital Bloom"] .scroll-to-top {
    border-color: var(--accent-readable);
    background: var(--accent-readable);
    color: var(--accent-on-readable);
}

body[data-design-preset="Digital Bloom"] .scroll-to-top:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
}

body[data-design-preset="Minimal Mono"] .scroll-to-top,
body[data-design-preset="Quiet Grid"] .scroll-to-top {
    border-radius: 0;
    box-shadow: none;
}

body[data-design-preset="Minimal Mono"] .scroll-to-top span,
body[data-design-preset="Quiet Grid"] .scroll-to-top span {
    font-family: var(--preset-heading-font);
    font-size: 1rem;
}

@media (max-width: 640px) {
    .scroll-to-top {
        inset-inline-end: 1rem;
        inset-block-end: calc(1rem + env(safe-area-inset-bottom));
        width: 2.65rem;
        height: 2.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: none;
    }
}


/* v1.8.4 Ghost editor-card hardening */
.gh-content .kg-card { width: 100%; max-width: 100%; }
.gh-content .kg-card img { max-width: 100%; height: auto; }
.gh-content .kg-card figcaption { margin: 10px auto 0; color: var(--muted); font: 12px/1.5 var(--sans); text-align: center; }
.gh-content .kg-width-wide,
.gh-content .kg-width-full { max-width: none; }

.gh-content .kg-image-card { overflow: hidden; }
.gh-content .kg-image-card img { display: block; width: 100%; }
.gh-content .kg-gallery-card { overflow: hidden; border-radius: var(--radius); }
.gh-content .kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.gh-content .kg-gallery-row { display: flex; gap: 8px; }
.gh-content .kg-gallery-image { min-width: 0; overflow: hidden; flex: 1 1 0; }
.gh-content .kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.gh-content .kg-embed-card { width: 100%; }
.gh-content .kg-embed-card iframe,
.gh-content .kg-embed-card object,
.gh-content .kg-embed-card embed { display: block; width: 100%; max-width: 100%; min-height: 320px; border: 0; }
.gh-content .kg-embed-card > div { max-width: 100%; }
.gh-content .kg-video-card { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.gh-content .kg-video-card video { display: block; width: 100%; height: auto; }
.gh-content .kg-video-card .kg-video-container { position: relative; overflow: hidden; }
.gh-content .kg-video-card .kg-video-large { width: 100%; }
.gh-content .kg-audio-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--sans); }
.gh-content .kg-audio-card audio { width: 100%; min-width: 0; }
.gh-content .kg-audio-card .kg-audio-play-icon { flex: 0 0 auto; }

.gh-content .kg-blockquote-alt { margin: 2em 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 22px; font-style: italic; line-height: 1.4; }
.gh-content .kg-button-card { text-align: center; }
.gh-content .kg-button-card .kg-btn,
.gh-content .kg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--bg); font: 700 13px/1 var(--sans); text-decoration: none; transition: opacity .2s ease, transform .2s ease; }
.gh-content .kg-button-card .kg-btn:hover,
.gh-content .kg-button-card .kg-btn:focus-visible,
.gh-content .kg-btn:hover,
.gh-content .kg-btn:focus-visible { opacity: .82; transform: translateY(-1px); }
.gh-content .kg-button-card .kg-btn-accent { border-color: var(--accent-readable); background: var(--accent-readable); color: var(--accent-on-readable); }

.gh-content .kg-callout-card { align-items: flex-start; border: 1px solid var(--line); }
.gh-content .kg-callout-card .kg-callout-emoji { flex: 0 0 auto; line-height: 1.4; }
.gh-content .kg-callout-card .kg-callout-text { min-width: 0; }
.gh-content .kg-file-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--sans); }
.gh-content .kg-file-card-container { display: flex; align-items: center; gap: 16px; padding: 18px 20px; color: var(--ink); text-decoration: none; }
.gh-content .kg-file-card-contents { min-width: 0; flex: 1; }
.gh-content .kg-file-card-title,
.gh-content .kg-file-card-caption { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-content .kg-file-card-title { margin-bottom: 4px; font-size: 15px; font-weight: 700; }
.gh-content .kg-file-card-caption,
.gh-content .kg-file-card-metadata { color: var(--muted); font-size: 12px; line-height: 1.4; }
.gh-content .kg-file-card-icon { flex: 0 0 auto; }
.gh-content .kg-file-card-icon svg { display: block; width: 28px; height: 28px; }
.gh-content .kg-file-card-uploader { flex: 0 0 auto; }

.gh-content .kg-header-card { overflow: hidden; padding: clamp(26px, 5vw, 64px); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-align: center; }
.gh-content .kg-header-card-content { max-width: 720px; margin: 0 auto; }
.gh-content .kg-header-card h2,
.gh-content .kg-header-card h3 { margin: 0 0 12px; color: inherit; font-family: var(--serif); font-size: clamp(30px, 5vw, 58px); line-height: 1; }
.gh-content .kg-header-card h2 + p,
.gh-content .kg-header-card h3 + p { margin: 0; color: inherit; opacity: .78; }
.gh-content .kg-nft-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--sans); }
.gh-content .kg-nft-card a { color: var(--ink); text-decoration: none; }
.gh-content .kg-nft-card img { display: block; width: 100%; }
.gh-content .kg-nft-card .kg-nft-metadata { padding: 16px 18px; }
.gh-content .kg-nft-card .kg-nft-title { margin: 0 0 6px; font-size: 16px; }
.gh-content .kg-nft-card .kg-nft-creator { color: var(--muted); font-size: 12px; line-height: 1.45; }

.gh-content .kg-product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--sans); }
.gh-content .kg-product-card-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 38%); align-items: stretch; }
.gh-content .kg-product-card-image { width: 100%; height: 100%; object-fit: cover; }
.gh-content .kg-product-card-content { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 22px; }
.gh-content .kg-product-card-title { margin: 0; color: var(--ink); font-size: 18px; font-weight: 700; }
.gh-content .kg-product-card-description,
.gh-content .kg-product-card-rating { color: var(--muted); font-size: 13px; line-height: 1.5; }
.gh-content .kg-product-card-button { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 40px; padding: 10px 16px; border-radius: var(--radius); background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; text-decoration: none; }
.gh-content .kg-toggle-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gh-content .kg-toggle-card + .kg-toggle-card { margin-top: -1px; border-radius: 0; }
.gh-content .kg-toggle-heading { display: flex; align-items: center; gap: 12px; padding: 18px 20px; color: var(--ink); font: 700 15px/1.35 var(--sans); cursor: pointer; }
.gh-content .kg-toggle-heading svg { flex: 0 0 auto; }
.gh-content .kg-toggle-content { padding: 0 20px 18px; }
.gh-content .kg-toggle-card[open] .kg-toggle-heading { border-bottom: 1px solid var(--line); }
.gh-content .kg-signup-card { padding: clamp(24px, 5vw, 50px); border-radius: var(--radius); background: var(--surface); font-family: var(--sans); text-align: center; }
.gh-content .kg-signup-card-content { max-width: 580px; margin: 0 auto; }
.gh-content .kg-signup-card-heading { margin: 0 0 8px; color: var(--ink); font-family: var(--serif); font-size: clamp(24px, 4vw, 40px); }
.gh-content .kg-signup-card-subheading { color: var(--muted); font-size: 14px; line-height: 1.5; }
.gh-content .kg-signup-card-form { display: flex; gap: 8px; margin-top: 20px; }
.gh-content .kg-signup-card-input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); }
.gh-content .kg-signup-card-button { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--bg); font: 700 12px/1 var(--sans); }

body[data-design-preset="Modern Contrast"] .gh-content .kg-card,
body[data-design-preset="Minimal Mono"] .gh-content .kg-card { border-radius: 0; }
body[data-design-preset="Modern Contrast"] .gh-content .kg-button-card .kg-btn,
body[data-design-preset="Minimal Mono"] .gh-content .kg-button-card .kg-btn,
body[data-design-preset="Minimal Mono"] .gh-content .kg-btn { border-radius: 0; }
body[data-design-preset="Soft Magazine"] .gh-content .kg-card,
body[data-design-preset="Digital Bloom"] .gh-content .kg-card { border-radius: 18px; }
body[data-design-preset="Digital Bloom"] .gh-content .kg-button-card .kg-btn,
body[data-design-preset="Digital Bloom"] .gh-content .kg-btn { border-radius: 999px; }
body[data-design-preset="Ink & Paper"] .gh-content .kg-card { border-color: var(--ink); border-radius: 0; box-shadow: 4px 4px 0 var(--ink); }
body[data-design-preset="Quiet Grid"] .gh-content .kg-card { border-radius: 0; box-shadow: none; }
body[data-design-preset="Quiet Grid"] .gh-content .kg-card,
body[data-design-preset="Quiet Grid"] .gh-content .kg-card button,
body[data-design-preset="Quiet Grid"] .gh-content .kg-card input { font-family: var(--mono); }

@media (max-width: 640px) {
    .gh-content .kg-gallery-row { gap: 4px; }
    .gh-content .kg-audio-card { align-items: flex-start; flex-direction: column; }
    .gh-content .kg-product-card-container { grid-template-columns: 1fr; }
    .gh-content .kg-product-card-image { max-height: 280px; }
    .gh-content .kg-signup-card-form { align-items: stretch; flex-direction: column; }
    .gh-content .kg-signup-card-button { min-height: 44px; }
    .gh-content .kg-embed-card iframe,
    .gh-content .kg-embed-card object,
    .gh-content .kg-embed-card embed { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    .gh-content .kg-button-card .kg-btn,
    .gh-content .kg-btn { transition: none; }
}
