/* ============================================================
   Capital High School Robotics — design tokens
   Palette: CHS royal blue / black / silver-grey (official school colors)
   Type: Oswald (display, condensed industrial) + Inter (body) + IBM Plex Mono (data/labels)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --black: #0a0c10;
  --panel: #12151b;
  --panel-line: #24304a;
  --silver: #c7cdd6;
  --silver-dim: #838d9c;
  --royal: #1e4fd6;
  --royal-bright: #3f6bff;
  --radius: 2px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:
    linear-gradient(var(--black), var(--black)),
    repeating-linear-gradient(0deg, rgba(199,205,214,0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(199,205,214,0.035) 0 1px, transparent 1px 28px);
  color: var(--silver);
  font-family: 'Inter', sans-serif;
  line-height:1.55;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

h1,h2,h3,.display{
  font-family:'Oswald', sans-serif;
  text-transform:uppercase;
  letter-spacing:0.02em;
  color:#fff;
  margin:0;
}

.mono{ font-family:'IBM Plex Mono', monospace; }

a{ color: var(--royal-bright); text-decoration:none; }
a:hover{ text-decoration:underline; }
a:focus-visible, button:focus-visible{ outline:2px solid var(--royal-bright); outline-offset:2px; }

/* ---------- layout shell ---------- */
.wrap{ max-width:1080px; margin:0 auto; padding:0 24px; }

nav.top{
  position:sticky; top:0; z-index:20;
  background:rgba(10,12,16,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--panel-line);
}
nav.top .wrap{ display:flex; align-items:center; justify-content:space-between; height:68px; }

.brand-lockup{ display:flex; align-items:center; gap:12px; }
.brand-lockup img{ height:60px; width:auto; display:block; }
.brand-lockup .brand{ font-family:'Oswald'; color:#fff; font-size:1.5rem; letter-spacing:0.06em; }
.brand-lockup .brand span{ color:var(--royal-bright); }

nav.top ul{ list-style:none; display:flex; gap:28px; margin:0; padding:0; }
nav.top a{ color:var(--silver); font-size:0.85rem; letter-spacing:0.04em; text-transform:uppercase; font-weight:500; }
nav.top a:hover{ color:var(--royal-bright); text-decoration:none; }

/* ---------- schematic corner-bracket panel (signature element) ---------- */
.panel{
  position:relative;
  border:1px solid var(--panel-line);
  background: var(--panel);
  padding:28px;
  border-radius: var(--radius);
}
.panel::before, .panel::after,
.panel .bl, .panel .br{
  content:''; position:absolute; width:14px; height:14px;
  border-color: var(--royal-bright); border-style:solid; opacity:0.9;
}
.panel::before{ top:-1px; left:-1px; border-width:2px 0 0 2px; }
.panel::after{ top:-1px; right:-1px; border-width:2px 2px 0 0; }
.panel .bl{ bottom:-1px; left:-1px; border-width:0 0 2px 2px; }
.panel .br{ bottom:-1px; right:-1px; border-width:0 2px 2px 0; }

/* ---------- full-bleed photo hero ---------- */
.hero-photo{
  position:relative;
  width:100%;
  overflow:hidden;
  border-bottom:1px solid var(--panel-line);
}
.hero-photo-img{
  display:block;
  width:100%;
  height:auto;
}
.hero-photo-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,12,16,0.25) 0%, rgba(10,12,16,0.45) 55%, rgba(10,12,16,0.85) 100%);
}
.hero-photo-content{
  position:absolute; inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  max-width:760px;
  margin:0 auto;
  padding:48px 24px;
}
.hero-photo-content .eyebrow{ margin-bottom:16px; }
.hero-photo-content h1{
  font-size:clamp(2.2rem, 6vw, 4rem);
  line-height:1.05;
  text-shadow:0 2px 16px rgba(0,0,0,0.6);
}
.hero-photo-content .sub{
  max-width:600px; margin:20px auto 0;
  color:var(--silver);
  font-size:1.05rem;
  text-shadow:0 1px 8px rgba(0,0,0,0.7);
}
.btn-lg{
  margin-top:30px;
  padding:16px 40px;
  font-size:0.9rem;
  border-radius:999px;
  background:var(--royal);
  border-color:var(--royal);
}
.btn-lg:hover{ background:var(--royal-bright); border-color:var(--royal-bright); }

@media (max-width:640px){
  .hero-photo-content{ padding:32px 20px; }
}

