/* ==========================================================================
   Parallel Bars — website styles
   ==========================================================================
   Plain CSS, one file, no build step. Uploaded as-is to shared hosting.

   Every colour, radius and type rule here is copied from the brand kit
   (CLAUDE.md §12 / src/theme.ts). If a token changes in the app, change it
   here too — these are the same design tokens, just in a second runtime.
   ========================================================================== */

:root {
  --midnight: #131a2a;  /* primary background */
  --midnight2: #1c2740; /* cards / raised surfaces */
  --amber: #f7b32b;     /* primary accent, CTAs */
  --amber-dark: #e09a12;
  --coral: #ff5d73;     /* secondary accent */
  --cream: #f6f1e7;     /* text on dark */
  --slate: #8a93a6;     /* muted text, dividers */

  --radius-chip: 999px;
  --radius-card: 16px;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --measure: 68ch; /* readable line length for the legal pages */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Anchor links on the legal pages shouldn't hide the heading under the top. */
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  /* 70/15/10/5 (§12): midnight dominates, cream carries the text, amber and
     coral appear only as accents — and never at equal weight on one page. */
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2rem) 3rem;
}

/* --------------------------------------------------------------------------
   The stacked brand lockup (§12)
   --------------------------------------------------------------------------
   Mark, then "parallel bars" and the tagline as live text — never the
   horizontal wordmark image, which is for external wide-format use only.

   pin-mark.png is the 1024×1024 adaptive-icon foreground, so the mark sits
   inside a transparent safe-zone margin rather than filling the canvas. Its
   opaque bounds measure 370×456 — the mark is 0.4453 of the canvas height. So
   scale the image until the *mark* is --pin-height, then pull the transparent
   margin back in with negative margins. Same arithmetic as
   src/components/BrandLockup.tsx, so the app and the site space identically.
   -------------------------------------------------------------------------- */
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lockup__pin {
  --pin-height: clamp(88px, 17vw, 132px);
  --pin-art-ratio: 0.4453;
  --pin-box: calc(var(--pin-height) / var(--pin-art-ratio));
  --pin-bleed: calc((var(--pin-box) - var(--pin-height)) / 2);

  width: var(--pin-box);
  height: var(--pin-box);
  max-width: 100%;
  margin-top: calc(-1 * var(--pin-bleed));
  margin-bottom: calc(2rem - var(--pin-bleed));
}

.lockup__wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.0167em; /* the splash's -2/120em */
  color: var(--cream);
}

.lockup__tagline {
  margin: 0.5rem 0 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.225em; /* the splash's +9/40em */
  text-transform: uppercase;
  color: var(--coral);
}

/* --------------------------------------------------------------------------
   Landing page
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(1rem, 5vw, 3rem);
}

.hero__lede {
  margin: 2.5rem auto 0;
  max-width: 54ch;
  font-size: 1.125rem;
  color: var(--cream);
  text-align: center;
}

.hero__status {
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--amber);
  border-radius: var(--radius-chip);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--amber);
}

.actions {
  margin: 2.75rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

.button {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-chip);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button--primary {
  background: var(--amber);
  color: var(--midnight);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--amber-dark);
}

.button--ghost {
  border: 1px solid var(--slate);
  color: var(--cream);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--cream);
}

.card {
  margin: 3rem 0 0;
  padding: 1.5rem;
  background: var(--midnight2);
  border-radius: var(--radius-card);
}

.card p:first-child {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.fine {
  font-size: 0.875rem;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.doc {
  max-width: var(--measure);
}

.doc__back {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--amber);
  text-decoration: none;
}

.doc__back:hover,
.doc__back:focus-visible {
  text-decoration: underline;
}

.doc h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.0167em;
  color: var(--cream);
}

.doc__updated {
  margin: 0 0 2.5rem;
  font-size: 0.875rem;
  color: var(--slate);
}

.doc h2 {
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--midnight2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--cream);
}

.doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--amber);
}

.doc p,
.doc li {
  color: var(--slate);
}

.doc strong {
  color: var(--cream);
  font-weight: 600;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.5rem;
}

.doc li::marker {
  color: var(--coral);
}

.doc a {
  color: var(--amber);
  text-decoration-color: rgba(247, 179, 43, 0.45);
  text-underline-offset: 0.15em;
}

.doc a:hover,
.doc a:focus-visible {
  text-decoration-color: var(--amber);
}

/* A short, plain-language summary above the formal text. */
.summary {
  margin: 0 0 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--midnight2);
  border-radius: var(--radius-card);
  border-left: 3px solid var(--amber);
}

.summary h2 {
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  font-size: 1.0625rem;
}

.summary ul {
  margin: 0;
}

.summary li:last-child {
  margin-bottom: 0;
}

/* Definition-style table for the "what we collect" section. */
.doc dl {
  margin: 1rem 0 0;
}

.doc dt {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--cream);
}

.doc dd {
  margin: 0.25rem 0 0;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Footer, shared by all three pages
   -------------------------------------------------------------------------- */
.footer {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--midnight2);
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer__nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--cream);
  text-decoration: none;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--amber);
  text-decoration: underline;
}

.footer__nav [aria-current="page"] {
  color: var(--slate);
}

.footer__legal {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--slate);
}

.footer__drink {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
}

/* Visible only to keyboard/screen-reader users. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
