:root {
  color-scheme: light dark;
  --paper: #f4f0e7;
  --paper-raised: #fbf9f3;
  --ink: #1d252a;
  --muted: #647077;
  --line: #cbd0c9;
  --line-strong: #aab3ad;
  --blue: #1d4f73;
  --blue-soft: #dce8ec;
  --red: #b64435;
  --green: #35634f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 18rem;
  margin: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 28%, transparent) 1px, transparent 1px) 0 0 / 5.5rem 5.5rem,
    var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 42%, transparent); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: .2rem; }

.site-header, .page-main, .page-footer { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: ui-serif, Georgia, serif; font-size: 1.25rem; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { display: inline-grid; width: 1.6rem; height: 1.6rem; place-items: center; border: 1px solid var(--ink); background: var(--blue); color: var(--paper-raised); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; font-weight: 700; letter-spacing: -.08em; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1.25rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--blue); }

.page-main { padding: 4.5rem 0 6rem; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: end; padding-bottom: 4rem; }
.eyebrow, .section-kicker, .card-label, .meta-line, .document-meta, .stamp { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.eyebrow, .section-kicker { color: var(--blue); }
.page-hero h1, .document-hero h1 { max-width: 12ch; margin: .8rem 0 1.25rem; font-family: ui-serif, Georgia, serif; font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 600; letter-spacing: -.045em; line-height: .9; }
.page-lede, .document-lede { max-width: 43rem; margin: 0; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.38; text-wrap: pretty; }
.hero-aside { padding: 1.3rem; border: 1px solid var(--line-strong); background: var(--paper-raised); box-shadow: .6rem .6rem 0 color-mix(in srgb, var(--blue) 13%, transparent); }
.hero-aside h2 { margin: .55rem 0 1.15rem; font-family: ui-serif, Georgia, serif; font-size: 1.8rem; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.hero-aside ul { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.hero-aside li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.hero-aside li span:first-child { color: var(--muted); }
.hero-aside li span:last-child { margin-left: auto; color: var(--blue); font-weight: 700; text-align: right; }

.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.button, .store-link { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; padding: .55rem .95rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper-raised); font-weight: 700; text-decoration: none; }
.button:hover, .store-link:hover { background: var(--blue); color: var(--paper-raised); text-decoration: none; }
.button.secondary { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button.secondary:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }

.rule-section { padding-top: 2.25rem; border-top: 1px solid var(--line-strong); }
.rule-section + .rule-section { margin-top: 4.5rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: 1.65rem; }
.section-heading h2 { margin: .35rem 0 0; font-family: ui-serif, Georgia, serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -.04em; line-height: .95; }
.section-heading p { max-width: 25rem; margin: 0; color: var(--muted); }

.product-facts, .fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.product-fact, .fact { min-height: 9rem; padding: 1.1rem; background: var(--paper-raised); }
.product-fact strong, .fact strong { display: block; margin: .5rem 0 .35rem; font-family: ui-serif, Georgia, serif; font-size: 1.4rem; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.product-fact p, .fact p { margin: 0; color: var(--muted); font-size: .92rem; }
.product-fact .card-label, .fact .card-label { color: var(--blue); }

.companion, .support-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .55fr); gap: 2rem; align-items: end; padding: 1.5rem; border: 1px solid var(--line-strong); background: var(--blue-soft); }
.companion h2, .support-card h2 { margin: .55rem 0 .65rem; font-family: ui-serif, Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -.04em; line-height: .95; }
.companion p, .support-card p { max-width: 38rem; margin: 0; color: var(--muted); }
.companion-aside, .support-card-aside { padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--blue) 32%, transparent); color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }

