:root { color-scheme:light dark; --bg:#f5f0e6; --paper:#fffdf8; --surface:#fffdf8; --surface-2:#eee6d7; --text:#171717; --muted:#6d665d; --line:#27231e; --soft-line:#d7cbb7; --brand:#bb2d2d; --brand-strong:#861e1e; --accent:#b48a54; --content:1280px; }
html[data-theme="dark"] { --bg:#171717; --paper:#211f1b; --surface:#211f1b; --surface-2:#302c26; --text:#f7f0e4; --muted:#bdb4a6; --line:#f2e8d8; --soft-line:#514a40; --brand:#ef6a62; --brand-strong:#ff9a91; --accent:#d9b780; }
@media(prefers-color-scheme:dark){html:not([data-theme="light"]){--bg:#171717;--paper:#211f1b;--surface:#211f1b;--surface-2:#302c26;--text:#f7f0e4;--muted:#bdb4a6;--line:#f2e8d8;--soft-line:#514a40;--brand:#ef6a62;--brand-strong:#ff9a91;--accent:#d9b780}}
body { background:var(--bg); color:var(--text); font-family:Georgia,"Times New Roman",serif; line-height:1.62; }
.edition-frame { width:min(100%,1480px); margin-inline:auto; background:var(--paper); box-shadow:0 0 0 1px color-mix(in srgb,var(--line) 12%,transparent); }
.site-header { padding-inline:clamp(1rem,4vw,4rem); background:var(--paper); }
.edition-line { min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:1rem; border-bottom:1px solid var(--line); color:var(--muted); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; }
.masthead { display:grid; place-items:center; padding:clamp(1.7rem,4vw,3.5rem) 0; border-bottom:4px double var(--line); text-align:center; }
.brand { display:grid; justify-items:center; gap:.65rem; color:var(--text); text-decoration:none; }
.brand-logo,.brand-mark { width:58px; height:58px; object-fit:contain; }
.brand-mark { display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-weight:900; }
.brand-copy { display:grid; }
.brand-copy strong { font-size:clamp(2.6rem,7vw,6.5rem); font-weight:700; line-height:.85; letter-spacing:-.065em; }
.brand-copy span { margin-top:.8rem; color:var(--muted); font-size:.78rem; font-style:italic; letter-spacing:.04em; }
.nav-line { min-height:58px; display:flex; align-items:center; justify-content:center; gap:1rem; border-bottom:1px solid var(--line); position:sticky; z-index:100; top:0; background:var(--paper); }
.main-nav ul { display:flex; justify-content:center; flex-wrap:wrap; gap:0; margin:0; padding:0; list-style:none; }
.main-nav a { display:block; padding:.75rem 1rem; color:var(--text); font-family:ui-sans-serif,system-ui,sans-serif; font-size:.78rem; font-weight:800; letter-spacing:.08em; text-decoration:none; text-transform:uppercase; }
.main-nav a:hover,.main-nav a[aria-current="page"] { color:var(--brand); text-decoration:underline; text-decoration-thickness:2px; }
.menu-toggle,.theme-toggle { border:1px solid var(--line); border-radius:0; padding:.5rem .65rem; background:transparent; color:var(--text); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.72rem; text-transform:uppercase; }
.edition-body { padding-inline:clamp(1rem,4vw,4rem); }
.site-shell { width:min(100%,var(--content)); margin:clamp(2rem,5vw,4.5rem) auto; display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:clamp(2rem,4vw,4rem); align-items:start; }
.hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.82fr); border-top:5px solid var(--line); border-bottom:1px solid var(--line); background:var(--paper); }
.hero:not(.has-image){grid-template-columns:1fr;}
.hero-copy { align-self:center; padding:clamp(2rem,5vw,5rem) clamp(0rem,3vw,3rem) clamp(2rem,5vw,5rem) 0; }
.hero-copy h1,.article-header h1,.blog-header h1 { margin:0; font-size:clamp(3rem,8vw,7rem); font-weight:500; line-height:.9; letter-spacing:-.065em; text-wrap:balance; }
.hero-media { min-height:470px; border-left:1px solid var(--line); padding-left:1.25rem; }
.hero-media img { width:100%; height:100%; object-fit:cover; filter:saturate(.78) contrast(1.04); }
.eyebrow { margin:0 0 .9rem; color:var(--brand); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.7rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.content-card { border-top:5px solid var(--line); border-bottom:1px solid var(--line); }
.home-content-card { margin-top:2rem; }
.content-inner { padding:clamp(1.7rem,4vw,3.5rem) 0; }
.article-header,.blog-header { padding:clamp(1.7rem,4vw,3.5rem) 0; border-bottom:1px solid var(--line); }
.article-header h1,.blog-header h1 { max-width:15ch; font-size:clamp(2.8rem,7vw,6rem); }
.article-meta { margin-top:1.2rem; display:flex; flex-wrap:wrap; gap:.75rem 1.2rem; color:var(--muted); font-family:ui-sans-serif,system-ui,sans-serif; font-size:.78rem; text-transform:uppercase; }
.featured-image { max-height:700px; margin-top:1.4rem; border-bottom:1px solid var(--line); filter:saturate(.82); }
.prose { max-width:73ch; }
.prose p:first-of-type { font-size:1.18rem; }
.prose h2 { margin:1.8em 0 .5em; font-size:clamp(1.8rem,4vw,3rem); font-weight:500; letter-spacing:-.035em; }
.prose h3 { margin:1.6em 0 .5em; font-size:1.45rem; }
.prose blockquote { margin-inline:0; padding:1rem 0 1rem 1.5rem; border-left:4px solid var(--brand); color:var(--muted); font-size:1.25rem; font-style:italic; }
.prose code { padding:.1em .3em; background:var(--surface-2); font-size:.88em; }
.prose pre { padding:1.2rem; border:1px solid var(--line); background:var(--text); color:var(--paper); }
.sidebar { position:sticky; top:5rem; display:grid; gap:2rem; padding-left:1.5rem; border-left:1px solid var(--line); }
.sidebar-card { border-top:4px solid var(--line); padding-top:1rem; }
.sidebar-card h2 { margin:0 0 .8rem; font-family:ui-sans-serif,system-ui,sans-serif; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; }
.sidebar-list li+li,.link-list li+li { border-top:1px solid var(--soft-line); }
.sidebar-list a,.link-list a { display:block; padding:.8rem 0; color:var(--text); font-weight:700; line-height:1.28; text-decoration:none; }
.sidebar-list a:hover,.link-list a:hover { color:var(--brand); }
.sidebar-list time { margin-top:.3rem; color:var(--muted); font-family:ui-sans-serif,system-ui,sans-serif; font-size:.7rem; font-weight:400; }
.link-group+ .link-group { margin-top:1.2rem; }
.link-group h3 { margin:0; color:var(--muted); font-family:ui-sans-serif,system-ui,sans-serif; font-size:.68rem; text-transform:uppercase; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin:clamp(3rem,7vw,6rem) 0 1rem; padding-top:1rem; border-top:5px solid var(--line); }
.section-heading h2 { margin:0; font-size:clamp(2rem,5vw,3.6rem); font-weight:500; letter-spacing:-.045em; }
.post-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.post-card { border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--paper); }
.post-card:first-child { grid-column:1/-1; display:grid; grid-template-columns:1.15fr .85fr; }
.post-card:first-child>a { min-height:320px; }
.post-card img { height:100%; min-height:220px; aspect-ratio:4/3; filter:saturate(.8); }
.post-card-body { padding:1.25rem; }
.post-card time { color:var(--brand); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.68rem; text-transform:uppercase; }
.post-card h2,.post-card h3 { margin:.55rem 0; font-weight:500; font-size:clamp(1.35rem,3vw,2rem); line-height:1.08; }
.post-card p { margin:.65rem 0 0; color:var(--muted); }
.faq-section { margin-top:clamp(3rem,7vw,6rem); }
.faq-list { border-top:1px solid var(--line); }
.faq-item { border-bottom:1px solid var(--line); }
.faq-item summary { padding:1rem 0; font-size:1.15rem; font-weight:700; }
.faq-item div { padding:0 0 1.2rem; color:var(--muted); }
.pagination { margin-top:2rem; }
.pagination a,.pagination span { min-width:2.5rem; padding:.5rem .7rem; border:1px solid var(--line); color:var(--text); font-family:ui-sans-serif,system-ui,sans-serif; }
.pagination [aria-current="page"] { background:var(--text); color:var(--paper); }
.empty-state { padding:3rem 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); text-align:center; }
.site-footer { padding:0 clamp(1rem,4vw,4rem) 2.5rem; }
.footer-rule { height:5px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.footer-inner { min-height:190px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:2rem; }
.footer-label { margin:0!important; color:var(--brand)!important; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.66rem; text-transform:uppercase; }
.footer-inner strong { font-size:1.7rem; }
.footer-inner p { margin:.3rem 0 0; color:var(--muted); }
.copyright { grid-column:1/-1; margin-top:-2rem!important; font-family:ui-sans-serif,system-ui,sans-serif; font-size:.75rem; }
.social-icons a { width:38px; height:38px; border:1px solid var(--line); color:var(--text); }
.back-to-top { width:auto; height:38px; padding:0 .8rem; border:1px solid var(--line); border-radius:0; background:var(--paper); color:var(--text); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.7rem; text-transform:uppercase; }
@media(max-width:900px){.edition-line span:last-child{display:none}.menu-toggle{display:block}.nav-line{justify-content:flex-end}.main-nav ul{position:absolute;top:100%;right:0;left:0;display:none;padding:.75rem;background:var(--paper);border-bottom:1px solid var(--line)}.main-nav.is-open ul{display:grid}.site-shell{grid-template-columns:1fr}.sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr));padding-left:0;border-left:0}.hero{grid-template-columns:1fr}.hero-copy{padding-right:0}.hero-media{min-height:380px;padding:1rem 0 0;border-left:0;border-top:1px solid var(--line)}}
@media(max-width:640px){.site-header,.edition-body,.site-footer{padding-inline:.8rem}.brand-copy strong{font-size:clamp(2.8rem,17vw,4.5rem)}.brand-logo,.brand-mark{width:46px;height:46px}.theme-toggle-label{display:none}.hero-copy h1{font-size:clamp(2.7rem,17vw,4.5rem)}.post-grid{grid-template-columns:1fr}.post-card:first-child{grid-column:auto;display:block}.sidebar{grid-template-columns:1fr}.footer-inner{grid-template-columns:1fr;padding-block:2rem}.copyright{grid-column:auto;margin-top:0!important}}

