:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --line: #8e8a85;
  --brick: #cdc4bd;
  --bed: #e4dcd5;
  --slot: #b3a79e;
  --facade: #faf6f3;
  --opening: #ffffff;
  --weave: #b5a99c;
  --accent: #a4523a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111112;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --rule: #3a3a3c;
    --line: #8a8580;
    --brick: #2e2b29;
    --bed: #2a2624;
    --slot: #4a433e;
    --facade: #1a1817;
    --opening: #111112;
    --weave: #5a524b;
    --accent: #d06a4c;
  }
}
:root[data-theme="dark"] {
  --bg: #111112;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --rule: #3a3a3c;
  --line: #8a8580;
  --brick: #2e2b29;
  --bed: #2a2624;
  --slot: #4a433e;
  --facade: #1a1817;
  --opening: #111112;
  --weave: #5a524b;
  --accent: #d06a4c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The street elevation of the building */
.elevation { display: block; overflow: visible; }
.elevation .facade { fill: var(--facade); }
.elevation .bed { fill: none; stroke: var(--bed); stroke-width: 0.14; }
.elevation .slot { fill: none; stroke: var(--slot); }
.elevation .outline { fill: none; stroke: var(--line); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.elevation .opening { fill: var(--opening); stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.elevation .frame { fill: none; stroke: var(--line); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.elevation .balcony { fill: var(--facade); stroke: none; }
.elevation .weave { fill: none; stroke: var(--weave); stroke-width: 0.22; }
.elevation .balcony-edge { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.elevation .pier { fill: var(--facade); stroke: var(--line); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.elevation .screen { fill: var(--facade); stroke: none; }
.elevation .screen-edge { fill: none; stroke: var(--line); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.elevation .ground { stroke: var(--line); stroke-width: 1.1; vector-effect: non-scaling-stroke; }

.drawing {
  position: fixed;
  right: 9vw;
  bottom: 9vh;
  height: 78vh;
  width: calc(78vh * 130 / 276);
  z-index: 0;
}
.drawing .elevation { width: 100%; height: 100%; }

.site-header, main {
  position: relative;
  z-index: 1;
  padding-left: max(16px, 6vw);
  padding-right: 16px;
}
.site-header { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.site-name { font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: var(--text); }
.home .site-header { display: none; }

main { max-width: calc(560px + 6vw); padding-top: 64px; padding-bottom: 64px; }
.home main { padding-top: 12vh; }

h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 12px; }
h2 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; margin: 48px 0 8px; }
h3 { font-size: 17px; font-weight: 600; margin: 32px 0 4px; }
p, ul, ol { margin: 0 0 16px; }
.lede { font-size: 21px; line-height: 1.4; color: var(--muted); margin-bottom: 40px; }
a { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

/* Inner pages keep the drawing faint behind the text */
.page .drawing { opacity: 0.35; }

/* Narrow screens: the drawing sits under the title */
@media (max-width: 760px) {
  h1 { font-size: 40px; }
  .home main { padding-top: 10vh; padding-bottom: 0; }
  .home .drawing {
    position: relative;
    right: auto; bottom: auto;
    width: auto;
    height: 62vh;
    height: 62svh;
    margin: 6vh 16px 12vh;
  }
  .home { display: flex; flex-direction: column; }
  .home main { order: 1; }
  .home .drawing { order: 2; }
  .page .drawing { right: -20vw; height: 70vh; width: calc(70vh * 130 / 276); }
}
