/* hesper.guide: colours and type follow shared/design/tokens.json (paper, ink, antique gold, night). */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
:root {
  --bg: #F7F5F1;
  --surface: #FDFCF9;
  --surface-alt: #EFEDE6;
  --ink: #181917;
  --ink-2: #5E5B55;
  --ink-3: #9A958C;
  --line: #DBD8D0;
  --accent: #A8843F;
  --accent-ink: #7D5F27;
  --night: #1F2240;
  --night-deep: #171A33;
  --night-text: #F3EFE6;
  --night-text-2: rgba(243, 239, 230, 0.74);
  --night-line: rgba(243, 239, 230, 0.18);
  --night-gold: #D9BE84;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14152A;
    --surface: #1F2240;
    --surface-alt: #191B35;
    --ink: #F3EFE6;
    --ink-2: #C9C4BA;
    --ink-3: #8F8A80;
    --line: #34385E;
    --accent-ink: #C9A55E;
    --night: #0F1022;
    --night-deep: #0B0C1A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 26px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

/* ---------- Text pages (privacy, terms, support, safety, attributions, 404) ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
nav.top { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
nav.top a { color: var(--ink-2); text-decoration: none; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
main { padding: 32px 0 56px; }
h1 { font: 400 40px/1.15 var(--serif); margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font: 400 26px/1.25 var(--serif); margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.updated { color: var(--ink-3); font-size: 15px; margin-bottom: 28px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 24px 0 8px; }
.summary h2 { margin-top: 0; font-size: 21px; }
.summary ul { margin-bottom: 0; }
.note { color: var(--ink-2); font-size: 15px; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
footer.site { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
footer.site a { color: var(--ink-2); }
@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  header.site .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Home ---------- */
.home main { padding: 0; }
.container { --gutter: 32px; max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.paper { background: var(--bg); }
.paper-alt { background: var(--surface-alt); }
.night { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--night-text); }
.night a { color: var(--night-gold); }
.center { text-align: center; }

.home .eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 18px; }
.home .night .eyebrow { color: var(--night-gold); }
.home h2 { font: 400 clamp(32px, 4.2vw, 50px)/1.08 var(--serif); letter-spacing: -0.012em; margin: 0 0 20px; text-wrap: balance; }
.home h3 { font: 400 23px/1.25 var(--serif); margin: 0 0 8px; }
.home em { font-style: italic; }

/* Stars: two tiled layers of tiny dots; the second one breathes. */
.sky, .sky::after {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 22px 38px, rgba(243, 239, 230, 0.9), transparent 70%),
    radial-gradient(1px 1px at 140px 90px, rgba(243, 239, 230, 0.7), transparent 70%),
    radial-gradient(1.4px 1.4px at 260px 24px, rgba(243, 239, 230, 0.85), transparent 70%),
    radial-gradient(1px 1px at 330px 170px, rgba(243, 239, 230, 0.6), transparent 70%),
    radial-gradient(1.2px 1.2px at 74px 220px, rgba(217, 190, 132, 0.8), transparent 70%),
    radial-gradient(1px 1px at 200px 300px, rgba(243, 239, 230, 0.65), transparent 70%),
    radial-gradient(1.6px 1.6px at 380px 330px, rgba(243, 239, 230, 0.9), transparent 70%),
    radial-gradient(1px 1px at 20px 360px, rgba(243, 239, 230, 0.55), transparent 70%);
  background-size: 410px 400px;
}
.sky::after {
  content: "";
  background-size: 530px 470px;
  background-position: 160px 120px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 1; } }

