:root {
  --navy: #10253f;
  --navy-deep: #09192d;
  --ink: #253449;
  --muted: #6c7784;
  --line: #dfe3e5;
  --paper: #f7f5f0;
  --warm: #eadcc7;
  --warm-deep: #d2b991;
  --coral: #c85b4b;
  --sage: #a7b3a0;
  --white: #fffdf9;
  --link: #9c493d;
  --font-display: 'Crimson Pro', serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shell: min(1160px, calc(100% - 3rem));
  --shadow: 0 18px 45px rgba(16, 37, 63, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 7px; background: var(--coral); z-index: 20; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-inner { width: var(--shell); margin: 0 auto; min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--navy); }
.brand-mark { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1; gap: .22rem; }
.brand-name { font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.04em; }
.brand-tagline { color: var(--muted); font-size: .63rem; letter-spacing: .13em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2rem); }
.primary-nav a { color: var(--navy); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; position: relative; padding: .5rem 0; }
.primary-nav a::after { content: ""; height: 2px; position: absolute; left: 0; right: 100%; bottom: .15rem; background: var(--coral); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.cart-button { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--navy); background: var(--navy); color: var(--white); padding: .68rem .9rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cart-count { color: var(--warm); }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); color: var(--navy); padding: .65rem; }
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

.page-intro { width: var(--shell); margin: 0 auto; padding: 4.7rem 0 2.5rem; }
.eyebrow { color: var(--coral); font-family: var(--font-mono); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); font-family: var(--font-display); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.35rem); max-width: 10ch; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 36rem; margin: 1.25rem 0 0; }
.shell { width: var(--shell); margin: 0 auto; }
.section { padding: 4.5rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.section-head p { color: var(--muted); margin: 0; max-width: 23rem; font-size: .9rem; }
.text-link { border-bottom: 1px solid var(--coral); color: var(--link); font-weight: 700; font-size: .8rem; }

.hero { background: var(--navy); color: var(--white); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 36rem; height: 36rem; border: 1px solid rgba(234,220,199,.25); border-radius: 50%; right: -11rem; top: -12rem; box-shadow: 0 0 0 30px rgba(234,220,199,.05), 0 0 0 60px rgba(234,220,199,.03); }
.hero-grid { min-height: 550px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(20rem, .98fr); align-items: center; gap: 4rem; position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 8ch; }
.hero .lede { color: #d2d9df; }
.hero-art { min-height: 410px; background: var(--warm); position: relative; display: grid; place-items: center; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border: 1px solid rgba(16,37,63,.2); border-radius: 50%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .88; }
.hero-card { position: relative; width: min(80%, 27rem); background: var(--white); color: var(--navy); padding: 2rem; box-shadow: var(--shadow); transform: rotate(-3deg); }
.hero-card::before { content: ""; position: absolute; width: 2.5rem; height: 3.3rem; background: var(--coral); right: 1.4rem; top: -1.1rem; transform: rotate(4deg); }
.hero-card h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: .6rem 0 1rem; }
.hero-card p { color: var(--muted); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 2.8rem; padding: .75rem 1.25rem; border: 1px solid var(--navy); background: var(--navy); color: var(--white); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--coral); border-color: var(--coral); }
.button-light { border-color: rgba(255,255,255,.65); background: transparent; }
.button-light:hover { border-color: var(--warm); background: var(--warm); color: var(--navy); }
.button-warm { border-color: var(--warm); background: var(--warm); color: var(--navy); }
.button-warm:hover { border-color: var(--white); background: var(--white); }

