/* foundone.tv. Colours, spacing, radii, type sizes and the button's shadows come from design/tokens.json (pnpm web:build writes them in below); type and
   layout follow design/brand.md: Bricolage Grotesque for display, Nunito Sans for the rest, the
   red only on the one primary button, 24px side padding, 44px+ tap targets. */

:root {
  --page: #FEFCF9;
  --surface: #FFFFFF;
  --edge: #EFE9E1;
  --ink: #2E1F1A;
  --muted: #6B5A50;
  --muted-2: #75655B;
  --line-soft: #F1ECE4;
  --track: #F4EFE8;
  --edge-quiet: #C9BDB1;
  --cherry: #B3322A;
  --cherry-deep: #8E241E;
  --cherry-text: #B3322A;
  --lens: rgba(255,255,255,0.72);
  --cherry-soft: #E0846F;
  --on-cherry: #FFFFFF;
  --selected: #FCEEEA;
  --blush: #F2B8A8;
  --glow: #F8D3C4;
  --mustard: #E2A93B;
  --mustard-deep: #946812;
  --butter: #F6DFA6;
  --butter-tint: #FFF5DD;
  --on-butter: #8A5F10;
  --teal: #3E7C78;
  --mint: #CDE6E3;
  --sand: #EFE6DA;
  --sky: #D5E3EC;
  --plum: #5B4A8A;
  --lilac: #E4DCEF;
  --scrim: #8A7F78;
  --on-tile-disc: #FFFFFF33;
  --cola: #2E1F1A;
  --sam-screen: #FFF8EE;
  --sam-stem: #7A3A2E;
  --gradient-cherry: linear-gradient(180deg, #C23A31 0%, #B3322A 55%, #A82E27 100%);
  --gradient-cherry-pressed: linear-gradient(180deg, #9E2A23 0%, #8E241E 100%);
  --highlight-cherry: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.12);
  --glow-cherry: 0 1px 2px rgba(46,31,26,0.12), 0 6px 16px -6px rgba(179,50,42,0.28);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --radius-pill: 999px;
  --type-wordmark: 28px;
  --type-wordmark-hero: 40px;
  --type-large-title: 28px;
  --type-title: 22px;
  --type-headline: 17px;
  --type-body: 15px;
  --type-footnote: 13px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #1C1512;
    --surface: #2E2420;
    --edge: #3A2F2A;
    --ink: #F4EBDD;
    --muted: #BBA99B;
    --muted-2: #A8968A;
    --line-soft: #3A2E28;
    --track: #3A2E28;
    --edge-quiet: #5A4A40;
    --cherry: #C43A31;
    --cherry-deep: #B3322A;
    --cherry-text: #F07A6E;
    --lens: rgba(255,236,220,0.10);
    --cherry-soft: #C8604F;
    --on-cherry: #FFFFFF;
    --selected: #3D211D;
    --blush: #E8A797;
    --glow: #4A2A24;
    --mustard: #E2A93B;
    --mustard-deep: #946812;
    --butter: #5A4A1E;
    --butter-tint: #3A2E18;
    --on-butter: #EBC77A;
    --teal: #5FA49F;
    --mint: #1F3331;
    --sand: #3A2E28;
    --sky: #2F3A40;
    --plum: #5B4A8A;
    --lilac: #3A3242;
    --scrim: #000000;
    --on-tile-disc: #FFFFFF33;
    --cola: #2E1F1A;
    --sam-screen: #FFF8EE;
    --sam-stem: #7A3A2E;
    --gradient-cherry: linear-gradient(180deg, #CC4339 0%, #C43A31 55%, #B3322A 100%);
    --gradient-cherry-pressed: linear-gradient(180deg, #B3322A 0%, #9E2A23 100%);
    --highlight-cherry: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(0,0,0,0.2);
    --glow-cherry: 0 1px 2px rgba(0,0,0,0.3), 0 6px 18px -6px rgba(196,58,49,0.26);
  }
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque_700Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/NunitoSans_400Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/NunitoSans_700Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito Sans";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/NunitoSans_800ExtraBold.ttf") format("truetype");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family:
    "Nunito Sans",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: var(--type-body);
  line-height: 1.45;
  padding: env(safe-area-inset-top) max(var(--space-5), env(safe-area-inset-right))
    env(safe-area-inset-bottom) max(var(--space-5), env(safe-area-inset-left));
}

main {
  flex: 1;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
}

h1,
h2,
.wordmark {
  font-family: "Bricolage Grotesque", "Nunito Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.15;
}

a {
  color: var(--cherry-text);
  font-weight: 700;
}

/* The landing and link pages: one screen, centred. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-7) 0 var(--space-6);
}

.mark {
  width: 120px;
  height: auto;
  margin-bottom: var(--space-2);
}

.wordmark {
  margin: 0;
  color: var(--cherry-text);
  font-size: var(--type-wordmark-hero);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.wordmark.small {
  font-size: var(--type-wordmark);
}

.hero h1:not(.wordmark) {
  margin: var(--space-1) 0 0;
  font-size: var(--type-large-title);
}

.lede {
  margin: 0;
  max-width: 24rem;
  font-size: var(--type-headline);
  color: var(--muted);
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--gradient-cherry);
  color: var(--on-cherry);
  font-size: var(--type-headline);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--highlight-cherry), var(--glow-cherry);
}

.primary:active {
  background: var(--gradient-cherry-pressed);
}

.primary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blush);
  outline-offset: 3px;
}

.note,
.secondary {
  margin: 0;
  max-width: 24rem;
  font-size: var(--type-body);
  color: var(--muted);
}

.secondary a {
  display: inline-block;
  padding: var(--space-3) var(--space-1);
}

/* Privacy and terms: a readable column. */
.legal {
  padding: var(--space-6) 0 var(--space-7);
}

.legal .home {
  display: inline-block;
  padding: var(--space-3) 0;
  text-decoration: none;
}

.legal h1 {
  font-size: var(--type-large-title);
  margin: var(--space-4) 0;
}

.legal h2 {
  font-size: var(--type-title);
  margin: var(--space-6) 0 var(--space-2);
}

.legal h3 {
  font-size: var(--type-headline);
  margin: var(--space-5) 0 var(--space-2);
}

.legal blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--track);
  color: var(--muted);
}

.legal blockquote p {
  margin: 0;
}

.legal ul,
.legal ol {
  padding-left: 1.25rem;
}

.legal li {
  margin: var(--space-1) 0;
}

.legal code {
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

/* Tables scroll inside themselves, never the page. */
.legal .table {
  overflow-x: auto;
  margin: var(--space-4) 0;
}

.legal table {
  border-collapse: collapse;
  font-size: var(--type-body);
  min-width: 100%;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 1px solid var(--line-soft);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--space-5);
  padding: var(--space-4) 0 var(--space-5);
  font-size: var(--type-footnote);
}

footer a {
  display: inline-block;
  padding: var(--space-3) 0;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .primary {
    transition: transform 0.12s ease-out;
  }
  .primary:active {
    transform: scale(0.97);
  }
}
