/* Reston EUC — site styles. Colours are taken from the logo. */

:root {
  --bg: #0e0a08;
  --bg-raised: #17110d;
  --bg-panel: #1e1611;
  --line: #34261c;
  --text: #f5eee6;
  --text-dim: #c8bcb0;
  --text-faint: #8f8276;
  --orange: #ff8a1a;
  --orange-deep: #e37102;
  --ember: #d64f01;
  --ember-dark: #a83101;
  --radius: 18px;
  --wrap: 1080px;
  --font-display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--orange); }
a:hover { color: var(--text); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--orange); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 10, 8, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: 0.03em; text-transform: uppercase;
}
.brand img { width: 36px; height: 36px; }
.brand span { color: var(--orange); }

.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { color: var(--text-dim); text-decoration: none; font-weight: 500; font-size: 15px; }
.topnav a:hover { color: var(--text); }

.topbar .btn { padding: 9px 16px; font-size: 15px; }

@media (max-width: 720px) {
  .topnav { display: none; }
  .topbar .btn { margin-left: auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 17px; line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--orange), var(--ember));
  color: #140800;
  box-shadow: 0 6px 24px rgba(227, 113, 2, 0.35);
}
.btn-primary:hover { color: #000; box-shadow: 0 8px 32px rgba(255, 138, 26, 0.5); transform: translateY(-1px); }

.btn-ghost { color: var(--text); border: 1.5px solid var(--line); background: var(--bg-raised); }
.btn-ghost:hover { color: var(--text); border-color: var(--orange-deep); }

.btn-lg { padding: 18px 34px; font-size: 19px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
  min-height: min(86vh, 760px);
  padding: 56px 0 72px;
  text-align: center;
  isolation: isolate;
}

/* Banner photo behind the hero, with shading so the text stays readable. */
.hero-bg, .hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
.hero-bg img { object-fit: cover; object-position: 66% 50%; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 10, 8, 0.55), rgba(14, 10, 8, 0.7) 60%, var(--bg)),
    rgba(14, 10, 8, 0.25);
}

.hero-inner { position: relative; }

.hero-logo { position: relative; width: min(220px, 56vw); margin: 0 auto 24px; }
.hero-logo::before {
  content: "";
  position: absolute; inset: -14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 138, 26, 0.55), rgba(227, 113, 2, 0.15) 65%, transparent);
  animation: glow 5s ease-in-out infinite;
}
.hero-logo img { position: relative; width: 100%; }

@keyframes glow {
  0%, 100% { opacity: 0.75; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}

.hero h1 {
  position: relative;
  font-size: clamp(56px, 13vw, 112px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero h1 span { color: var(--orange); }

.tagline {
  position: relative;
  margin: 10px auto 0;
  max-width: 34ch;
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--text-dim);
}

.hero-actions {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: 34px;
}

.hero-note { position: relative; margin: 18px 0 0; font-size: 15px; color: var(--text-dim); }

/* Desktop: text on the left over the sunset, wheel visible on the right. */
@media (min-width: 900px) {
  .hero { text-align: left; }
  .hero-bg img { object-position: 50% 50%; }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(14, 10, 8, 0.92) 0%, rgba(14, 10, 8, 0.7) 38%, rgba(14, 10, 8, 0.05) 65%),
      linear-gradient(180deg, transparent 70%, var(--bg));
  }
  .hero-inner > * { max-width: 520px; }
  .hero-logo { width: 190px; margin: 0 0 22px; }
  .tagline { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
}

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section-alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 32px; }
.eyebrow {
  display: block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.section h2 { font-size: clamp(38px, 6vw, 54px); text-transform: uppercase; }
.section-head p { margin: 10px 0 0; max-width: 60ch; color: var(--text-dim); }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.embed-events { display: block; width: 100%; height: 320px; border: 0; background: var(--bg-panel); }

.embed-note { margin: 14px 0 0; font-size: 15px; color: var(--text-faint); }

/* ---------- Steps ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 26px 24px 24px;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--orange), var(--ember));
  color: #140800;
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
}
.steps h3 { font-size: 28px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--text-dim); }

/* ---------- Routes ---------- */

.routes-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  padding: 28px;
}
.routes-card .icon-badge { width: 64px; height: 64px; }
.routes-card div { flex: 1 1 260px; }
.routes-card h3 { font-size: 28px; }
.routes-card p { margin: 4px 0 0; color: var(--text-dim); }

.icon-badge {
  display: grid; place-items: center; flex: none;
  border-radius: 16px;
  background: rgba(227, 113, 2, 0.12);
  color: var(--orange);
}
.icon-badge .icon { width: 32px; height: 32px; }

/* ---------- Follow ---------- */

.follow { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.follow a {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.follow a:hover { border-color: var(--orange-deep); transform: translateY(-2px); }
.follow .icon-badge { width: 52px; height: 52px; border-radius: 14px; }
.follow .icon-badge .icon { width: 26px; height: 26px; }
.follow strong { display: block; font-size: 17px; }
.follow small { display: block; font-size: 14px; color: var(--text-faint); }

/* ---------- Games ---------- */

.games { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.game {
  display: flex; flex-direction: column;
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.game:hover { color: var(--text); border-color: var(--orange-deep); transform: translateY(-3px); }
.game-art { aspect-ratio: 40 / 21; background: var(--bg); }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-body { padding: 18px 20px 22px; }
.game h3 { font-size: 28px; }
.game p { margin: 4px 0 0; color: var(--text-dim); font-size: 15px; }

/* ---------- Footer ---------- */

.footer { padding: 56px 0 40px; text-align: center; border-top: 1px solid var(--line); }
.footer-line {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 6vw, 52px);
  margin: 0;
}
.footer-line span { color: var(--orange); }
.footer-social { display: flex; justify-content: center; gap: 12px; margin: 24px 0; }
.footer-social a {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-raised);
  color: var(--text-dim);
}
.footer-social a:hover { color: var(--orange); border-color: var(--orange-deep); }
.footer small { color: var(--text-faint); font-size: 14px; }

/* ---------- Small screens and motion ---------- */

@media (max-width: 560px) {
  .hero { padding: 36px 0 64px; }
  .section { padding: 60px 0; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
