@font-face {
  font-family: Maison Mono;
  src: url("../fonts/MaisonNeueMono-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* Foundations */
:root {
  color-scheme: dark;
  --background: #000;
  --text: #fff;
  --muted: #aaa;
  --border: #666;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --content: 67.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1rem/1.5 "Maison Mono", monospace;
  -webkit-font-smoothing: antialiased;
}
body:has(.lightbox[open]) { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
[hidden] { display: none !important; }
.container { width: min(var(--content), 100% - var(--gutter) * 2); margin-inline: auto; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .8rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 3rem;
  background: transparent;
  font-size: .875rem;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.button:hover { background: var(--text); color: var(--background); }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: 1rem; background: #fff; color: #000; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Header */
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  background: linear-gradient(#000 35%, transparent);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 7.5rem;
  padding: 1.5rem var(--gutter);
}
.header__brand { display: inline-flex; align-items: center; gap: 1.25rem; line-height: 1; }
.header__brand img { width: 3.8rem; height: 4.5rem; }
.header__nav { display: flex; gap: clamp(1.5rem, 3vw, 3rem); font-size: .875rem; }
.header__nav a { padding-block: .75rem; }
.header__nav a:hover { color: var(--muted); }
.header__toggle { display: none; }

/* Hero: one SVG contour, repeated at increasing depths. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: max(42rem, 100svh);
  overflow: clip;
}
.hero__title {
  position: relative;
  max-width: 35rem;
  padding-block: 2rem 2rem;
  font-size: clamp(1.4rem, 2.45vw, 2.2rem);
  line-height: 1.3;
  text-transform: uppercase;
}
.hero__art {
  --x: 0;
  --y: 0;
  position: absolute;
  z-index: -1;
  top: 250px;
  left: 50%;
  width: 600px;
  height: 600px;
  margin-left: -300px;
  perspective: 1686px;
  transform: scale(2.1);
  opacity: .55;
  pointer-events: none;
}
.hero__line {
  position: absolute;
  inset: 0;
  width: 600px;
  max-width: none;
  opacity: var(--opacity);
  transform: translate3d(calc(var(--x) * var(--i) * 50px), calc(var(--y) * var(--i) * 50px), calc(var(--i) * -160px + var(--depth-offset, 0px)));
  animation: appear 100ms cubic-bezier(.55, .085, .68, .53) both;
  animation-delay: calc(1000ms + (10 - var(--i)) * 100ms);
}
@keyframes appear { from { opacity: 0; } }

/* Spaces and gallery */
.spaces { padding-block: clamp(3rem, 7vw, 7rem) 4rem; overflow: clip; }
.spaces__intro { max-width: 31rem; }
.spaces__intro h2 { margin-bottom: 2rem; }
.gallery {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 7rem);
  padding: .5rem var(--gutter) 2rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  scroll-snap-type: x mandatory;
}
.gallery__item {
  position: relative;
  flex: 1 0 18%;
  min-width: 12rem;
  height: clamp(17rem, 28vw, 24rem);
  overflow: hidden;
  scroll-snap-align: center;
}
.gallery__item:nth-child(even) { margin-top: 3rem; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s, opacity .45s; }
.gallery__item::after {
  content: "VIEW PHOTO";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0008;
  font-size: .875rem;
  opacity: 0;
  transition: opacity .25s;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:is(:hover, :focus-visible)::after { opacity: 1; }

/* Native event accordions */
.events { padding-block: clamp(3rem, 7vw, 6rem); }
.events__list { margin-block: 2rem 3rem; }
.events__status { padding-block: 2rem; color: var(--muted); }
.event { border-bottom: 1px solid var(--border); }
.event__summary { position: relative; display: block; padding: 1.8rem 3rem 1.8rem 0; list-style: none; cursor: pointer; }
.event__summary::-webkit-details-marker { display: none; }
.event__summary::after { content: "+"; position: absolute; top: 2rem; right: 0; font-size: 1.8rem; line-height: 1; }
.event[open] .event__summary::after { content: "−"; }
.event__date { display: inline-block; margin-bottom: .75rem; padding: .2rem .65rem; border: 1px solid var(--border); border-radius: 2rem; font-size: .875rem; }
.event__title { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.4; overflow-wrap: anywhere; }
.event__body { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 2rem; padding-bottom: 2rem; }
.event__body > :only-child { grid-column: 1 / -1; }
.event__body img { width: 100%; max-height: 22rem; object-fit: contain; object-position: top left; }
.event__description { white-space: pre-line; overflow-wrap: anywhere; }
.event__link { display: inline-block; margin-top: 1.5rem; text-decoration: underline; text-underline-offset: .3em; }

/* Shared announcement strips */
.marquee { display: block; overflow: hidden; padding-block: 1.1rem; border-block: 1px solid var(--border); }
.marquee:hover .marquee__track, .marquee:focus-visible .marquee__track { animation-play-state: paused; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; gap: 8vw; padding-right: 8vw; white-space: nowrap; }
.marquee__group span { font-size: .875rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 3rem; padding: 5rem var(--gutter); }
.footer__logo { width: 4rem; }
.footer address { font-style: normal; }
.footer__socials { display: grid; gap: .25rem; }
.footer a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* Native modal, with links to full-size images as the no-JS fallback. */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 4rem clamp(3.5rem, 6vw, 6rem) 1.5rem; border: 0; background: #000e; color: #fff; }
.lightbox::backdrop { background: #000c; }
.lightbox button {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: .6rem;
  border: 0;
  border-radius: 50%;
  background: #0008;
  transition: background .2s;
}
.lightbox button:hover { background: #333; }
.lightbox button svg { width: 100%; height: 100%; pointer-events: none; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__arrow { top: 50%; transform: translateY(-50%); }
.lightbox__arrow[data-previous] { left: 1rem; }
.lightbox__arrow[data-next] { right: 1rem; }
.lightbox figure { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; }
.lightbox__image { width: 100%; height: 100%; object-fit: contain; }
.lightbox__caption { font-size: .875rem; text-align: center; }


/* Content pages */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero--page { min-height: max(30rem, 70svh); }
.header__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.link { text-decoration: underline; text-underline-offset: .25em; }
.link:hover { color: var(--muted); }
.block { display: grid; justify-items: start; gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.block > p, .block > address { max-width: 42rem; }
.block__lead { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; font-style: normal; }
.block__note { color: var(--muted); }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.rooms__item { display: grid; align-content: start; gap: .75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.rooms__item h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); text-transform: uppercase; }
.rooms__meta { justify-self: start; padding: .2rem .65rem; border: 1px solid var(--border); border-radius: 2rem; font-size: .875rem; }
.steps { display: grid; gap: 1.25rem; max-width: 42rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 3rem; counter-increment: step; }
.steps li::before { content: "0" counter(step); position: absolute; left: 0; color: var(--muted); }
.rules { display: grid; width: 100%; max-width: 48rem; margin: 0; }
.rules > div { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: 1rem 2rem; padding-block: 1.25rem; border-bottom: 1px solid var(--border); }
.rules dt { text-transform: uppercase; }
.rules dd { margin: 0; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; width: 100%; max-width: 48rem; }
.form__field { display: grid; gap: .5rem; font-size: .875rem; text-transform: uppercase; }
.form__field--wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; text-transform: none; }
.form select option { background: var(--background); }
.form :is(input, select, textarea):focus-visible { outline-offset: 2px; }
.form .button { justify-self: start; }

@media (max-width: 48rem) {
  .header__inner { gap: 1rem; flex-wrap: wrap; min-height: 6rem; padding-block: 1rem; }
  .header__brand img { width: 2.7rem; height: 3.2rem; }
  .header__contact { display: none; }
  .header__toggle:not([hidden]) { display: inline-flex; }
  .header__nav { flex-basis: 100%; flex-wrap: wrap; justify-content: flex-start; gap: .25rem 1.25rem; }
  .rules > div { grid-template-columns: 1fr; gap: .5rem; }
  .form { grid-template-columns: 1fr; }
  .header[data-menu="closed"] .header__nav { display: none; }
  .header[data-menu="open"] { background: #000; }
  .hero { min-height: max(34rem, 85svh); }
  .hero__title { max-width: 30rem; font-size: clamp(1.35rem, 4vw, 1.9rem); }
  .hero__art { top: 10rem; left: 70%; transform: scale(1.3); opacity: .4; }
  .gallery { gap: 1rem; }
  .gallery__item { flex-basis: 65%; height: 22rem; }
  .event__body { grid-template-columns: 1fr; }
  .event__body img { max-width: 16rem; }
  .footer { grid-template-columns: auto 1fr; gap: 2rem; padding-block: 3rem; }
  .footer__socials { grid-column: 2; }
  .lightbox { padding-inline: 1rem; }
  .lightbox__arrow[data-previous] { left: .5rem; }
  .lightbox__arrow[data-next] { right: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__line { transform: translateZ(calc(var(--i) * -160px)); }
}
