/* Bathurst WebCam, 2026 rebuild by Websolutions.ca */
:root {
  --ink: #1d2733;
  --muted: #5d6b7a;
  --line: #e3e8ee;
  --paper: #ffffff;
  --soft: #f4f6f9;
  --stage: #0d1622;
  --stage-2: #16273a;
  --accent: #2f7fd1;
  --live: #e5372f;
  --radius: 14px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration: none; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 10px; top: 10px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.site-header .logo img { width: 150px; }
.lang {
  font-size: 15px; font-weight: 600; text-decoration: none;
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; white-space: nowrap;
}
.lang:hover { background: var(--soft); }

/* Live stage */
.stage {
  background: radial-gradient(1200px 500px at 50% -10%, var(--stage-2), var(--stage));
  color: #e9eef4;
  padding: 36px 0 44px;
}
.stage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.stage h1 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.2;
  margin: 0 0 6px;
  color: #fff;
}
.stage .sub { margin: 0; color: #b7c3d0; font-size: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(229, 55, 47, .14); color: #ff8a84;
  border: 1px solid rgba(229, 55, 47, .45); border-radius: 999px; padding: 5px 12px;
}
.pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(229, 55, 47, .7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 55, 47, .6); }
  70% { box-shadow: 0 0 0 8px rgba(229, 55, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 55, 47, 0); }
}
@media (prefers-reduced-motion: reduce) { .pill::before { animation: none; } }

.player {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage .note { margin: 14px 0 0; font-size: 14.5px; color: #9fb0c1; max-width: 900px; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--soft); }
.section h2 {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; margin: 0 0 22px;
}
.section h3 { font-size: 19px; margin: 30px 0 8px; }
.section h3:first-child { margin-top: 0; }

/* Sponsors */
.sponsors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sponsor {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.sponsor .mark { height: 84px; display: flex; align-items: center; justify-content: center; }
.sponsor .mark img { max-height: 84px; width: auto; max-width: 100%; }
.sponsor p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; flex: 1; }
.sponsor a.more { font-size: 15px; font-weight: 600; text-decoration: none; }
.sponsor a.more:hover { text-decoration: underline; }

/* About + weather */
.about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.about p { margin: 0 0 14px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px;
}
.card h3 { margin: 0 0 12px; font-size: 17px; }
.map { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.weather { min-height: 120px; }

/* Footer */
.site-footer { background: var(--stage); color: #b7c3d0; font-size: 15px; padding: 30px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 980px) {
  .sponsors { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .logo img { width: 120px; }
  .stage { padding: 24px 0 32px; }
  .player { border-radius: 10px; }
  .sponsors { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
