/* DoubleTick Editorial — a Superblog template.
   Follows the doubletick.io style guide: Hedvig Letters Serif for display,
   Geist for text, Geist Mono for labels and buttons; deep green and cream;
   hairline borders and near-square corners.

   1. Tokens        2. Base & type      3. Chrome (nav, footer, buttons)
   4. Listings      5. Post page        6. Article content (prose)
   7. Utilities & responsive                                                */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300..700&family=Geist+Mono:wght@400..600&family=Hedvig+Letters+Serif:opsz@12..24&display=swap");

/* ── 1. Tokens ───────────────────────────────────────────────── */
:root {
    /* brand */
    --green-950: #021a0f;
    --green-900: #042717;
    --green-800: #004421;
    --primary: #007a5a;
    --primary-hover: #00664b;
    --green-500: #37986a;
    --green-400: #27b578;
    --mint: #f4fef8;

    /* neutrals, warm like the site's cream sections */
    --ink: #131316;
    --ink-2: #2a2a2e;
    --ink-soft: #52525b;
    --ink-faint: #70707b;
    --paper: #ffffff;
    --paper-soft: #f5f4ec;
    --paper-deep: #ecebe2;
    --line: #dcdbd3;
    --line-soft: #e9e8e1;
    --accent: var(--primary);

    --serif: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
    --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --shell: 1180px;
    --measure: 690px;
    --radius: 4px;
    --radius-small: 2px;
    --nav-h: 68px;
}

/* ── 2. Base & type ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: #cdeedd; color: var(--green-900); }
:focus-visible { outline: 2px solid var(--green-400); outline-offset: 2px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

.eyebrow {
    margin: 0;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow-green, a.eyebrow-green { color: var(--primary); }
a.eyebrow:hover, .eyebrow a:hover { color: var(--green-800); }

.meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 13.5px;
    color: var(--ink-faint);
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.55; display: inline-block; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ── 3. Chrome ───────────────────────────────────────────────── */

/* Reading progress */
.dt-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0;
    background: var(--primary); z-index: 60; transition: width 0.08s linear;
}

/* Buttons — mono, near-square, as on doubletick.io */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--mono); font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em;
    line-height: 1; padding: 13px 20px; border-radius: var(--radius-small);
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: var(--ink-soft); background: transparent; border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-soft); }
.btn-sm { padding: 9px 14px; font-size: 12.5px; }
.btn-lg { padding: 16px 26px; font-size: 14.5px; }
.btn-block { width: 100%; }

.icon-btn {
    display: inline-grid; place-items: center; width: 36px; height: 36px;
    border-radius: var(--radius-small); color: var(--ink-soft); background: transparent;
    border: 1px solid transparent; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--ink); border-color: var(--line); background: var(--paper); }
.icon-btn.is-done { color: var(--primary); border-color: var(--primary); }

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.nav-fixed { position: sticky; top: 0; z-index: 50; }
.nav-inner {
    max-width: var(--shell); margin: 0 auto; padding: 0 28px; height: var(--nav-h);
    display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 19px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 22px; color: var(--green-900); }
