:root {
    color-scheme: dark;
    --font-display: "Baskerville Old Face", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --font-ui: "Aptos", "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", sans-serif;
    --font-nav: "Aptos Display", "Trebuchet MS", "Segoe UI", sans-serif;
    --ink: #071525;
    --ink-2: #0b1f34;
    --navy: #102c48;
    --blue: #164263;
    --blue-soft: rgba(37, 91, 132, 0.22);
    --copper: #c97842;
    --bronze: #b8915a;
    --bronze-soft: rgba(201, 120, 66, 0.22);
    --ice: #8fcde0;
    --steel: #7f94a8;
    --ivory: #f3eadc;
    --muted: #abb6bf;
    --faint: rgba(243, 234, 220, 0.08);
    --line: rgba(243, 234, 220, 0.14);
    --panel: rgba(9, 31, 52, 0.68);
    --panel-strong: rgba(13, 39, 64, 0.82);
    --shadow: rgba(1, 7, 18, 0.52);
    --max: 1180px;
    --radius-lg: 34px;
    --radius-md: 22px;
    --ease: cubic-bezier(.2,.75,.2,1);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    background:
        radial-gradient(circle at 16% -4%, rgba(201, 120, 66, .28), transparent 34rem),
        radial-gradient(circle at 86% 10%, rgba(143, 205, 224, .18), transparent 36rem),
        radial-gradient(circle at 50% 105%, rgba(184, 145, 90, .18), transparent 42rem),
        linear-gradient(135deg, #061423 0%, #09243d 36%, #123656 68%, #081a2e 100%);
    color: var(--ivory);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 4px;
}

::selection {
    background: var(--copper);
    color: #071525;
}

.boot {
    display: grid;
    min-height: 100vh;
    place-items: center;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-shell {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    isolation: isolate;
}

.nav-shell {
    padding-top: 86px;
}

.ambient,
.grain,
.atlas-lines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: -3;
}

.ambient-one {
    background:
        radial-gradient(circle at 10% 18%, rgba(201, 120, 66, .20), transparent 22rem),
        radial-gradient(circle at 74% 14%, rgba(143, 205, 224, .16), transparent 29rem),
        radial-gradient(circle at 50% 102%, rgba(18, 62, 95, .34), transparent 34rem);
    filter: saturate(1.05);
}

.ambient-two {
    z-index: -2;
    background:
        linear-gradient(115deg, transparent 0%, rgba(6, 20, 35, .76) 44%, transparent 45%),
        linear-gradient(72deg, transparent 0%, rgba(201, 120, 66, .13) 54%, transparent 55%);
    opacity: .9;
}

.grain {
    z-index: -1;
    opacity: .18;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.7) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 10%, rgba(255,255,255,.55) 0 1px, transparent 1px),
        radial-gradient(circle at 42% 72%, rgba(255,255,255,.45) 0 1px, transparent 1px);
    background-size: 140px 160px, 190px 220px, 260px 240px;
    mix-blend-mode: overlay;
}

.atlas-lines {
    z-index: -2;
    opacity: .27;
    background-image:
        linear-gradient(rgba(143, 205, 224, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 145, 90, .085) 1px, transparent 1px);
    background-size: 86px 86px;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 76%, transparent);
}

.section-pad,
.footer {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(243, 234, 220, 0.1);
    border-top: 0;
    background:
        linear-gradient(145deg, rgba(242, 234, 219, .045), rgba(242, 234, 219, .018)),
        rgba(6, 18, 33, .34);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
}

.brand {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 1.9vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--copper);
}

.nav-links {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    gap: 28px;
    font-family: var(--font-nav);
    font-size: .86rem;
    letter-spacing: 0;
    color: var(--muted);
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    transition: color .2s ease, transform .2s ease;
}

.nav-links a:hover {
    color: var(--ivory);
}

.nav-cta {
    color: var(--ivory) !important;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(242, 234, 219, .035);
}

