/* Mid-Tier Mayhem — Main Styles */
/* Source: /home/kyle/aetherix/workspaces/web-ux/design/midtier-mayhem/DESIGN_SYSTEM.md */

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

body {
  background: var(--mm-ink);
  color: var(--mm-fg);
  font-family: "Spectral", "Georgia", serif;
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, .kicker, .btn {
  font-family: "Archivo", "Arial Narrow", system-ui, sans-serif;
}

h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.05;
}

h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mm-red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--mm-red);
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mm-ink);
  border-bottom: 1px solid var(--mm-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: block;
}

.logo b {
  color: var(--mm-red);
}

.logo span {
  color: var(--mm-paper);
}

nav.main-nav {
  display: flex;
  gap: 24px;
}

nav.main-nav a {
  color: var(--mm-muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--mm-red);
  border-color: var(--mm-red);
}

.social-strip {
  display: flex;
  gap: 12px;
}

.social-strip a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mm-border);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mm-muted);
}

.social-strip a:hover {
  color: var(--mm-red);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-red {
  background: var(--mm-red);
  color: #fff;
}

.btn-red:hover {
  color: #fff;
  background: #ff564d;
}

.btn-electric {
  background: var(--mm-electric);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--mm-fg);
  border: 1px solid var(--mm-border);
}

.btn-ghost:hover {
  color: var(--mm-red);
  border-color: var(--mm-red);
}

/* Cards */
.card {
  background: var(--mm-paper);
  color: var(--mm-paper-fg);
  border-radius: 10px;
  padding: 18px;
  border: 1px solid var(--mm-border-light);
}

/* Page sections */
section {
  margin: 48px 0;
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--mm-border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.sec-head h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.sec-head a {
  font-size: 0.9rem;
  color: var(--mm-red);
  font-weight: 700;
}

/* Footer */
footer {
  border-top: 1px solid var(--mm-border);
  margin-top: 64px;
  padding: 48px 24px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-grid h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mm-muted);
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  color: var(--mm-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--mm-red);
}

/* Mobile responsive */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  nav.main-nav {
    display: none;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
