/* S5 "Bold Crimson Graphic" — mirrors apps/ios/src/theme/colors.ts.
   Keep these values in sync with the app palette. */

:root {
  --bg: #fbf6ef;
  --surface: #ffffff;
  --border: #f0e5dd;
  --border-strong: #e6d8cc;
  --text-primary: #241a17;
  --text-body: #3d302b;
  --text-secondary: #8a7a74;
  --text-muted: #a89184;
  --accent: #d1352c;
  --accent-bg: #faeae7;
  --on-accent: #fbf6ef;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --surface: #1c1c1c;
    --border: #2c2c2c;
    --border-strong: #3a3a3a;
    --text-primary: #f2f2f2;
    --text-body: #dcdcdc;
    --text-secondary: #a0a0a0;
    --text-muted: #7a7a7a;
    --accent: #e2483c;
    --accent-bg: #301513;
    --on-accent: #0d0d0d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.band {
  background: var(--accent);
  color: var(--on-accent);
  padding: 28px 24px 36px;
  border-radius: 0 0 24px 24px;
}

/* A direct rule on an element always beats an inherited one, so the generic
   `p, li { color: var(--text-body) }` below would otherwise win here and render
   band text dark-on-crimson. Restate it for anything inside the band. */
.band p,
.band a,
.band h1 { color: var(--on-accent); }

.band-inner,
.wrap {
  max-width: 720px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0;
}

.wordmark a { text-decoration: none; }

.tagline {
  margin: 6px 0 0;
  font-size: 15px;
  opacity: 0.9;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: 34px; margin: 0 0 8px; }
h2 { font-size: 24px; margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }

p, li { color: var(--text-body); }
a { color: var(--accent); }
a:hover { text-decoration: none; }

.meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

.callout {
  background: var(--accent-bg);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout > :last-child { margin-bottom: 0; }

ul { padding-left: 22px; }
li { margin-bottom: 8px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { color: var(--text-primary); font-weight: 500; }

.table-scroll { overflow-x: auto; }

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

footer a { color: var(--text-secondary); }
footer nav { margin-bottom: 8px; }
footer nav a { margin: 0 8px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 999px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 21px; }
  .wordmark { font-size: 26px; }
  main { padding: 32px 20px 64px; }
}
