/* SyncSpire Audio: a drawing set for a home. Dark sheets, warm linework,
   one redline colour. Fonts: IBM Plex (SIL OFL 1.1, see /fonts/OFL.txt). */
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("/fonts/plex-cond-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("/fonts/plex-cond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #0e0f11;
  --sheet: #131416;
  --ink: #ece6dc;
  --ink-2: #b9b3a9;
  --ink-3: #847f77;
  --line: rgba(236, 230, 220, 0.42);
  --line-2: rgba(236, 230, 220, 0.16);
  --line-3: rgba(236, 230, 220, 0.06);
  --red: #f56b42;
  --red-2: rgba(245, 107, 66, 0.16);
  --cond: "Plex Cond", "Arial Narrow", sans-serif;
  --sans: "Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 24px; top: 24px; z-index: 9; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* Small capitals used for every annotation on the drawings */
.lbl { font: 600 12px/1.3 var(--cond); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--ink-3); }
.red { color: var(--red); }

/* The sheet: a bordered drawing with grid references on its edges */
.sheet {
  position: relative; margin: 14px; border: 1px solid var(--line);
  background:
    linear-gradient(var(--line-3) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line-3) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--sheet);
}
.sheet + .sheet { margin-top: 0; border-top: 0; }
.refs-x, .refs-y { position: absolute; display: flex; justify-content: space-around; font: 500 11px var(--mono); color: var(--ink-3); pointer-events: none; }
.refs-x { left: 0; right: 0; top: -1px; transform: translateY(-100%); height: 14px; }
.refs-y { top: 0; bottom: 0; left: -1px; flex-direction: column; transform: translateX(-100%); width: 14px; align-items: center; }
.inner { padding: 0 clamp(18px, 4vw, 56px); }

/* Header strip */
.strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 14px clamp(18px, 4vw, 56px); background: var(--sheet); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { font: 600 15px/1 var(--cond); letter-spacing: 0.16em; text-transform: uppercase; }
.index { display: flex; gap: 20px; }
.index a { text-decoration: none; font: 500 12px var(--mono); color: var(--ink-3); }
.index a:hover, .index a:focus-visible { color: var(--ink); }
.index a b { color: var(--ink-2); font-weight: 500; }
.lang { font: 600 12px var(--cond); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line-2); padding: 6px 10px; }
.lang:hover { border-color: var(--line); }

/* Sheet heading: sheet number on the left, title, rule */
.sheet-head { display: flex; align-items: baseline; gap: 16px; padding-top: 44px; }
.sheet-no { font: 500 13px var(--mono); color: var(--red); border: 1px solid var(--red); padding: 3px 7px; white-space: nowrap; }
.sheet-head .rule { flex: 1; height: 1px; background: var(--line-2); align-self: center; }

/* A-101 Plan */
.plan { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: 28px; padding-bottom: 48px; align-items: start; }
.plan svg { width: 100%; height: auto; }
.plan svg text { font-family: var(--cond); }
.wall { stroke: var(--ink); stroke-width: 7; fill: none; stroke-linecap: square; }
.part { stroke: var(--ink); stroke-width: 3.5; fill: none; }
.thin { stroke: var(--line); stroke-width: 1.4; fill: none; }
.furn { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.win { stroke: var(--sheet); stroke-width: 7; }
.win-l { stroke: var(--ink); stroke-width: 1.2; }
.room-name { font-weight: 600; font-size: 22px; letter-spacing: 0.14em; fill: var(--ink); }
.room-sub { font-family: var(--mono) !important; font-size: 14px; fill: var(--ink-3); }
.spk { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; }
.arc { stroke: var(--red); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.playing .arc { animation: wave 2.4s ease-out infinite; }
.playing .arc:nth-child(3) { animation-delay: 0.3s; }
.playing .arc:nth-child(4) { animation-delay: 0.6s; }
@keyframes wave { 0% { opacity: 0.15; } 40% { opacity: 1; } 100% { opacity: 0.15; } }
.tag circle { fill: var(--red); }
.tag text { font-family: var(--mono) !important; font-size: 15px; font-weight: 500; fill: #1a0c07; text-anchor: middle; }
.move { stroke: var(--red); stroke-width: 2.5; fill: none; stroke-dasharray: 9 7; }
.ceiling { stroke: var(--red); stroke-width: 1.6; stroke-dasharray: 4 5; fill: none; }

.statement h1 { font: 500 clamp(42px, 5.6vw, 78px)/0.98 var(--cond); letter-spacing: -0.01em; margin-top: 4px; }
.statement .lede { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 30em; }
.key { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.key li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.key a { text-decoration: none; }
.key a:hover b { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.dot { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #1a0c07; display: grid; place-items: center; font: 500 12px var(--mono); }
.key b { font-weight: 600; }

/* Title block */
.tb { margin-top: 30px; border: 1px solid var(--line); display: grid; grid-template-columns: 112px 1fr; }
.tb > * { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.tb dt { font: 600 11px/1.6 var(--cond); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); border-right: 1px solid var(--line-2); }
.tb dd { margin: 0; font-size: 15px; }
.tb dd strong { font-weight: 600; }
.tb .last { border-bottom: 0; }
.store { display: inline-flex; margin-top: 18px; gap: 10px; align-items: center; font: 600 13px var(--cond); letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--red); color: var(--red); padding: 12px 18px; }
.store i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* A-201 Details: viewports with view titles, like a detail sheet */
.details { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 28px 0 56px; border: 1px solid var(--line-2); }
.view { grid-column: span 2; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.view.wide { grid-column: span 3; }
.view.full { grid-column: span 6; border-right: 0; }
.view.full .vis svg { max-width: 520px; }
.view:nth-child(2), .view:nth-child(5) { border-right: 0; }
.details .view:last-child { border-bottom: 0; }
.vis { flex: 1; display: grid; place-items: center; min-height: 220px; }
.vis svg { width: 100%; height: auto; }
.vis svg text { font-family: var(--mono); fill: var(--ink-3); font-size: 13px; }
.status { display: inline-block; font: 600 11px var(--cond); letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line-2); color: var(--ink-3); }
.status.new { border-color: var(--red); color: var(--red); background: repeating-linear-gradient(135deg, var(--red-2) 0 4px, transparent 4px 9px); }
.vt { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; align-items: start; }
.vt .num { width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; position: relative; font: 500 14px var(--mono); }
.vt .num::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--ink); opacity: 0; }
.vt h3 { font: 600 22px/1.15 var(--cond); letter-spacing: 0.02em; border-bottom: 1.5px solid var(--ink); padding-bottom: 6px; }
.vt .meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; }
.view p { color: var(--ink-2); font-size: 16px; }

/* Screenshots with a dimension line beside them */
.shot { position: relative; margin: 0 auto; padding-left: 30px; width: min(100%, 300px); }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 22px; background: #000; }
.shot.crop img { border-radius: 4px; }
.shot::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.shot::after { content: ""; position: absolute; left: 4px; top: 0; width: 13px; border-top: 1px solid var(--line); height: calc(100% - 1px); border-bottom: 1px solid var(--line); }
.shot figcaption { position: absolute; left: 4px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); transform-origin: center; white-space: nowrap; font: 500 11px var(--mono); color: var(--ink-3); background: var(--sheet); padding: 0 6px; margin-left: 6px; }

/* A-301 As built: photographs of the current build */
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 28px 0 24px; }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; background: #000; }
.photo figcaption { display: flex; gap: 10px; margin-top: 12px; align-items: baseline; }
.photo figcaption .mono { color: var(--red); white-space: nowrap; }
.photo figcaption span:last-child { font-size: 15px; color: var(--ink-2); }
.aside { color: var(--ink-3); font-size: 14px; padding-bottom: 48px; max-width: 46em; }

