@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper: #FFFFFF;
  --ink: #111111;
  --ink-soft: #5B5D63;
  --line: #E7E7E7;
  --accent: #FFC947;
  --accent-text: #8A6B12;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- site nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav .brand {
  font-family: 'Space Grotesk', Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.site-nav .brand .mark {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}

.site-nav nav {
  display: flex;
  gap: 22px;
}

.site-nav nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.site-nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s ease;
}

.site-nav nav a:hover { color: var(--ink); }
.site-nav nav a:hover::after,
.site-nav nav a.active::after { right: 0; }
.site-nav nav a.active { color: var(--ink); }

/* ---------- layout ---------- */

.wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; position: relative; }

.hero-glow {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 201, 71, 0.35) 0%, rgba(255, 201, 71, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-24px, 30px) scale(1.08); }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 600;
  margin-bottom: 18px;
}

h1 {
  font-family: 'Space Grotesk', Georgia, serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.18;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

h1 .hl {
  background: var(--accent);
  padding: 0 6px;
  border-radius: 3px;
  background-size: 0% 100%;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  animation: paint-hl 0.7s ease 0.9s forwards;
}

@keyframes paint-hl {
  from { background-size: 0% 100%; }
  to { background-size: 100% 100%; }
}

.sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 56px;
}

section { margin-bottom: 44px; }

h2 {
  font-family: 'Space Grotesk', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

h2 .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.04em;
}

p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 6px; }

.bullets { list-style: none; padding-left: 0; margin-top: 8px; }
.bullets li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.bullets li:hover::before { transform: scale(1.3) rotate(45deg); }

.callout {
  background: var(--accent);
  border-radius: 6px;
  padding: 24px 26px;
  color: #1a1400;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.callout:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(138, 107, 18, 0.45);
}
.callout p:last-child { margin-bottom: 0; }
.callout a.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background: #111111;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}
.callout a.btn:hover {
  background: #000;
  transform: translateY(-2px);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 4px;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 600;
}
tbody tr { transition: background 0.2s ease; }
tbody tr:hover { background: #FAFAFA; }

.meta { font-size: 14px; color: var(--ink-soft); }
.meta span { margin-right: 18px; }

header.doc-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 44px;
}
header.doc-head h1 { font-size: 32px; margin-bottom: 12px; }

.placeholder {
  background: #FFF3D6;
  border: 1px dashed #E0AA33;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.95em;
  color: #8A5A00;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 26px;
  font-size: 14px;
  color: var(--ink-soft);
}
footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); transition: opacity 0.2s ease; }
footer a:hover { opacity: 0.7; }
.footer-links { margin-bottom: 12px; }
.footer-links a { margin-right: 18px; }

/* ---------- entrance + scroll reveal ---------- */

.hero-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.7s ease forwards;
}
.hero-in.d1 { animation-delay: 0.05s; }
.hero-in.d2 { animation-delay: 0.18s; }
.hero-in.d3 { animation-delay: 0.32s; }
.hero-in.d4 { animation-delay: 0.46s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow { animation: none; }
  .hero-in, .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  h1 .hl { background-size: 100% 100% !important; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  header.doc-head h1 { font-size: 26px; }
  .wrap { padding: 40px 18px 64px; }
  table, thead, tbody, th, td, tr { display: block; }
  th { margin-top: 10px; }
  .site-nav-inner { padding: 12px 18px; flex-wrap: wrap; row-gap: 8px; }
  .site-nav nav { width: 100%; gap: 16px; justify-content: flex-start; }
  .hero-glow { width: 240px; height: 240px; right: -80px; }
}
