/* Backdoor Group. Used by legal.html and corridor.html. */
@font-face { font-family: "Inter Tight"; font-weight: 300; font-display: swap; src: url("fonts/InterTight-300.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("fonts/InterTight-500.woff2") format("woff2"); }
:root {
  --wall: #141413;        /* flat, matching the landing page */
  --wall-deep: #1F1E1C;
  --ink: #E9E6E0;
  --quiet: #8E8A82;
  --line: #3E3C38;
  --light: #F2E9D2;       /* the light under a door */
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --margin: 48px;
  --door-w: 220px;
  --door-h: 400px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: #141413; }
body {
  background: #141413;
  color: var(--ink);
  font: 300 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }
ol { list-style: none; }

/* plates: small mono labels, top and bottom */
.plate {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 28px var(--margin);
  font: 400 12px/1.5 var(--mono); color: var(--quiet);
  letter-spacing: 0.02em;
}
.wordmark { color: var(--ink); text-transform: uppercase; letter-spacing: 0.14em; }
.plate-bottom { padding-bottom: 40px; flex-wrap: wrap; gap: 8px 24px; }
.plate-bottom a { color: var(--ink); border-bottom: 1px solid var(--line); }
.plate-bottom a:hover { border-bottom-color: var(--ink); }

/* the corridor: one hairline down the middle of the page */
.corridor { position: relative; }
.corridor::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  border-left: 1px solid var(--line);
}

/* the threshold: what you read on arrival */
.threshold {
  position: relative; z-index: 1;
  min-height: calc(100vh - 90px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--margin);
}
.line { max-width: 22em; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -0.01em; }
.line + .line { margin-top: 1.6em; }
.quiet { color: var(--quiet); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; }

/* doors */
.doors { position: relative; z-index: 1; padding: 10vh 0 0; }
.door { padding: 7vh var(--margin); display: flex; }
.door.left  { justify-content: flex-start; }
.door.right { justify-content: flex-end; }
.door a { display: block; width: var(--door-w); }

.frame {
  display: block; position: relative;
  height: var(--door-h);
  border: 1px solid var(--line);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(0,0,0,0.08));
  transition: border-color 0.5s ease;
}
.frame::after {              /* the handle */
  content: ""; position: absolute; right: 18px; top: 52%;
  width: 14px; border-top: 1px solid var(--line);
  transition: border-color 0.5s ease;
}
.light {                      /* light under the door */
  position: absolute; left: -1px; right: -1px; bottom: 0; height: 1px;
  background: var(--light); opacity: 0.35;
  box-shadow: 0 0 10px 1px rgba(242,233,210,0.18);
  transition: opacity 0.6s ease, box-shadow 0.6s ease, height 0.6s ease;
}
.door a:hover .frame, .door a:focus-visible .frame { border-color: var(--quiet); }
.door a:hover .frame::after { border-color: var(--quiet); }
.door a:hover .light, .door a:focus-visible .light {
  opacity: 1; height: 2px;
  box-shadow: 0 0 28px 6px rgba(242,233,210,0.28);
}
.name {
  display: block; margin-top: 18px;
  font: 400 12px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--quiet); transition: color 0.4s ease;
}
.door a:hover .name { color: var(--ink); }

/* the end of the corridor: a door across the wall, ajar */
.end {
  position: relative; z-index: 1;
  padding: 16vh var(--margin) 18vh;
  display: flex; justify-content: center;
}
.end::before {
  content: ""; position: absolute; left: 50%; top: 10vh; width: 1px; height: 6vh;
  background: linear-gradient(180deg, var(--line), transparent);
}
.door-end { display: block; width: var(--door-w); text-align: center; }
.door-end .frame { height: calc(var(--door-h) * 0.8); border-style: dashed; }
.door-end .frame.ajar .light { opacity: 0.55; left: 10%; right: -1px; }
.door-end .frame::after { display: none; }
.door-end .note { display: block; margin-top: 6px; font: 400 11px/1.5 var(--mono); color: var(--quiet); opacity: 0.7; }
.door-end:hover .name { color: var(--ink); }
.door-end:hover .light { opacity: 1; box-shadow: 0 0 28px 6px rgba(242,233,210,0.28); }

/* legal page */
.prose {
  position: relative; z-index: 1;
  max-width: 38em; padding: 80px var(--margin) 120px;
}
.prose h1 { font-weight: 300; font-size: clamp(22px, 2.4vw, 34px); margin-bottom: 40px; }
.prose h2 { font: 400 12px/1.5 var(--mono); color: var(--quiet); text-transform: uppercase; letter-spacing: 0.06em; margin: 36px 0 10px; }
.prose p, .prose dd { margin-bottom: 10px; }
.prose dt { font: 400 12px/1.5 var(--mono); color: var(--quiet); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 16px; }
.prose a { border-bottom: 1px solid var(--line); }
.prose a:hover { border-bottom-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .frame, .frame::after, .light, .name { transition: none; }
}

@media (max-width: 860px) {
  :root { --margin: 20px; --door-w: 150px; --door-h: 270px; }
  .plate { padding: 20px var(--margin); }
  .threshold { min-height: calc(100vh - 70px); }
  .line { max-width: none; }
  .door { padding: 5vh var(--margin); }
  .end { padding: 12vh var(--margin) 14vh; }
  .plate-bottom { flex-direction: column; }
}
