:root {
    color-scheme: dark;
    --ink: #080a0c;
    --panel: #111417;
    --text: #f2ecdf;
    --muted: #c4bfb7;
    --gold: #e0bd75;
    --stroke: #534529;
    --shell: 76rem;
    --warm-highlight: #ffe3aa;
    --focus-ring: var(--warm-highlight);
    --metal-ink: #18120a;
    --metal-edge: #b18348;
    --metal-face: linear-gradient(138deg, #f2d59c 0%, #d9b16a 36%, #c49852 76%, #b78a48 100%);
    --metal-face-hover: linear-gradient(138deg, #fae1ae 0%, #e4bc76 36%, #cc9e56 76%, #be914d 100%);
    --metal-face-pressed: linear-gradient(318deg, #efcc88, #c69a53 76%);
    --metal-bevel: inset 0 1px 0 #fff0ccad, inset 0 -2px 0 #6843198a;
    --metal-shadow: 0 2px 0 #62451f, 0 5px 9px #0009;
    --surface-brass: linear-gradient(180deg, #947649, #382b19);
    --surface-face: radial-gradient(ellipse at 4% 0%, #30282d8a, transparent 65%),
        linear-gradient(150deg, #1d1e23 0%, var(--panel) 67%, #0e1014 100%);
    --surface-featured: radial-gradient(ellipse at 8% 0%, #47361dba, transparent 74%),
        linear-gradient(150deg, #252126 0%, var(--panel) 66%, #101115 100%);
    --surface-recessed: linear-gradient(145deg, #131219, #0f1216 72%);
    --surface-chrome: linear-gradient(180deg, #1d1a20 0%, #131419 54%, #0a0c10 100%);
    --surface-edge: #4a3d31;
    --surface-top: #74604b;
    --surface-bevel: inset 0 1px 0 #f5e1bb18, inset 1px 0 0 #f5e1bb0b, inset 0 -1px 0 #000c;
    --elevation-low: 0 3px 6px #0006;
    --elevation-raised: 0 12px 24px -12px #000e, 0 2px 4px #0008;
    --elevation-highlight: 0 16px 30px -14px #000e, 0 3px 6px #0009;
    --motion-press: 140ms cubic-bezier(.2, .65, .35, 1);
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(ellipse 42rem 32rem at 87% 0%, #241a2b66, transparent),
        var(--ink);
    font: 1rem/1.65 system-ui, sans-serif;
}
a { color: var(--gold); text-underline-offset: .22em; }
a:hover { color: var(--warm-highlight); }
:is(a, button, summary):focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
img { max-width: 100%; display: block; }
[tabindex="-1"]:focus { outline: none; }
.skip {
    position: absolute;
    z-index: 3;
    left: 1rem;
    top: -10rem;
    color: #13100a;
    background: var(--gold);
    padding: .6rem .9rem;
}
.skip:focus { top: 1rem; }
.shell { width: min(var(--shell), calc(100% - 3rem)); margin-inline: auto; }
.site-header {
    position: relative;
    z-index: 1;
    background: var(--surface-chrome);
    border-bottom: 1px solid var(--surface-top);
    box-shadow: inset 0 1px 0 #ffebc217, 0 5px 16px #0007;
}
.masthead {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    min-height: 5rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    width: fit-content;
    color: var(--text);
    font: bold .96rem/1.1 Georgia, serif;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-decoration: none;
}
.brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #96775066, 0 2px 5px #000b;
}
.masthead nav, .site-footer nav { display: flex; gap: .5rem 1.6rem; flex-wrap: wrap; }
.masthead nav a, .site-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    text-decoration: none;
    font-size: .925rem;
}
.masthead nav a {
    border-bottom: 2px solid transparent;
}
.masthead nav a:hover, .site-footer nav a:hover {
    color: var(--warm-highlight);
    text-decoration: underline;
}
.masthead nav :is([aria-current="page"], .current) {
    color: var(--gold);
    border-image: var(--surface-brass) 1;
    text-shadow: 0 1px 1px #000c;
}
.headquarters { justify-self: end; }
.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1.1rem;
    border: 1px solid var(--surface-edge);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 700;
    font-size: .9rem;
    text-align: center;
    text-decoration: none;
    line-height: 1.3;
}
.button {
    transition: box-shadow var(--motion-press), border-color var(--motion-press),
        color var(--motion-press), transform var(--motion-press);
}
.button.gold {
    background: var(--metal-face);
    border-color: var(--metal-edge);
    color: var(--metal-ink);
    box-shadow: var(--metal-bevel), var(--metal-shadow);
}
.button.quiet {
    background: var(--surface-chrome);
    border-top-color: var(--surface-top);
    box-shadow: var(--surface-bevel), var(--elevation-low);
}
@media (hover: hover) {
    .button.gold:hover {
        background: var(--metal-face-hover);
        border-color: var(--gold);
    }
    .button.quiet:hover {
        border-color: var(--gold);
        color: var(--warm-highlight);
    }
}
.button.gold:active {
    background: var(--metal-face-pressed);
    box-shadow: inset 0 2px 4px #6843198a, 0 1px 0 #62451f;
}
.button.quiet:active { box-shadow: inset 0 2px 6px #000c; }
.button:active { transform: translateY(1px); }
.home-hero {
    background: linear-gradient(90deg, #080a0c 4%, #080a0cf5 28%, #17101a60 76%, #080a0ca8),
        linear-gradient(0deg, #080a0c 1%, transparent 42%),
        url("observatory.webp") center 48% / cover no-repeat;
    border-bottom: 1px solid var(--stroke);
    box-shadow: 0 9px 28px -23px #d2a36285;
}
.product-hero {
    background: radial-gradient(ellipse at 77% 40%, #3c2d2590, transparent 55%),
        linear-gradient(125deg, #0b0d11 20%, #1e1522 68%, #151e19);
    border-bottom: 1px solid var(--stroke);
}
.hero-grid { display: grid; grid-template-columns: 1.27fr 1fr; align-items: center; gap: 3rem; padding-block: 4.5rem; }
.hero-copy { max-width: 43rem; }
.eyebrow {
    margin: 0 0 1rem;
    color: var(--gold);
    font-size: .84rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: Georgia, serif; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 5.7vw, 5.35rem); }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.65rem); }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.7rem); }
p { margin: .9rem 0; color: var(--muted); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); max-width: 38rem; margin-block: 1.2rem 1.65rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.book-stage {
    display: grid;
    place-items: center;
    margin: 0;
    padding: 1.8rem 1.4rem 2.2rem;
    background: radial-gradient(ellipse at 50% 44%, #d9a75d2a, transparent 66%);
}
.book {
    width: min(100%, 19rem);
    position: relative;
    padding: 5px;
    background: linear-gradient(132deg, #8d7046, #4e3822 15%, #211b1c 60%, #33271e);
    border: 1px solid #96774e;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 #ffdea585, 4px 5px 0 #2d1f18, 7px 8px 0 #1a1618,
        8px 9px 0 #624932, 1.1rem 1.45rem 2.8rem #000c;
}
.book img { width: 100%; height: auto; }
.section { padding-block: 3.5rem; }
.section-rule {
    border-top: 1px solid var(--stroke);
    box-shadow: inset 0 1px 0 #f4ddb30c;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.split p { margin-top: 0; }
.split .text-link { display: inline-block; margin-top: .4rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.6rem; }
.caption { max-width: 25rem; font-size: .95rem; margin: 0; }
.dispatch-grid, .edition-grid { display: grid; gap: 1rem; }
.dispatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-intro .dispatch-grid { margin-top: 2.5rem; }
.panel, .dispatch-card, .preview {
    background: var(--surface-face);
    border: 1px solid var(--surface-edge);
    border-top-color: var(--surface-top);
    border-radius: var(--radius-md);
    box-shadow: var(--surface-bevel), var(--elevation-raised);
}
.dispatch-card {
    padding: 1.4rem 1.4rem 1.15rem;
    transition: border-color var(--motion-press), box-shadow var(--motion-press);
}
@media (hover: hover) {
    .dispatch-card:hover { border-color: var(--metal-edge); box-shadow: var(--surface-bevel), var(--elevation-highlight); }
}
.dispatch-card:focus-within { border-color: var(--metal-edge); }
.dispatch-card :is(h2, h3) { font-size: clamp(1.25rem, 2.3vw, 1.7rem); }
.dispatch-card :is(h2, h3) a { color: var(--text); text-decoration-color: #a58852; }
.dispatch-card p:last-child { margin-bottom: 0; }
.edition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { padding: clamp(1.15rem, 3.5vw, 2rem); }
.edition { display: flex; flex-direction: column; align-items: flex-start; }
.edition-featured {
    background: var(--surface-featured);
    border-color: #856a42;
    border-top-color: var(--metal-edge);
    box-shadow: var(--surface-bevel), var(--elevation-highlight);
}
.edition .button { margin-top: auto; }
.edition h3 { font-size: 1.9rem; }
.price { color: var(--gold); font: 2.65rem/1.1 Georgia, serif; margin: .55rem 0 .9rem; }
.price span { color: var(--muted); font: .97rem/1.5 system-ui, sans-serif; display: inline-block; }
.facts, .included { padding: 0; list-style: none; }
.facts { display: flex; gap: .25rem .8rem; flex-wrap: wrap; margin: 0 0 1.65rem; color: var(--muted); }
.facts li + li::before { content: "•"; padding-right: .8rem; color: var(--gold); }
.included { margin: .3rem 0 1.5rem; }
.included li { padding: .35rem 0 .35rem 1.2rem; position: relative; }
.included li::before { content: ""; position: absolute; width: .36rem; height: .36rem; border: 1px solid var(--gold); left: .04rem; top: 1rem; }
.faq details { border-bottom: 1px solid var(--stroke); padding-block: .7rem; }
.faq summary { min-height: 44px; cursor: pointer; font-weight: 700; padding-block: .45rem; }
.reading { max-width: 47rem; }
.reading h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.reading h2, .checkout-layout h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
.reading section, .reading > h2, .reading > .panel { margin-top: 2.15rem; }
.reading li + li { margin-top: .45rem; }
.article-header { margin-top: 2rem; }
.section-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin-top: 1.4rem; }
.section-links a { display: inline-block; padding: .6rem 0; }
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; margin-top: 2rem; align-items: start; }
.checkout-layout h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.checkout-edition {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .55rem 1rem;
    padding-block: 1rem;
}
.checkout-edition .price { margin: 0; }
.steps { padding-left: 1.4rem; }
.steps li { padding: .35rem 0; }
.site-footer {
    border-top: 1px solid var(--stroke);
    background: var(--surface-chrome);
    box-shadow: inset 0 1px 0 #ffe4af15;
    padding: 1.8rem 0;
}
.footer-row { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.footer-brand { font: 1.25rem Georgia, serif; color: var(--text); }
.site-footer p { margin: .4rem 0 0; }
@media (max-width: 66rem) {
    .masthead { grid-template-columns: 1fr auto; gap: .2rem 1rem; padding-top: .6rem; }
    .masthead nav { grid-column: 1 / -1; grid-row: 2; }
    .hero-grid { gap: 1.5rem; }
}
@media (max-width: 47rem) {
    .shell { width: calc(100% - 2rem); }
    .hero-grid, .split, .checkout-layout, .dispatch-grid, .edition-grid { grid-template-columns: 1fr; }
    .hero-grid { padding-block: 2.6rem 1.7rem; }
    .home-hero {
        background: linear-gradient(180deg, #080a0cee 4%, #080a0cc4 52%, #080a0c70 82%, #080a0c),
            url("observatory.webp") 60% center / cover;
    }
    .book { width: min(76%, 16rem); }
    .section { padding-block: 2.5rem; }
    .section-heading, .footer-row { align-items: start; flex-direction: column; }
    .split, .checkout-layout { gap: 1.25rem; }
    .masthead nav { gap: .1rem .9rem; }
    .masthead nav a { font-size: .875rem; }
}
@media (max-width: 27rem) {
    .masthead nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand { font-size: .78rem; letter-spacing: .1em; gap: .4rem; }
    .brand img { width: 32px; height: 32px; }
    .headquarters { padding-inline: .55rem; font-size: .81rem; }
    .hero-copy h1 { font-size: clamp(2rem, 10.25vw, 2.55rem); }
}

.home-discovery { padding-block: 2.6rem 1.9rem; }
.home-dispatch { padding-top: 2rem; }
.product-hero .hero-grid { padding-block: clamp(1.9rem, 4.4vw, 3.5rem); }
#ai-guide > :first-child .lead { margin-top: 1.2rem; }
.starter-prompt {
    margin: 1rem 0;
    padding: .65rem .9rem;
    border-left: 2px solid var(--gold);
    background: var(--surface-recessed);
    box-shadow: inset 0 1px 6px #0008;
}
.starter-prompt figcaption { color: var(--gold); font-size: .88rem; font-weight: 700; }
.starter-prompt blockquote { margin: 0; }
.starter-prompt p { margin: .25rem 0 0; color: var(--text); }
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.preview { min-width: 0; margin: 0; padding: .75rem; }
.preview:focus-within { border-color: var(--metal-edge); }
.preview a { display: block; color: var(--text); }
.preview a img {
    width: 100%;
    height: auto;
    border: 1px solid var(--stroke);
    border-radius: 3px;
    box-shadow: var(--elevation-low);
}
.preview a span { display: inline-block; margin-top: .7rem; font-weight: 700; }
.preview figcaption { margin-top: .35rem; color: var(--muted); }
.ai-demo { margin-top: 2rem; align-items: start; }
.demo-transcript p { padding-block: .6rem; margin: 0; }
.demo-transcript p + p { border-top: 1px solid var(--stroke); }
.demo-transcript strong { color: var(--gold); }
@media (max-width: 66rem) {
    .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47rem) {
    .home-discovery { padding-block: 2rem 1.5rem; }
    .home-dispatch { padding-top: 1.5rem; }
}
@media (max-width: 29rem) {
    .preview-grid { gap: 1.4rem; }
    .preview a span { font-size: .96rem; }
    .preview figcaption { font-size: .94rem; }
}

button.button { cursor: pointer; font: inherit; font-weight: 700; }
.purchase-policy {
    margin-block: 1.45rem;
    background: var(--surface-recessed);
    box-shadow: inset 0 1px 8px #0008;
}
.purchase-policy p:last-child { margin-bottom: 0; }
.test-reference { overflow-wrap: anywhere; }
.test-order-actions { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
    .button, .dispatch-card { transition: none; }
    .button:active { transform: none; }
}
@media (forced-colors: active) {
    :is(a, button, summary):focus-visible { outline-color: Highlight; }
    .masthead nav :is([aria-current="page"], .current) {
        border-image: none;
        border-bottom-color: LinkText;
    }
    .button:is(.gold, .quiet) { border-color: ButtonText; }
}
