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

:root {
  --bg:        #080808;
  --surface:   #111111;
  --border:    #1e1e1e;
  --text:      #ddd9ce;
  --muted:     #777268;
  --dim:       #555;
  --accent:    #d4a843;
  --accent-dim:#8a6b28;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(212,168,67,0.09), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(255,255,255,0.04), transparent 22%);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle grain to match adao.dev */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 5rem 2.5rem 4rem;
}

/* ─── HERO ────────────────────────────────────────── */
.hero { padding: 3rem 0 4rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2rem;
}

h1 em { font-style: italic; color: var(--accent); }

.lead {
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #aaa597;
  margin-bottom: 1.2rem;
}

.lead:last-child { margin-bottom: 0; }

.lead-hint {
  font-size: 0.95rem;
  color: var(--muted);
}

.lead code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: rgba(212,168,67,0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* ─── SECTIONS ────────────────────────────────────── */
section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.8rem;
}

h2 em { font-style: italic; color: var(--accent); }

/* ─── CODE BLOCK ──────────────────────────────────── */
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.1rem 1.4rem;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
}

pre code { font-family: inherit; color: inherit; }

/* ─── EGGS LIST ───────────────────────────────────── */
.eggs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.egg-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, padding-left 0.2s;
  position: relative;
}

.egg-card:hover {
  border-color: var(--accent-dim);
  padding-left: 2rem;
}

.egg-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.egg-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.egg-effects {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.egg-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.egg-card:hover .egg-link { color: var(--accent); }

/* ─── OVERRIDES + NOTES ───────────────────────────── */
.overrides, .notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.overrides li, .notes li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #aaa597;
}

.overrides li::before, .notes li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

.overrides code, .notes code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: rgba(212,168,67,0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--accent); }

footer .dot { color: var(--dim); }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 640px) {
  main { padding: 3rem 1.5rem 3rem; }
  .hero { padding: 1rem 0 2.5rem; }
  section { padding: 3rem 0; }

  .egg-card {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .egg-card:hover { padding-left: 1.6rem; }
  .egg-link { margin-top: 0.4rem; }

  pre { font-size: 0.78rem; padding: 0.9rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
