:root {
  --paper: #f4f0e5;
  --ink: #1f2a33;
  --muted: #536473;
  --accent: #d95f02;
  --line: #d9ccb3;
  --card: #fffaf0;
  --shadow: rgba(31, 42, 51, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #fcefd1 0%, transparent 35%),
    radial-gradient(circle at 85% 20%, #ffdcbf 0%, transparent 30%),
    linear-gradient(160deg, #efe8d7 0%, #f8f3e8 45%, #eee3cf 100%);
  min-height: 100vh;
  line-height: 1.6;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.28;
  pointer-events: none;
}

.orb-a {
  width: 320px;
  height: 320px;
  right: -80px;
  top: 18vh;
  background: #f8b46f;
  animation: driftA 11s ease-in-out infinite alternate;
}

.orb-b {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: 12vh;
  background: #9bc1bc;
  animation: driftB 14s ease-in-out infinite alternate;
}

.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 2.2rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.1;
}

.subtitle {
  max-width: 740px;
  margin-top: 0.95rem;
  color: var(--muted);
}

.paper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px var(--shadow);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  animation: rise 0.5s ease both;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.equation {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: clamp(0.95rem, 2.2vw, 1.18rem);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 0.9rem;
  margin: 0 0 1rem;
  overflow-x: auto;
}

.outcomes article {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.outcomes article:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

blockquote {
  margin: 0.45rem 0 0;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
  color: #3f4b56;
}

ul,
ol {
  margin: 0.4rem 0 0.2rem 1.1rem;
}

.checklist li::marker {
  color: var(--accent);
}

.summary {
  border: 1px solid #dbbb99;
  background: linear-gradient(140deg, #fff9ef 0%, #fff3e2 100%);
}

code {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.94em;
  background: rgba(31, 42, 51, 0.07);
  padding: 0.06rem 0.28rem;
  border-radius: 5px;
}

@media (max-width: 700px) {
  .hero {
    padding-top: 4.2rem;
  }

  .card {
    border-radius: 12px;
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .orb-a,
  .orb-b {
    animation: none;
  }
}

@keyframes rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes driftA {
  0% {
    transform: translate(-14px, 0px) scale(0.98);
  }
  100% {
    transform: translate(18px, -20px) scale(1.06);
  }
}

@keyframes driftB {
  0% {
    transform: translate(14px, 16px) scale(1.03);
  }
  100% {
    transform: translate(-16px, -12px) scale(0.95);
  }
}
