/* Palette lifted from the app's asset catalog so the site and the app agree.
   Both appearances, because the pages are read on phones at night. */
:root {
  --bg: #F4F1EA;
  --ink: #262521;
  --clay: #C4653B;
  --surface: #FBFAF5;
  --border: #E4DFD1;
  --muted: #6B675E;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #201F1C;
    --ink: #ECE8DE;
    --clay: #D98E68;
    --surface: #2A2823;
    --border: #3B382F;
    --muted: #9A958A;
  }
}

* { box-sizing: border-box; }

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

/* Header */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { border-radius: 6px; }
.bar nav { display: flex; gap: 18px; }
.bar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 2px;
}
.bar nav a:hover { color: var(--ink); }
.bar nav a.current {
  color: var(--clay);
  border-bottom: 2px solid var(--clay);
}

/* Content */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px 56px;
}

h1 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 24px 0 8px;
}
h2 {
  font-size: 22px;
  margin: 44px 0 12px;
  letter-spacing: -0.005em;
}
h3 {
  font-size: 18px;
  margin: 28px 0 8px;
  color: var(--clay);
}

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

/* The "Last updated" line, emitted as the first emphasised paragraph. */
main > p:first-of-type em {
  display: inline-block;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 2px; }
strong { font-weight: 650; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Footer */
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 0 0 6px; }

/* Landing page only */
.hero { text-align: center; padding: 40px 0 8px; }
.hero img { border-radius: 22px; margin-bottom: 20px; }
.hero p { color: var(--muted); font-size: 19px; max-width: 460px; margin: 0 auto 28px; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
}
.card:hover { border-color: var(--clay); }
.card strong { display: block; margin-bottom: 4px; font-size: 17px; }
.card span { color: var(--muted); font-size: 15px; }
