@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Architects Daughter"; src: url(/fonts/architects-daughter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --night: #1d2a44;
  --night-deep: #141e33;
  --paper: #f0ebdf;
  --paper-2: #e6dfcf;
  --ink: #2a2b33;
  --ink-soft: #62636b;
  --pencil: #c63d26;
  --pencil-night: #ff7c5f;
  --magenta: #c96fae;
  --amber: #f6c04d;
  --amber-pale: #ffdf94;
  --stone: #d9d2c3;
  --line-night: rgba(240, 235, 223, 0.55);
  --upcloud: #7b00ff;
  --display: Futura, "Jost", "Century Gothic", sans-serif;
  --text: "Avenir Next", "Jost", "Segoe UI", sans-serif;
  --label: "Avenir Next Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
  --hand: "Bradley Hand", "Architects Daughter", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 17px/1.45 var(--text); }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
.label { font: 600 13px/1.2 var(--label); letter-spacing: 0.16em; text-transform: uppercase; }
.hand { font-family: var(--hand); font-weight: 700; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the house: a picture with the live windows drawn over it */
.house { position: relative; width: 100%; }
.house .facade { width: 100%; height: auto; aspect-ratio: 1080 / 1120; }
.house svg.windows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.win { --on: 0; }
.win .light { opacity: 0; transition: opacity 0.5s ease; }
.win.live .light { opacity: 1; }
.win.down .light { opacity: 0.22; }
.win .plan { opacity: 0; }
.win.waiting .plan { opacity: 1; }
.win .ringmark { opacity: 0; }
.win .hit { fill: transparent; }
.win.pickable .hit, .win.taken .hit { cursor: pointer; }
.win .halo { opacity: 0; }
.win.pickable:hover .halo, .win.taken:hover .halo, .win:focus-visible .halo, .win.chosen .halo { opacity: 1; }
.win:focus { outline: none; }
.win.switching .light { animation: switch-on 1.7s steps(1) 1; }
@keyframes switch-on { 0% { opacity: 0; } 8% { opacity: 0.9; } 14% { opacity: 0.15; } 24% { opacity: 1; } 31% { opacity: 0.3; } 46% { opacity: 1; } 52% { opacity: 0.6; } 60%, 100% { opacity: 1; } }
.win.ringing .light { animation: blink 0.9s ease 1; }
@keyframes blink { 0%, 100% { opacity: 1; } 20% { opacity: 0.35; } 40% { opacity: 1; } 60% { opacity: 0.45; } }
.win.marked .ringmark { opacity: 1; }
.win.marked .ringmark path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 0.9s ease-out forwards; }
.win.marked .ringmark path + path { animation-delay: 0.45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; animation-delay: 0s !important; transition-duration: 0.01s !important; }
}

/* a window seen close up, with the app's own front page in it */
.casement { position: relative; width: 100%; aspect-ratio: 440 / 318; }
.casement svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.casement .view { position: absolute; left: 13.64%; top: 15.1%; width: 72.73%; height: 62.9%; overflow: hidden; background: var(--amber); }
.casement .view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.casement .room { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(#ffd98a, #f3b64a); color: #4a2716; font: 500 clamp(20px, 4vw, 34px)/1.05 var(--display); text-align: center; padding: 6%; overflow-wrap: anywhere; }
.casement.dark .view { background: #182338; }
.casement.dark .view img { filter: brightness(0.45) saturate(0.6); }
