@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-roman.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #08080b;
  --ivory: #f3efe6;
  --muted: #a8a39a;
  --gold: #fff1ab;
  --cyan: #4bf2ff;
  --line: rgba(243, 239, 230, 0.16);
  --gutter: clamp(1.25rem, 4.2vw, 4.75rem);
  --wide: 76rem;
  --measure: 38rem;
  --nav: 4.75rem;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--ivory);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 360;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: #846efe;
  color: var(--void);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ivory);
  color: var(--void);
  padding: 0.6rem 0.9rem;
  z-index: 10;
}

.skip:focus {
  transform: none;
}

.field,
.veil,
.thread {
  position: fixed;
  pointer-events: none;
}

.field {
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.veil {
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 68% 58% at 28% 46%, rgba(8, 8, 11, 0.82) 0%, rgba(8, 8, 11, 0.42) 46%, rgba(8, 8, 11, 0.08) 72%),
    linear-gradient(to bottom, rgba(8, 8, 11, 0.72), rgba(8, 8, 11, 0) 16%, rgba(8, 8, 11, 0) 76%, rgba(8, 8, 11, 0.78));
}

.thread {
  z-index: 4;
  left: 0.7rem;
  top: 18vh;
  bottom: 18vh;
  width: 1px;
  background: rgba(243, 239, 230, 0.14);
}

.thread span {
  display: block;
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(to bottom, #4bf2ff, #b050fc 55%, #fff1ab);
}

.nav {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav);
  padding: 0.75rem var(--gutter);
}

.nav.is-scrolled {
  background: rgba(8, 8, 11, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  min-height: 44px;
}

.brand .mark {
  height: 52px;
  width: auto;
}

.brand-word {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 450;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a[aria-current="true"] {
  color: var(--gold);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(240px, 0.88fr);
  grid-template-rows: 1fr auto;
  align-items: end;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  padding: calc(var(--nav) + 1.5rem) var(--gutter) 1.35rem;
}

.kicker,
.label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 450;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3,
blockquote p {
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 7.4vw, 7.1rem);
  max-width: 8ch;
}

h1 em,
blockquote em,
.quiet em {
  font-style: italic;
  font-weight: 500;
}

.lede {
  max-width: var(--measure);
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 340;
  color: var(--ivory);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  margin-top: 2rem;
}

.btn,
button {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1.2rem;
  background: var(--ivory);
  color: var(--void);
  font-family: "Outfit", sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn:hover,
button:hover {
  background: var(--gold);
}

.text-link {
  font-size: 0.74rem;
  font-weight: 450;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 239, 230, 0.45);
  padding-bottom: 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.text-link:hover {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.hero-copy,
.hero-mark {
  grid-row: 1;
}

.hero-mark {
  justify-self: end;
  align-self: end;
}

.portal {
  width: auto;
  height: min(58vh, 620px);
  max-width: 100%;
}

.hero-foot {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.walk {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
}

.walk i {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(to right, #4bf2ff, #fff1ab);
}

section {
  padding: clamp(4.5rem, 12vh, 8rem) var(--gutter);
  scroll-margin-top: calc(var(--nav) + 0.5rem);
}

.section-head {
  max-width: var(--wide);
  margin: 0 auto 3rem;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  max-width: 14ch;
}

.meaning {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.meaning .label {
  grid-column: 1 / -1;
}

blockquote {
  margin: 0;
}

blockquote p {
  font-size: clamp(2.3rem, 4.6vw, 4.15rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.02;
  max-width: 12ch;
}

.meaning-copy p {
  margin: 0;
  max-width: 34rem;
  color: var(--ivory);
}

.rooms,
.bench,
.steps,
.visit-grid,
.section-head,
.fine {
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
}

.rooms {
  list-style: none;
  padding: 0;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, #4bf2ff, #58b1fd, #846efe, #b050fc, #f25ddf, #ff9d7a, #fff1ab) 1;
}

.rooms li {
  padding: 1.75rem 1.75rem 0 0;
}

.rooms li + li {
  padding-left: 1.75rem;
  border-left: 1px solid var(--line);
}

.num {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.rooms h3,
.steps h3 {
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  margin-bottom: 0.8rem;
}

.rooms p,
.steps p,
.bench p {
  margin: 0;
  max-width: 36rem;
  color: var(--ivory);
}

.bench,
.steps {
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.bench li,
.steps li {
  display: grid;
  gap: 0.4rem 1.5rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}

.bench li:last-child,
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.bench li {
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: baseline;
}

.bench h3 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.bench .num,
.steps .num {
  margin: 0;
}

.kind {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.bench li:hover h3,
.steps li:hover h3 {
  color: var(--gold);
}

.fine {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: var(--muted);
}

.steps li {
  grid-template-columns: 4.5rem minmax(0, 38rem);
  align-items: start;
}

.steps .num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.8rem;
  letter-spacing: 0;
  color: var(--ivory);
  padding-top: 0.15rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.85fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: end;
}

.email {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
  margin: 0.4rem 0 1.1rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 7.6vw, 4.6rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-decoration: none;
  text-wrap: balance;
}

.email:hover {
  color: var(--gold);
}

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

.letter {
  margin: 0;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.field-row span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.32);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 0.45rem 0 0.4rem;
}

textarea {
  min-height: 4.75rem;
  resize: vertical;
  line-height: 1.35;
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--cyan);
}

.form-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem var(--gutter) 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 239, 230, 0.35);
}

.room {
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding: calc(var(--nav) + 8vh) var(--gutter) 10vh;
  position: relative;
  z-index: 2;
}

.room h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
}

.room p {
  max-width: var(--measure);
}

@media (max-width: 900px) {
  .thread {
    display: none;
  }

  .hero,
  .meaning,
  .rooms,
  .visit-grid,
  .bench li,
  .steps li {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav) + 0.75rem);
    padding-bottom: 2.5rem;
  }

  .hero-mark {
    order: -1;
    justify-self: start;
    grid-row: auto;
  }

  .hero-copy {
    grid-row: auto;
  }

  .portal {
    height: 210px;
  }

  .hero-foot {
    margin-top: 1.75rem;
    grid-row: auto;
  }

  .rooms li,
  .rooms li + li {
    padding: 1.6rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .rooms {
    border-image: none;
    border-top: 1px solid var(--line);
  }

  .bench li {
    align-items: start;
  }

  .kind {
    grid-column: 1;
  }

  .brand-word {
    height: 15px;
  }

  .brand .mark {
    height: 38px;
  }
}

@media (max-width: 420px) {
  :root {
    --nav: 6.6rem;
  }

  .nav {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.1rem;
    padding-top: 0.55rem;
    padding-bottom: 0.35rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.15rem 0.7rem;
  }

  .nav-links a {
    letter-spacing: 0.12em;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.9s ease both;
  }

  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.24s; }

  .hero-mark {
    animation: rise 1.15s ease 0.12s both;
  }
}

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