/* ---------- hero ---------- */
.hero{ padding:88px 0 64px; }
.hero .logo-slot{
  width:1000px; height:1000px; margin-bottom:28px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--panel-line); border-radius:var(--radius);
  background:var(--panel);
}
.hero .logo-slot img{ max-width:80%; max-height:80%; }
.hero .logo-slot.sm{ height:120px; width:120px; margin-bottom:24px; }
.hero .eyebrow{
  font-family:'IBM Plex Mono'; color:var(--royal-bright); font-size:0.8rem;
  letter-spacing:0.12em; text-transform:uppercase; display:block; margin-bottom:18px;
}
.hero h1{ font-size:clamp(2.4rem, 6vw, 4.2rem); line-height:1.02; }
.hero h1 em{ font-style:normal; color:var(--royal-bright); }
.hero p.sub{ max-width:640px; margin-top:20px; color:var(--silver-dim); font-size:1.05rem; }

/* ---------- spec-sheet team cards ---------- */
.grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:22px; }

.card{
  position:relative;
  border:1px solid var(--panel-line);
  background:var(--panel);
  border-radius:var(--radius);
  padding:24px;
  transition:border-color .15s ease, transform .15s ease;
}
.card:hover{ border-color:var(--royal-bright); transform:translateY(-2px); }
a.card:hover{ text-decoration:none; }
a.card:hover h3{ color:var(--royal-bright); }
.card .part-no{
  font-family:'IBM Plex Mono'; font-size:0.72rem; color:var(--silver-dim);
  letter-spacing:0.08em; margin-bottom:10px;
}
.card h3{ font-size:1.35rem; margin-bottom:6px; }
.card .role{ color:var(--royal-bright); font-family:'IBM Plex Mono'; font-size:0.78rem; margin-bottom:14px; display:block; }
.card p{ color:var(--silver-dim); font-size:0.92rem; margin:0 0 16px; }
.card .stats{ display:flex; gap:18px; border-top:1px solid var(--panel-line); padding-top:14px; }
.card .stats div{ font-family:'IBM Plex Mono'; font-size:0.78rem; }
.card .stats b{ display:block; color:#fff; font-size:1.05rem; }

/* ---------- section headers ---------- */
.section{ padding:64px 0; border-top:1px solid var(--panel-line); }
.section .kicker{
  font-family:'IBM Plex Mono'; color:var(--silver-dim); font-size:0.78rem;
  letter-spacing:0.1em; text-transform:uppercase; margin-bottom:8px; display:block;
}
.section h2{ font-size:clamp(1.6rem,3.4vw,2.2rem); margin-bottom:28px; }

/* ---------- data table (schedule / results) ---------- */
table{ width:100%; border-collapse:collapse; font-family:'IBM Plex Mono'; font-size:0.85rem; }
th{ text-align:left; color:var(--silver-dim); font-weight:500; text-transform:uppercase; letter-spacing:0.06em; font-size:0.72rem; padding:10px 12px; border-bottom:1px solid var(--panel-line); }
td{ padding:12px; border-bottom:1px solid var(--panel-line); color:var(--silver); }
tr:hover td{ background:rgba(63,107,255,0.06); }

/* ---------- buttons ---------- */
.btn{
  display:inline-block; font-family:'IBM Plex Mono'; font-size:0.82rem; letter-spacing:0.04em;
  padding:12px 22px; border:1px solid var(--royal-bright); color:#fff; border-radius:var(--radius);
  text-transform:uppercase;
}
.btn:hover{ background:var(--royal); border-color:var(--royal); text-decoration:none; }
.btn.ghost{ border-color:var(--panel-line); color:var(--silver); }
.btn.ghost:hover{ background:var(--panel-line); }

/* ---------- footer ---------- */
footer{ border-top:1px solid var(--panel-line); padding:40px 0; color:var(--silver-dim); font-size:0.85rem; }
footer .wrap{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
footer .foot-brand{ display:flex; align-items:center; gap:10px; }
footer .foot-brand img{ height:24px; width:auto; opacity:0.85; }

/* ---------- responsive ---------- */
@media (max-width:640px){
  nav.top ul{ gap:16px; }
  nav.top .wrap{ flex-direction:column; height:auto; padding:12px 24px; gap:10px; }
  .hero{ padding:56px 0 40px; }
  footer .wrap{ flex-direction:column; }
}