.nav-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(242, 234, 219, .24);
}

.section-pad {
    padding: 120px 0;
}

.hero {
    display: grid;
    min-height: calc(100vh - 78px);
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
    align-items: center;
    gap: 72px;
    padding-top: 42px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.pill-row span,
.stack-list span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid rgba(242, 234, 219, .14);
    border-radius: 999px;
    background: rgba(242, 234, 219, .045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    color: #d6cec2;
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow,
.section-kicker {
    margin: 0;
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--copper);
}

.hero h1,
.section-content h2,
.experience-heading h2,
.judgement-title h2,
.technical-ground h2,
.writing-heading h2,
.article-page h1 {
    margin: 0;
    text-wrap: balance;
    font-family: var(--font-display);
    font-weight: 640;
    letter-spacing: 0;
    line-height: .88;
    color: var(--ivory);
}

.hero h1 {
    max-width: 780px;
    margin-top: 18px;
    font-size: clamp(5rem, 12.4vw, 10.6rem);
}

.hero-line {
    max-width: 820px;
    margin: 34px 0 0;
    color: var(--ivory);
    font-size: clamp(1.65rem, 3.3vw, 3.35rem);
    line-height: .98;
    letter-spacing: 0;
    text-wrap: balance;
}

.hero-body,
.lead,
.experience-heading p,
.small-lead {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

.hero-body {
    max-width: 690px;
    margin: 28px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 42px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 19px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 650;
    transition: transform .22s var(--ease), background .22s ease, border-color .22s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--ivory);
    color: #071525;
    box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.button-secondary {
    border: 1px solid rgba(242, 234, 219, .16);
    background: rgba(242, 234, 219, .04);
    color: var(--ivory);
}

.button-secondary:hover {
    border-color: rgba(242, 234, 219, .3);
    background: rgba(242, 234, 219, .07);
}

.decision-atlas {
    position: relative;
    min-height: 640px;
}

.atlas-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(242, 234, 219, .13);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 78% 0%, rgba(201, 120, 66, .18), transparent 23rem),
        linear-gradient(145deg, rgba(7, 24, 42, .72), rgba(14, 48, 78, .58) 48%, rgba(34, 51, 60, .44));
    box-shadow: 0 34px 120px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(18px);
}

.atlas-main {
    min-height: 640px;
    padding: 28px;
}

.atlas-heading,
.atlas-labels {
    position: relative;
    z-index: 2;
}

.atlas-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #d4c6b3;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.atlas-svg {
    position: absolute;
    inset: 64px 10px 112px;
    width: calc(100% - 20px);
    height: calc(100% - 176px);
    opacity: .98;
}

.atlas-grid-path {
    fill: none;
    stroke: rgba(242,234,219,.085);
    stroke-width: 1;
}