.brand-section {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-faint); padding-left: 16px; margin-left: -12px; border-left: 1px solid var(--line);
    line-height: 20px;
}
.brand-section:hover { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a, .nav-dropdown > summary {
    font-size: 14.5px; color: var(--ink-2); padding: 8px 12px; border-radius: var(--radius-small);
    cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px;
}
.nav-links > a:hover, .nav-dropdown > summary:hover { color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-chevron { width: 14px; height: 14px; transition: transform 0.15s; }
.nav-dropdown[open] .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 6px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 20px 48px -18px rgba(4, 39, 23, 0.25);
}
.nav-dropdown-menu a { display: block; padding: 9px 12px; font-size: 14px; border-radius: var(--radius-small); }
.nav-dropdown-menu a:hover { background: var(--paper-soft); color: var(--primary); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* Footer — mirrors the doubletick.io footer: a framed column on a dotted
   ground, contacts and badges, the app box, five columns, a dotted wordmark. */
.sf {
    background-color: var(--paper);
    background-image: radial-gradient(rgba(19, 19, 22, 0.14) 1px, transparent 1.2px);
    background-size: 8px 8px;
    border-top: 1px solid var(--line-soft);
}
.sf-frame {
    max-width: 1118px; margin: 0 auto; background: var(--paper);
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    padding: 72px 44px 0; overflow: hidden;
}
.sf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.sf-logo { width: 261px; height: 32px; }
.sf-mail { margin: 18px 0 0; font-size: 16px; color: var(--ink); display: flex; flex-wrap: wrap; gap: 6px; }
.sf-mail span { color: var(--ink-faint); }
.sf-mail a:hover { color: var(--primary); }
.sf-badges { display: flex; align-items: center; gap: 40px; }
.sf-badges img { height: auto; }
.sf-app {
    margin-top: 40px; padding: 22px 20px; border: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.sf-app-text { margin: 8px 0 0; font-size: 16px; color: var(--ink); }
.sf-stores { display: flex; gap: 20px; }
.sf-stores img { height: 40px; width: auto; }
.sf-grid {
    margin-top: 52px; display: grid; gap: 40px 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr);
}
.sf-col h3 { margin: 0 0 20px; }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-col a { font-size: 16px; line-height: 1.4; color: var(--ink); }
.sf-col a:hover { color: var(--primary); }
.sf-address p { margin: 0 0 10px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.sf-address h3 + .sf-co { margin-top: -6px; }
.sf-address h3:not(:first-child) { margin-top: 26px; }
.sf-bottom { margin-top: 96px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sf-legal p { margin: 0 0 8px; font-family: var(--mono); font-size: 15px; color: var(--ink-soft); }
.sf-social { display: flex; gap: 18px; color: #373737; }
.sf-social a { display: inline-flex; transition: transform 0.2s, color 0.2s; }
.sf-social a:hover { transform: scale(1.1); color: var(--primary); }
.sf-social svg { width: 22px; height: 22px; }
.sf-wordmark { display: block; width: 100%; height: auto; margin: 48px 0 -2px; opacity: 0.38; }
@media (max-width: 980px) {
    .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-address { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .sf-frame { padding: 48px 20px 0; border: 0; }
    .sf-logo { width: 163px; height: 20px; }
    .sf-badges { gap: 20px; }
    .sf-badges img:first-child { width: 31px; }
    .sf-badges img:last-child { width: 70px; }
    .sf-stores img { height: 36px; }
    .sf-bottom { margin-top: 56px; }
}

/* Cookie notice — Superblog injects #cookie-consent on every page; this styles it. */
#cookie-consent, .cookie-consent {
    position: fixed !important; left: 20px; bottom: 20px; right: auto; top: auto; z-index: 70;
    width: auto; max-width: 340px; margin: 0;
    background: var(--paper) !important; color: var(--ink-soft);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px; box-shadow: 0 24px 56px -22px rgba(4, 39, 23, 0.35);
    font-family: var(--sans); font-size: 13.5px; line-height: 1.5;
}
.cookie-consent .cookie-desc { margin: 0 0 12px; }
.cookie-consent .cookie-desc a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent .cookie-buttons { display: flex; gap: 8px; }
.cookie-consent button {
    font-family: var(--mono); font-size: 12.5px; font-weight: 500; line-height: 1;
    padding: 9px 14px; border-radius: var(--radius-small); cursor: pointer;
    border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
}
.cookie-consent button.accept { background: var(--primary); border-color: var(--primary); color: #fff; }
.cookie-consent button.accept:hover { background: var(--primary-hover); }
.cookie-consent button.decline:hover { color: var(--ink); border-color: var(--ink-soft); }
@media (max-width: 640px) { #cookie-consent, .cookie-consent { left: 12px; right: 12px; bottom: 84px; max-width: none; } }

/* ── 4. Listings ─────────────────────────────────────────────── */

/* Hero — cream, a dotted texture like the site's section dividers */
.hero {
    background-color: var(--paper-soft);
    background-image: radial-gradient(rgba(4, 39, 23, 0.11) 1px, transparent 1.2px);
    background-size: 14px 14px;
    background-position: center top;
    border-bottom: 1px solid var(--line-soft);
}
.hero-inner { padding-top: 88px; padding-bottom: 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title {
    margin: 22px 0 0; max-width: 880px;
    font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 62px);
    line-height: 1.1; letter-spacing: -0.015em; color: var(--green-900);
    text-wrap: balance;
}
.hero-caption { margin: 20px 0 0; max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); text-wrap: balance; }
.hero-search {
    margin-top: 34px; width: 100%; max-width: 520px; position: relative;
    display: flex; align-items: center;
}
.hero-search svg { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--ink-faint); pointer-events: none; }
.hero-search input {
    width: 100%; height: 50px; padding: 0 18px 0 46px; font: inherit; font-size: 15px;
    background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-small);
    box-shadow: 0 1px 0 rgba(4, 39, 23, 0.04);
}
.hero-search input::placeholder { color: var(--ink-faint); }
.hero-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(39, 181, 120, 0.18); }

.section { padding-top: 72px; padding-bottom: 8px; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding-bottom: 18px; margin-bottom: 32px; border-bottom: 1px solid var(--ink);
}
.section-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -0.01em; color: var(--ink); }

/* The pinned story */
.section-lead { padding-top: 64px; }
.lead {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.lead-media {
    display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
    border: 1px solid var(--line-soft); background: var(--paper-soft);
}
.lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.lead:hover .lead-media img { transform: scale(1.025); }
.lead-body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.pin-mark {
    display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
    padding: 4px 8px; border: 1px solid var(--ink); border-radius: var(--radius-small); font-size: 11px;
}
.lead-title {
    margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance;
}
.lead-title a:hover { color: var(--primary); }
.lead-excerpt { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.lead-body .btn { margin-top: 6px; }
.lead-more {
    margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-soft);
}
.lead-mini { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 4px 0; }
.lead-mini + .lead-mini { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.lead-mini-title { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.lead-mini:hover .lead-mini-title { color: var(--primary); }

/* Card grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }
.card { display: flex; flex-direction: column; gap: 18px; }
.card-media {
    display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
    border: 1px solid var(--line-soft); background: var(--paper-soft);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.035); }
.card-media-empty {
    display: block; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(4, 39, 23, 0.12) 1px, transparent 1.2px); background-size: 12px 12px;
}
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; }
.card-title a { transition: color 0.2s; }
.card-cta {
    margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--primary);
}
.card-cta-arrow { display: inline-block; transition: transform 0.25s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-cta-arrow, .card-cta:hover .card-cta-arrow { transform: translateX(4px); }
.card:hover .card-cta { color: var(--primary-hover); }
@media (prefers-reduced-motion: reduce) { .card-cta-arrow { transition: none; } }

/* CTA band */
.cta-band { margin: 88px 0 0; }
.cta-band-inner {
    max-width: calc(var(--shell) - 56px); margin: 0 auto; padding: 56px 56px;
    background: var(--mint);
    background-image: radial-gradient(rgba(0, 122, 90, 0.12) 1px, transparent 1.2px); background-size: 14px 14px;
    border: 1px solid #cfe9dc; border-radius: var(--radius);
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
}
.shell .cta-band-inner, .cta-band .cta-band-inner { width: calc(100% - 56px); }
.cta-copy h2 { margin: 14px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; color: var(--green-900); letter-spacing: -0.01em; }
.cta-copy p:not(.eyebrow) { margin: 14px 0 0; color: var(--ink-soft); font-size: 16.5px; }
.cta-action { display: flex; justify-content: flex-end; }

/* Chips & tiles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-soft);
    border: 1px solid var(--line); border-radius: 999px; background: var(--paper); transition: all 0.15s;
}
.chip:hover { color: var(--primary); border-color: var(--primary); }
.chip span { color: var(--ink-faint); }
.chips-cloud { gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tile { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; transition: background 0.15s; }
.tile:hover { background: var(--paper-soft); }
.tile-name { font-family: var(--serif); font-size: 22px; }
.tile-count { font-family: var(--mono); font-size: 12px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em; }

/* List rows, Medium-style */
.section-list { padding-top: 88px; }
.list { display: flex; flex-direction: column; }
.row {
    display: grid; grid-template-columns: 1fr 200px; gap: 40px; align-items: center;
    padding: 28px 0; border-bottom: 1px solid var(--line-soft);
}
.row:first-child { padding-top: 4px; }
.row-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-kicker { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.row-kicker a { color: var(--primary); }
.row-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.22; letter-spacing: -0.01em; }
.row-title a:hover { color: var(--primary); }
.row-excerpt { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-soft); border: 1px solid var(--line-soft); }
.row-media img { width: 100%; height: 100%; object-fit: cover; }

/* Pager */
.pager { margin: 48px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pager-step { font-family: var(--mono); font-size: 13px; color: var(--ink); padding: 10px 0; }
.pager-step:hover { color: var(--primary); }
.pager-step.is-disabled { color: var(--line); }
.pager-pages { display: flex; align-items: center; gap: 4px; }
.pager-num {
    min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 8px;
    font-family: var(--mono); font-size: 13px; color: var(--ink-soft); border: 1px solid transparent; border-radius: var(--radius-small);
}
.pager-num:hover { border-color: var(--line); color: var(--ink); }
.pager-num.is-current { background: var(--green-900); color: #fff; }
.pager-gap { color: var(--ink-faint); padding: 0 4px; }

/* Page headers (category, tag, author, search, page 2+) */
.page-head {
    background-color: var(--paper-soft);
    background-image: radial-gradient(rgba(4, 39, 23, 0.1) 1px, transparent 1.2px); background-size: 14px 14px;
    border-bottom: 1px solid var(--line-soft);
}
.page-head .shell { padding-top: 64px; padding-bottom: 56px; }
.page-title { margin: 16px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.1; letter-spacing: -0.015em; color: var(--green-900); }
.page-sub { margin: 14px 0 0; font-size: 17px; color: var(--ink-soft); max-width: 640px; }
.page-count { margin: 18px 0 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }
.page-head .hero-search { margin-top: 28px; }
.author-head { display: flex; gap: 28px; align-items: center; }
.page-404 .btn { margin-top: 26px; }
.search-results { margin: 0; padding: 0; }
.search-results li { list-style: none; }
.search-results .row { grid-template-columns: 1fr; }
.search-empty { color: var(--ink-faint); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.crumbs a:hover { color: var(--primary); }

/* ── 5. Post page ────────────────────────────────────────────── */
.post { padding-top: 64px; }
.post-head { max-width: calc(var(--measure) + 56px); margin: 0 auto; padding: 0 28px; }
.post-title {
    margin: 18px 0 0; font-family: var(--serif); font-weight: 400;
    font-size: clamp(32px, 4vw, 44px); line-height: 1.14; letter-spacing: -0.016em;
    color: var(--ink); text-wrap: balance;
}
.post-dek { margin: 18px 0 0; font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.byline {
    margin-top: 32px; padding: 18px 0; display: flex; align-items: center; gap: 14px;
    border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.avatar {
    width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; background: var(--green-900); color: #fff;
    font-family: var(--serif); font-size: 19px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.avatar-xl { width: 104px; height: 104px; font-size: 42px; }
.byline-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 0 1 auto; }
.byline-name { font-weight: 500; font-size: 15px; color: var(--ink); }
.byline-name:hover { color: var(--primary); }
.byline-co { font-size: 15px; color: var(--ink-soft); margin-left: 4px; }
.byline .meta { font-size: 13.5px; }
.byline .share { margin-left: auto; }
.share { display: flex; gap: 2px; }

.post-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr);
    gap: 0 56px; max-width: 1360px; margin: 0 auto; padding: 44px 28px 0;
}
.post-layout-single { grid-template-columns: minmax(0, var(--measure)); justify-content: center; }
.post-toc-rail, .post-side-rail { position: relative; }
.post-main { min-width: 0; }

/* Table of contents — quiet rail on the left */
.toc { position: sticky; top: calc(var(--nav-h) + 36px); max-width: 240px; margin-left: auto;
    opacity: 0.55; transition: opacity 0.25s; max-height: calc(100vh - var(--nav-h) - 72px); overflow-y: auto; scrollbar-width: thin; }
.toc:hover, .toc:focus-within { opacity: 1; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 1px solid var(--line-soft); }
.toc a {
    display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent;
    font-size: 13.5px; line-height: 1.4; color: var(--ink-faint); transition: color 0.15s, border-color 0.15s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--green-900); border-left-color: var(--primary); font-weight: 500; }
.toc-mobile { display: none; margin: 0 0 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); }
.toc-mobile summary { padding: 14px 16px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-count { font-family: var(--mono); font-size: 12px; color: var(--primary); }
.toc-mobile ol { margin: 0; padding: 0 16px 14px 34px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-soft); }

/* Sidebar CTA — on the right rail */
.side-cta {
    max-width: 250px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper-soft); display: flex; flex-direction: column; gap: 12px;
}
.side-cta { position: sticky; top: calc(var(--nav-h) + 36px); transition: opacity 0.4s, transform 0.4s; }
/* With JavaScript, the card waits until the reader is about 30% into the article. */
.dt-js .side-cta { opacity: 0; transform: translateY(10px); pointer-events: none; }
.dt-js .side-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .side-cta, .toc { transition: none; } }
.side-cta h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.25; color: var(--green-900); }
.side-cta p:not(.eyebrow) { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.side-cta .btn { margin-top: 4px; }

/* End-of-article furniture */
.faqs { margin-top: 56px; }
.faqs h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 16px; }
.faq { border-bottom: 1px solid var(--line-soft); }
.faq summary { padding: 18px 32px 18px 0; cursor: pointer; font-weight: 500; font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--mono); font-size: 20px; color: var(--primary); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 20px; color: var(--ink-soft); line-height: 1.7; }
.tags { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-share-end { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; }
.author-card {
    margin-top: 40px; padding: 28px; display: flex; gap: 20px; align-items: flex-start;
    border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--paper);
}
.author-card-name { display: block; margin-top: 6px; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.author-card-bio { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.author-links { margin: 10px 0 0; display: flex; gap: 14px; font-family: var(--mono); font-size: 12.5px; }
.author-links a { color: var(--primary); }

.adjacent { margin-top: 72px; margin-bottom: 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.adjacent-card {
    display: flex; flex-direction: column; gap: 10px; padding: 26px 28px;
    border: 1px solid var(--line-soft); border-radius: var(--radius); transition: border-color 0.15s, background 0.15s;
}
.adjacent-card:hover { border-color: var(--ink); background: var(--paper-soft); }
.adjacent-next { text-align: right; align-items: flex-end; }
.adjacent-title { font-family: var(--serif); font-size: 22px; line-height: 1.25; }

/* End of a post: the CTA and previous/next share the reading column. */
.post-end { max-width: calc(var(--measure) + 56px); margin: 64px auto 96px; padding: 0 28px; }
.post-end .cta-band { margin: 0; }
.post-end .cta-band-inner {
    width: 100%; max-width: none; padding: 36px 36px 38px;
    grid-template-columns: 1fr; gap: 24px; align-items: start;
}
.post-end .cta-copy h2 { font-size: clamp(26px, 2.6vw, 32px); }
.post-end .cta-copy p:not(.eyebrow) { font-size: 16px; }
.post-end .cta-action { justify-content: flex-start; }
.post-end .btn-lg { padding: 14px 22px; font-size: 13.5px; }
.post-end .adjacent { margin: 24px 0 0; padding: 0; max-width: none; gap: 16px; }
.post-end .adjacent-card { padding: 22px 24px; }
.post-end .adjacent-card:only-child { grid-column: 1 / -1; }
.post-end .adjacent-card:only-child.adjacent-next { text-align: left; align-items: flex-start; }
.post-end .adjacent-title { font-size: 20px; }

/* Lead forms */
.lead-form { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; max-width: 440px; }
.lead-form input {
    flex: 1 1 200px; height: 46px; padding: 0 14px; font: inherit; font-size: 15px;
    border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--paper);
}
.lead-form input:focus { outline: none; border-color: var(--primary); }
.lead-form .btn { height: 46px; }
.lead-form-stack { flex-direction: column; }
.lead-form-stack input { flex: none; }
.lead-message { width: 100%; margin: 4px 0 0; font-size: 14px; color: var(--primary); }

/* ── 6. Article content ──────────────────────────────────────── */
.prose {
    font-size: 18px; line-height: 1.62; color: var(--ink-2);
    overflow-wrap: break-word;
}
.prose > :first-child { margin-top: 0 !important; }
.prose p { margin: 0 0 1.1em; }
.prose span[style] { background-color: transparent !important; }

/* The old editor leaves empty paragraphs (<p><br></p>) as spacers */
.prose p:empty { display: none; }
.prose p.is-spacer { display: none; }
.prose br + br { display: none; }

.prose h2, .prose h3, .prose h4 { color: var(--ink); scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 {
    margin: 2.1em 0 0.65em; font-family: var(--serif); font-weight: 400;
    font-size: 1.6em; line-height: 1.24; letter-spacing: -0.012em;
}
.prose h3 { margin: 1.8em 0 0.5em; font-family: var(--sans); font-weight: 600; font-size: 1.15em; line-height: 1.35; letter-spacing: -0.01em; }
.prose h4 { margin: 1.6em 0 0.4em; font-weight: 600; font-size: 1.05em; }
.prose h2 strong, .prose h3 strong, .prose h4 strong { font-weight: inherit; }
.prose strong, .prose b { font-weight: 600; color: var(--ink); }

.prose a {
    color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px;
    text-underline-offset: 3px; text-decoration-color: rgba(0, 122, 90, 0.35);
    border-bottom: 0 !important;
}
.prose a:hover { text-decoration-color: currentColor; }

.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { margin: 0.3em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--primary); }
.prose ol > li::marker { font-family: var(--mono); font-size: 0.85em; }
.prose li > p { margin: 0 0 0.4em; }

.prose blockquote {
    margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--primary);
    font-family: var(--serif); font-size: 1.12em; line-height: 1.55; color: var(--ink);
}
.prose blockquote p { margin: 0.4em 0; }
.prose blockquote em { font-style: normal; }

.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em auto; width: 40%; }

/* Images and figures — the cover image (first figure) runs wider than the text */
.prose figure, .prose .se-component { margin: 2.2em 0 !important; }
.prose figure img, .prose .se-image-container img, .prose > p > img {
    width: 100%; height: auto !important; border-radius: var(--radius); border: 1px solid var(--line-soft);
}
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-faint); text-align: center; }
.prose > .se-component:first-child { margin: 0 -60px 2.4em !important; }
.prose > .se-component:first-child figure { margin: 0 !important; }

