@font-face { font-family: "Alegreya"; src: url("fonts/alegreya_400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya_400_italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya_500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya_700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya SC"; src: url("fonts/alegreya_sc_medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya SC"; src: url("fonts/alegreya_sc_bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* The app's Zodiac stock, from its theme tokens. The page is printed on it alone. */
[data-theme="zodiac"] {
  color-scheme: dark;
  --ground: #1c2551; --paper-raised: #28336b; --paper-lifted: #313d7a; --paper-aged: #161e45;
  --paper-aged-sunken: #0f1635; --surface-selected: #2f3b72; --kraft: #4f4320; --on-kraft: #f6e6ba;
  --divider: #475386; --outline-strong: #aeb4d6; --outline-muted: #3d4879; --text: #f2ead3;
  --text-muted: #b8bcd8; --text-disabled: #9298ba; --primary: #9fb9f6; --on-primary: #131a3c;
  --primary-muted: #2b3a74; --accent: #e6b843; --madder: #ec9a83; --stone: #ddb54b; --on-stone: #1a2144;
  --slate: #2d4fa6; --on-slate: #f6edd3; --backdrop: #111a40; --backdrop-sky: #070b22;
  --backdrop-stars: #fff1c4; --backdrop-text: #f2ead3; --backdrop-muted: #a9b2d6; --backdrop-link: #ebc35c;
  --ink-seeker: #8da5bc;

  --sw-edge: rgba(255, 235, 200, 0.07);
  --sw-shadow-3: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.62));
  --sw-shadow-1: drop-shadow(0 0.75px 0.75px rgba(0, 0, 0, 0.55));
  --sw-tex-light: none;
  --sw-tex-dark: inline;
  --sw-wash: 8%;
}
[data-playbook="seeker"] { --primary: var(--ink-seeker); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  font: 400 16px/23px Alegreya, Georgia, serif; color: var(--backdrop-text);
  background-color: var(--backdrop);
  background-image: url("images/table-grain.png"),
    radial-gradient(1.2px 1.2px at 12% 2%, var(--backdrop-stars) 99%, transparent),
    radial-gradient(1px 1px at 78% 1%, var(--backdrop-stars) 99%, transparent),
    radial-gradient(1.4px 1.4px at 46% 4%, var(--backdrop-stars) 99%, transparent),
    radial-gradient(1px 1px at 90% 7%, var(--backdrop-stars) 99%, transparent),
    radial-gradient(1px 1px at 4% 9%, var(--backdrop-stars) 99%, transparent),
    radial-gradient(1.2px 1.2px at 63% 12%, var(--backdrop-stars) 99%, transparent),
    radial-gradient(1px 1px at 30% 15%, var(--backdrop-stars) 99%, transparent),
    linear-gradient(var(--backdrop-sky), var(--backdrop) 30%);
}
a { color: var(--backdrop-link); }
h1, h2, h3, p, figure, ul { margin: 0; }
img { display: block; }

/* ---------- surfaces, painted by surfaces.js ---------- */
[data-sw] { position: relative; isolation: isolate; }
.sw-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.sw-paper-layer.sw-lift-3 { filter: var(--sw-shadow-3); }
.sw-paper-layer.sw-lift-1 { filter: var(--sw-shadow-1); }
.sw-stone-layer { filter: drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, 0.38)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.18)); }
.sw-tex-light { display: var(--sw-tex-light); }
.sw-tex-dark { display: var(--sw-tex-dark); }
.sw-edge { stroke: var(--sw-edge); stroke-width: 1; }
.sw-edge-inked { stroke: var(--primary); stroke-width: 3; }
[data-sw="paper"]:not(:has(> .sw-layer)) { background: var(--paper-raised); border-radius: 7px; }
[data-sw="paper"][data-lifted]:not(:has(> .sw-layer)) { background: var(--paper-lifted); }
[data-sw="paper"][data-aged]:not(:has(> .sw-layer)) { background: var(--paper-aged); }
[data-sw="paper"][data-selected]:not(:has(> .sw-layer)) { box-shadow: inset 0 0 0 1.5px var(--primary); }
[data-sw="stone"]:not(:has(> .sw-layer)) { background: var(--stone); border-radius: 7px; }
[data-sw="stone"][data-primary]:not(:has(> .sw-layer)) { background: var(--slate); }

