@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/alegreya-text.woff2) format("woff2");
}
:root {
  --bg: #0A0B0C;
  --surface: #131516;
  --ink: #E8E6E1;
  --ink-2: #A9ADAB;
  --ink-3: #6E7472;
  --rule: #23272A;
  --teal: #8AD3DA;
  --teal-deep: #2C5D64;
  --amber: #F2B85C;
  --amber-deep: #9A5B1A;
  --display: "Alegreya", "Iowan Old Style", "Palatino", Georgia, serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.page { max-width: 760px; margin: 0 auto; padding: 28px 24px 72px; }

nav { display: flex; align-items: center; gap: 12px; margin-bottom: 56px; flex-wrap: wrap; }
nav img { width: 36px; height: 36px; border-radius: 9px; }
nav .name {
  font-family: var(--display);
  font-weight: 500; font-size: 27px; line-height: 1; letter-spacing: 0.01em;
  color: var(--ink); white-space: nowrap; margin-top: 0;
}
nav .links { margin-left: auto; display: flex; gap: 22px; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
nav .links a { color: var(--ink-2); }
nav .links a[aria-current] { color: var(--ink); }

h1 {
  font-family: var(--display);
  font-size: 48px; line-height: 1.06; font-weight: 500; letter-spacing: 0;
  margin: 0 0 14px; text-wrap: balance;
}
.lede { font-size: 21px; color: var(--ink-2); margin: 0 0 32px; max-width: 34ch; text-wrap: pretty; }
h2 { font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: 0; margin: 52px 0 10px; }
h3 { font-family: var(--display); font-size: 20px; font-weight: 500; margin: 26px 0 4px; }
h4 { font-size: 15px; font-weight: 600; margin: 18px 0 2px; }
h4 + p, .setting { margin-top: 4px; color: var(--ink-2); max-width: 62ch; }
.setting > p:first-child { margin-top: 0; }
p { margin: 10px 0; max-width: 62ch; }
ul { padding-left: 20px; margin: 10px 0; max-width: 62ch; }
li { margin: 6px 0; }
li::marker { color: var(--ink-3); }
.eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin: 0 0 10px; }
.quiet { color: var(--ink-3); font-size: 14px; }

.shot {
  margin: 0 0 8px; border-radius: 22px; overflow: hidden;
  background: #000; border: 1px solid var(--rule);
}
.shot img { display: block; width: 100%; height: auto; }
figcaption { color: var(--ink-3); font-size: 13px; margin: 8px 2px 0; }

/* A landscape iPhone drawn in CSS around a video or screenshot (#286). */
.phone { margin: 12px 0 8px; }
.phone-frame {
  position: relative; overflow: hidden; background: #000;
  border: 7px solid #050607;
  border-radius: 6.4% / 13.6%;
  transform: rotate(-2.5deg);
  box-shadow:
    0 0 0 1px rgba(138, 211, 218, 0.22),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(44, 93, 100, 0.35);
}
.phone-frame video, .phone-frame img { display: block; width: 100%; height: auto; }
.phone figcaption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 22px;
}
.phone .sound {
  flex: none; font: inherit; font-size: 13px; color: var(--ink-2);
  background: none; border: 1px solid var(--rule); border-radius: 999px;
  padding: 4px 12px; cursor: pointer;
}
.phone .sound:hover { color: var(--ink); border-color: var(--ink-3); }
.phone .sound:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.phone .sound[aria-pressed="true"] { color: var(--teal); border-color: var(--teal-deep); }
/* The button breathes for its first minute (#293): a thin ring grows out
   from its edge and fades, once every four seconds, like a strike ring. */
.phone .sound { position: relative; }
.phone .sound.breathing::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 2px solid var(--teal); opacity: 0; pointer-events: none;
  animation: sound-breath 4s ease-out infinite;
}
@keyframes sound-breath {
  0% { inset: -2px; opacity: 0.9; }
  70%, 100% { inset: -16px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phone .sound.breathing::after { animation: none; }
}
.phone-frame.flat { transform: none; }

/* The grip (#287): the screen untilted, three round lenses magnifying the
   Gu, the Ding and the first field, each tied to its spot by a thin line.
   Coordinates are in a 1000 x 760 board; the screen fills x 60-940, y 170-575. */
.grip { margin: 22px 0 8px; }
.grip-board { position: relative; aspect-ratio: 1000 / 760; }
.grip-board .phone-frame { position: absolute; left: 6%; top: 22.37%; width: 88%; }
.grip-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.grip-lines line { stroke: var(--ink-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.lens {
  position: absolute; left: var(--x); top: var(--y);
  width: 15%; aspect-ratio: 1; border-radius: 50%;
  background: #000 url(/images/grip.jpg) no-repeat;
  background-size: 938.7% auto; background-position: var(--px) var(--py);
  border: 2px solid var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.grip .tag { position: absolute; transform: translateY(-50%); }
.grip .tag.end { text-align: right; }

.pads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 6px; }
.pad { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); }
.pad strong { display: block; margin-bottom: 2px; }
.pad.tone strong { color: var(--teal); }
.pad.bass strong { color: var(--amber); }
.pad p { margin: 0; font-size: 15px; color: var(--ink-2); }

.cta {
  display: inline-block; margin-top: 8px; padding: 11px 18px; border-radius: 999px;
  background: var(--teal); color: #0A1416; font-weight: 600;
}
.cta:hover { text-decoration: none; background: #a3dfe4; }

dl { margin: 14px 0; max-width: 62ch; }
dt { font-weight: 600; margin-top: 20px; }
dd { margin: 4px 0 0; color: var(--ink-2); }

footer {
  margin-top: 72px; padding-top: 18px; border-top: 1px solid var(--rule);
  display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3);
}
footer a { color: var(--ink-2); }
footer .spacer { flex: 1; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  .lede { font-size: 18px; }
  .pads { grid-template-columns: 1fr; }
  nav .links { gap: 14px; font-size: 14px; }
}

/* Addresses and paths are data, not prose: the system monospace, a touch
   smaller, on a chip in the accent's dark tone. Same rule as on Portik. */
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--ink);
  background: rgba(138, 211, 218, 0.14);
  padding: 0.08em 0.4em;
  border-radius: 0.4em;
  white-space: nowrap;
}
a code { color: var(--teal); }

