:root {
  color-scheme: light;
  --paper: #fff7c4;
  --ink: #4c132d;
  --ink-soft: #743149;
  --rose: #fe2864;
  --clay: #f96300;
  --red: #f80f00;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% 15%, color-mix(in oklch, var(--rose), transparent 88%), transparent 34%),
    radial-gradient(ellipse at 12% 85%, color-mix(in oklch, var(--clay), transparent 89%), transparent 32%),
    var(--paper);
  font-family: "Figtree", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 5px;
}

.page-shell {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  width: min(100% - clamp(2rem, 8vw, 9rem), 1440px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  transform: translateY(-160%);
  border: 1px solid var(--ink);
  background: var(--paper);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Figtree", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.055em;
}

.wordmark i {
  color: var(--rose);
  font-size: 0.92em;
  font-style: normal;
  font-weight: 600;
}

.wordmark__symbol {
  width: 1.85rem;
  height: 2rem;
  color: var(--rose);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.language-switch__option {
  min-width: 2.25rem;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.64;
  transition: color 180ms ease, opacity 180ms ease;
}

.language-switch__option:hover,
.language-switch__option[aria-pressed="true"] {
  color: var(--ink);
  opacity: 1;
}

.language-switch__option[aria-pressed="true"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.38rem;
}

.language-switch__divider {
  color: color-mix(in oklch, var(--ink-soft), transparent 48%);
}

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.04fr) minmax(18rem, 0.96fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 5rem);
  padding-block: clamp(1rem, 3vw, 3rem);
}

.hero__copy {
  position: relative;
  z-index: 1;
  padding-block: clamp(1.5rem, 5vw, 5rem);
  animation: arrive 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 clamp(1.2rem, 2.8vw, 2rem);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.7rem;
  height: 1px;
  background: var(--clay);
  content: "";
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.03em;
  max-width: 10ch;
  margin: 0;
  font-family: "Alegreya", Georgia, serif;
  font-size: clamp(3.4rem, 7.8vw, 7.15rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.hero__title-accent {
  color: var(--rose);
  font-style: italic;
  font-weight: 400;
}

.hero__message {
  max-width: 35ch;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.arrival-note {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.arrival-note__spark {
  position: relative;
  display: inline-block;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--red);
  animation: spark-glow 2.8s ease-in-out infinite;
}

.hero__art {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
  margin: 0;
  animation: arrive 1100ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.art-caption {
  position: relative;
  z-index: 1;
  margin-top: -0.5rem;
  color: var(--ink-soft);
  font-family: "Alegreya", Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding-block: 1.5rem clamp(1.5rem, 4vw, 2.5rem);
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
  font-family: "Alegreya", Georgia, serif;
  font-size: 0.98rem;
  font-style: italic;
  text-align: center;
}

.site-footer__rule {
  width: clamp(1rem, 4vw, 3rem);
  height: 1px;
  background: color-mix(in oklch, var(--clay), transparent 35%);
}

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

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spark-glow {
  0%,
  100% {
    opacity: 0.72;
    transform: rotate(-45deg) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: rotate(-45deg) scale(1.12);
  }
}

@media (min-width: 1500px) {
  .hero__title {
    font-size: 7.15rem;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 2.5rem, 38rem);
  }

  .site-header {
    padding-block: 1.25rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 2rem 0;
  }

  .hero__copy {
    padding-block: 1rem 0;
  }

  .hero__title {
    max-width: 11ch;
    font-size: clamp(3.5rem, 12vw, 5.8rem);
  }

  .hero__message {
    max-width: 36ch;
  }

  .hero__art {
    width: min(100%, 28rem);
    justify-self: center;
    margin-top: -0.5rem;
  }

  .art-caption {
    margin-top: -0.25rem;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 2rem, 38rem);
  }

  .wordmark {
    font-size: 1.2rem;
  }

  .hero__title {
    font-size: clamp(3.15rem, 13vw, 4.5rem);
  }

  .hero__art {
    margin-top: -1rem;
  }

  .site-footer {
    gap: 0.65rem;
  }

  .site-footer p {
    font-size: 0.88rem;
  }
}

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