:root {
  color-scheme: dark;
  --background: #211827;
  --panel: #2e2233;
  --ink: #ffebca;
  --muted: #d9bfae;
  --amber: #ffc180;
  --trim: #795360;
  --edge: #4d3547;
  --display: "Pixelify Sans", "Courier New", monospace;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 1rem/1.6 var(--body);
}

p, h1, h2 {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: .3em;
}

a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

.shell {
  width: min(100% - 3rem, 70rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: .5rem auto auto .5rem;
  padding: .5rem 1rem;
  background: var(--amber);
  color: var(--background);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--edge);
}

.header-inner, .room-nav, .brand {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 4.5rem;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  gap: .65rem;
  font: 700 1.35rem/1 var(--display);
  letter-spacing: .075em;
  text-decoration: none;
}

.brand img, .cabin, .room-art {
  image-rendering: pixelated;
}

.brand img {
  border: 1px solid var(--trim);
}

.room-nav {
  flex-wrap: wrap;
  column-gap: clamp(.75rem, 3vw, 2rem);
}

.room-nav a, .site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font: 400 .875rem/1.4 var(--mono);
}

.room-nav a {
  text-decoration: none;
}

.room-nav a:hover, .site-footer a:hover {
  color: var(--amber);
  text-decoration: underline;
}

.hero {
  display: grid;
  container-type: inline-size;
  grid-template-columns: 44% 56%;
  align-items: center;
  min-height: 27.5rem;
  padding-block: 2rem;
}

.hero-copy {
  z-index: 1;
  position: relative;
  padding: .75rem 1.25rem .75rem 0;
}

.label {
  font: 700 .875rem/1.5 var(--mono);
  letter-spacing: .095em;
  text-transform: uppercase;
}

.site-name {
  color: var(--amber);
  margin-bottom: .8rem;
}

.hero h1 {
  font: 700 clamp(3rem, 8.2cqw, 7rem)/.83 var(--display);
  letter-spacing: -.045em;
  text-shadow: 4px 4px #523141;
}

.hero h1 span {
  color: var(--amber);
}

.intro {
  max-width: 31ch;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.enter {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 1.4rem;
  padding: .35rem 1rem;
  border: 2px solid #ffcb92;
  background: var(--amber);
  box-shadow: 4px 4px #86544f;
  color: #2e1d2d;
  font: 700 .875rem/1.4 var(--mono);
  text-decoration: none;
}

.enter:hover {
  background: #ffdbac;
}

.cabin {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--edge);
  object-fit: cover;
}

.foundation {
  min-height: 13px;
  border-block: 2px solid var(--trim);
  background: repeating-linear-gradient(90deg, #503649 0 10px, #624253 10px 13px);
}

.rooms {
  border-inline: 3px solid var(--edge);
}

.room {
  --room-accent: #c0d0a5;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-bottom: 3px solid var(--edge);
  background: var(--panel);
  scroll-margin-top: 1rem;
}

.room:target {
  background: #392a3d;
  box-shadow: inset 0 0 0 2px var(--room-accent);
}

.room:nth-child(even) {
  grid-template-columns: 1fr 1.15fr;
}

.room:nth-child(even) .room-art {
  order: 1;
}

.games { --room-accent: #d0b5eb; }
.video { --room-accent: #f0a9b0; }
.business { --room-accent: #eac392; }

.room-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12.5rem;
  object-fit: cover;
}

.room-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(1.25rem, 4.5vw, 3.25rem);
}

.room-copy .label {
  color: var(--room-accent);
}

.room-copy h2 {
  margin-block: .3rem .6rem;
  font: 700 clamp(2rem, 4.4vw, 3.75rem)/.97 var(--display);
  letter-spacing: -.035em;
}

.room-copy > p:last-child {
  max-width: 35ch;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  padding-block: 1rem 1.75rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--amber);
}

@media (max-width: 51rem) {
  .hero {
    grid-template-columns: 47% 53%;
    min-height: auto;
  }

  .cabin {
    aspect-ratio: 5 / 4;
    object-position: 53%;
  }
}

@media (max-width: 39rem) {
  .shell {
    width: calc(100% - 2rem);
  }

  .header-inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    padding-top: .8rem;
  }

  .room-nav {
    column-gap: .85rem;
  }

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

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 11.7vw, 5.5rem);
  }

  .cabin {
    aspect-ratio: 2 / 1;
  }

  .room, .room:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .room:nth-child(even) .room-art {
    order: 0;
  }

  .room-art {
    min-height: 0;
    height: auto;
  }

  .room-copy {
    padding: 1rem 1.25rem 1.5rem;
  }
}

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