/* forzaec.org
 *
 * Same structure as the family sites on eiger (nielsen.net) so the deploy
 * and nginx patterns carry over, but its own type and colour: IBM Plex Sans
 * and IBM Plex Serif, chosen for this site, and an amber accent that reads
 * as "emergency" without shouting. No gradients, no glow, no cards.
 */

:root {
  --bg:            #fbf9f5;
  --surface:       #f3f0ea;
  --surface-2:     #e9e5dd;
  --border:        #d8d3c8;
  --border-strong: #b3ada0;
  --text:          #1d1f22;
  --text-dim:      #4a4d52;
  --text-mute:     #666a70;
  --accent:        #b4521a;
  --accent-text:   #9c4512;
  --accent-hover:  #7f380f;
  --accent-soft:   rgba(180,82,26,.08);
  --accent-border: rgba(180,82,26,.25);

  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:  10px;
}

[data-theme="dark"] {
  --bg:            #111214;
  --surface:       #18191c;
  --surface-2:     #1f2024;
  --border:        #2a2c31;
  --border-strong: #3b3e45;
  --text:          #ebe7df;
  --text-dim:      #aaa59c;
  --text-mute:     #8d8880;
  --accent:        #d6762f;
  --accent-text:   #f0a35e;
  --accent-hover:  #f5b97f;
  --accent-soft:   rgba(214,118,47,.12);
  --accent-border: rgba(214,118,47,.35);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Visible only on keyboard focus. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 10;
}
.skip-link:focus { left: 0; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.wordmark-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.wordmark-link:hover .wordmark { color: var(--accent-text); }
/* Square mark: the same shape as favicon.svg, drawn in CSS so it follows the theme. */
.mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent);
  position: relative;
}
.mark::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px;
  width: 12px; height: 14px;
  border: 3px solid #fff;
  border-right: 0;
  border-bottom: 0;
  box-sizing: border-box;
}
.mark::after {
  content: "";
  position: absolute;
  left: 7px; top: 12px;
  width: 9px; height: 3px;
  background: #fff;
}
.wordmark {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .005em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-toggle {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 7px 10px;
}
.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

main { flex: 1; padding: 48px 0 72px; }

h1 {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: clamp(30px, 5.2vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 22px;
  max-width: 18ch;
}

.section-heading {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 46px 0 14px;
}

p { margin: 0 0 16px; max-width: 64ch; }

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-text);
  margin: 0 0 14px;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent-hover); }

.meta {
  color: var(--text-mute);
  font-size: 14px;
}

/* Numbered steps: a serif numeral in the accent colour, hairline rules. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 8px 0 18px;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 0 16px 44px;
  border-top: 1px solid var(--border);
  max-width: 64ch;
}
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-text);
  line-height: 1.2;
}
.steps strong { font-weight: 600; color: var(--text); }

/* Bulleted list without the cramped default indent. */
.plain-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  max-width: 64ch;
}
.plain-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  color: var(--text-dim);
}
.plain-list li::before {
  content: "-";
  position: absolute;
  left: 2px;
  color: var(--text-mute);
}

/* Error pages: 404/403/500. Same shell, big code, one way back. */
.error-page { text-align: center; padding-top: 72px; }
.error-page h1 { margin-left: auto; margin-right: auto; }
.error-code {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 600;
  line-height: 1;
  color: var(--accent-text);
  margin: 0 0 8px;
}
.error-page .lede, .error-page p { margin-left: auto; margin-right: auto; }

footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 14px;
  color: var(--text-mute);
}
footer p { margin: 0 0 6px; max-width: none; }
footer p:last-child { margin-bottom: 0; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent-text); }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  main { padding: 36px 0 56px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .wordmark { font-size: 15px; }
  .lede { font-size: 17px; }
  .section-heading { margin-top: 36px; }
}
