:root {
  --bone: #f2eee6;
  --ink: #14201c;
  --forest: #1e5b4b;
  --forest-soft: #4f8574;
  --mint: #cfe8dc;
  --coral: #e86a4a;
  --line: rgba(20, 32, 28, 0.14);
  --muted: rgba(20, 32, 28, 0.66);
  --serif: "Fraunces", ui-serif, "Iowan Old Style", "Palatino Linotype",
    Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --page: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      1100px 620px at 82% -8%,
      rgba(207, 232, 220, 0.6),
      transparent 62%
    ),
    var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--forest);
  color: var(--bone);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.8rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.page {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-mark {
  width: 26px;
  height: 26px;
  color: var(--forest);
  transition: transform 0.25s ease;
}

.wordmark:hover .wordmark-mark {
  transform: rotate(-6deg);
}

.wordmark-text {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.wordmark-text em {
  color: var(--forest);
  font-style: italic;
}

.header-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  min-height: calc(100svh - 90px);
  padding: clamp(48px, 8vh, 92px) 0 clamp(56px, 8vh, 96px);
}

.hero-copy {
  max-width: 780px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--forest);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 2.6s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8.4vw, 8.2rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hero-line {
  display: block;
}

h1 em {
  color: var(--forest);
  font-style: italic;
  font-weight: 400;
}

.lede {
  max-width: 34rem;
  margin: clamp(24px, 3vw, 36px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.button:hover {
  background: var(--forest);
  transform: translateY(-1px);
}

.button:hover svg {
  transform: translateX(3px);
}

.button:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}

.action-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Hero art */

.hero-art {
  width: min(100%, 440px);
  margin: 0;
  justify-self: end;
}

.arch {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(20, 32, 28, 0.12);
  border-radius: 999px 999px 28px 28px;
  background: radial-gradient(
    120% 100% at 28% 0%,
    #f8fcf8 0%,
    #d9eee4 42%,
    #a9d3c1 100%
  );
  box-shadow:
    0 30px 80px -30px rgba(20, 32, 28, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.arch::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: radial-gradient(
    80% 60% at 76% 8%,
    rgba(255, 255, 255, 0.7),
    transparent 62%
  );
}

.arch-orb {
  position: absolute;
  top: 9%;
  right: 7%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd9cb, #e86a4a 72%);
  opacity: 0.42;
}

.tooth {
  position: absolute;
  top: 17%;
  left: 18%;
  width: 64%;
  height: auto;
  color: var(--forest);
  filter: drop-shadow(0 22px 30px rgba(30, 91, 75, 0.16));
  animation: float 8s ease-in-out infinite;
}

.arch-label {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(20, 32, 28, 0.55);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

figcaption {
  margin-top: 14px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  text-align: right;
}

/* Details */

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(48px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.detail-index {
  color: var(--forest-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
}

.detail h3 {
  margin: 12px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.detail p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* Footer */

.site-footer {
  padding: clamp(40px, 5vw, 64px) 0 32px;
  border-top: 1px solid var(--line);
}

.footer-line {
  margin: 0 0 clamp(36px, 5vw, 64px);
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic;
  letter-spacing: -0.025em;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-row p {
  margin: 0;
}

.footer-brand {
  color: var(--ink);
  font-weight: 500;
}

/* Helpers */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Motion */

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

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(232, 106, 74, 0.12);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(232, 106, 74, 0.04);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

.hero-copy > * {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > :nth-child(1) {
  animation-delay: 0.05s;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.13s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.22s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.31s;
}

.hero-art {
  animation: rise 1.1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
  }

  .hero-copy {
    order: 1;
  }

  .hero-art {
    order: 2;
    width: min(100%, 380px);
    justify-self: start;
  }

  h1 {
    font-size: clamp(3.2rem, 13vw, 5.6rem);
  }

  .details {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .detail {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
  }

  .detail-index {
    grid-row: span 2;
    padding-top: 2px;
  }

  .detail h3 {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 20px 0;
  }

  .header-meta {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  figcaption {
    text-align: left;
  }
}