.signal-path,
.branch-path,
.noise-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.signal-path {
    stroke: url(#signal);
    stroke-width: 3.4;
    filter: drop-shadow(0 0 10px rgba(144,216,196,.18));
    stroke-dasharray: 780;
    animation: draw 4s var(--ease) both, pulse-signal 5s ease-in-out infinite 4s;
}

.branch-path {
    stroke: rgba(143,205,224,.44);
    stroke-width: 1.4;
    stroke-dasharray: 7 12;
    animation: dash 18s linear infinite;
}

.branch-path.alt {
    stroke: rgba(201,120,66,.48);
}

.noise-path {
    stroke: rgba(242,234,219,.13);
    stroke-width: 1.2;
    stroke-dasharray: 2 12;
    animation: dash 24s linear infinite reverse;
}

.path-two {
    stroke: rgba(184,145,90,.22);
}

.node-ring {
    fill: none;
    stroke: rgba(242,234,219,.14);
    stroke-width: 1;
    animation: node-ring 4.6s ease-in-out infinite;
}

.node {
    fill: url(#node);
    filter: drop-shadow(0 0 16px rgba(201,120,66,.24));
}

.atlas-labels {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    display: grid;
    gap: 12px;
}

.atlas-labels div {
    padding: 17px 18px;
    border: 1px solid rgba(242, 234, 219, .12);
    border-radius: 18px;
    background: rgba(5, 19, 34, .62);
    backdrop-filter: blur(14px);
}

.atlas-labels strong,
.atlas-labels span {
    display: block;
}

.atlas-labels strong {
    margin-bottom: 5px;
    color: var(--ivory);
    font-size: .98rem;
}

.atlas-labels span {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.55;
}

.section-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 72px;
    border-top: 1px solid var(--line);
}

.section-content h2,
.experience-heading h2,
.judgement-title h2,
.technical-ground h2 {
    max-width: 900px;
    font-size: clamp(3rem, 6vw, 6.2rem);
}

.lead {
    max-width: 850px;
    margin: 34px 0 0;
    font-size: clamp(1.1rem, 1.7vw, 1.34rem);
}

.compact-top {
    padding-top: 20px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.value-card,
.timeline,
.judgement-panel,
.technical-ground {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(242,234,219,.055), rgba(242,234,219,.022));
    box-shadow: 0 26px 90px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(16px);
}

.value-card {
    min-height: 292px;
    padding: 28px;
    border-radius: var(--radius-md);
    transition: transform .28s var(--ease), border-color .28s ease, background .28s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 120, 66, .42);
    background: linear-gradient(145deg, rgba(201,120,66,.12), rgba(143,205,224,.055));
}

.card-index {
    display: block;
    margin-bottom: 72px;
    color: var(--copper);
    font-size: .76rem;
    letter-spacing: .16em;
}

.value-card h3,
.timeline-copy h3,
.judgement-panel h3 {
    margin: 0;
    color: var(--ivory);
    font-size: 1.14rem;
    font-weight: 650;
    letter-spacing: 0;
}

.value-card p,
.timeline-copy p,
.judgement-panel p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.78;
}

.experience-section {
    border-top: 1px solid var(--line);
}

.experience-heading {
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: end;
    gap: 52px;
    margin-bottom: 56px;
}

.experience-heading .section-kicker {
    margin-bottom: 22px;
}

.experience-heading p {
    margin: 0;
    max-width: 320px;
    font-size: .98rem;
}

.timeline {
    position: relative;
    overflow: hidden;
    padding: 16px 0;
    border-radius: var(--radius-lg);
}

.timeline::before {
    content: "";
    position: absolute;
    top: 54px;
    bottom: 54px;
    left: clamp(190px, 21vw, 260px);
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(242,234,219,.18), transparent);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: clamp(150px, 18vw, 230px) 28px 1fr;
    gap: 22px;
    align-items: start;
    padding: 34px 42px;
}

.timeline-year {
    color: var(--copper);
    font-size: .9rem;
    letter-spacing: .06em;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    margin-top: 4px;
    border: 1px solid rgba(242,234,219,.33);
    border-radius: 999px;
    background: var(--ink-2);
    box-shadow: 0 0 0 7px rgba(201,120,66,.08);
}

.timeline-copy {
    max-width: 730px;
}

.judgement-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 72px;
    border-top: 1px solid var(--line);
}

.judgement-title .section-kicker {
    margin-bottom: 22px;
}

.judgement-panel {
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.judgement-panel article {
    padding: 34px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 95% 16%, rgba(143,205,224,.065), transparent 16rem),
        rgba(7, 27, 46, .46);
}

.judgement-panel article:last-child {
    border-bottom: 0;
}

.technical-ground {
    margin-top: 0;
    border-radius: var(--radius-lg);
    padding: 56px;
}

.technical-ground .section-kicker {
    margin-bottom: 20px;
}

.technical-ground h2 {
    max-width: 820px;
    font-size: clamp(2.5rem, 5vw, 5rem);
}