/* ---------- components, from packages/ui/.../components ---------- */
.sw-title { font: 700 19px/24px "Alegreya SC", Georgia, serif; color: var(--text); }
.sw-body { font: 400 16px/23px Alegreya, Georgia, serif; color: var(--text); }
.sw-caption { font: italic 400 14px/19px Alegreya, Georgia, serif; color: var(--text-muted); }
.sw-micro { font: 700 12px/16px "Alegreya SC", Georgia, serif; letter-spacing: 0.96px; color: var(--text-muted); text-transform: uppercase; }
.sw-numeric { font: 700 19px/1.2 Alegreya, Georgia, serif; font-feature-settings: "tnum"; color: var(--text); }

.sw-button {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px;
  padding: 0 16px; border: 0; background: none; cursor: pointer; text-decoration: none;
  font: 700 18px/24px "Alegreya SC", Georgia, serif; color: var(--on-stone); text-align: center;
}
.sw-button[data-primary] { color: var(--on-slate); }
.sw-button[data-disabled] { cursor: default; }
.sw-button[data-disabled] > :not(.sw-layer) { opacity: 0.5; }
.sw-skip {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 58px; text-decoration: none;
  font: 700 18px/24px "Alegreya SC", Georgia, serif; color: var(--accent);
}

.sw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-chip {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px;
  font: 400 17px/23px Alegreya, Georgia, serif; color: var(--text);
}
.sw-chip[data-selected] { color: var(--primary); font-weight: 700; }

.sw-radio { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--outline-muted); }
.sw-radio[data-selected] { border-color: var(--primary); }
.sw-radio[data-selected]::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 45%; height: 45%; border-radius: 50%; background: var(--primary);
}
.sw-check { position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--outline-strong); border-radius: 4px; }
/* A hand-marked X in madder that overshoots the box by 1px. */
.sw-check[data-checked]::before, .sw-check[data-checked]::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: calc(141.4% + 2.8px); height: 2px; border-radius: 1px;
  background: var(--madder); transform: translate(-50%, -50%) rotate(45deg);
}
.sw-check[data-checked]::after { transform: translate(-50%, -50%) rotate(-45deg); }

.sw-line { display: flex; align-items: center; height: 58px; padding: 0 16px; font: 700 22px/27px "Alegreya SC", Georgia, serif; color: var(--text); }