/* Shared content and interaction rules */
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); }
.menu-toggle, .theme-toggle { font: inherit; cursor: pointer; }
.menu-toggle { display: none; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.content-area { min-width: 0; }
.prose { font-size: 1.04rem; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { text-wrap: balance; line-height: 1.15; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin-block: 1.05rem; }
.prose img { width: auto; height: auto; }
.prose pre { overflow-x: auto; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sidebar-list, .link-list { margin: 0; padding: 0; list-style: none; }
.sidebar-list time { display: block; }
.social-icons { display: flex; flex-wrap: wrap; gap: .6rem; }
.social-icons:empty { display: none; }
.social-icons a { display: grid; place-items: center; text-decoration: none; }
.social-icons svg { width: 19px; height: 19px; fill: currentColor; stroke: currentColor; stroke-width: 1.7; }
.featured-image { width: 100%; object-fit: cover; }
.post-card img { width: 100%; object-fit: cover; }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.faq-item summary { cursor: pointer; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.pagination a, .pagination span { text-decoration: none; text-align: center; }
.back-to-top { position: fixed; z-index: 90; right: 1rem; bottom: 1rem; opacity: 0; pointer-events: none; transform: translateY(.75rem); transition: opacity .2s ease, transform .2s ease; cursor: pointer; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
