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

:root {
  --ink: #171a18;
  --ink-soft: #5e6860;
  --paper: #f5f7f1;
  --paper-deep: #e9eee5;
  --line: #d8dfd5;
  --lime: #c9f36a;
  --lime-deep: #729928;
  --coral: #ff806b;
  --blue: #7788ff;
  --blue-soft: #e8eaff;
  --shadow: 0 24px 70px rgba(30, 48, 34, 0.12);
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% -10%, rgba(201, 243, 106, 0.25), transparent 30rem),
    var(--paper);
  font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.045em;
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

.paper-grid {
  background-image: linear-gradient(rgba(23, 26, 24, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 26, 24, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

.dot-grid {
  background-image: radial-gradient(rgba(23, 26, 24, 0.18) 1px, transparent 1px);
  background-size: 14px 14px;
}

.soft-shadow { box-shadow: var(--shadow); }
.text-balance { text-wrap: balance; }
[data-mobile-menu][data-open='true'] { display: block !important; }

.nav-link {
  position: relative;
  color: var(--ink-soft);
  transition: color 160ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: '';
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-link:hover, .nav-link[aria-current='page'] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current='page']::after { transform: scaleX(1); }

.side-link {
  border-left: 2px solid transparent;
  transition: all 160ms ease;
}

.side-link:hover, .side-link.is-active {
  color: var(--ink);
  border-color: var(--coral);
  background: rgba(255, 255, 255, 0.58);
}

.eyebrow {
  color: var(--lime-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.signal-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(23, 26, 24, 0.2);
  border-radius: 999px;
}

.signal-orbit::before, .signal-orbit::after {
  position: absolute;
  content: '';
  border: 1px solid rgba(23, 26, 24, 0.15);
  border-radius: inherit;
}

.signal-orbit::before { inset: 0.8rem; }
.signal-orbit::after { inset: 1.9rem; border-color: rgba(23, 26, 24, 0.32); }

.signal-core {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 8px rgba(201, 243, 106, 0.22);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.signal-dot {
  position: absolute;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--coral);
}

.signal-dot.one { top: 0.7rem; right: 1.8rem; }
.signal-dot.two { bottom: 1rem; left: 1.3rem; background: var(--blue); }
.signal-dot.three { top: 3.1rem; left: 0.3rem; background: var(--ink); }

.rise-in { animation: rise-in 650ms cubic-bezier(.2,.8,.2,1) both; }
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 190ms; }
.delay-3 { animation-delay: 280ms; }

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

.progress-track {
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--lime-deep);
  transition: width 300ms ease;
}

.check-row input:checked + span {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--lime-deep);
}

.check-row input:checked ~ .check-box {
  border-color: var(--lime-deep);
  background: var(--lime);
}

.check-row input:checked ~ .check-box::after {
  display: block;
  width: 0.35rem;
  height: 0.6rem;
  margin: -0.1rem auto 0;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  content: '';
  transform: rotate(45deg);
}

.check-box {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
}

.source-link { text-underline-offset: 3px; }
.source-link:hover { color: var(--lime-deep); }

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