/* EQIT — "Midnight" theme with Blue Jays blue lattice (design A2b) */
:root {
  --deep: #070f1d;
  --base: #0d1b2e;
  --glow: #1a3354;
  --accent: #6fd3ff;      /* cyan: title line, circuit lines, buttons */
  --figure: #134A8E;      /* Blue Jays blue: background lattice */
  --nav: #2a4d75;
  --line: #243d5e;
  --soft: #a9bbd1;
  --soft-accent: #cdeeff;
  --head: #0d1b2e;
  --accent-dark: #245a8c; /* links on light backgrounds */
  --tint: #f2f6fa;
  --text: #0d121a;
  --display: "Syncopate", "Arial Black", sans-serif;
  --body: "Nunito Sans", "Avenir Next", Avenir, system-ui, sans-serif;
  --nav-h: 71px;   /* height of the sticky menu bar; index.html measures it exactly */
}
@media (max-width: 600px) { :root { --nav-h: 119px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { opacity: .85; }
h1, h2 { font-family: var(--display); font-weight: 700; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap, .narrow { padding: 0 16px; } }

.dash { width: 28px; height: 8px; background: var(--accent); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

/* ---------- Nav ---------- */
.nav { background: var(--deep); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px 16px; position: sticky; top: 0; z-index: 10; }
.nav a { background: var(--nav); color: #fff; text-decoration: none; padding: 10px 28px; font-size: 14px; letter-spacing: .06em; }
.nav a.current { background: #fff; color: var(--deep); }
@media (max-width: 600px) { .nav a { padding: 10px 14px; font-size: 13px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  /* fill the first screen exactly, content centred */
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 6vh 24px;
  background: radial-gradient(ellipse at 70% 40%, var(--glow) 0%, var(--base) 45%, var(--deep) 100%);
}
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.circuit span { position: absolute; background: var(--accent); }
.circuit .v  { left: 112px; top: 6%; bottom: 0; width: 2px; }
.circuit .h  { left: 112px; top: 34%; width: 72px; height: 2px; }
.circuit .n  { width: 14px; height: 14px; border-radius: 50%; }
.circuit .n1 { left: 106px; top: 20%; }
.circuit .n2 { left: 178px; top: calc(34% - 6px); }
.circuit .n3 { left: 106px; top: 62%; }
.hero-inner { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 5vh, 56px); }
/* title scales with both screen width and height so it always fits the first screen */
.hero h1 { font-size: clamp(26px, min(4.6vw, 7.2vh), 76px); line-height: 1.08; letter-spacing: .02em; }
.hero h1 span { display: block; }
.hero h1 .q { color: var(--accent); margin: 0.3em 0; }
.when { font-size: clamp(20px, min(2.2vw, 3.4vh), 34px); font-weight: 800; }
.where { font-size: clamp(17px, min(1.9vw, 2.9vh), 29px); color: var(--accent); margin-top: 4px; }
@media (max-width: 900px) {
  .hero { padding: 6vh 16px; }
  .hero h1 { font-size: clamp(24px, min(7vw, 6vh), 44px); }
  .circuit { display: none; }
}

.theme { font-size: clamp(15px, min(1.5vw, 2.3vh), 22px); letter-spacing: .04em; color: var(--soft-accent); font-style: italic; margin-bottom: clamp(10px, 2vh, 22px); }

/* ---------- About ---------- */
.about { position: relative; padding: 72px 0; }
.about .trace { position: absolute; left: 112px; top: 0; height: 120px; width: 2px; background: var(--accent); }
.about .narrow { display: flex; flex-direction: column; gap: 22px; }
.about p { font-size: 22px; line-height: 1.55; font-weight: 300; }
.logos { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: center; margin-top: 24px; }
.logo { background: #fff; }
.logo img { height: 60px; width: auto; }
.logo img.short { height: 46px; }
@media (max-width: 900px) { .about .trace { display: none; } .about p { font-size: 19px; } }
@media (max-width: 600px) { .logo img { height: 44px; } .logo img.short { height: 34px; } }

/* ---------- Key dates band ---------- */
.band { background: var(--base); color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 36px; padding-bottom: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.label { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.fact { font-size: 22px; font-weight: 800; margin-top: 6px; }
.btn { display: inline-block; background: var(--accent); color: var(--deep); text-decoration: none; border-radius: 999px; padding: 16px 30px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; }

/* ---------- Call for papers ---------- */
.cfp { position: relative; background: var(--tint); padding: 88px 0; }
.cfp .trace { position: absolute; right: 112px; top: 0; height: 180px; width: 2px; background: var(--accent); }
.cfp .narrow { display: flex; flex-direction: column; gap: 18px; }
.cfp h2 { font-size: 40px; letter-spacing: .12em; color: var(--head); }
.cfp ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.cfp a { color: var(--accent-dark); }
.cfp-title { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.35; color: var(--head); letter-spacing: .03em; }
.cfp-theme { font-size: 20px; font-style: italic; color: var(--accent-dark); }
.cfp-facts { margin: 4px 0 8px; display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; background: #fff; border-left: 4px solid var(--accent); }
.cfp-facts div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.cfp-facts dt { font-weight: 800; color: var(--head); }
.cfp-facts dd { margin: 0; }
@media (max-width: 600px) { .cfp-facts div { grid-template-columns: 1fr; gap: 0; } }
.questions { margin: 8px 0; padding-left: 24px; display: flex; flex-direction: column; gap: 20px; }
.questions li::marker { font-weight: 800; color: var(--accent-dark); }
.questions h3, .cfp h3.sub { margin: 0 0 6px; font-size: 19px; line-height: 1.4; color: var(--head); }
.cfp h3.sub { font-family: var(--display); font-size: 22px; letter-spacing: .08em; margin-top: 28px; }
.cfp a { word-break: break-word; }
.submit-box { margin-top: 16px; padding: 24px 28px; background: #fff; border: 2px solid var(--base); display: flex; flex-direction: column; gap: 8px; }
.submit-box b { font-size: 18px; color: var(--head); }
.submit-box a { font-weight: 600; word-break: break-all; }
@media (max-width: 900px) { .cfp .trace { display: none; } .cfp h2 { font-size: 28px; } }

/* ---------- Organizers ---------- */
.organizers { position: relative; color: #fff; padding: 96px 0; background: radial-gradient(ellipse at 70% 40%, var(--glow) 0%, var(--base) 45%, var(--deep) 100%); }
.organizers .trace { position: absolute; left: 112px; top: 0; height: 90px; width: 2px; background: var(--accent); }
.organizers .wrap { display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.organizers h2 { font-size: 40px; letter-spacing: .12em; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.people a { font-size: 20px; font-weight: 800; letter-spacing: .04em; color: var(--accent); }
.people p { color: var(--soft-accent); font-size: 17px; margin-top: 4px; }
@media (max-width: 900px) { .organizers .trace { display: none; } .organizers h2 { font-size: 28px; } }

/* ---------- Previous years ---------- */
.past { padding: 88px 0; }
.past .wrap { display: flex; flex-direction: column; gap: 32px; }
.past h2 { font-size: 32px; letter-spacing: .12em; color: var(--head); }
.years { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.year { display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--base); padding: 28px; }
.year .y { font-family: var(--display); font-weight: 700; font-size: 36px; color: var(--accent-dark); }
.year b { font-size: 18px; }
@media (max-width: 600px) { .past h2 { font-size: 24px; } }

/* ---------- Footer ---------- */
footer { background: var(--deep); color: var(--soft); padding: 40px 16px; text-align: center; font-size: 15px; }
footer a { color: var(--accent); }
