html { scroll-behavior: smooth; }

:root { color-scheme: light; }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top left, rgba(183, 101, 56, 0.10), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(23, 19, 17, 0.05), transparent 26%),
    #F6EFE7;
}

.prose-lead { line-height: 1.72; }

.legal-copy p,
.legal-copy ul { line-height: 1.78; }

.grid-bg {
  background-image:
    linear-gradient(to right, rgba(23, 19, 17, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 19, 17, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.88), transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.88), transparent 74%);
}

.section-panel {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
}

.soft-outline {
  position: relative;
}

.soft-outline::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.hero-bloom {
  background:
    radial-gradient(circle at top, rgba(183, 101, 56, 0.18), transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.72), transparent 48%);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(23, 19, 17, 0.12);
  background: #171311;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.72s cubic-bezier(.22, 1, .36, 1),
    transform 0.72s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--delay, 0ms);
}

[data-reveal="left"] { transform: translate3d(-28px, 0, 0); }

[data-reveal="scale"] {
  transform: scale(0.975);
  transform-origin: center;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-toc-link].is-active {
  background: #171311;
  border-color: rgba(23, 19, 17, 0.9);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(23, 19, 17, 0.16);
}

[data-toc-link].is-active .toc-index {
  color: rgba(255, 255, 255, 0.68);
}

[data-toc-link].is-active .toc-arrow {
  opacity: 0.92;
  transform: translateX(0);
}

.toc-arrow {
  opacity: 0.45;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

[data-toc-link]:hover .toc-arrow {
  opacity: 0.72;
  transform: translateX(2px);
}

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
