/* Equation Heist web pages (bonendo.com/equationheist): the game's navy and gold.
   Layout: one readable column under a small gilded masthead. No external requests. */
@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ground: #f4efe3;
  --panel: #fbf8f0;
  --ink: #1b2233;
  --muted: #5f6270;
  --rule: #ddd2ba;
  --gold: #8f6312;
  --gold-light: #b88a2c;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b1220;
    --panel: #111a2c;
    --ink: #ece3cf;
    --muted: #9ba1ae;
    --rule: #2a3550;
    --gold: #e2b75c;
    --gold-light: #f0cf86;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
.page { max-width: 44rem; margin: 0 auto; padding-inline: 16px; padding-block: 2.5rem 4rem; }

.masthead { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--gold); margin-bottom: 2rem; }
.masthead img { width: 52px; height: 52px; flex: none; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.masthead nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 1rem; }
.masthead nav a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { border-bottom-color: var(--gold); }

h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.15; margin: 0 0 0.4rem; letter-spacing: 0.02em; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 2.4rem 0 0.6rem; color: var(--gold); }
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.3rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }
a { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lede { font-size: 1.25rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.95rem; }
.path { font-weight: 600; white-space: nowrap; }

.callout { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.email { font-family: ui-monospace, Menlo, monospace; font-size: 1rem; user-select: all; overflow-wrap: anywhere; }

details { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 0.6rem; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; color: var(--gold); font-family: var(--display); width: 1rem; flex: none; }
details[open] summary::before { content: "−"; }
details > :not(summary) { margin: 0.6rem 0 0 1.6rem; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--rule); }
th { font-weight: 700; }
.table-wrap { overflow-x: auto; }

footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
footer a { color: var(--muted); }
