:root {
  --bg: #ff9ccc;
  --bg-2: #ffc2de;
  --ink: #2a0a1a;
  --muted: #5e1639;
  --line: rgba(42, 10, 26, 0.18);
  --accent: #7a0c45;
  --honey: #f5b43a;
  --honey-deep: #d98a12;
  --serif: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
.mono { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; }
.muted { color: var(--muted); }

::selection { background: var(--accent); color: #fff; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

.hero-inner { max-width: 640px; pointer-events: none; }
.hero-inner a { pointer-events: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin: 0 0 28px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 0 rgba(245, 180, 58, 0.6);
  animation: ping 2.4s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(245, 180, 58, 0.6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(245, 180, 58, 0); }
}

h1 {
  font-size: clamp(3rem, 8.5vw, 7rem);
  line-height: 0.95;
  font-weight: 350;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
}
h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: #3a1026;
  max-width: 34ch;
  margin: 0 0 36px;
}
.lede em { color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.btn {
  font-family: var(--mono);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-honey {
  background: linear-gradient(135deg, var(--honey), var(--honey-deep));
  color: #1b1206;
  font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(245, 180, 58, 0.55);
}
.btn-ghost { border: 1px solid rgba(42, 10, 26, 0.45); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }

.next { color: var(--muted); margin: 0; }
#countdown { color: var(--accent); font-weight: 500; }

/* ---------- sections ---------- */

main { padding: 0 var(--gutter); max-width: 1180px; margin: 0 auto; }

.label {
  color: var(--accent);
  text-transform: lowercase;
  font-weight: 400;
  margin: 0 0 32px;
}

.how { padding: 48px 0 96px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.steps h3 { font-size: 2rem; font-weight: 400; margin: 18px 0 10px; letter-spacing: -0.02em; }
.steps p { color: #3a1026; line-height: 1.6; margin: 0; font-size: 1.05rem; }

.hex {
  display: grid;
  place-items: center;
  width: 56px;
  height: 64px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--bg-2);
  color: var(--accent);
  position: relative;
}
.hex::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background: linear-gradient(135deg, rgba(245, 180, 58, 0.5), rgba(245, 180, 58, 0.08));
  z-index: -1;
}

.garage { padding: 0 0 96px; }

.corvette {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px;
}
.corvette img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(245, 180, 58, 0.3);
  box-shadow: 0 30px 60px -30px rgba(245, 180, 58, 0.35);
  background: var(--bg-2);
}
.corvette h3 { font-size: 2rem; font-weight: 400; margin: 0 0 10px; letter-spacing: -0.02em; }
.corvette p { color: #3a1026; line-height: 1.6; margin: 0 0 12px; font-size: 1.05rem; }
.corvette p.mono { font-size: 0.8rem; color: var(--muted); }

@media (max-width: 720px) {
  .corvette { grid-template-columns: 1fr; gap: 20px; }
}

.log { padding: 48px 0 120px; border-top: 1px solid var(--line); }
.log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.log-head .label { margin-bottom: 24px; }

.changes { list-style: none; margin: 0; padding: 0; }
.changes li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.changes .gen { color: var(--accent); }
.changes h3 { margin: 0; font-weight: 400; font-size: 1.4rem; letter-spacing: -0.01em; }
.changes p { grid-column: 2 / -1; margin: 0; color: #3a1026; line-height: 1.55; }
.changes .meta { color: var(--muted); text-align: right; }

@media (max-width: 640px) {
  .hero { align-items: flex-end; padding-bottom: 64px; }
  .changes li { grid-template-columns: 1fr; }
  .changes p { grid-column: 1; }
  .changes .meta { text-align: left; }
}

footer {
  padding: 32px var(--gutter) 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}
.lost .hex { margin: 0 auto 24px; width: 84px; height: 96px; font-size: 1rem; }
.lost h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.lost p { color: #3a1026; font-size: 1.15rem; margin: 0 0 28px; }
