* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:      #0E0F11;
  --panel:   #16181C;
  --border:  #3A414A;
  --text:    #F4F6F8;
  --muted:   #A3ABB6;
  --col:     760px;   /* the single centred column everything lives in */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--text); color: var(--bg); }

/* ── BANNER + LOGO ─────────────────────────────────────────────── */
.banner {
  position: relative;
  height: 230px;
  background-image: url("img/banner.png");
  background-size: cover;
  background-position: center;
  margin-bottom: 85px;          /* room for the logo hanging below */
}

.banner-logo {
  position: absolute;
  left: 50%;
  bottom: -65px;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  border: 4px solid var(--bg);
  background: var(--bg);
}

/* ── NAV ───────────────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding: 0 1.5rem 3rem;
}

nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

nav a:hover { color: var(--text); }
nav a.active { color: var(--text); border-bottom: 1px solid var(--text); padding-bottom: 2px; }

/* ── THE COLUMN ────────────────────────────────────────────────── */
section {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

/* ── PILL SECTION HEADERS ──────────────────────────────────────── */
h1, h2 {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
  margin-bottom: 2rem;
}

h1 { font-size: clamp(1.4rem, 3.2vw, 2rem); letter-spacing: -0.01em; }

h2 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3rem;
}

h3 {
  font-family: 'DM Mono', monospace;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

p { color: var(--muted); margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ── PILL BUTTONS ──────────────────────────────────────────────── */
.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin: 2.5rem 0 1rem;
}

.btn {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.btn:hover { color: var(--text); border-color: var(--text); }
.btn-primary { color: var(--text); border-color: var(--text); }

/* ── CONTENT BLOCKS ────────────────────────────────────────────── */
.event, .lecture, .project, .jam, .rule {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.event:last-child, .lecture:last-child, .project:last-child,
.jam:last-child, .rule:last-child { border-bottom: 0; }

.meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* ── COUNTDOWN ─────────────────────────────────────────────────── */
.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 2rem 0 1.5rem;
  font-family: 'DM Mono', monospace;
  text-align: center;
}

.countdown .num {
  display: block;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
}

.countdown .lbl {
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── LINKS, TABLES, LISTS ──────────────────────────────────────── */
section a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}
section a:not(.btn):hover { border-color: var(--text); }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { text-align: left; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--border); }
th {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
td { color: var(--muted); }

section ul { padding-left: 1.2rem; margin-bottom: 1.1rem; }
section li { color: var(--muted); margin-bottom: 0.4rem; }

/* ── FOOTER ────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 2.5rem 1.5rem 3.5rem;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SMALL SCREENS ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .banner { height: 150px; margin-bottom: 70px; }
  .banner-logo { width: 96px; height: 96px; bottom: -48px; }
  nav { gap: 1.1rem; padding-bottom: 2.5rem; }
  h1, h2 { padding: 0.8rem 1.2rem; }
  .countdown { gap: 1.6rem; }
}