/* SteelAndSimmer — shared stylesheet.
 * System font stack only (no web-font request → faster paint, better
 * Lighthouse score). Mobile-first; single file, no build step. */

:root {
  --ink: #211a14;
  --paper: #fdfaf6;
  --paper-2: #f4ece1;
  --accent: #b5501e;
  --accent-text: #963e15; /* darker than --accent: meets 4.5:1 on --paper-2 for text-on-light use (e.g. outline buttons) */
  --accent-ink: #ffffff;
  --line: #e4d7c4;
  --muted: #6b5c4d;
  --disclosure-bg: #2c2318;
  --disclosure-ink: #f7ecd9;
  --focus: #1a6fb0;
  --max: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible, .go-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.disclosure {
  background: var(--disclosure-bg);
  color: var(--disclosure-ink);
  margin: 0;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.disclosure a { color: var(--disclosure-ink); text-decoration: underline; }

header.site {
  padding: 1.1rem 1rem 0.8rem;
  max-width: var(--max);
  margin: 0 auto;
}
header.site .brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
header.site .brand span { color: var(--accent); }
header.site nav {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.92rem;
}
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a:focus-visible { color: var(--accent); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem 1rem 3rem;
}

h1 { font-size: 1.7rem; line-height: 1.2; margin: 0.6rem 0 0.8rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

.lede { font-size: 1.08rem; color: var(--muted); }

.hero {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  margin: 1rem 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.hero img { border-radius: 10px; }
.hero h2 { margin-top: 0; font-size: 1.2rem; }
/* --accent fails 4.5:1 on --paper-2 (the .hero background) — same fix as
   the outline CTA button below: use the darker --accent-text instead. */
.hero p a { color: var(--accent-text); }

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  text-align: center;
}
.cta:hover, .cta:focus-visible { background: #963e15; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }

.howto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 1rem 0 1.6rem;
}
@media (min-width: 640px) {
  .howto-grid { grid-template-columns: 1fr 1fr; }
}
.howto-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}
.howto-card h3 { margin: 0 0 0.3rem; font-size: 1.02rem; color: var(--accent); }
.howto-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.source-note {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-top: 2rem;
}
.source-note a { color: var(--muted); }

footer.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
footer.site a { color: var(--muted); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem; }

/* /go/ landing page */
main.go { text-align: center; }
.go-lede { color: var(--muted); }
.go-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.4rem 0;
}
.go-btn {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 700;
}
.go-btn:hover, .go-btn:focus-visible { background: #963e15; }
.go-btn__state { font-weight: 500; font-size: 0.85rem; opacity: 0.9; }
.go-btn--disabled {
  background: var(--paper-2);
  color: var(--muted);
  border: 1px dashed var(--line);
}
.go-back { margin-top: 1.5rem; }
