:root {
  --background: #F9F2EA;
  --text: #2A1D14;
  --muted: rgba(60, 40, 30, 0.6);
  --faint: rgba(60, 40, 30, 0.3);
  --accent: #C8552B;
  --rule: rgba(42, 29, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
}

a {
  color: inherit;
  text-decoration-color: rgba(200, 85, 43, 0.45);
  text-underline-offset: 0.18em;
}

.home {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  overflow: hidden;
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

.orbs {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  will-change: transform;
}

.orb.cream {
  top: -22%;
  left: -14%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle at 35% 35%, #F4E4C8 0%, #EAD2AE 35%, rgba(234, 210, 174, 0) 70%);
  animation: drift1 24s ease-in-out infinite alternate;
}

.orb.terra {
  right: -16%;
  bottom: -28%;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle at 35% 35%, #E08866 0%, #C8552B 40%, rgba(200, 85, 43, 0) 72%);
  opacity: 0.72;
  animation: drift2 30s ease-in-out infinite alternate;
}

.orb.gold {
  top: 55%;
  left: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 35% 35%, #E8C997 0%, #C8A45B 40%, rgba(200, 164, 91, 0) 72%);
  opacity: 0.45;
  animation: drift3 36s ease-in-out infinite alternate;
}

.orb.peach {
  top: -10%;
  right: 12%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 35% 35%, #F4D4B8 0%, #D88556 45%, rgba(216, 133, 86, 0) 75%);
  opacity: 0.45;
  animation: drift4 28s ease-in-out infinite alternate;
}

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

.content {
  text-align: center;
}

.wordmark {
  margin: 0;
  display: inline-flex;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(96px, 16vw, 200px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.9;
  perspective: 800px;
  transform-style: preserve-3d;
}

.wordmark .ch {
  display: inline-block;
  transform-origin: 50% 70%;
  transform-style: preserve-3d;
  animation: ripple3d 3.6s ease-in-out infinite;
}

.wordmark .ch:nth-child(1) {
  animation-delay: 0s;
}

.wordmark .ch:nth-child(2) {
  animation-delay: 0.18s;
}

.wordmark .ch:nth-child(3) {
  animation-delay: 0.36s;
}

.wordmark .ch:nth-child(4) {
  animation-delay: 0.54s;
}

.tagline {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.6vw, 22px);
  font-style: italic;
  letter-spacing: 0.005em;
}

.footer {
  position: fixed;
  z-index: 2;
  right: 0;
  bottom: 36px;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 48px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.footer .right {
  color: var(--accent);
}

.page {
  min-height: 100vh;
  padding: 44px 20px 72px;
}

.doc {
  width: min(720px, 100%);
  margin: 0 auto;
}

.doc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.doc-wordmark {
  font-size: 34px;
  font-style: italic;
  line-height: 1;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}

.doc h1 {
  margin: 34px 0 8px;
  font-size: clamp(36px, 8vw, 64px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
}

.doc h2 {
  margin: 34px 0 10px;
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.doc p,
.doc li {
  color: rgba(42, 29, 20, 0.82);
  font-size: 17px;
  line-height: 1.65;
}

.doc p {
  margin: 12px 0;
}

.doc ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.effective {
  color: var(--muted);
  font-size: 16px;
  font-style: italic;
}

.callout {
  margin: 28px 0;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

@keyframes drift1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(80px, 60px) scale(1.08);
  }

  100% {
    transform: translate(40px, 120px) scale(0.96);
  }
}

@keyframes drift2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-90px, -50px) scale(1.1);
  }

  100% {
    transform: translate(-40px, -110px) scale(0.95);
  }
}

@keyframes drift3 {
  0% {
    transform: translate(0, 0) scale(0.95);
  }

  50% {
    transform: translate(120px, -80px) scale(1.05);
  }

  100% {
    transform: translate(60px, -140px) scale(1);
  }
}

@keyframes drift4 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-70px, 90px) scale(1.06);
  }

  100% {
    transform: translate(-30px, 50px) scale(0.96);
  }
}

@keyframes ripple3d {
  0%,
  60%,
  100% {
    color: var(--text);
    transform: translateZ(0) translateY(0) rotateX(0deg);
  }

  20% {
    color: #3A2418;
    transform: translateZ(80px) translateY(-10px) rotateX(-22deg);
  }

  40% {
    transform: translateZ(0) translateY(2px) rotateX(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .orb,
  .wordmark .ch {
    animation: none !important;
  }
}

@media (max-width: 560px) {
  .stage {
    padding: 0 24px;
  }

  .footer {
    bottom: 28px;
    padding: 0 24px;
  }

  .doc-header {
    display: grid;
  }

  .doc-nav {
    gap: 10px;
  }
}
