:root {
  --bg: #08080c;
  --ink: #f2efe9;
  --muted: rgba(242, 239, 233, 0.62);
  --faint: rgba(242, 239, 233, 0.38);
  --rule: rgba(242, 239, 233, 0.12);
  --accent: #d4a24e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Slow cinematic glow drifting behind the content. */
body::before {
  content: "";
  position: fixed;
  inset: -40%;
  background:
    radial-gradient(ellipse 55% 40% at 30% 35%, rgba(212, 162, 78, 0.14), transparent 60%),
    radial-gradient(ellipse 45% 35% at 75% 70%, rgba(78, 108, 212, 0.10), transparent 60%);
  animation: drift 36s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
a { color: var(--accent); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  padding: 1.25rem clamp(1rem, 6vw, 6rem);
  font-size: 0.85rem;
}
.site-nav .brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  margin-right: auto;
}
.site-nav a:not(.brand) { color: var(--muted); text-decoration: none; }
.site-nav a:not(.brand):hover { color: var(--accent); }

main {
  flex: 1;
  width: 100%;
  max-width: 52rem;
  padding: 2rem clamp(1rem, 6vw, 6rem) 4rem;
}
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(70dvh, 40rem);
  padding: 2rem clamp(1rem, 6vw, 6rem);
}
.est {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
h1 {
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.75rem, 9vw, 6.5rem); max-width: 12ch; margin-bottom: 0; }
.tagline {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--muted);
}
h2 {
  font-size: 1.25rem;
  font-weight: 650;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
p, ul, ol { margin-bottom: 1rem; color: var(--muted); }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
strong { color: var(--ink); }
.updated { font-size: 0.85rem; color: var(--faint); }
.sample {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  background: rgba(242, 239, 233, 0.04);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
figure { margin: 0 0 1rem; }
figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
figcaption { font-size: 0.8rem; color: var(--faint); margin-top: 0.5rem; }
address { font-style: normal; color: var(--muted); margin-bottom: 1rem; }

footer {
  padding: 1.5rem clamp(1rem, 6vw, 6rem) calc(1.5rem + env(safe-area-inset-bottom));
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  border-top: 1px solid var(--rule);
}
footer a { color: inherit; }
footer a:hover, footer a:focus-visible { color: var(--accent); }