.small-lead {
    max-width: 800px;
    margin-top: 28px;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.stack-list span {
    background: rgba(7, 24, 42, .56);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 52px;
    padding: 32px 0 72px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .92rem;
}

.footer div {
    display: flex;
    gap: 22px;
}

.footer a:hover {
    color: var(--ivory);
}

.floating-top {
    position: fixed;
    right: 26px;
    bottom: 24px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(242, 234, 219, .18);
    border-radius: 999px;
    background: rgba(7, 21, 37, .72);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    color: var(--copper);
    font-size: 1.2rem;
    line-height: 1;
    backdrop-filter: blur(14px);
    transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.floating-top:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 120, 66, .4);
    background: rgba(7, 21, 37, .88);
    color: var(--ivory);
}

.not-found {
    display: grid;
    min-height: 100vh;
    place-content: center;
    gap: 20px;
    text-align: center;
}

.reveal {
    animation: reveal .85s var(--ease) both;
}

.delay-one { animation-delay: .16s; }

@keyframes reveal {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes draw {
    from { stroke-dashoffset: 780; }
    to { stroke-dashoffset: 0; }
}

@keyframes pulse-signal {
    0%, 100% { opacity: .82; }
    50% { opacity: 1; filter: drop-shadow(0 0 18px rgba(144,216,196,.24)); }
}

@keyframes dash {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -220; }
}

@keyframes node-ring {
    0%, 100% { transform: scale(1); opacity: .55; }
    50% { transform: scale(1.08); opacity: .86; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

@media (max-width: 1060px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 40px;
    }

    .decision-atlas {
        min-height: 520px;
    }

    .atlas-main {
        min-height: 520px;
    }

    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-grid,
    .judgement-section,
    .experience-heading {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .experience-heading p {
        max-width: 680px;
    }
}

@media (max-width: 740px) {
    .section-pad,
    .footer {
        width: min(100% - 32px, var(--max));
    }

    .nav {
        width: auto;
        padding: 14px 14px 12px;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .brand {
        font-size: clamp(1.2rem, 6vw, 1.45rem);
    }

    .nav-links {
        display: flex;
        flex: 0 0 100%;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 12px 16px;
        font-size: .8rem;
    }

    .nav-cta {
        padding: 7px 12px;
    }

    .nav-shell {
        padding-top: 112px;
    }

    .section-pad {
        padding: 84px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 36px;
    }

    .hero h1 {
        font-size: clamp(4.4rem, 23vw, 7rem);
    }

    .hero-line {
        font-size: clamp(2rem, 10vw, 3.1rem);
    }

    .decision-atlas {
        min-height: 430px;
    }

    .atlas-main {
        min-height: 430px;
        padding: 20px;
    }

    .atlas-svg {
        inset: 54px -36px 128px;
        width: calc(100% + 72px);
        height: calc(100% - 182px);
    }

    .atlas-heading {
        font-size: .62rem;
    }

    .atlas-labels {
        right: 18px;
        bottom: 18px;
        left: 18px;
    }

    .atlas-labels div {
        padding: 14px 15px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        min-height: 0;
    }

    .card-index {
        margin-bottom: 42px;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        grid-template-columns: 26px 1fr;
        gap: 16px;
        padding: 30px 22px;
    }

    .timeline-year {
        grid-column: 2;
        grid-row: 1;
    }

    .timeline-marker {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin-top: 4px;
    }

    .timeline-copy {
        grid-column: 2;
    }

    .technical-ground {
        padding: 30px;
    }

    .footer {
        flex-direction: column;
    }

    .floating-top {
        right: 18px;
        bottom: 18px;
        width: 46px;
        height: 46px;
    }
}

/* Writing */
.writing-section {
    border-top: 1px solid var(--line);
}

.writing-heading {
    max-width: 980px;
    margin-bottom: 56px;
}

.writing-heading .section-kicker {
    margin-bottom: 22px;
}

.writing-heading h2,
.article-page h1 {
    margin: 0;
    text-wrap: balance;
    color: var(--ivory);
    font-weight: 640;
    letter-spacing: 0;
    line-height: .94;
}

.writing-heading h2 {
    max-width: 980px;
    font-size: clamp(3rem, 6vw, 6rem);
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.writing-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.writing-card {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 90% 6%, rgba(201,120,66,.11), transparent 16rem),
        linear-gradient(145deg, rgba(242,234,219,.055), rgba(242,234,219,.022));
    box-shadow: 0 26px 90px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
    padding: 28px;
    backdrop-filter: blur(16px);
    transition: transform .28s var(--ease), border-color .28s ease, background .28s ease;
}

.writing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 120, 66, .42);
    background:
        radial-gradient(circle at 92% 0%, rgba(143,205,224,.095), transparent 16rem),
        linear-gradient(145deg, rgba(201,120,66,.105), rgba(242,234,219,.03));
}

.writing-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--copper);
    font-size: .76rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.writing-card h3 {
    margin: 42px 0 0;
    color: var(--ivory);
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    line-height: 1;
    letter-spacing: 0;
}

