:root {
  color-scheme: dark;
  --ink: #fffdf5;
  --sky: #88b9b0;
  --horizon: #efc89b;
  --ground: #385c4e;
  --accent: #fff0b5;
  --line: rgba(255, 253, 245, 0.34);
  --panel: rgba(12, 31, 28, 0.72);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--sky);
}

body {
  color: var(--ink);
}

button,
canvas {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

.experience {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky), var(--horizon) 64%, var(--ground));
}

#world,
.static-world,
.light-wash,
.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#world {
  z-index: 1;
  display: block;
  cursor: pointer;
  touch-action: none;
}

#world:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -9px;
}

.static-world {
  z-index: 0;
  background:
    radial-gradient(circle at 72% 25%, color-mix(in srgb, var(--accent) 88%, transparent) 0 3%, transparent 13%),
    linear-gradient(168deg, transparent 0 57%, color-mix(in srgb, var(--ground) 88%, transparent) 58% 100%);
}

body:not(.no-canvas) .static-world {
  display: none;
}

.light-wash {
  z-index: 2;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at var(--focus-x, 58%) var(--focus-y, 42%), rgba(255, 247, 205, 0.16), transparent 25%),
    linear-gradient(112deg, transparent 22%, rgba(255, 246, 211, 0.06) 44%, transparent 65%);
}

.grain {
  z-index: 3;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.experience::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 16, 16, 0.34), transparent 28%),
    linear-gradient(0deg, rgba(5, 15, 14, 0.48), transparent 38%),
    radial-gradient(circle at 50% 45%, transparent 38%, rgba(3, 10, 10, 0.14) 100%);
}

.top-content,
.bottom-content {
  position: absolute;
  z-index: 5;
  left: clamp(1.25rem, 4vw, 3.75rem);
  right: clamp(1.25rem, 4vw, 3.75rem);
  transition: opacity 320ms ease, transform 320ms ease;
}

.top-content {
  top: clamp(1.25rem, 4vw, 3.25rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.location-block {
  display: grid;
  gap: 0.28rem;
}

.eyebrow,
.sequence,
.about-kicker {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.48);
}

.eyebrow {
  font-weight: 560;
}

.sequence {
  font-size: 0.68rem;
  opacity: 0.68;
}

.about-button,
.about-close {
  border: 1px solid var(--line);
  color: inherit;
  background: rgba(16, 39, 34, 0.14);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 8px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.about-button {
  padding: 0.62rem 0.86rem;
  border-radius: 999px;
  font-size: 0.73rem;
  letter-spacing: 0.04em;
}

.about-button:hover,
.about-close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.bottom-content {
  bottom: clamp(4.8rem, 7vw, 6.4rem);
}

.prompt-panel {
  width: min(58rem, 100%);
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-family: Iowan Old Style, Baskerville, Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.6vw, 8.4rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.066em;
  text-wrap: balance;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.3);
}

.prompt {
  margin: 1.25rem 0 0;
  font-family: Iowan Old Style, Baskerville, Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  font-style: italic;
  letter-spacing: 0.01em;
  opacity: 0.84;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.about-dialog {
  width: min(48rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.45rem;
  background: rgba(12, 34, 31, 0.58);
  box-shadow: 0 28px 90px rgba(3, 12, 11, 0.48), inset 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(32px) saturate(1.26);
}

.about-dialog::backdrop {
  background: rgba(4, 15, 14, 0.28);
  backdrop-filter: blur(3px);
}

.about-panel {
  padding: clamp(1.6rem, 5vw, 3.4rem);
}

.about-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.about-kicker {
  margin-bottom: 0.45rem;
  opacity: 0.58;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.about-header h2 {
  margin: 0;
  font-family: Iowan Old Style, Baskerville, Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.about-close {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
}

.about-intro {
  max-width: 40rem;
  margin: 2.4rem 0 0;
  font-family: Iowan Old Style, Baskerville, Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-style: italic;
  line-height: 1.35;
  opacity: 0.84;
}

.botanical-list {
  display: grid;
  gap: 0;
  margin: 2.4rem 0 0;
}

.botanical-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 0.82rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.botanical-list dt,
.botanical-list dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.botanical-list dd {
  opacity: 0.72;
}

.about-button:focus-visible,
.about-close:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.8rem;
  color: #071516;
  background: #fffdf5;
  border-radius: 0.3rem;
  transform: translateY(-160%);
}

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

.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;
}

.noscript-note {
  position: fixed;
  z-index: 15;
  inset: auto 1rem 1rem;
  display: flex;
  gap: 0.45rem;
  flex-direction: column;
  padding: 1rem;
  color: #fffdf5;
  background: rgba(7, 21, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

body.ui-idle .top-content,
body.ui-idle .bottom-content {
  opacity: 0.25;
}

body.ui-idle .top-content {
  opacity: 0.5;
  transform: translateY(-0.25rem);
}

@media (max-width: 700px) {
  .experience {
    min-height: 500px;
  }

  h1 {
    font-size: clamp(2.8rem, 13.5vw, 5rem);
    line-height: 0.88;
  }

  .top-content {
    top: 1.15rem;
    left: 1.15rem;
    right: 1.15rem;
  }

  .bottom-content {
    left: 1.15rem;
    right: 1.15rem;
    bottom: 4.7rem;
  }

  .botanical-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-height: 650px) and (min-width: 701px) {
  .bottom-content {
    bottom: 3.5rem;
  }

  h1 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
  }
}

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