/* ===================================================================
   Shared styles for the pages that aren't the homepage — privacy,
   terms, support and 404. Same palette, type and shapes as index.html
   (which keeps its own inline styles because it has a lot more of them).

   Reading pages, so: one narrow column, generous line height, and the
   serif kept for headings only.
   =================================================================== */

:root {
  --sky:        #DDF2FF;
  --sky-pale:   #EAF8FC;
  --honey:      #FFF5D4;
  --honey-soft: #FFF8E1;
  --gold:       #F0B84D;
  --gold-deep:  #96650A;
  --paper:      #F6EEDD;
  --card:       #FFFDF9;
  --meadow:     #5E9B2E;
  --ink:        #201D19;
  --ink-soft:   #4A443F;
  --rule:       #EADFC6;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans:  "Quicksand", ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  background: var(--honey);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.68;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: #2F5062; }
a:hover { color: var(--gold-deep); }
:focus-visible { border-radius: 8px; outline: 3px solid var(--gold-deep); outline-offset: 3px; }

.wrap { margin: 0 auto; max-width: 760px; padding: 0 24px 72px; }
.wrap.center { padding-top: 90px; text-align: center; }

/* ---------- masthead ---------- */

nav { padding: 22px 0 10px; }
.brand { align-items: center; display: inline-flex; text-decoration: none; }
.brand img { height: 36px; width: auto; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.1; margin: 26px 0 0; }
h2 {
  border-top: 1px solid var(--rule); font-size: clamp(23px, 2.6vw, 29px);
  line-height: 1.2; margin: 46px 0 0; padding-top: 30px;
}
h3 { font-size: 20px; margin: 30px 0 0; }
p { margin: 14px 0 0; }
ul { margin: 14px 0 0; padding-left: 22px; }
li { margin: 8px 0 0; }
strong { font-weight: 700; }

.updated { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }

/* the pale-gold summary box, and the red one that flags an unfinished
   passage — the red should be gone by the time this is published */
.note {
  background: var(--honey-soft); border: 1px solid var(--rule); border-radius: 16px;
  font-size: 16px; margin-top: 22px; padding: 18px 22px;
}
.note strong { color: var(--gold-deep); }

/* ---------- 404 ---------- */

.big { font-size: 62px; line-height: 1; margin: 0; }

.btn {
  background: var(--gold); border-radius: 999px; color: var(--ink); display: inline-block;
  font-family: var(--sans); font-size: 16px; font-weight: 700; padding: 13px 26px;
  text-decoration: none; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #E5A932; color: var(--ink); transform: translateY(-1px); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 14.5px;
  margin-top: 56px; padding-top: 24px;
}
footer a { color: var(--ink-soft); }

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px 56px; }
  h2 { margin-top: 38px; padding-top: 26px; }
}

/* carried over from the old doc.css, which is now removed */
main { padding: 30px 0 72px; }
.center { text-align: center; }
