/* Birth Light: a gift shop that sells a real star. A white page, black type, product photography, and the night only
   where the product is (the star charts, the cards). Geist throughout; numbers and data in Geist Mono. */
:root {
  --bg: #ffffff;
  --soft: #f5f5f3;      /* quiet panels */
  --ink: #0c0e13;       /* type, buttons */
  --ink-2: #353a45;
  --gray: #646b78;      /* secondary type */
  --line: #e4e5e9;      /* hairlines, field borders */
  --night: #0b1020;     /* the product's sky */
  --gold: #b8872f;      /* the ring around their star, nothing else */
  --ok: #1f7a4d;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  color-scheme: light;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.03em; text-wrap: balance }
h1 { font-size: clamp(2.35rem, 5.4vw, 4rem); line-height: 1.03; letter-spacing: -.04em }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.08 }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em }
p { margin: 0 }
a { color: inherit }
img { max-width: 100%; display: block }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--gray); max-width: 36em }
.muted { color: var(--gray) }
.small { font-size: .875rem; color: var(--gray) }
.kicker { font-size: .8125rem; font-weight: 500; color: var(--gray); letter-spacing: .02em }

/* buttons */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; font-weight: 500; font-size: 1rem; padding: 13px 22px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s ease, transform .15s ease }
.btn:hover { background: #262a33 }
.btn:active { transform: scale(.985) }
.btn[disabled] { opacity: .5; cursor: progress }
.btn.light { background: #fff; color: var(--ink); border-color: var(--line) }
.btn.light:hover { border-color: #c9ccd3; background: #fff }
.btn.lg { padding: 16px 28px; font-size: 1.0625rem }
.btn.block { width: 100% }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b9bcc4; cursor: pointer; font-size: inherit; color: inherit }
.link:hover { text-decoration-color: currentColor }

/* fields */
.field { display: grid; gap: 6px; min-width: 0 }
.field > label, .label { font-size: .875rem; font-weight: 500; color: var(--ink-2) }
.input, .field input, .field select, .field textarea { width: 100%; min-width: 0; background: #fff; border: 1px solid #d6d8de; border-radius: 12px; padding: 12px 14px; font-size: 1rem; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease }
.field textarea { resize: vertical; min-height: 92px }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12, 14, 19, .08) }
.field .hint { font-size: .8125rem; color: var(--gray) }
.err { color: #b42318; font-size: .875rem; min-height: 1.3em }

/* the top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease }
.bar.scrolled { border-bottom-color: var(--line) }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; font-size: 1.0625rem }
.logo svg { width: 26px; height: 26px }
.bar nav { display: none; gap: 30px; font-size: .9375rem; color: var(--ink-2) }
.bar nav a { text-decoration: none }
.bar nav a:hover { color: var(--ink) }
.bar .right { display: flex; align-items: center; gap: 14px }
.bar .right .btn { padding: 9px 16px; font-size: .9375rem }
@media (min-width: 880px) { .bar nav { display: flex } }

/* footer */
footer.foot { border-top: 1px solid var(--line); padding-block: 36px 48px; margin-top: 40px }
footer.foot .wrap { display: grid; gap: 18px; grid-template-columns: 1fr; font-size: .875rem; color: var(--gray) }
footer.foot nav { display: flex; gap: 22px; flex-wrap: wrap }
footer.foot a { text-decoration: none } footer.foot a:hover { color: var(--ink) }
@media (min-width: 760px) { footer.foot .wrap { grid-template-columns: 1fr auto; align-items: start } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } *, *::before, *::after { transition: none !important; animation: none !important } }
