:root {
  --void: #0B0908;
  --void-deep: #050403;
  --ash: #1A1512;
  --smoke: #2A221C;
  --chrome: #C4BAB0;
  --bakelite: #D66A2A;
  --ember: #C45C26;
  --cream: #F5EDE6;
  --muted: #A89888;
  --ember-glow: rgba(196, 92, 38, 0.25);
  --ember-mist: rgba(196, 92, 38, 0.12);
  --font-display: "Bauhaus 93", "Century Gothic", Futura, "Trebuchet MS", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --font-heading: "Century Gothic", "Gill Sans", "Tw Cen MT", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", "Century Gothic", system-ui, sans-serif;
  --font-accent: "Agency FB", "Arial Narrow", "Century Gothic", "Segoe UI", sans-serif;
  --radius-pill: 999px;
  --radius-panel: 24px;
  --content: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  color-scheme: dark;
  scrollbar-color: var(--smoke) var(--void-deep);
}

body {
  margin: 0;
  background: var(--void);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--bakelite);
}

:focus-visible {
  outline: 2px solid var(--bakelite);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 100;
  background: var(--bakelite);
  color: var(--void-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--void-deep);
}

/* Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--smoke);
}

.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.75rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.brand-lockup {
  width: min(260px, 52vw);
  height: auto;
}

.site-nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--chrome);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cream);
}

.nav-toggle {
  position: relative;
}

.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  color: var(--chrome);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--smoke);
  border-radius: var(--radius-pill);
  background: var(--ash);
}

.nav-toggle summary::-webkit-details-marker {
  display: none;
}

.nav-toggle summary:hover {
  color: var(--cream);
  border-color: var(--chrome);
}

.nav-toggle .site-nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 14rem;
  padding: 0.75rem;
  background: var(--ash);
  border: 1px solid var(--smoke);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(5, 4, 3, 0.6);
}

.nav-toggle .site-nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
}

.nav-toggle .site-nav a:hover {
  background: var(--smoke);
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .site-nav-desktop {
    display: flex;
  }
}

/* Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: min(calc(100vh - var(--header-h)), 46rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
  background:
    radial-gradient(ellipse at 50% 0%, var(--ember-mist), transparent 55%),
    var(--void);
}

.hero-lockup {
  width: min(720px, 92vw);
  height: auto;
  margin: 0 auto 2rem;
}

.hero-lead {
  max-width: 36rem;
  margin: 0 auto 0.85rem;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--cream);
}

.hero-lead em {
  font-style: normal;
  color: var(--cream);
}

.hero-sub {
  max-width: 32rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1rem;
}

.btn-primary {
  display: inline-block;
  background: var(--bakelite);
  color: var(--void-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--void-deep);
  background: #e07533;
}

/* Sections
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.section-lead {
  margin: 0 0 2.25rem;
  max-width: 40rem;
  color: var(--muted);
}

.card {
  list-style: none;
  background: var(--ash);
  border: 1px solid var(--smoke);
  border-radius: var(--radius-panel);
  padding: 1.6rem 1.5rem 1.45rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.tagline {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ember);
}

.status {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Products
   -------------------------------------------------------------------------- */
.product-grid,
.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .product-grid,
  .shop-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card {
  min-height: 11.5rem;
  display: flex;
  flex-direction: column;
}

.product-card .status {
  margin-top: auto;
}

/* Newsletter / MIC
   -------------------------------------------------------------------------- */
.newsletter {
  background: var(--void-deep);
  border-top: 1px solid var(--smoke);
  border-bottom: 1px solid var(--smoke);
}

.newsletter-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .newsletter-layout {
    grid-template-columns: minmax(16rem, 1fr) minmax(18rem, 1.1fr);
    gap: 4rem;
  }
}

.mic-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mic-wordmark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
}

.mic-industrial {
  color: var(--ember);
}

.mic-tagline {
  margin: 1.1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--chrome);
  font-family: var(--font-accent);
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: var(--chrome);
}

.signup-panel h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.signup-panel p {
  margin: 0 0 1.35rem;
  color: var(--muted);
}

.signup-embed {
  background: var(--ash);
  border: 1px dashed var(--chrome);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signup-placeholder {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

/* Books & merch
   -------------------------------------------------------------------------- */
.shop-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.shop-card .status {
  margin-top: auto;
}

.shop-card {
  min-height: 11rem;
  display: flex;
  flex-direction: column;
}

/* Footer — VoidDeep, never white
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--void-deep);
  color: var(--muted);
  border-top: 1px solid var(--smoke);
  padding: 2.5rem 0 2.75rem;
}

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--cream);
}

.footer-brand img {
  width: 48px;
  height: auto;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-copy {
  text-align: left;
}

.footer-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  color: var(--cream);
}

.footer-copy p {
  margin: 0 0 0.25rem;
}

.footer-copy a {
  color: var(--chrome);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--cream);
}

.copyright {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 639px) {
  .footer-name {
    display: none;
  }
}

@media (min-width: 640px) {
  .footer-copy {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    backdrop-filter: none;
  }
}