.rail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; align-items: start; gap: 2rem; }
.rail-layout:has([data-side-links][hidden]) { grid-template-columns: minmax(0, 1fr); }
.home-main > .shell { width: auto; }
[data-side-links][hidden] { display: none; }
.side-links { position: sticky; top: 1.5rem; border-top: 3px solid var(--coral); padding-top: 1rem; }
.side-links h2 { font-family: var(--font-body); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.side-links ol { list-style: none; padding: 0; margin: .7rem 0 0; }
.side-links li { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.side-links a { color: var(--muted); font-size: .78rem; }

.band { background: var(--warm); }
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(16,37,63,.16); border: 1px solid rgba(16,37,63,.16); }
.value-card { background: var(--warm); padding: 2rem; min-height: 180px; }
.value-number { color: var(--coral); font-family: var(--font-mono); font-size: .68rem; }
.value-card h3 { margin: .9rem 0 .65rem; font-size: 1.6rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .88rem; }

.news-grid, .archive-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: start; gap: 1.6rem; }
.story-card { min-width: 0; }
.story-image { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--warm); }
.story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .story-image img { transform: scale(1.04); }
.story-meta { display: flex; gap: .5rem .75rem; align-items: center; flex-wrap: wrap; color: var(--coral); font-family: var(--font-mono); font-size: .63rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: .9rem; }
.category-label { color: var(--coral); }
.story-card h3 { font-size: 1.75rem; margin: .45rem 0 .5rem; }
.story-card h3 a:hover { color: var(--link); }
.story-card p { color: var(--muted); margin: 0; font-size: .88rem; }
.story-author { display: flex; align-items: center; gap: .45rem; margin-top: .75rem; color: var(--muted); font-size: .75rem; }
.story-author-avatar { width: 1.6rem; height: 1.6rem; border-radius: 50%; object-fit: cover; }
.empty-state { color: var(--muted); grid-column: 1 / -1; margin: 0; padding: 1rem 0; }
.featured-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 1.6rem; }
.featured-grid .story-card:first-child .story-image { aspect-ratio: 16 / 10; }
.featured-grid .story-card:first-child h3 { font-size: clamp(2rem, 4vw, 3rem); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card { background: var(--white); border: 1px solid var(--line); padding: 1rem; }
.product-art { aspect-ratio: 1 / 1.05; display: grid; place-items: center; background: var(--warm); margin-bottom: 1rem; overflow: hidden; }
.product-art img { width: 100%; height: 100%; object-fit: cover; }
.product-kicker { color: var(--coral); font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.product-card h3 { font-size: 1.55rem; margin: .35rem 0 .25rem; }
.product-detail { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.product-price { color: var(--navy); font-weight: 700; }
.add-button { border: 0; background: transparent; color: var(--link); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: .4rem 0; }
.add-button:hover { color: var(--coral); }

.finder { background: var(--white); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3rem); }
.finder-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.finder h2 { max-width: 9ch; }
.finder-form fieldset { border: 0; padding: 0; margin: 0 0 1.3rem; }
.finder-form legend { color: var(--navy); font-weight: 700; margin-bottom: .7rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { display: block; padding: .65rem .8rem; border: 1px solid var(--line); color: var(--muted); font-size: .78rem; cursor: pointer; }
.choice input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--white); }
.finder-result { margin-top: 1rem; padding: 1rem; border-left: 3px solid var(--coral); background: var(--paper); color: var(--navy); font-size: .9rem; }

.split-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.split-panel > * { min-height: 330px; }
.split-copy { background: var(--navy); color: var(--white); padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.split-copy h2 { color: var(--white); max-width: 10ch; }
.split-copy p { color: #d4dbe1; max-width: 28rem; }
.split-art { background: var(--warm); position: relative; overflow: hidden; }
.split-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: .86; }

.archive-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.archive-form label { display: block; color: var(--navy); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; }
.archive-form input { width: min(22rem, 70vw); border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: .8rem .9rem; outline: 0; }
.archive-form input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(200,91,75,.13); }
.filter-list { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: end; }
.filter-list a { border: 1px solid var(--line); padding: .55rem .7rem; color: var(--muted); font-size: .73rem; }
.filter-list a:hover { color: var(--navy); border-color: var(--navy); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: steps; }
.step { counter-increment: steps; background: var(--white); border-top: 3px solid var(--coral); padding: 1.5rem; }
.step::before { content: "0" counter(steps); color: var(--coral); font-family: var(--font-mono); font-size: .65rem; }
.step h3 { font-size: 1.7rem; margin: 1rem 0 .65rem; }
.step p { color: var(--muted); margin: 0; font-size: .88rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-list summary { color: var(--navy); cursor: pointer; font-family: var(--font-display); font-size: 1.45rem; }
.faq-list p { color: var(--muted); max-width: 44rem; margin: .7rem 0 0; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr); gap: 1.5rem; }
.checkout-card { background: var(--white); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.4rem); }
.checkout-card h2 { font-size: 2.2rem; margin-bottom: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: .72rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); padding: .8rem; color: var(--ink); }
.order-summary { background: var(--navy); color: var(--white); }
.order-summary h2 { color: var(--white); }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.18); padding: .9rem 0; font-size: .85rem; }
.summary-total { display: flex; justify-content: space-between; margin: 1.5rem 0; font-family: var(--font-display); font-size: 2rem; }