.matrix { overflow-x: auto; margin: 16px 0; }
.matrix table { border-collapse: collapse; font-size: 14px; min-width: 520px; }
.matrix th, .matrix td { padding: 6px 4px; text-align: center; white-space: nowrap; width: 44px; }
.matrix th:first-child, .matrix td:first-child { text-align: left; width: auto; padding-left: 8px; }
.matrix th { font-weight: 500; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--rule); }
.matrix tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.028); }
.matrix tr.group td { color: var(--ink); font-weight: 600; padding-top: 16px; background: none !important; }
.matrix tr.planned td { background: rgba(138, 211, 218, 0.09) !important; }
.matrix tr.planned td:first-child { font-style: italic; color: var(--ink-2); }
.matrix .m { display: inline-block; min-width: 1.4em; }
.matrix .ok { color: var(--ink-2); }
.matrix .na { color: var(--ink-3); opacity: 0.55; }
.matrix .cond { color: #F2B85C; font-weight: 700; }
.matrix .fail { color: #FF6B5A; font-weight: 700; }

.form { margin-top: 12px; max-width: 62ch; }
.form label { display: block; margin: 16px 0 6px; color: var(--ink-2); font-size: 14px; }
.form label small { color: var(--ink-3); }
.form textarea, .form input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; resize: vertical;
}
.form textarea { min-height: 84px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.form .status { color: var(--ink-2); font-size: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* The settings picture answers a pointer, row by row (#279). */
.panelmap { position: relative; }
.panelmap .spot {
  position: absolute; display: block; border-radius: 9px;
  outline: 1.5px solid transparent; outline-offset: -1px;
  transition: background-color .25s ease, outline-color .25s ease;
}
.panelmap .spot:hover { text-decoration: none; }
/* No mark under a pointer: the tip is the answer. A keyboard still needs to
   see where it is. */
.panelmap .spot:focus-visible { outline-color: var(--teal); }
.panelmap .tip {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 2;
  width: max-content; max-width: min(320px, 70vw);
  padding: 8px 11px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--rule);
  color: var(--ink); font-size: 13.5px; line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  display: none; pointer-events: none;
}
.panelmap .tip b { color: var(--teal); font-weight: 600; }
.panelmap .spot.below .tip { bottom: auto; top: calc(100% + 8px); }
.panelmap .spot.right .tip { left: auto; right: 0; }
/* Hidden tips take no room at all, so they can never widen the page; a
   shown one fades in. */
.panelmap .spot:hover .tip, .panelmap .spot:focus-visible .tip {
  display: block; animation: tip-in .2s ease;
}
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .panelmap .spot, .panelmap .tip { transition: none; animation: none; }
}
/* The tips may reach past the picture's edge, so the frame rounds the image
   itself instead of clipping everything inside it. */
.shot.panelmap { overflow: visible; }
.shot.panelmap img { border-radius: 21px; }

/* The backing skies (#288): three small untilted phones in a row,
   stacked on a narrow screen. */
.skies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0 8px; }
.skies figure { margin: 0; }
.skies figcaption { margin-top: 10px; }
.phone-frame.small { transform: none; border-width: 4px; }
@media (max-width: 620px) {
  .skies { grid-template-columns: 1fr; gap: 22px; }
}

/* Tap a sky to see it large (#289): a native dialog, closed by any tap,
   Esc or the back gesture. */
.sky-open {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  color: inherit; cursor: zoom-in; border-radius: 12px;
}
.sky-open .phone-frame { display: block; }
.sky-open:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.lightbox {
  width: min(94vw, 1400px); max-width: none; max-height: none;
  padding: 0; border: 0; background: none; color: var(--ink);
  cursor: zoom-out; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 6, 7, 0.86); }
.lightbox figure { margin: 0; }
.lightbox figcaption { color: var(--ink-2); font-size: 15px; margin-top: 14px; text-align: center; }
.lightbox[open], .lightbox[open]::backdrop { animation: lightbox-in 0.25s ease-out; }
@keyframes lightbox-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox[open], .lightbox[open]::backdrop { animation: none; }
}

/* The twenty backings in five cards (#290). */
.beds { margin-top: 16px; }
.beds .pad { display: block; color: inherit; }
.beds .pad:hover { text-decoration: none; border-color: var(--ink-3); }
.beds .pad strong { color: var(--ink); }
.beds .pad p + p { margin-top: 6px; }
.beds .pad:last-child { grid-column: 1 / -1; }
.beds code { font-size: 0.8em; }
@media (max-width: 560px) { .beds { grid-template-columns: 1fr; } }