.writing-card p {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.78;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.tag-list span {
    border: 1px solid rgba(242, 234, 219, .12);
    border-radius: 999px;
    padding: 6px 9px;
    color: #d6cec2;
    font-size: .72rem;
}

.writing-card a {
    margin-top: auto;
    color: var(--ivory);
    font-size: .9rem;
    font-weight: 650;
}

.writing-card a::after {
    content: " →";
    color: var(--copper);
}

.article-shell {
    min-height: 100vh;
    padding: 48px 0 96px;
}

.archive-shell {
    min-height: 100vh;
}

.archive-hero {
    padding-bottom: 40px;
}

.archive-heading {
    max-width: 980px;
}

.archive-heading h1,
.empty-state h2 {
    margin: 18px 0 0;
    font-family: var(--font-display);
    color: var(--ivory);
    letter-spacing: 0;
    text-wrap: balance;
}

.archive-heading h1 {
    font-size: clamp(3.4rem, 7vw, 6.8rem);
    line-height: .92;
}

.archive-listing {
    padding-top: 24px;
}

.archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty-state {
    max-width: 720px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(242,234,219,.055), rgba(242,234,219,.022));
    box-shadow: 0 26px 90px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
}

.empty-state h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: .98;
}

.empty-state p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.article-page {
    position: relative;
    z-index: 2;
    width: min(840px, calc(100% - 48px));
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(242,234,219,.055), rgba(242,234,219,.022));
    box-shadow: 0 34px 120px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
    padding: clamp(30px, 6vw, 68px);
    backdrop-filter: blur(18px);
}

.back-link {
    display: inline-flex;
    margin-bottom: 44px;
    color: var(--muted);
    font-size: .9rem;
}

.back-link:hover {
    color: var(--ivory);
}

.article-page h1 {
    margin-top: 18px;
    font-size: clamp(3.2rem, 8vw, 6.8rem);
}

.article-summary {
    max-width: 720px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.75;
}

.article-meta {
    margin-top: 34px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.markdown-body {
    margin-top: 44px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote {
    margin: 0 0 1.45rem;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    margin: 2.2rem 0 1rem;
    color: var(--ivory);
    letter-spacing: 0;
    line-height: 1.08;
}

.markdown-body blockquote {
    border-left: 2px solid var(--copper);
    padding-left: 20px;
    color: #d6cec2;
}

.markdown-body a {
    color: var(--ivory);
    border-bottom: 1px solid rgba(201,120,66,.6);
}

.loading-copy {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 100vh;
    place-items: center;
    color: var(--muted);
}

@media (max-width: 1060px) {
    .writing-grid {
        grid-template-columns: 1fr;
    }

    .writing-card {
        min-height: 0;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 740px) {
    .article-page {
        width: min(100% - 32px, 840px);
        border-radius: 26px;
    }

    .writing-card h3 {
        margin-top: 30px;
    }
}
