/* Layout idea: dark forest-green badge world, cream double-ring panels, italic condensed display type like the crew badge. */
:root {
  --forest: #102a1b;
  --badge: #1a3c29;
  --badge-hi: #234d36;
  --cream: #f3ebda;
  --cream-dim: #c9c4b0;
  --team-green: #6cc58a;
  --team-red: #ef7b6f;
  --team-blue: #6fb1ea;
  --ink: #0f2417;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--forest);
  background-image: radial-gradient(ellipse 120% 60% at 50% -10%, var(--badge-hi) 0%, var(--forest) 70%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; max-width: 65ch; }

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

/* Header */
.site-header { border-bottom: 2px solid var(--cream); background: rgba(16, 42, 27, 0.85); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 64px; height: auto; display: block; }
.brand span { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav a {
  display: block; padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 2px solid transparent;
}
nav a:hover { border-color: var(--cream-dim); }
nav a[aria-current="page"] { background: var(--cream); color: var(--ink); }

main { flex: 1; padding: 40px 0 56px; }

/* Type */
.display { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.01em; }
.kicker { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cream-dim); font-size: 1.125rem; }
.stars { display: flex; gap: 10px; align-items: center; }
.stars svg { width: 18px; height: 18px; fill: var(--cream); }
.stars svg:nth-child(3) { width: 24px; height: 24px; }

/* Double-ring panel */
.ring {
  position: relative; background: var(--badge); border: 3px solid var(--cream); border-radius: 22px;
  box-shadow: inset 0 0 0 6px var(--badge), inset 0 0 0 8px rgba(243, 235, 218, 0.55);
}

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; margin-bottom: 40px; }
.hero img { width: 100%; max-width: 460px; height: auto; justify-self: center; display: block; }
.hero h1 { font-size: clamp(3rem, 9vw, 5.5rem); margin: 14px 0 12px; }
.hero p { color: var(--cream); font-size: 1.1875rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; text-decoration: none; transition: transform 0.15s ease, background 0.15s ease; }
.card:hover { background: var(--badge-hi); transform: translateY(-2px); }
.card h2 { font-size: 2.25rem; }
.card p { color: var(--cream-dim); }
.card .go { margin-top: auto; padding-top: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.pill { align-self: flex-start; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9375rem; padding: 2px 12px; border-radius: 999px; border: 2px solid var(--cream); }
.pill.solid { background: var(--cream); color: var(--ink); }

/* Page heading */
.page-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(2.75rem, 8vw, 4.5rem); }

/* Timer holding page */
.holding { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px; }
.dial { width: 100%; max-width: 320px; justify-self: center; }
.dial .track { fill: none; stroke: rgba(243, 235, 218, 0.22); stroke-width: 10; }
.dial .arc { fill: none; stroke: var(--cream); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 60 640; transform-origin: 50% 50%; animation: sweep 6s linear infinite; }
.dial text { fill: var(--cream); font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 64px; }
.dial .sub { font-size: 18px; font-style: normal; font-weight: 600; letter-spacing: 0.3em; fill: var(--cream-dim); }
@keyframes sweep { to { transform: rotate(360deg); } }
.holding h2 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin: 12px 0; }
.holding .actions { margin-top: 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 22px; border-radius: 999px; border: 2px solid var(--cream); background: transparent; color: var(--cream); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: rgba(243, 235, 218, 0.14); }
.btn.primary { background: var(--cream); color: var(--ink); }
.btn.primary:hover { background: #fff8e8; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Calendars */
.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 40px; }
.team { --c: var(--team-green); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.team.green { --c: var(--team-green); }
.team.red { --c: var(--team-red); }
.team.blue { --c: var(--team-blue); }
.team-top { background: var(--c); color: var(--ink); padding: 18px 24px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.team-top h2 { font-size: 2.5rem; }
.team-top span { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.team-body { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.now { border-left: 6px solid var(--c); padding: 2px 0 2px 14px; }
.now small { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim); font-size: 0.9375rem; }
.now strong { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.875rem; line-height: 1.1; }
.start { color: var(--cream-dim); font-size: 1rem; }
.start b { color: var(--cream); font-weight: 600; }
.url-row { display: flex; gap: 8px; }
.url-row input { flex: 1; min-width: 0; background: var(--forest); color: var(--cream); border: 2px solid rgba(243, 235, 218, 0.4); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 0.875rem; }
.url-row .btn { min-height: 40px; padding: 4px 16px; font-size: 1rem; }
.team .actions { margin-top: auto; }

.section { margin-bottom: 36px; }
.section h2 { font-size: 2rem; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(243, 235, 218, 0.25); vertical-align: top; }
th { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-dim); font-size: 0.9375rem; }
tr:last-child td { border-bottom: 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.two .ring { padding: 24px 26px; }
.two h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.two ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.two li::marker { color: var(--cream-dim); }

/* Footer */
.site-footer { border-top: 2px solid var(--cream); padding: 22px 0; color: var(--cream-dim); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero img { max-width: 320px; order: -1; }
  .holding { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .brand span { font-size: 1.25rem; }
  .brand img { width: 52px; }
  main { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .dial .arc { animation: none; }
  .card { transition: none; }
}
