/* Expr — shared styles for the landing page and the privacy notice.
   Palette follows Gofio (cream paper, warm ink) and the app (slate accent, orange in dark). */

:root {
  --paper: #f2eee3;
  --paper-hi: #faf8f2;
  --sand: #e9e3d3;
  --card: #ffffff;
  --ink: #26241f;
  --ink-soft: #5c574b;
  --ink-faint: #8a8473;
  --line: rgba(38, 36, 31, 0.11);
  --accent: #6b7a8c;
  --accent-text: #56677b;
  --track: rgba(38, 36, 31, 0.12);
  --shadow: 0 1px 2px rgba(38, 36, 31, 0.06), 0 12px 40px rgba(38, 36, 31, 0.10);
  --shadow-lg: 0 2px 6px rgba(38, 36, 31, 0.06), 0 30px 80px rgba(38, 36, 31, 0.16);
  --curve-1: #4f5d70;
  --curve-2: #23897f;
  --curve-3: #7d55c7;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1c1a;
    --paper-hi: #23221f;
    --sand: #181715;
    --card: #262522;
    --ink: #ece8de;
    --ink-soft: #b4ae9f;
    --ink-faint: #857f71;
    --line: rgba(236, 232, 222, 0.10);
    --accent: #f6a04d;
    --accent-text: #f6a04d;
    --track: rgba(236, 232, 222, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 80px rgba(0, 0, 0, 0.5);
    --curve-1: #9aa8ba;
    --curve-2: #3cb3a6;
    --curve-3: #a585e6;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 0 0 0.5px var(--line), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

/* ---------- Buttons & pills ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}

.button:hover {
  opacity: 0.88;
}

.button:active {
  transform: scale(0.98);
}

.button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--card) 40%, transparent);
}

.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8862f;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-weight: 400;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 52ch;
  text-wrap: pretty;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  white-space: nowrap;
}

/* ---------- Footer ---------- */

footer {
  padding: 32px 24px 44px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-inner nav {
  display: flex;
  gap: 20px;
}

.footer-inner a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-inner a:hover {
  color: var(--ink);
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status::before {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .nav-links .hide-sm {
    display: none;
  }
}