.article-layout { padding: 3rem 0 5rem; }
.article-main { min-width: 0; }
.article-header { max-width: 48rem; }
.article-header h1 { max-width: 13ch; margin-top: .6rem; }
.article-deck { color: var(--muted); font-size: 1.15rem; margin: 1.2rem 0 0; }
.article-cover { margin: 2.5rem 0; max-height: 34rem; width: 100%; object-fit: cover; }
.prose { max-width: 46rem; }
.prose p, .prose li { color: #4e5967; font-size: 1.05rem; line-height: 1.85; }
.prose p { margin: 0 0 1.4rem; }
.prose h2, .prose h3 { margin: 2.4rem 0 .8rem; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-color: var(--warm-deep); text-underline-offset: .18em; }
.byline { display: flex; align-items: center; gap: .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; margin: 1.5rem 0 0; max-width: 46rem; }
.byline[hidden] { display: none; }
.byline img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; background: var(--warm); }
.byline strong { color: var(--navy); }
.byline p { color: var(--muted); font-size: .78rem; margin: 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--white); margin-top: 5rem; }
.footer-inner { width: var(--shell); margin: 0 auto; padding: 2.5rem 0; display: flex; justify-content: space-between; gap: 2rem; }
.footer-inner p { color: var(--muted); font-size: .78rem; max-width: 21rem; margin: .6rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; justify-content: end; gap: .5rem 1.2rem; }
.footer-links a { color: var(--muted); font-size: .76rem; }

.toast { position: fixed; right: 1.25rem; bottom: 1.25rem; background: var(--navy); color: var(--white); padding: .9rem 1.1rem; box-shadow: var(--shadow); transform: translateY(150%); transition: transform .25s ease; z-index: 10; font-size: .8rem; }
.toast.is-visible { transform: translateY(0); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

@media (max-width: 860px) {
  :root { --shell: min(100% - 2rem, 720px); }
  .header-inner { min-height: 88px; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .primary-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 82px; padding: .75rem 1rem 1rem; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: .2rem; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .7rem .2rem; }
  .hero-grid, .finder-grid, .split-panel, .checkout-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; padding: 3rem 0; }
  .hero-art { min-height: 300px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .story-card:first-child .story-image { aspect-ratio: 4 / 3; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .rail-layout { grid-template-columns: minmax(0, 1fr); }
  .side-links { position: static; }
  .rail-layout:has([data-side-links][hidden]) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --shell: min(100% - 1.4rem, 480px); }
  body { font-size: 14px; }
  .brand-tagline { display: none; }
  .cart-button { padding: .6rem .7rem; }
  .page-intro { padding-top: 3.2rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .section { padding: 3.2rem 0; }
  .section-head { display: block; }
  .section-head p { margin-top: .7rem; }
  .value-row, .steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .archive-toolbar { display: block; }
  .filter-list { justify-content: start; margin-top: 1rem; }
  .footer-inner { display: block; }
  .footer-links { justify-content: start; margin-top: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
