/*
 * TRIPLEE — one stylesheet, no build step, no dependency.
 *
 * The palette is not invented: every value below is copied from `src/theme/tokens.ts`, so the
 * site and the app are the same colours rather than two guesses at the same brand. The app's
 * personality, from `docs/design-language.md`, is "a well-organized travel wallet, not a social
 * feed" — so this is calm and plain on purpose.
 *
 * Fonts are the system stack. No web font is loaded, because a font from a CDN is a third party
 * that sees every visitor's IP address, and the privacy policy says there are no trackers.
 * Keeping that true costs one font stack.
 */

:root {
  /* src/theme/tokens.ts — light */
  --bg: #F7F7FA;
  --surface: #FFFFFF;
  --ink: #19191D;
  --ink-muted: #5D5C66;
  --line: #E5E5E9;
  --accent: #4A4E8C;
  --accent-soft: #E8E7FB;
  --on-accent: #FFFFFF;

  --measure: 34rem;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* src/theme/tokens.ts — dark */
    --bg: #101014;
    --surface: #1B1A20;
    --ink: #EFEFF2;
    --ink-muted: #9796A0;
    --line: #2B2A31;
    --accent: #8189C4;
    --accent-soft: #232145;
    --on-accent: #1E1B4B;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  /* Safe areas, so the page is not under a notch or a home indicator. */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---------------------------------------------------------------- header */

header.site {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span { color: var(--accent); }

/* ---------------------------------------------------------------- type */

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

p, li { color: var(--ink); }

.lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
}

.muted { color: var(--ink-muted); }

small.note {
  display: block;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.4rem;
}

a { color: var(--accent); text-underline-offset: 2px; }

a:focus-visible, .wordmark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------------------------------------------------------------- status */

.status {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
}

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

ol.steps { padding-left: 1.2rem; }
ol.steps li { margin-bottom: 1rem; }

ul.plain { list-style: none; padding: 0; }
ul.plain li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
ul.plain li:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- policy */

.policy h2 { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.policy h2:first-of-type { border-top: 0; padding-top: 0; }

/* A blank a lawyer or the founder must fill in. Deliberately loud: an unfilled field
   should be impossible to publish by accident. */
.founder-field {
  background: var(--accent-soft);
  border-bottom: 2px dotted var(--accent);
  padding: 0 0.25rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------- footer */

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

footer.site nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.75rem; }

/* ---------------------------------------------------------------- phone */

@media (max-width: 30rem) {
  body { font-size: 16px; }
  .wrap { padding: 1.75rem 1rem 3rem; }
  h1 { font-size: 1.6rem; }
}

/* Someone who has asked for less motion gets none. There is none to remove today, and
   this stays so that a later addition cannot forget. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
