@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/courier-400.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/courier-700.woff2") format("woff2"); }
:root { color-scheme: light; color-scheme: only light; --paper: #E7E2D8; --card: #F1EDE5; --ink: #1B1A18; --ink-2: #2B2926; --grey: #5F5A52; --orange: #D94E22; --orange-on-ink: #E8632F; --rule: #CFC8BA; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 400 15px/1.5 "Courier Prime", "Courier New", ui-monospace, monospace; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }

/* the mark, the headline, the ink panel where you act: the same pieces on every page of the door */
.mark { margin: 0; font: 800 clamp(84px, 11vw, 144px)/0.8 "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif; font-stretch: 112%; letter-spacing: -0.03em; color: var(--orange); }
h1 { margin: 22px 0 0; font: 800 clamp(27px, 3.3vw, 46px)/1.02 "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif; font-stretch: 112%; letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance; }
.lede { margin: 14px 0 0; max-width: 34em; color: var(--grey); }
.panel { margin-top: 30px; padding: 22px; border-radius: 28px; background: var(--ink); color: var(--paper); }
.panel label { display: block; margin: 0 0 7px 6px; font-size: 13px; font-weight: 700; }
.panel input { display: block; width: 100%; height: 52px; margin: 0 0 16px; padding: 0 20px; border: 1px solid #47443F; border-radius: 26px; background: var(--ink-2); color: var(--paper); font: inherit; font-size: 16px; }
.panel input::placeholder { color: #8E887C; }
.panel input:focus-visible { outline-color: var(--orange-on-ink); border-color: var(--orange-on-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border: 0; border-radius: 26px; background: var(--orange-on-ink); color: var(--ink); font: 700 15px/1 "Courier Prime", "Courier New", ui-monospace, monospace; cursor: pointer; text-decoration: none; }
.btn.wide { width: 100%; }
.btn.quiet { background: transparent; color: var(--paper); border: 1px solid #5B5750; }
.btn.plain { height: 44px; background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: 0.55; cursor: default; filter: none; }
.say { margin: 16px 6px 0; font-size: 14px; color: var(--ink); }
.say:empty { display: none; }
.panel .say { color: var(--paper); margin: 14px 6px 2px; }
.hint { margin: 16px 6px 0; font-size: 13.5px; color: #B9B2A5; }
.hint + .hint { margin-top: 6px; }
.link { padding: 0; border: 0; background: none; color: var(--paper); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hint a { text-underline-offset: 3px; }
.up { display: flex; align-items: baseline; gap: 10px; margin: 26px 6px 0; font-size: 13.5px; color: var(--grey); }
.up span span { white-space: nowrap; }
.up .dot { align-self: center; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.dot.off { background: transparent; border: 1.5px solid var(--grey); animation: none !important; }

/* the sign-in page: the desk on one side, the picture of it on the other. The picture's own ground is white, so laid
   over the paper it has no edge: the control desk simply stands on the page, and runs off the right side of the screen. */
.door { display: grid; grid-template-columns: clamp(360px, 38vw, 560px) 1fr; min-height: 100vh; min-height: 100dvh; }
.desk { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5.5vw, 76px); padding-right: clamp(12px, 1.5vw, 24px); }
.desk .panel { max-width: 420px; }
.scene { position: relative; overflow: hidden; min-height: 320px; display: grid; align-items: center; justify-items: end; background: var(--paper); container-type: size; }
.shot { position: relative; width: 100%; width: min(100cqw, 100cqh * 1916 / 1570); aspect-ratio: 1916 / 1570; background: var(--paper); }
.shot img { display: block; width: 100%; height: 100%; mix-blend-mode: multiply; }
/* the lamp on the desk is the one live thing here: it glows while HQ answers and goes dark when it does not */
.lamp { position: absolute; left: 64.507%; top: 36.18%; width: 10%; aspect-ratio: 1; margin: -5% 0 0 -5%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 158, 60, 0.62), rgba(255, 126, 36, 0.2) 46%, rgba(255, 120, 30, 0)); }
.lamp.off { width: 2.2%; margin: -1.1% 0 0 -1.1%; background: radial-gradient(circle at 40% 34%, #5A4638, #2C2019 70%); animation: none !important; opacity: 1; }
@media (max-width: 860px) {
  .door { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .scene { order: -1; height: 34vh; height: 34dvh; min-height: 220px; }
  .desk { justify-content: flex-start; padding: 4px 22px 36px; }
  .desk .panel { max-width: none; }
  .mark { font-size: 84px; }
}

/* the code step: six digits, large */
.code { letter-spacing: 0.32em; text-align: center; font-size: 22px !important; font-weight: 700; }
.code.words { letter-spacing: 0.06em; font-size: 18px !important; }

/* sign-in and security, inside HQ */
.room { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) 22px 64px; }
.room .mark { font-size: 64px; }
.room .top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.room h1 { font-size: clamp(26px, 3.4vw, 38px); }
.room h2 { margin: 0; font: 800 19px/1.15 "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif; font-stretch: 112%; text-transform: uppercase; }
.state { display: flex; align-items: center; gap: 10px; margin: 10px 0 16px; color: #D8D2C6; }
.state .dot { background: var(--orange-on-ink); }
.state .dot.off { background: transparent; border: 1.5px solid #8E887C; }
.steps { margin: 18px 0 0; padding: 0; list-style: none; }
.scan { display: grid; grid-template-columns: 216px 1fr; gap: 22px; align-items: start; margin: 4px 0 18px; }
.scan svg { display: block; width: 216px; height: 216px; border-radius: 14px; background: #FFFFFF; }
.key { display: block; margin: 6px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--ink-2); font-weight: 700; letter-spacing: 0.06em; word-spacing: 0.2em; overflow-wrap: anywhere; user-select: all; }
.spare { margin: 14px 0 18px; padding: 16px 18px; border-radius: 16px; background: var(--ink-2); columns: 2; column-gap: 28px; font-weight: 700; letter-spacing: 0.04em; list-style: none; }
.spare li { padding: 3px 0; break-inside: avoid; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.note { margin: 10px 6px 0; font-size: 13.5px; color: #B9B2A5; }
.panel p { margin: 0 0 12px; }
.panel + .panel { margin-top: 18px; }
.panel .tick { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 18px 6px; font-size: 15px; font-weight: 700; cursor: pointer; }
.panel .tick input { flex: none; width: 22px; height: 22px; margin: 0; padding: 0; border-radius: 6px; accent-color: var(--orange-on-ink); }
.panel code { font: inherit; font-weight: 700; color: var(--paper); }
.panel a { color: var(--paper); }
@media (max-width: 560px) { .scan { grid-template-columns: 1fr; } .spare { columns: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter 0.14s; }
  .shot { animation: settle 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .lamp { animation: glow 2.8s ease-in-out infinite; }
  .desk > * { animation: rise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .desk > *:nth-child(2) { animation-delay: 70ms; } .desk > *:nth-child(3) { animation-delay: 140ms; } .desk > *:nth-child(4) { animation-delay: 210ms; } .desk > *:nth-child(5) { animation-delay: 280ms; }
  @keyframes settle { from { opacity: 0; transform: translateX(28px) scale(1.025); } to { opacity: 1; transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes glow { 0%, 100% { opacity: 0.25; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1); } }
}