.sw-counter { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.sw-counter__label { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sw-counter__value { width: 36px; text-align: center; font-size: 22px; }
.sw-stepper { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; color: var(--on-stone); }
.sw-stepper > svg:not(.sw-layer) { width: 16px; height: 16px; }
.sw-track { display: flex; gap: 8px; }
.sw-diamond { width: 14px; height: 14px; margin: 3px; transform: rotate(45deg); border: 1.5px solid var(--accent); }
.sw-diamond[data-marked] { background: var(--accent); }

.sw-section__row { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.sw-section__title { font: 700 17px/21px "Alegreya SC", Georgia, serif; letter-spacing: 0.7px; color: var(--text); }
.sw-section__rule { flex: 1; height: 8px; position: relative; }
.sw-section__rule::before { content: ""; position: absolute; left: 11px; right: 0; top: 3.5px; height: 1px; background: var(--divider); }
.sw-section__rule::after {
  content: ""; position: absolute; left: 0.9px; top: 1.9px; width: 4.2px; height: 4.2px; background: var(--divider); transform: rotate(45deg);
}

.sw-card {
  width: 276px; height: 470px; padding: 6px; flex: none; background: var(--ground); border-radius: 7px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.32), 0 1px 3px rgba(0, 0, 0, 0.24);
}
.sw-card__face {
  position: relative; isolation: isolate; height: 100%; display: flex; flex-direction: column; border-radius: 3px; overflow: hidden;
  background: color-mix(in srgb, var(--sw-ink) var(--sw-wash), var(--ground));
}
.sw-card__art { flex: 1; display: flex; align-items: center; justify-content: center; }
.sw-card__name {
  margin: 0 12px 14px; min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 4px 0;
  border-top: 0.5px solid var(--sw-ink); border-bottom: 0.5px solid var(--sw-ink);
  font: 700 22px/24px "Alegreya SC", Georgia, serif; color: var(--text); text-align: center;
}

/* ---------- the page ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 26px; padding-right: 26px; }
.band { padding-bottom: 104px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.caps { font-family: "Alegreya SC", Georgia, serif; font-weight: 700; }

.top { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--backdrop-text); font-size: 22px; line-height: 1; letter-spacing: 3px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.top nav > a:not(.sw-button) { font-size: 17px; line-height: 24px; text-decoration: none; color: var(--backdrop-text); }
.top nav > .sw-button { width: auto; height: 46px; padding: 0 22px; font-size: 17px; }

.hero { padding-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__words { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(44px, 7vw, 64px); line-height: 1; }
.hero p { font-size: 19px; line-height: 28px; max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.hero__actions .sw-button { width: auto; padding: 0 32px; }
.hero__phones { flex: 0 1 520px; min-width: 0; position: relative; height: 660px; }
.hero__phones .phone { position: absolute; }
.hero__phones .phone:first-child { left: 0; top: 48px; width: 280px; transform: rotate(-4deg); }
.hero__phones .phone:last-child { right: 0; top: 0; width: 290px; transform: rotate(3deg); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34); }

.phone { width: 290px; padding: 9px; border-radius: 36px; background: #0e0c0b; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.phone img { width: 100%; height: auto; border-radius: 27px; }
.phone-slot { flex: 0 1 300px; display: flex; justify-content: center; margin: 0 auto; }

.sheet { padding: 56px clamp(26px, 5vw, 64px); color: var(--text); }
.eyebrow { font: 700 13px/1 "Alegreya SC", Georgia, serif; letter-spacing: 1.82px; text-transform: uppercase; }
.sheet .eyebrow { color: var(--text-muted); }
.heading { display: flex; flex-direction: column; gap: 10px; }
h2 { font: 700 40px/44px "Alegreya SC", Georgia, serif; }
.lede { max-width: 32em; }
.muted { color: var(--text-muted); }
.note { font: italic 400 14px/19px Alegreya, Georgia, serif; max-width: 32em; }
.words { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.specimens { display: flex; flex-direction: column; gap: 32px; }
.specimens .heading { max-width: 40em; }
.specimens__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 48px; }
.specimen { display: flex; flex-direction: column; gap: 12px; }
.specimen--card { flex: none; align-items: center; gap: 14px; }
.specimen--card .sw-card { transform: rotate(-2deg); }
.specimen-column { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.specimen-column + .specimen-column { flex-basis: 280px; }
.pair { display: flex; gap: 12px; }
.pair > * { flex: 1; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 4px;
  background: var(--kraft); color: var(--on-kraft); font: 700 15px/1 "Alegreya SC", Georgia, serif;
}
.strip { padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.strip--between { justify-content: space-between; }
.strip--wrap { flex-wrap: wrap; gap: 12px 22px; }
.option { display: inline-flex; align-items: center; gap: 10px; }
.strip .option { flex: 1; }
.strip--wrap .option { flex: none; }
.struck { color: var(--madder); text-decoration: line-through; }

.play { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.play .words { flex-basis: 400px; gap: 20px; }
.play-state { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }

.features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 32em; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features svg { flex: none; color: var(--backdrop-link); }

.get { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.get .heading { align-items: center; gap: 12px; text-align: center; }
.platforms { width: 100%; max-width: 820px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.platform { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.platform h3 { font-size: 21px; line-height: 25px; }
.platform .sw-button { margin-top: auto; }
.platform .sw-caption { margin-bottom: 8px; }

footer { padding-bottom: 56px; }
.rule { display: flex; align-items: center; gap: 8px; padding-bottom: 24px; }
.rule::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--backdrop-muted); }
.rule::after { content: ""; flex: 1; height: 1px; background: var(--backdrop-muted); }
footer .wordmark { font-size: 17px; line-height: 21px; letter-spacing: 2px; }
footer p { font-size: 14px; line-height: 19px; }
.colophon { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 600px) {
  .band { padding-bottom: 72px; }
  .hero { padding-top: 24px; }
  .hero__phones { flex-basis: 100%; height: 460px; }
  .hero__phones .phone:first-child { width: 200px; top: 36px; padding: 7px; border-radius: 28px; }
  .hero__phones .phone:last-child { width: 208px; padding: 7px; border-radius: 28px; }
  .hero__phones .phone img { border-radius: 21px; }
  h2 { font-size: 32px; line-height: 36px; }
  .sheet { padding-top: 40px; padding-bottom: 40px; }
}