/* Masthead (sits over the hero) */
.masthead { position: absolute; top: 0; left: 0; right: 0; z-index: 10; color: var(--night-text); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.masthead .brand { color: var(--night-text); }
.masthead-nav { display: flex; gap: 28px; font-size: 15px; }
.masthead-nav a { color: var(--night-text-2); text-decoration: none; }
.masthead-nav a:hover { color: var(--night-text); }

/* Hero */
.hero { background: radial-gradient(ellipse 60% 70% at 72% 42%, #2C3060 0%, rgba(44, 48, 96, 0) 70%), var(--night); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 40px; min-height: min(100svh, 900px); padding-top: 112px; padding-bottom: 72px; }
.hero h1 { font: 400 clamp(46px, 6.4vw, 86px)/1.0 var(--serif); letter-spacing: -0.02em; margin: 0 0 28px; }
.hero h1 em { color: var(--night-gold); white-space: nowrap; }
.lede { font-size: 20px; line-height: 1.55; color: var(--night-text-2); max-width: 30em; margin: 0 0 36px; }
.availability { margin-bottom: 22px; }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border: 1px solid rgba(217, 190, 132, 0.55); border-radius: 999px; font-size: 15px; color: var(--night-text); background: rgba(243, 239, 230, 0.05); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--night-gold); box-shadow: 0 0 0 4px rgba(217, 190, 132, 0.18); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0; font: 600 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--night-text-2); }
.facts li { margin: 0; }
.facts li + li::before { content: "·"; margin: 0 12px; color: var(--night-gold); }
.hero-art { margin: 0; justify-self: center; width: min(100%, 500px); }
.hero-art img {
  display: block; width: 100%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 48%, transparent 100%);
}

/* Intro */
.intro { padding: 128px 0 112px; }
.home .statement { text-align: center; max-width: 16em; margin: 0 auto; font-size: clamp(34px, 5vw, 62px); }
.statement em { color: var(--accent-ink); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--line); }
.pillar p { color: var(--ink-2); margin: 0; }
.glyph { width: 44px; height: 44px; color: var(--ink); margin-bottom: 18px; }