.document-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(15rem, .8fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; padding-bottom: 3.25rem; border-bottom: 1px solid var(--line-strong); }
.document-hero h1 { max-width: 14ch; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.document-meta { display: grid; gap: .7rem; justify-items: start; color: var(--muted); }
.document-meta > div { display: grid; gap: .12rem; }
.document-meta strong { color: var(--ink); font-size: .8rem; }
.document-layout { display: grid; grid-template-columns: minmax(10rem, .28fr) minmax(0, .72fr); gap: clamp(2rem, 7vw, 7rem); padding-top: 3.5rem; }
.document-index { position: sticky; top: 1.5rem; align-self: start; padding-top: .15rem; }
.document-index strong { display: block; margin-bottom: .8rem; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.document-index ol { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.document-index a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.document-index a:hover { color: var(--blue); }
.document-content { min-width: 0; }
.document-content section { scroll-margin-top: 2rem; padding-bottom: 2.7rem; border-bottom: 1px solid var(--line); }
.document-content section + section { padding-top: 2.7rem; }
.document-content h2 { margin: 0 0 .85rem; font-family: ui-serif, Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.document-content p { max-width: 47rem; margin: 0 0 1rem; color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.document-content p:last-child { margin-bottom: 0; }
.document-content ul { max-width: 47rem; margin: 0 0 1rem; padding-left: 1.25rem; }
.document-content li + li { margin-top: .55rem; }
.document-callout { margin-bottom: 2.7rem; padding: 1.25rem; border-left: .35rem solid var(--blue); background: var(--blue-soft); }
.document-callout strong { display: block; margin-bottom: .35rem; font-family: ui-serif, Georgia, serif; font-size: 1.45rem; font-weight: 600; letter-spacing: -.035em; }
.document-callout p { margin: 0; }
.document-footer { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); font-size: .86rem; }
.document-footer a { color: var(--blue); font-weight: 700; }

nav.inline-links { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 2rem; }
.email-part { white-space: nowrap; }
.page-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 1.4rem 0 3rem; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: .84rem; }
.page-footer p { max-width: 25rem; margin: 0; }
.page-footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }

/* Older pages can adopt the same reading system before their copy is expanded. */
body > p.meta { width: min(72rem, calc(100% - 3rem)); margin: 0 auto; padding-top: 2rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
body > h1, body > h2, body > p:not(.meta), body > nav { width: min(48rem, calc(100% - 3rem)); margin-right: auto; margin-left: auto; }
body > h1 { margin-top: 2rem; font-family: ui-serif, Georgia, serif; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 600; letter-spacing: -.045em; line-height: .92; }
body > h2 { margin-top: 2.8rem; font-family: ui-serif, Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
body > p:not(.meta) { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
body > nav { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 2rem; padding-bottom: 5rem; }

@media (max-width: 54rem) {
  .page-hero, .document-hero { grid-template-columns: 1fr; gap: 2.7rem; }
  .hero-aside { max-width: 34rem; justify-self: end; }
  .product-facts, .fact-grid { grid-template-columns: 1fr; }
  .document-layout { grid-template-columns: 1fr; gap: 2rem; }
  .document-index { position: static; padding: 1rem; border: 1px solid var(--line); background: var(--paper-raised); }
  .document-index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 38rem) {
  .site-header, .page-main, .page-footer { width: min(100% - 2rem, 72rem); }
  .site-header { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .site-nav { justify-content: flex-start; }
  .page-main { padding: 3.5rem 0 5rem; }
  .page-hero { padding-bottom: 3rem; }
  .page-hero h1, .document-hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .companion, .support-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .document-index ol { grid-template-columns: 1fr; }
  .page-footer { flex-direction: column; }
  body > p.meta, body > h1, body > h2, body > p:not(.meta), body > nav { width: min(100% - 2rem, 48rem); }
}

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

@media (prefers-color-scheme: dark) {
  :root { --paper: #11181d; --paper-raised: #182229; --ink: #edf0e9; --muted: #a8b2b2; --line: #334047; --line-strong: #5d6b70; --blue: #9cc8db; --blue-soft: #203843; --red: #f07b65; --green: #9dccaf; }
}
