@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url("fonts/public-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 800; font-display: swap; src: url("fonts/public-sans-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }

:root {
  --page: #DEDCD6;       /* Stone */
  --card: #F7F4EC;       /* Parchment */
  --text: #10181F;       /* Ink Navy */
  --muted: #4A5550;      /* ~7:1 on Parchment */
  --link: #2E7A78;       /* Trail Teal, ~4.6:1 on Parchment */
  --button: #E08A34;     /* Blaze Ember */
  --button-text: #10181F;/* ~6.7:1 on Blaze Ember */
  --rule: #C9C5BC;
  --official: #5C7A5E;
  --fresh: #E08A34;
  --checked: #2E7A78;
  --row: #EFEBE2;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #10181F;
    --card: #1A2530;
    --text: #F7F4EC;
    --muted: #B8BDB5;
    --link: #3FA5A0;     /* Aurora Teal, ~5:1 on the dark card */
    --button: #E08A34;
    --button-text: #10181F;
    --rule: #2C3A46;
    --official: #7FA082;
    --fresh: #E08A34;
    --checked: #3FA5A0;
    --row: #22303C;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--page);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

main {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.icon { width: 96px; height: 96px; border-radius: 22px; }

h1 {
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
  margin: 16px 0 8px;
}

h2 {
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 16px 0 8px;
}

p { margin: 0 0 12px; overflow-wrap: anywhere; }

.pitch { font-size: 1.1rem; }

.ledger { max-width: 420px; margin: 20px auto 12px; text-align: left; }

.ledger-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
  padding: 10px 14px;
  background: var(--row);
  border-left: 4px solid var(--official);
  border-radius: 0 8px 8px 0;
}

.ledger-row.fresh { border-left-color: var(--fresh); }
.ledger-row.checked { border-left-color: var(--checked); }

.ledger dt {
  min-width: 5.5em;
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 700;
}

.ledger dd { margin: 0; }

.muted { color: var(--muted); }

a { color: var(--link); font-weight: 500; }

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

.rule { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }

footer {
  max-width: 560px;
  margin-top: 16px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--muted);
}
footer p { margin: 4px 0; }

/* The publisher's mark at text height, in the footer's own color. */
.maker-mark {
  width: auto;
  height: 1.1em;
  margin-right: 0.35em;
  vertical-align: -0.2em;
}

/* "Open TrailLedger" only makes sense on a phone. */
.phone-only { display: none; }
@media (pointer: coarse) {
  .phone-only { display: inline-block; }
  .desktop-only { display: none; }
}

[hidden] { display: none !important; }