/* A-401 Feature schedule */
.sched-wrap { overflow-x: auto; margin: 28px 0 56px; border: 1px solid var(--line); }
table.sched { width: 100%; border-collapse: collapse; min-width: 680px; }
.sched th, .sched td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.sched thead th { font: 600 11px var(--cond); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--sheet); }
.sched td:first-child { font: 500 13px var(--mono); color: var(--ink-3); width: 64px; }
.sched td.c, .sched th.c { text-align: center; width: 70px; }
.sched td.c { color: var(--ink); }
.sched td.c.no { color: var(--ink-3); }
.sched tbody tr.group td { font: 600 12px var(--cond); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); padding-top: 18px; border-bottom-color: var(--line); }
.sched td:last-child { white-space: nowrap; }
.sched tr:hover td { background: rgba(236, 230, 220, 0.03); }

/* A-501 General notes */
.notes { columns: 2; column-gap: 56px; margin: 28px 0 56px; padding: 0; list-style: none; counter-reset: n; }
.notes li { break-inside: avoid; counter-increment: n; position: relative; padding: 0 0 22px 46px; color: var(--ink-2); }
.notes li::before { content: counter(n) "."; position: absolute; left: 0; top: 0; font: 500 14px/1.9 var(--mono); color: var(--red); }
.notes b { color: var(--ink); font-weight: 600; }

/* Final title block, the footer */
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; border-top: 1px solid var(--line); }
.foot > div { padding: 16px clamp(18px, 2vw, 24px); border-right: 1px solid var(--line-2); }
.foot > div:last-child { border-right: 0; }
.foot .lbl { display: block; margin-bottom: 6px; color: var(--ink-3); }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot nav { display: flex; flex-direction: column; gap: 2px; }
.tm { grid-column: 1 / -1; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }

/* Text pages: privacy and support */
.doc { max-width: 780px; padding-top: 8px; padding-bottom: 64px; }
.doc h1 { font: 500 clamp(36px, 5vw, 56px)/1 var(--cond); margin-top: 18px; }
.doc .updated { margin-top: 12px; font: 500 13px var(--mono); color: var(--ink-3); }
.doc h2 { font: 600 15px var(--cond); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 40px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--red); }
.contact { margin-top: 28px; border: 1px solid var(--line); padding: 18px 20px; }
.contact a { font: 500 20px var(--mono); }

@media (max-width: 1080px) {
  .plan { grid-template-columns: 1fr; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view, .view.wide { grid-column: span 3; }
  .view:nth-child(2) { border-right: 0; }
  .view:nth-child(odd) { border-right: 1px solid var(--line-2); }
  .view:nth-child(even) { border-right: 0; }
  .view.full { border-right: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .sheet { margin: 8px; }
  .refs-x, .refs-y { display: none; }
  .index { display: none; }
  .details { grid-template-columns: 1fr; }
  .view, .view.wide, .view.full { grid-column: auto; border-right: 0 !important; }
  .notes { columns: 1; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:nth-child(2) { border-right: 0; }
  .foot > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .room-sub { display: none; }
  .sheet-head { padding-top: 32px; }
  .sheet-head .rule, .sheet-head > .mono { display: none; }
  .statement { display: contents; }
  .statement h1 { order: -2; }
  .statement .lede { order: -1; margin-top: -8px; }
  .plan { gap: 22px; }
  .key, .tb { margin-top: 0; }
  .room-name { font-size: 30px; }
  .statement .lede { font-size: 17px; }
  .tb { grid-template-columns: 92px 1fr; }
}
@media (max-width: 460px) {
  .photos { grid-template-columns: 1fr 1fr; gap: 16px; }
  .photo img { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .playing .arc, .store i { animation: none; }
}
