:root,
[data-theme="light"] {
  --bg: #fffdfa;
  --surface: #f9f6f0;
  --text: #2c3e50;
  --accent: #d35400;
  --border: #2c3e50;
  --shadow: #2c3e50;
}

[data-theme="dark"] {
  --bg: #1a1814;
  --surface: #24211c;
  --text: #f4f0ea;
  --accent: #f39c12;
  --border: #f4f0ea;
  --shadow: #000000;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.shell {
  min-height: 100vh;
}

.title {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.section-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.body-copy {
  margin: 0;
  max-width: 62ch;
}

.deploy-note {
  margin-top: 1rem;
  font-weight: 600;
}

.frame-inner {
  padding: 24px 16px 100px;
}

.content-column {
  max-width: 900px;
  margin: 0 auto;
}

.pill-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--shadow);
  transform: translateX(-50%);
  z-index: 100;
}

.pill-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.pill-nav a.active,
.pill-nav a:hover,
.pill-nav a:focus-visible {
  color: #ffffff;
  background: var(--accent);
}

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

@media (min-width: 768px) {
  .shell {
    padding: 48px 24px;
  }

  .imac-frame {
    max-width: 1024px;
    margin: 0 auto;
    padding: 24px 24px 0;
    border-radius: 16px;
    background: #e8e0d0;
    box-shadow: 8px 8px 0 #2c3e50;
  }

  .imac-screen {
    min-height: 600px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface);
  }

  .imac-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #d4cbbf;
    border-bottom: 2px solid #b8ae9e;
  }

  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }

  .dot-red {
    background: #ff5f56;
  }

  .dot-yellow {
    background: #ffbd2e;
  }

  .dot-green {
    background: #27c93f;
  }

  .frame-inner {
    padding: 64px 40px;
  }

  .imac-stand {
    width: 120px;
    height: 40px;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(to bottom, #c8bfb0, #a89e8e);
  }

  .imac-base {
    width: 200px;
    height: 12px;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    background: #b8ae9e;
  }

  .pill-nav {
    display: none;
  }
}
