:root {
  color-scheme: dark;
  --ink: #f2ead9;
  --muted: #b9ad99;
  --panel: rgba(20, 18, 24, 0.92);
  --panel-soft: rgba(33, 28, 38, 0.78);
  --line: #5d4d63;
  --accent: #e5b567;
  --accent-strong: #ffd58b;
  --focus: #8ee7e4;
  --background: #0d0c10;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(84, 56, 91, 0.36), transparent 36rem),
    linear-gradient(160deg, #151019 0%, var(--background) 55%);
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff2d1;
}

a:focus-visible,
.skip-link:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  color: #081313;
  background: var(--focus);
  transform: translateY(-180%);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 12, 16, 0.88);
}

.site-header__inner,
.page,
.site-footer__inner {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.enter-vacantide {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.22rem 0.72rem 0.22rem 0.34rem;
  overflow: hidden;
  border: 1px solid #e7b95f;
  border-radius: 0.45rem;
  color: #ffe2a3;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 220, 143, 0.18), transparent 48%),
    linear-gradient(145deg, #2d2112, #110e0a 72%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 227, 165, 0.08),
    0 0 0.9rem rgba(217, 168, 90, 0.2);
  font-family: system-ui, sans-serif;
  text-decoration: none;
}

.enter-vacantide:hover {
  border-color: #ffe0a0;
  color: #fff3d1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 196, 0.16),
    0 0 1.35rem rgba(237, 184, 83, 0.42);
}

.enter-vacantide__icon {
  width: 2.55rem;
  height: 2.55rem;
  flex: none;
  overflow: visible;
  color: #f5c76e;
  filter: drop-shadow(0 0 0.22rem rgba(255, 204, 103, 0.42));
}

.enter-vacantide__rays,
.enter-vacantide__frame {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.enter-vacantide__rays {
  stroke-width: 1.7;
}

.enter-vacantide__light {
  fill: rgba(255, 218, 139, 0.3);
}

.enter-vacantide__opening {
  fill: #fff0b8;
}

.enter-vacantide__door {
  fill: #bd7624;
  stroke: #ffe0a0;
  stroke-linejoin: round;
  stroke-width: 1.15;
  transform-box: fill-box;
  transform-origin: left center;
}

.enter-vacantide__knob {
  fill: #fff4cb;
  stroke: #724310;
  stroke-width: 0.65;
}

.enter-vacantide__label {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.enter-vacantide__verb {
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.enter-vacantide__name {
  margin-top: 0.22rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.25rem, 7vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font: 700 0.76rem/1.3 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 4.6rem);
}

.lede {
  max-width: 48rem;
  margin: 1rem 0 2.5rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 3vw, 1.3rem);
}

.guide-section {
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--panel);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.22);
}

.guide-section h2 {
  margin: 0 0 0.8rem;
  color: #fff4df;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.guide-section p:last-child,
.guide-section ul:last-child {
  margin-bottom: 0;
}

.guide-section li + li {
  margin-top: 0.45rem;
}

code,
kbd {
  border: 1px solid #6d5b70;
  border-radius: 0.22rem;
  color: #fff2d3;
  background: #28212b;
  font: 0.92em/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

code {
  padding: 0.08rem 0.32rem;
}

.guide-nav {
  position: sticky;
  top: 1.25rem;
  align-self: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--panel-soft);
}

.guide-nav h2 {
  margin: 0 0 0.75rem;
  font: 700 0.78rem/1.3 system-ui, sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.guide-nav ul {
  margin: 0;
  padding-left: 1.1rem;
}

.guide-nav li + li {
  margin-top: 0.45rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #0a090c;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-block: 1.5rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 48rem) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .page {
    grid-template-columns: 1fr;
  }

  .guide-nav {
    position: static;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .skip-link {
    transition: transform 120ms ease-out;
  }

  .enter-vacantide,
  .enter-vacantide__door {
    transition:
      border-color 160ms ease,
      box-shadow 160ms ease,
      color 160ms ease,
      transform 160ms ease;
  }

  .enter-vacantide:hover {
    transform: translateY(-1px);
  }

  .enter-vacantide:hover .enter-vacantide__door,
  .enter-vacantide:focus-visible .enter-vacantide__door {
    transform: translateX(-0.7px) scaleX(0.93);
  }
}

@media (prefers-reduced-motion: reduce) {
  .enter-vacantide,
  .enter-vacantide__door {
    transition: none;
  }
}

@media (forced-colors: active) {
  html,
  body {
    color: CanvasText;
    background: Canvas;
  }

  a,
  a:hover,
  .eyebrow {
    color: LinkText;
  }

  .site-header,
  .site-footer,
  .guide-section,
  .guide-nav,
  code,
  kbd {
    border-color: CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .guide-section h2,
  .lede {
    color: CanvasText;
  }

  .enter-vacantide {
    forced-color-adjust: none;
    border-color: LinkText;
    color: LinkText;
    background: Canvas;
    box-shadow: none;
  }

  .enter-vacantide:focus-visible {
    outline-color: Highlight;
  }

  .enter-vacantide__icon {
    color: LinkText;
    filter: none;
  }

  .enter-vacantide__light,
  .enter-vacantide__opening {
    fill: Canvas;
  }

  .enter-vacantide__door {
    fill: LinkText;
    stroke: LinkText;
  }

  .enter-vacantide__knob {
    fill: Canvas;
    stroke: LinkText;
  }
}
