:root {
  color-scheme: dark;
  --ink: #000;
  --near: #030404;
  --paper: #e7e4dd;
  --muted: #929997;
  --line: #282b29;
  --old-gold: #9b8156;
  --cold: #99cbd0;
  --signal: #7b1f18;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--near); color: var(--paper); }
a { color: inherit; }
button { color: inherit; font: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* The threshold belongs to the Yettiverse. It is deliberately smaller than
   the place it opens. */
.threshold-page {
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.95%, #101212 50%, transparent 50.05%),
    #000;
  font-family: var(--mono);
}
.threshold {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.threshold__coordinate {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  margin: 0;
  color: #4e5553;
  font-size: .72rem;
  letter-spacing: .18em;
}
.threshold__door {
  width: min(100%, 29rem);
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid #1c201f;
  background: #020303;
  box-shadow: 0 0 0 1px #050606, 0 3rem 8rem #000;
  text-align: center;
}
.threshold__signal {
  display: block;
  width: .45rem;
  height: .45rem;
  margin: 0 auto 3rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 1.2rem rgba(123,31,24,.7);
}
.threshold h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 8vw, 4.1rem);
  font-weight: 400;
  letter-spacing: -.035em;
}
.threshold__door p {
  margin: 1rem 0 4rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
}
.threshold__enter {
  display: inline-block;
  padding: .8rem 0;
  border-bottom: 1px solid var(--old-gold);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.threshold__enter:hover,
.threshold__enter:focus-visible { color: var(--old-gold); }
.threshold__return {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  color: #626967;
  font-size: .72rem;
  text-decoration: none;
}

/* Beyond the threshold the scale changes. */
.district-page {
  font-family: var(--serif);
  background:
    radial-gradient(circle at 50% 0, rgba(84,102,99,.07), transparent 32rem),
    var(--near);
}
.district-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 3vw, 3rem);
  background: linear-gradient(#030404 30%, transparent);
  pointer-events: none;
}
.district-header > * { pointer-events: auto; }
.district-mark {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.district-mark span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--old-gold);
  border-radius: 50%;
  color: var(--old-gold);
  font: .72rem var(--mono);
}
.district-mark small {
  color: #a9aaa4;
  font: .7rem var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.catalog-toggle,
.catalog__head button {
  border: 0;
  background: none;
  cursor: pointer;
  font: .72rem var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.catalog-toggle { padding: .75rem; color: #a9aaa4; }
.catalog-toggle:hover,
.catalog-toggle:focus-visible { color: var(--paper); }
.catalog {
  position: fixed;
  z-index: 30;
  inset: 0 0 0 auto;
  width: min(92vw, 35rem);
  padding: 2rem;
  border-left: 1px solid var(--line);
  background: rgba(3,4,4,.98);
  box-shadow: -3rem 0 8rem #000;
  overflow-y: auto;
}
.catalog__head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: .72rem var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.catalog__head p { margin: 0; }
.catalog nav { margin-top: 3rem; }
.catalog nav a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #171918;
  text-decoration: none;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
}
.catalog nav span { color: var(--old-gold); font: .72rem var(--mono); }
.catalog__aside { margin-top: 4rem; color: var(--muted); font-style: italic; }

.orientation {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 8rem clamp(1.25rem, 8vw, 9rem) 5rem;
}
.orientation__kicker,
.work__number,
.unoccupied > p {
  color: var(--old-gold);
  font: .72rem var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.orientation h1 {
  max-width: 77rem;
  margin: 1.2rem 0 2rem;
  font-size: clamp(2.7rem, 7.8vw, 8rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.05em;
}
.orientation__note {
  max-width: 29rem;
  margin: 0 0 5rem auto;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}
.orientation__down {
  width: fit-content;
  color: #a9aaa4;
  font: .72rem var(--mono);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.work {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(19rem, .65fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 7rem);
  padding: clamp(6rem, 10vw, 11rem) clamp(1.25rem, 4vw, 5rem);
  border-top: 1px solid #111312;
}
.work:nth-of-type(even) { grid-template-columns: minmax(19rem, .65fr) minmax(0, 1.65fr); }
.work:nth-of-type(even) .work__image { order: 2; }
.work__image { margin: 0; }
.work__image img {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  box-shadow: 0 2rem 7rem rgba(0,0,0,.55);
}
.work__record { max-width: 31rem; }
.work__record h2 {
  margin: 1.2rem 0 1.5rem;
  font-size: clamp(2.25rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.04em;
}
.work__statement { color: #b7b8b2; font-size: 1.08rem; line-height: 1.65; }
.work details { margin-top: 3rem; border-top: 1px solid var(--line); }
.work summary {
  padding: 1rem 0;
  cursor: pointer;
  color: var(--muted);
  font: .72rem var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.record-grid { display: grid; gap: 1.25rem; padding: .5rem 0 1rem; }
.record-grid p { margin: 0; color: #9da09c; line-height: 1.55; }
.record-grid span {
  display: block;
  margin-bottom: .3rem;
  color: #6d7471;
  font: .68rem var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.work--004 .work__number { color: #839b6d; }
.work--004 .work__image img { border-bottom: 1px solid #35412f; }

.unoccupied {
  min-height: 88svh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 5rem 1.25rem;
  text-align: center;
}
.unoccupied h2 {
  margin: 1rem 0 3rem;
  color: #747b78;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
}
.unoccupied span { width: 1px; height: 22vh; background: linear-gradient(var(--line), transparent); }
.district-footer {
  min-height: 17rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem clamp(1.25rem, 4vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.district-footer p { margin: .3rem 0; }
.district-footer p:first-child { color: var(--paper); font-size: 1.3rem; }
.district-footer a { font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 780px) {
  .district-mark small { display: none; }
  .orientation__note { margin-left: 0; }
  .work,
  .work:nth-of-type(even) { grid-template-columns: 1fr; gap: 2.5rem; }
  .work:nth-of-type(even) .work__image { order: initial; }
  .work__record { max-width: 38rem; }
  .district-footer { align-items: start; flex-direction: column; }
}

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