/* Video */
.prose .se-video-container figure { position: relative; height: 0 !important; padding-bottom: 56.25% !important; width: 100% !important; }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--radius); }
.prose .se-video-container iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

/* Tables — wrapped for horizontal scroll by dt.js */
.table-wrap { margin: 2em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.prose td, .prose th { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; text-align: left; }
.prose td + td, .prose th + th { border-left: 1px solid var(--line-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose thead th, .prose tbody tr:first-child td { background: var(--paper-soft); font-weight: 600; color: var(--ink); }
.prose td p, .prose td div { margin: 0 !important; text-align: left !important; }
.prose td > p + p { margin-top: 0.5em !important; }
.prose td br:last-child { display: none; }

/* Code and the old "Editor's desk" link blocks (pre with inline styles) */
.prose code { font-family: var(--mono); font-size: 0.85em; padding: 2px 6px; background: var(--paper-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-small); }
.prose pre {
    margin: 2em 0; padding: 24px 26px; background: var(--paper-soft) !important; color: var(--ink) !important;
    border: 1px solid var(--line) !important; border-left: 2px solid var(--primary) !important; border-radius: var(--radius) !important;
    white-space: pre-wrap; font-family: var(--sans) !important; font-size: 16px; line-height: 1.7; overflow-x: auto;
}
.prose pre * { font-family: inherit !important; font-size: inherit !important; border: 0 !important; }
.prose pre a { color: var(--primary) !important; text-decoration: underline !important; text-decoration-color: rgba(0,122,90,.35) !important; }
.prose pre strong:first-child { display: block; font-family: var(--mono) !important; font-size: 12px !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.prose pre code { padding: 0; background: none; border: 0; }

/* Editor leftovers: stray icon buttons and heading anchors */
.prose > div:not([class]):has(> button) { display: none; }
.prose .sb-heading-anchor { display: none; }

/* ── 7. Responsive ───────────────────────────────────────────── */
@media (max-width: 1180px) {
    .post-layout { grid-template-columns: minmax(0, var(--measure)); justify-content: center; }
    .post-toc-rail, .post-side-rail { display: none; }
    .toc-mobile { display: block; }
    .prose > .se-component:first-child { margin: 0 0 2.4em !important; }
}
@media (max-width: 980px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lead { grid-template-columns: 1fr; gap: 28px; }
    .lead-more { grid-template-columns: 1fr; }
    .lead-mini + .lead-mini { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
    .cta-band-inner { grid-template-columns: 1fr; padding: 40px 32px; }
    .cta-action { justify-content: flex-start; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
    .nav-links {
        display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0;
        flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
        background: var(--paper); border-bottom: 1px solid var(--line);
    }
    .nav.is-open .nav-links { display: flex; }
    .nav-links > a, .nav-dropdown > summary { padding: 12px 4px; font-size: 16px; }
    .nav-dropdown-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
    .nav-toggle { display: inline-grid; }
    .nav-end { margin-left: auto; }
    .nav-end .btn { padding: 10px 14px; font-size: 12.5px; }
    .brand-section { display: none; }
}
@media (max-width: 640px) {
    .shell, .nav-inner, .post-head, .post-layout { padding-left: 20px; padding-right: 20px; }
    .hero-inner { padding-top: 56px; padding-bottom: 52px; }
    .grid { grid-template-columns: 1fr; gap: 40px; }
    .row { grid-template-columns: 1fr 96px; gap: 18px; padding: 22px 0; }
    .row-title { font-size: 20px; }
    .row-excerpt { display: none; }
    .section { padding-top: 52px; }
    .section-title { font-size: 27px; }
    .pager-pages { display: none; }
    .post { padding-top: 40px; }
    .prose { font-size: 17px; line-height: 1.6; }
    .byline { flex-wrap: wrap; }
    .byline-text { flex: 1 1 0; }
    .byline .share { margin-left: 0; width: 100%; padding-top: 10px; border-top: 1px solid var(--line-soft); }
    .adjacent { grid-template-columns: 1fr; }
    .adjacent-next { text-align: left; align-items: flex-start; }
    .cta-band .cta-band-inner { width: calc(100% - 40px); padding: 32px 24px; }
    .post-end { padding: 0 20px; margin: 48px auto 72px; }
    .post-end .cta-band-inner { width: 100%; padding: 28px 22px; }
    .author-head { flex-direction: column; align-items: flex-start; }
    .colophon { flex-direction: column; }
    .nav-end #menu-cta { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   Simple layout — restrained, editorial (inspired by heypocket.com/blog):
   no hero band, one featured story, four cards, a text-only list, and a
   centred narrow article without side rails. DoubleTick fonts and colours.
   ════════════════════════════════════════════════════════════════════ */
.s-meta { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: var(--ink-faint); }
.s-meta a, .s-cat { color: var(--ink); font-weight: 500; }
.s-meta a:hover { color: var(--primary); }
.s-link { display: inline-flex; gap: 6px; align-items: center; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 15px; color: var(--primary); }
.s-link span { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.s-link:hover span { transform: translateX(3px); }

/* Title row: title on the left; caption and search on the right, sitting on
   the title's baseline; a hairline under the whole block. */
.s-head {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end;
    padding-top: 64px; padding-bottom: 40px; position: relative;
}
.s-head::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 1px; background: var(--line-soft); }
.s-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.s-head-side { display: flex; flex-direction: column; gap: 18px; padding-bottom: 6px; }
.s-caption { margin: 0; color: var(--ink-faint); font-size: 16.5px; line-height: 1.55; max-width: 46ch; text-wrap: pretty; }
.s-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 380px; }
.s-search svg { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--ink-faint); }
.s-search input { width: 100%; height: 42px; padding: 0 16px 0 40px; font: inherit; font-size: 14.5px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.s-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 122, 90, .12); }
@media (max-width: 860px) { .s-head { grid-template-columns: 1fr; gap: 18px; } .s-head-side { padding-bottom: 0; } }

/* Featured story */
.s-feature { margin-top: 64px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.s-feature-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--paper-soft); }
.s-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.s-feature:hover .s-feature-media img { transform: scale(1.02); }
.s-feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.s-feature-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.s-feature-title a:hover { color: var(--primary); }
.s-feature-excerpt { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* Four small cards */
.s-cards { margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.s-card { display: flex; flex-direction: column; gap: 12px; }
.s-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: var(--paper-soft); }
.s-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.s-card:hover .s-card-media img { transform: scale(1.03); }
.s-card-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; letter-spacing: -0.005em; }
.s-card-title a:hover { color: var(--primary); }
.s-arrow { color: var(--ink-faint); font-family: var(--sans); font-size: 0.8em; transition: color .2s; }
.s-card:hover .s-arrow { color: var(--primary); }
.section .s-cards, .s-cards.s-cards-page { margin-top: 0; }

/* All posts: text only */
.s-all { padding-top: 96px; }
.s-section-title { margin: 0 0 20px; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.01em; }
.s-list { border-top: 1px solid var(--line-soft); }
.s-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.s-row-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.s-row-title { font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--ink); transition: color .2s; }
.s-row:hover .s-row-title { color: var(--primary); }
.s-row-excerpt { font-size: 14.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-row-date { font-size: 13px; color: var(--ink-faint); white-space: nowrap; }
.s-all .pager { margin-top: 36px; }
.s-all ~ .cta-band { margin-top: 96px; }

/* Article */
.s-post { padding-top: 40px; }
.s-post-top { max-width: 980px; margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-faint); }
.s-back:hover { color: var(--primary); }
.s-post-head { max-width: 860px; margin: 48px auto 0; padding: 0 28px; text-align: center; }
.s-post-cat { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.s-post .post-title { margin: 14px auto 0; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.12; max-width: 820px; }
.s-post .post-dek { margin: 18px auto 0; max-width: 620px; font-size: 18px; color: var(--ink-soft); }
.s-byline { margin-top: 26px; display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; font-size: 14px; color: var(--ink-faint); }
.s-byline .byline-name { font-size: 14px; }
.avatar-sm { width: 28px; height: 28px; font-size: 13px; }
.s-byline .share { margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line-soft); }
.s-byline .icon-btn { width: 30px; height: 30px; }
.s-byline .icon-btn svg { width: 16px; height: 16px; }
.s-post-body { max-width: calc(640px + 56px); margin: 48px auto 0; padding: 0 28px; }
.s-post .prose { font-size: 18px; line-height: 1.62; }
.s-cover { max-width: calc(940px + 56px); margin: 44px auto 0; padding: 0 28px; }
.s-cover:empty { display: none; }
.s-cover > * { margin: 0 !important; }
.s-cover figure { margin: 0 !important; }
.s-cover img { width: 100%; height: auto; border-radius: 8px; }
.s-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px) minmax(0, 1fr); gap: 0 56px; padding: 0 28px; max-width: 1360px; margin: 0 auto; }
.s-layout .s-post-body { max-width: none; padding: 0; margin-top: 48px; }
.s-rail { display: block; padding-top: 52px; }
.s-layout.has-toc .s-rail .toc { margin-left: auto; }
.s-layout.has-toc .s-toc { display: none; }
.s-rail-right .side-cta { margin-top: 0; }
.s-post .prose h2 { font-size: 1.5em; margin-top: 2em; }
.s-post .prose h3 { font-size: 1.12em; }
.s-toc { display: block; margin: 0 0 40px; background: transparent; border-color: var(--line-soft); }
.s-post .author-card { margin-top: 56px; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; padding: 32px 0 0; }
.s-post .tags { margin-top: 40px; }
.s-adjacent { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-soft); }
.s-adjacent a { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; }
.s-adjacent a.s-next { text-align: right; align-items: flex-end; grid-column: 2; }
.s-adjacent-title { font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.s-adjacent a:hover .s-adjacent-title { color: var(--primary); }
.post-end { max-width: calc(640px + 56px); }
.post-end .cta-band-inner { border-radius: 8px; }

@media (max-width: 1180px) {
    .s-layout, .s-layout.has-toc { grid-template-columns: minmax(0, 640px); justify-content: center; }
    .s-rail { display: none; }
    .s-layout.has-toc .s-toc { display: block; }
}
@media (max-width: 1100px) {
    .s-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .s-feature { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
    .s-head { padding-top: 36px; padding-bottom: 28px; }
    .s-head::after { left: 20px; right: 20px; }
    .s-search { width: 100%; }
    .s-cards { grid-template-columns: 1fr; margin-top: 48px; }
    .s-row { grid-template-columns: 1fr; gap: 6px; }
    .s-row-excerpt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .s-post-top, .s-post-head, .s-layout, .s-cover { padding-left: 20px; padding-right: 20px; }
    .s-post-head { margin-top: 32px; }
    .s-byline .share { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; justify-content: center; }
    .s-adjacent { grid-template-columns: 1fr; }
    .s-adjacent a.s-next { grid-column: 1; text-align: left; align-items: flex-start; border-top: 1px solid var(--line-soft); }
}
