/* Shared across every page. The palette is the app's: seasoned steel, coal orange,
   ash grey, and it follows the reader's system setting the way the app does. */
:root {
  color-scheme: light dark;
  --bg: #F2EDE6;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --muted: #6E6560;
  --line: #DED5CA;
  --flame: #D4541E;
  --ember: #A33A12;
  --sear: #8A5A2B;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130F;
    --surface: #231E19;
    --ink: #F5F0EA;
    --muted: #A3978D;
    --line: #3A322A;
    --flame: #F0682C;
    --ember: #C24A18;
    --sear: #C08B54;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  padding: 24px 16px 72px;
}

main { max-width: 660px; margin: 0 auto; }

/* The heat strip from the app's welcome screen, run hot to cold. */
.bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 30px; }
.bar span { flex: 1; }
.bar .a { background: #D4541E; }
.bar .b { background: #A33A12; }
.bar .c { background: #8A5A2B; }
.bar .d { background: var(--line); }

h1 { font-size: clamp(28px, 7vw, 34px); letter-spacing: -0.9px; line-height: 1.15; margin: 0 0 6px; }
h2 { font-size: 18px; letter-spacing: -0.2px; margin: 34px 0 8px; }
h3 { font-size: 15px; margin: 22px 0 4px; }

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

.lede {
  background: var(--surface);
  border-radius: 14px;
  border-left: 4px solid var(--flame);
  padding: 20px 22px;
  font-size: 17px;
  margin: 0 0 10px;
}

ul { padding-left: 20px; }
li { margin-bottom: 9px; }

a { color: var(--flame); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ember); }

/* Tap targets on a phone, same 48px floor the app holds itself to. */
nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
}
nav a:hover { border-color: var(--flame); color: var(--flame); }
nav a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.card { background: var(--surface); border-radius: 14px; padding: 20px 22px; margin: 14px 0; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--flame);
  color: #FFFFFF;
  font-weight: 800;
  text-decoration: none;
  margin-top: 6px;
}
.contact:hover { background: var(--ember); color: #FFFFFF; }

footer {
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--muted); }