/* Features */
.features { padding: 24px 0 72px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 96px; padding-top: 72px; padding-bottom: 72px; }
.feature--flip .phone { order: -1; }
.feature-copy { max-width: 470px; }
.feature--flip .feature-copy { justify-self: end; }
.feature-copy > p { font-size: 18px; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.ticks li { position: relative; margin: 0; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 0 L8.1 5.9 L14 7 L8.1 8.1 L7 14 L5.9 8.1 L0 7 L5.9 5.9 Z' fill='%23A8843F'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* The bezel is the screenshot's own border, so the rings behind it stay under the whole phone. */
.phone { position: relative; isolation: isolate; justify-self: center; width: min(320px, 76vw); margin: 0; }
.phone img { display: block; width: 100%; border: 9px solid #101119; border-radius: 54px; background: #101119; box-shadow: 0 50px 90px -40px rgba(31, 34, 64, 0.55), 0 0 0 1px rgba(24, 25, 23, 0.12); }
.phone::before, .phone::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; border-radius: 50%; border: 1px solid var(--line); transform: translate(-50%, -50%); }
.phone::before { width: 170%; aspect-ratio: 1; }
.phone::after { width: 128%; aspect-ratio: 1; background: radial-gradient(circle, var(--surface-alt) 0%, transparent 70%); }

/* Tarot */
.tarot { padding: 128px 0 140px; background: radial-gradient(ellipse 70% 60% at 50% 100%, #2C3060 0%, rgba(44, 48, 96, 0) 70%), var(--night); }
.tarot-head { max-width: 640px; margin: 0 auto 72px; text-align: center; }
.tarot-head > p:last-child { color: var(--night-text-2); font-size: 18px; margin: 0; }
.deck { list-style: none; display: flex; justify-content: center; padding: 0; margin: 0; }
.deck li {
  --r: 0deg; --y: 0px;
  position: relative; flex: 0 0 auto; width: 200px; margin: 0 -14px; padding: 8px 8px 34px;
  background: #F3EFE6; border-radius: 14px;
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform 300ms ease-out;
}
.deck li:nth-child(1) { --r: -12deg; --y: 40px; z-index: 1; }
.deck li:nth-child(2) { --r: -6deg; --y: 10px; z-index: 2; }
.deck li:nth-child(3) { z-index: 3; }
.deck li:nth-child(4) { --r: 6deg; --y: 10px; z-index: 2; }
.deck li:nth-child(5) { --r: 12deg; --y: 40px; z-index: 1; }
.deck li:hover { transform: translateY(calc(var(--y) - 18px)) rotate(var(--r)); }
.deck img { display: block; width: 100%; border-radius: 6px; }
.deck span { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font: 500 11px/1 var(--serif); letter-spacing: 0.2em; text-transform: uppercase; color: #3B3A36; }

/* Steps */
.steps { padding: 128px 0; }
.home .steps h2 { max-width: 14em; margin-left: auto; margin-right: auto; }
.step-list { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding: 0; margin: 64px 0 0; text-align: center; }
.step-list::before { content: ""; position: absolute; top: 30px; left: 17%; right: 17%; border-top: 1px dashed var(--line); }
.step-list li { position: relative; margin: 0; }
.step-list p { color: var(--ink-2); max-width: 22em; margin: 0 auto; }
.step-num { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 22px; border: 1px solid var(--accent); border-radius: 50%; background: var(--bg); font: italic 400 22px/1 var(--serif); color: var(--accent-ink); }

/* Trust */
.trust { padding: 120px 0; }
.trust-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.trust-head > p { color: var(--ink-2); font-size: 18px; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }
.trust-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; }
.trust-list li { margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.trust-list p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* FAQ */
.faq { padding: 120px 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 72px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 24px 48px 24px 0; font: 400 22px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 28px/1 var(--sans); color: var(--accent-ink); transition: transform 200ms ease-out; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); margin: -6px 0 0; padding: 0 48px 24px 0; }

/* Closing */
.closing { padding: 128px 0; text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.orbit { width: 150px; height: 150px; color: var(--night-text); margin-bottom: 36px; }
.home .closing h2 { font-size: clamp(36px, 5vw, 64px); }
.closing p { color: var(--night-text-2); font-size: 18px; margin: 0 0 8px; }
.closing .closing-contact { font-size: 15px; margin-top: 18px; }

/* Footer */
.colophon { background: var(--night-deep); color: var(--night-text-2); font-size: 15px; }
.colophon-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.colophon .brand { color: var(--night-text); }
.colophon-brand p { margin: 14px 0 0; font: italic 400 18px/1.4 var(--serif); }
.colophon nav { display: flex; flex-direction: column; gap: 10px; }
.home .colophon h2 { font: 600 12px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--night-gold); margin: 0 0 6px; }
.colophon nav a { color: var(--night-text-2); text-decoration: none; }
.colophon nav a:hover { color: var(--night-text); }
.colophon-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 40px; font-size: 13px;
  background: linear-gradient(var(--night-line), var(--night-line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 128px; gap: 24px; }
  .hero-art { width: min(80%, 380px); }
  .feature { grid-template-columns: 1fr; gap: 72px; }
  .feature--flip .phone { order: 0; }
  .feature-copy, .feature--flip .feature-copy { max-width: 600px; justify-self: start; }
  .trust-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .colophon-grid { grid-template-columns: 1fr 1fr; }
  .colophon-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .container { --gutter: 20px; }
  .masthead-nav a:not(:last-child) { display: none; }
  .pillars, .step-list { grid-template-columns: 1fr; gap: 40px; }
  .step-list::before { display: none; }
  .trust-list { grid-template-columns: 1fr; }
  .intro, .steps, .trust, .faq, .closing { padding: 88px 0; }
  .tarot { padding: 88px 0 112px; }
  .feature { padding-top: 48px; padding-bottom: 48px; gap: 56px; }
  .deck li { width: 150px; margin: 0 -14px; }
  .deck li:nth-child(1), .deck li:nth-child(5) { display: none; }
  .deck li:nth-child(2) { --r: -9deg; --y: 18px; }
  .deck li:nth-child(4) { --r: 9deg; --y: 18px; }
}
@media (max-width: 480px) {
  .container { --gutter: 16px; }
  .lede { font-size: 18px; }
  .deck li { width: 128px; margin: 0 -10px; padding: 6px 6px 28px; }
  .deck span { font-size: 9px; bottom: 9px; letter-spacing: 0.14em; }
  .faq summary { font-size: 20px; }
  .colophon-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky::after { animation: none; }
  .deck li, .faq summary::after { transition: none; }
}
