/* Texas Science Bowl
   Dark UT charcoal with burnt orange. Type is Overpass (derived from Highway
   Gothic, the lettering on US road signs) with Overpass Mono for data. */

@import url('https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,400;0,600;0,800;0,900;1,400&family=Overpass+Mono:wght@400;600&display=swap');

:root {
  --night:  #172027;   /* UT charcoal #333f48, darkened */
  --panel:  #1f2a31;
  --line:   #34424b;
  --text:   #e8ecee;
  --body:   #c9d2d7;
  --muted:  #9cadb7;   /* UT blue-gray */
  --orange: #bf5700;   /* UT burnt orange: fills only, too dark for text on night */
  --orange-dk: #a24900;
  --orange-text: #eb8541;

  --sans: 'Overpass', system-ui, sans-serif;
  --mono: 'Overpass Mono', ui-monospace, monospace;
}

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

body { margin: 0; background: var(--night); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: var(--orange-text); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Field maps are recoloured by the inline SVG filter #field on each page that
   shows one: slate base, and Google's blue pins re-inked burnt orange. */
.map-img { filter: url(#field); }

/* ── Header ────────────────────────────────────────── */

.bar { border-bottom: 1px solid var(--line); background: var(--night); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand span { font-weight: 800; font-size: 18px; letter-spacing: -.005em; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 12px; border-radius: 4px; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }

/* ── Page title ────────────────────────────────────── */

.titleband { padding-block: 40px 32px; }
.titleband h1 { font-weight: 900; font-size: clamp(40px, 6vw, 80px); line-height: .95; letter-spacing: -.02em; margin: 0; }
.titleband.home { padding-block: 56px 44px; }
.titleband.home h1 { font-size: clamp(48px, 8vw, 112px); }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.subtitle { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .02em; margin: 14px 0 0; }
.slogan { font-size: 20px; font-style: italic; color: var(--muted); margin: 14px 0 0; }

/* ── Sections ──────────────────────────────────────── */

.section { padding-block: 80px; }
.section h2.title { font-weight: 800; font-size: 34px; letter-spacing: -.01em; margin: 0 0 28px; }
.section.intro { padding-block: 24px 16px; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.about p { margin: 0 0 16px; color: var(--body); max-width: 58ch; }
.about h2 { font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -.01em; margin: 0; }

/* ── Tournament cards (home) ───────────────────────── */

.sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sheet { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s; }
a.sheet:hover { border-color: var(--orange-text); color: var(--text); }
.sheet .thumb { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.sheet .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet .blank { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center; opacity: .5; }
.sheet .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sheet .yr { font-weight: 900; font-size: 34px; line-height: 1; }
.sheet .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.sheet .champ { margin-top: 12px; font-size: 15px; }
.sheet .champ b { display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sheet .go { margin-top: auto; padding-top: 16px; color: var(--orange-text); font-weight: 600; font-size: 15px; }

/* ── Recap ─────────────────────────────────────────── */

.field-map { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.field-map .map-img { display: block; width: 100%; height: auto; }

.recap-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
.recap-body p { margin: 0 0 16px; max-width: 60ch; color: var(--body); }
.champion { margin: 28px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.champion .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.champion .v { font-weight: 900; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.05; letter-spacing: -.01em; margin: 6px 0 0; }
.champion .v span { color: var(--orange-text); }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-block; padding: 11px 18px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn:hover { border-color: var(--text); color: #fff; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--orange-dk); border-color: var(--orange-dk); }

.log { margin: 0; font-family: var(--mono); font-size: 14px; align-self: start; background: var(--panel); border: 1px solid var(--line); padding: 6px 18px; }
.log div { display: grid; grid-template-columns: 100px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.log div:last-child { border-bottom: 0; }
.log dt { color: var(--muted); }
.log dd { margin: 0; }

.credits { border-top: 1px solid var(--line); }
.credit-group { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.credit-group h3 { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.credit-group ul { list-style: none; padding: 0; margin: 0; columns: 3 170px; column-gap: 24px; }
.credit-group li { break-inside: avoid; }

/* ── Link cards (contact, packets) ─────────────────── */

.link-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 96px; }
.link-card { display: block; background: var(--panel); border: 1px solid var(--line); padding: 22px 22px 26px; color: var(--text); text-decoration: none; }
.link-card:hover { border-color: var(--orange-text); color: var(--text); }
.link-card .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.link-card .v { display: block; font-weight: 800; font-size: 22px; margin-top: 10px; word-break: break-word; }
.link-card .go { display: block; margin-top: 18px; color: var(--orange-text); font-weight: 600; font-size: 15px; }

/* ── Footer ────────────────────────────────────────── */

footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-size: 14px; }

/* ── Small screens ─────────────────────────────────── */

@media (max-width: 860px) {
  .wrap { padding-inline: 16px; }
  .nav a { padding: 6px 8px; }
  .sheets, .link-cards { grid-template-columns: 1fr; }
  .about, .recap-body { grid-template-columns: 1fr; gap: 24px; }
  .credit-group { grid-template-columns: 1fr; gap: 8px; }
}
