/* Leonida Drone League. The look is design.md's "Look": a timing sheet under a black broadcast band,
   one brand color (volt), purple for records, green for personal bests. Styles arrive with the
   screens that use them; mockups/ldl-core-v4.html has the approved version of the rest. */

@font-face {
  font-family: Archivo;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-vietnamese.2940914dea14.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: Archivo;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.589f7bc0fac4.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Archivo;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.de2f1fe81758.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --ground: light-dark(#ffffff, #0b0d12);
  --ink: light-dark(#0d0f14, #f2f3f5);
  --muted: light-dark(#5a6171, #9aa1b1);
  --line: light-dark(#e2e4e9, #262c38);
  --panel: light-dark(#f3f4f6, #151922);
  --volt: #c6ef2e;
  --on-volt: #0d0f14;
  /* The header and band stay black in both themes. */
  --header: #0d0f14;
  --band: light-dark(#0d0f14, #000000);
  --band-muted: #a9afbd;
  --stripes: clamp(84px, 20vw, 300px);
  --stripe-angle: 112deg;
}

/* Steeper where the band is narrow and tall, or the first stripe gets cut off at its left edge. */
@media (max-width: 620px) { :root { --stripe-angle: 98deg; } }

/* Keeps what the page scrolls to, or what Tab lands on, clear of the sticky header. */
html { scroll-padding-top: 76px; }
@media (max-width: 620px) { html { scroll-padding-top: 140px; } }

* { box-sizing: border-box; min-width: 0; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 Archivo, system-ui, sans-serif; overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.site-header :focus-visible, .band :focus-visible { outline-color: var(--volt); }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(5vw, 16px, env(safe-area-inset-left, 0px));
  padding-right: max(5vw, 16px, env(safe-area-inset-right, 0px));
}
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 20; padding: 12px 16px; background: var(--volt); color: var(--on-volt); font-weight: 700; }
.skip-link:focus { top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); background: var(--header); color: #fff; border-bottom: 1px solid #22262f; }
.site-header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 10px; }
.site-name { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; text-decoration: none; }
.site-name img { flex: none; }
.site-name b { display: block; font-size: 17px; font-weight: 800; font-stretch: 118%; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }
.site-name small { display: block; font-size: 13px; color: var(--band-muted); }
.site-nav { display: flex; align-self: stretch; margin-left: auto; }
.site-nav a { position: relative; display: flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 15px; font-weight: 700; color: #c3c8d3; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: #fff; }
.site-nav a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--volt); }
@media (max-width: 620px) {
  .site-nav { width: 100%; margin-left: 0; gap: 20px; }
  .site-nav a { padding: 0 6px; }
  .site-nav a[aria-current]::after { left: 6px; right: 6px; }
}

/* The black band that opens every page */
.band { position: relative; overflow: hidden; background: var(--band); color: #fff; }
.band-stripes {
  position: absolute; top: 0; bottom: 0; right: 0; width: var(--stripes);
  background: linear-gradient(var(--stripe-angle), transparent 0 30%, var(--volt) 30% 46%, transparent 46% 56%, var(--volt) 56% 65%, transparent 65% 73%, var(--volt) 73% 78%, transparent 78%);
}
.band-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 36px; padding-top: 28px; padding-bottom: 26px; padding-right: calc(var(--stripes) + 12px); }
.band-back { display: inline-block; margin-bottom: 12px; font-weight: 600; color: var(--band-muted); text-decoration: none; }
.band-back:hover { color: #fff; }
.band-kicker { display: block; margin-bottom: 6px; font-weight: 600; color: var(--band-muted); }
.band-text { max-width: 56ch; margin: 10px 0 0; color: #d4d8e0; }
.band-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
h1 { margin: 0; font-size: clamp(32px, 5.4vw, 52px); font-weight: 800; font-stretch: 115%; line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; overflow-wrap: break-word; }
/* Narrow enough for the longest word in a course name (Kowaachobee) on a 320px phone. */
@media (max-width: 440px) { h1 { font-size: 26px; font-stretch: 90%; } }
.band-stats { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 0; }
.band-stats dt { font-size: 14px; font-weight: 600; color: var(--band-muted); }
.band-stats dd { margin: 0; }
.band-stats b { display: block; font-size: 36px; font-weight: 800; font-stretch: 78%; line-height: 1.05; font-variant-numeric: tabular-nums; }
.band-stats small { font-size: 14px; color: var(--band-muted); }

/* Page */
.page { min-height: 50vh; padding-top: 24px; padding-bottom: 44px; }
.heading { margin: 34px 0 10px; font-size: 19px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; }
.page > .heading:first-child { margin-top: 0; }
.empty { margin: 0; padding: 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 8px; background: var(--volt); color: var(--on-volt); font-size: 15px; font-weight: 800; font-stretch: 110%; line-height: 1; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.button:hover { filter: brightness(1.07); }

/* Course list */
.location { margin-top: 30px; }
.location:first-child { margin-top: 4px; }
.location-name { margin: 0 0 10px; padding-bottom: 8px; font-size: 18px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.course-card { display: grid; align-content: space-between; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .15s, background .15s; }
.course-card:hover { border-color: var(--ink); background: var(--panel); }
.course-name { font-size: 17px; font-weight: 700; }
.course-facts { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .course-grid { grid-template-columns: minmax(0, 1fr); } }

.site-footer { padding: 18px 0 30px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { .course-card { transition: none; } }
