/* ===== Colors: change these to restyle the whole site ===== */
:root {
  --ink: #1F2A2E;
  --muted: #55636A;
  --paper: #FFFFFF;
  --birch: #EFE6D6;
  --green: #2F6B55;
  --yellow: #F5C518;
  --line: #D9D2C5;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECE8E1; --muted: #A9B3B6; --paper: #172024; --birch: #22303A;
    --green: #7CC4A6; --line: #34444C; color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1.125rem/1.6 "Atkinson Hyperlegible", "Segoe UI", Roboto, Arial, sans-serif;
}
img, iframe { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--yellow); color: #1F2A2E; padding: .5rem 1rem; z-index: 10; }

h1, h2, .brand { font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; line-height: 1.05; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 7vw, 4rem); margin: 2.5rem 0 .75rem; }
h2 { font-weight: 600; font-size: 1.75rem; margin: 2.5rem 0 .5rem; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 38rem; margin-top: 0; }

/* ===== Header with tape-measure ruler ===== */
.site-header { background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { .site-header { background: #0E1518; color: var(--ink); } }
.ruler {
  height: 22px; background-color: var(--yellow);
  background-image:
    repeating-linear-gradient(90deg, #1F2A2E 0 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, #1F2A2E 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, #1F2A2E 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, #1F2A2E 0 1px, transparent 1px 8px);
  background-size: 100% 100%, 100% 65%, 100% 45%, 100% 25%;
  background-repeat: no-repeat;
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-block: .9rem; }
.brand { color: inherit; text-decoration: none; font-size: 1.6rem; font-weight: 800; margin-right: auto; }
nav { display: flex; gap: .25rem; overflow-x: auto; max-width: 100%; }
nav a {
  color: inherit; text-decoration: none; padding: .45rem .7rem; border-radius: 4px;
  white-space: nowrap; font-size: 1rem;
}
nav a:hover { background: rgba(255,255,255,.12); }
nav a[aria-current="page"] { background: var(--yellow); color: #1F2A2E; font-weight: 700; }

/* ===== Home ===== */
.hero h1 { font-size: clamp(3rem, 11vw, 6rem); margin-top: 3rem; }
.jump-list, .app-list, .link-list { list-style: none; padding: 0; margin: 2rem 0; }
.jump-list li, .app-list li { border-top: 2px solid var(--ink); }
.jump-list li:last-child, .app-list li:last-child { border-bottom: 2px solid var(--ink); }
.jump-list a, .app-list a {
  display: grid; gap: .15rem; padding: 1.1rem .25rem; color: var(--ink); text-decoration: none;
}
.jump-list a:hover strong, .app-list a:hover strong { color: var(--green); }
.jump-list strong, .app-list strong { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.jump-list span, .app-list span { color: var(--muted); }
.notice { background: var(--birch); padding: .25rem 1.5rem 1rem; border-radius: 6px; margin: 3rem 0; }
.link-list li { padding: .4rem 0; }

/* ===== Safety ===== */
.hazard {
  border: 4px solid; border-image: repeating-linear-gradient(45deg, var(--yellow) 0 14px, #1F2A2E 14px 28px) 4;
  padding: .5rem 1.25rem; margin: 1.5rem 0;
}
.rules { padding-left: 1.5rem; }
.rules li { margin: .6rem 0; padding-left: .25rem; }

/* ===== Videos ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 2rem; margin-top: 2rem; }
.video h2 { font-size: 1.5rem; margin: .75rem 0 .25rem; }
.video p { margin: 0; color: var(--muted); }
.video-frame { aspect-ratio: 16 / 9; background: var(--birch); border-radius: 6px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder { height: 100%; display: grid; place-items: center; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 1.5rem 0; color: var(--muted); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
