/* MODEM — Museum of Detroit Electronic Music
   Aesthetic: Underground Resistance x MoMA x Apple.
   Stark, high-contrast, gallery-grade restraint. */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #f4f4f4;
  --muted: #8c8c8c;
  --line: #262626;
  --accent: #f4f4f4;
  --maxw: 72rem;
  --pad: 1.5rem;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #f4f4f4; color: #0a0a0a; }

a { color: var(--text); text-decoration: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.15rem var(--pad);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.32em;
}
.site-title .dot { color: var(--muted); }

.site-header nav {
  display: flex;
  gap: 1.75rem;
}
.site-header nav a {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.site-header nav a:hover { color: var(--text); }

/* ---------- Layout primitives ---------- */
main { display: block; }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem var(--pad);
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7rem var(--pad) 5rem;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 18ch;
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 2.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--text);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--text); color: var(--bg); }

/* ---------- Typography ---------- */
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

.lead { font-size: 1.2rem; color: var(--text); max-width: 56ch; }

.prose { max-width: 60ch; }
.prose p { margin: 0 0 1.25rem; color: #d8d8d8; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pillars grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 3rem;
}
.pillar .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Statement band ---------- */
.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band .section { border-top: none; }
.band .statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0;
}
.band .statement .muted { color: var(--muted); }

/* ---------- Facts row ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.fact .k {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  display: block;
}
.fact .v {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta { text-align: left; }
.cta h2 { max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--pad) 4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.82rem;
}
.site-footer .credit { max-width: 40ch; }
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--text); }

/* ---------- Page (interior) ---------- */
.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem var(--pad) 2rem;
}
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.page-body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem var(--pad) 6rem;
}
.page-body .prose { max-width: 62ch; }
.page-body h2 { margin-top: 2.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header { padding: 1rem var(--pad); }
  .site-header nav { gap: 1rem; }
  .site-title { font-size: 1.1rem; letter-spacing: 0.24em; }
  .section { padding: 4rem var(--pad); }
  .hero { padding-top: 4.5rem; min-height: 70vh; }
}
