/* Shared styles for the usehallpass.com static site.
   Palette mirrors src/theme/colors.ts so the web pages and the app read as one
   product. Dark mode is handled with variable overrides rather than a second
   stylesheet — these are four short documents, not an application. */

:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --cream: #FFF4ED;
  --navy: #111111;
  --gray-warm: #6B5040;
  --white: #FFFFFF;
  --warm-white: #FFF8F5;
  --border: #FFE0C0;

  --bg: var(--warm-white);
  --surface: var(--white);
  --text: var(--navy);
  --text-muted: var(--gray-warm);
  --rule: var(--border);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120F;
    --surface: #211A16;
    --text: #F5EFEA;
    --text-muted: #BFA893;
    --rule: #3A2C22;
    --cream: #2A1F18;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* Header ------------------------------------------------------------------ */

header {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.logo em {
  font-style: italic;
  color: var(--orange);
}

nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
}
nav a:hover, nav a[aria-current="page"] { color: var(--orange-dark); }
nav a[aria-current="page"] { font-weight: 600; }

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

h1 {
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 4px;
}

h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}

.updated {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 36px;
}

p, li { color: var(--text); }
li { margin-bottom: 8px; }
ul { padding-left: 22px; }

a { color: var(--orange-dark); }

strong { font-weight: 600; }

/* Callout ----------------------------------------------------------------- */

.note {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 28px 0;
}
.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

/* Landing page ------------------------------------------------------------ */

.lede {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 34em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px;
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Tables scroll rather than pushing the page sideways. */
.scroll-x { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }

footer {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 14px;
}
