/* One 1080px column. Pink is the brand; everything else stays quiet so it can be read.
   Tokens first; light by default, dark when the reader's system asks for it.
   Three voices: display (headlines, big numbers), body (everything read, plus the small
   uppercase section labels), mono only for what a machine would print: dates, room codes,
   step numbers, the email address, code. */
/* Fonts are self-hosted (Latin subset, woff2), copied from what Google Fonts served in
   2026-10; licenses (SIL OFL 1.1) sit next to them in /assets/fonts/. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-next-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-next-400-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-500-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fcf9fa;
  --surface: #f4eef1;
  --fg: #1f1a1d;
  --dim: #6c6168;
  --line: #e4d9df;
  --pink: #f74f9e;        /* brand: fills, marks, buttons */
  --pink-ink: #c01d6c;    /* pink that passes contrast as text on light */
  --pink-wash: #ffe1ef;
  --on-pink: #1f1a1d;
  --screen: #141014;      /* the case-study panel, dark in both themes */
  --screen-fg: #f3edf1;
  --screen-dim: #a99ba4;

  --display: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0c0e; --surface: #1a1518; --fg: #f3edf1; --dim: #a99ba4; --line: #2f272c;
    --pink: #f74f9e; --pink-ink: #ff7ab6; --pink-wash: #3a1427; --on-pink: #140a10;
    --screen: #1d171b; --screen-fg: #f3edf1; --screen-dim: #b2a4ad;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.6;
  margin: 0; padding-inline: 20px;
}
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; } /* short pages keep the footer at the bottom of the window */
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; max-width: 62ch; }
a { color: var(--pink-ink); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.label { font-family: var(--body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); }


/* nav */
/* Header: name, links, button on one line; on phones, name + button, then the links underneath. */
.top { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "name nav btn"; gap: 12px 28px; align-items: center; padding-block: 22px; }
.top .name { grid-area: name; }
.top nav { grid-area: nav; justify-self: end; }
.top .btn { grid-area: btn; white-space: nowrap; }
.name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--fg); text-decoration: none; white-space: nowrap; }
.name span { color: var(--pink-ink); }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; font-size: 1rem; }
@media (max-width: 600px) {
  .top { grid-template-columns: 1fr auto; grid-template-areas: "name btn" "nav nav"; padding-block: 16px; }
  /* No hover on phones, so the links get a tappable chip shape; quieter than the pink button. */
  .top nav { justify-self: start; justify-content: flex-start; gap: 8px; }
  .top nav a { background: var(--surface); padding: 7px 14px; border-radius: 999px; font-size: 0.95rem; }
  .top nav a:active { background: var(--pink-wash); color: var(--pink-ink); }
}
@media (max-width: 360px) {
  .top .name { font-size: 1.05rem; }
  .top .btn { font-size: 0.85rem; padding: 8px 14px; }
}
.top nav a { color: var(--fg); text-decoration: none; }
.top nav a:hover { color: var(--pink-ink); }

.btn {
  display: inline-block; background: var(--pink); color: var(--on-pink);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2;
  text-decoration: none; padding: 15px 28px; border-radius: 999px;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.small { font-size: 0.95rem; padding: 9px 18px; }

/* hero */
.hero { padding-block: 56px 72px; display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 700; max-width: 17ch; }
.mark { background: linear-gradient(transparent 58%, var(--pink) 58%, var(--pink) 90%, transparent 90%); padding-inline: 2px; }
.hero .lede { font-size: 1.3rem; color: var(--fg); max-width: 54ch; }

section { padding-block: 64px; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 700; }

/* sound familiar */
.pains { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; }
.pains li { padding-block: 16px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; min-width: 0; }
.pains li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.55em; border-radius: 50%; background: var(--pink); }

/* services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.services > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.services h3 { font-size: 1.45rem; font-weight: 700; }
.services .eg { font-size: 0.98rem; color: var(--dim); }

/* case study: the karaoke screen */
.case { border-top: 0; padding-block: 0; margin-block: 24px; }
.screen {
  background: var(--screen); color: var(--screen-fg); border-radius: 22px;
  padding: clamp(28px, 5vw, 56px); display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.screen .label { color: var(--screen-dim); }
.screen h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 700; margin-block: 12px 18px; }
.screen p { color: var(--screen-fg); }
.screen p + p { margin-top: 14px; }
.screen a { color: #ff7ab6; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; color: #ff7ab6; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: 0.95rem; color: var(--screen-dim); }

.queue { align-self: center; border: 1px solid #3a3036; border-radius: 16px; padding: 20px; font-family: var(--mono); font-size: 0.88rem; display: grid; gap: 14px; min-width: 0; }
.queue .room { display: flex; justify-content: space-between; gap: 12px; color: var(--screen-dim); flex-wrap: wrap; }
.queue .room b { color: var(--screen-fg); font-weight: 600; letter-spacing: 0.12em; }
.now { background: #f74f9e; color: #140a10; border-radius: 10px; padding: 14px; }
.now small { display: block; opacity: .75; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; }
.now strong { font-family: var(--display); font-size: 1.15rem; }
.queue ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.queue li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #3a3036; padding-bottom: 10px; }
.queue li span:last-child { color: var(--screen-dim); white-space: nowrap; }
.queue .cap { color: var(--screen-dim); font-size: 0.75rem; }
@media (prefers-reduced-motion: no-preference) {
  .now strong::after { content: " ▍"; animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}

/* why now */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.why p + p { margin-top: 16px; }
.promise { background: var(--pink-wash); border-radius: 16px; padding: 28px; display: grid; gap: 14px; align-content: start; align-self: start; }
.promise h3 { font-size: 1.3rem; }
.promise ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--pink); padding-top: 18px; min-width: 0; }
.steps li::before { content: "Step " counter(step); font-family: var(--mono); font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-ink); }
.steps h3 { font-size: 1.3rem; }
.steps p { font-size: 1rem; color: var(--dim); }

/* about */
.about { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; align-items: start; }
.about img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid var(--pink); }
.about p + p { margin-top: 14px; }

/* closing */
.closing { text-align: left; display: grid; gap: 22px; padding-block: 80px; }
.closing h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; max-width: 20ch; }
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.95rem; color: var(--dim); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--dim); }

@media (max-width: 760px) {
  .screen, .why, .about { grid-template-columns: minmax(0, 1fr); }
  .about img { width: 120px; height: 120px; }
  .hero { padding-block: 32px 48px; }
  section { padding-block: 48px; }
}

/* case study page */
.crumb { font-size: 1rem; }
.cs-hero { padding-block: 40px 56px; display: grid; gap: 22px; }
.cs-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; max-width: 18ch; }
.cs-hero .lede { font-size: 1.3rem; max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px 32px; border-block: 1px solid var(--line); padding-block: 22px; margin: 0; }
.facts div { display: grid; gap: 4px; min-width: 0; }
.facts dd { margin: 0; font-size: 1rem; }
.cs-band { margin-block: 8px 24px; }
.cs-band .screen { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.cs-band .stats { margin: 0; display: contents; }
.prose { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px 48px; }
.prose > .label { padding-top: 10px; }
.prose .body { display: grid; gap: 18px; min-width: 0; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
.prose h3 { font-size: 1.3rem; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; max-width: 62ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; align-items: start; }
.split .queue { background: var(--screen); color: var(--screen-fg); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 64ch; }
.timeline li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--mono); font-size: 0.9rem; color: var(--pink-ink); padding-top: 2px; font-variant-numeric: tabular-nums; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.check { background: var(--surface); border-radius: 14px; padding: 20px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.check b { font-family: var(--display); font-size: 1.6rem; color: var(--pink-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.check span { font-size: 0.98rem; }
blockquote.quote { margin: 0; padding: 28px; border-radius: 16px; border: 2px dashed var(--pink); display: grid; gap: 12px; }
blockquote.quote p { font-family: var(--display); font-size: 1.5rem; line-height: 1.3; font-weight: 500; }
blockquote.quote cite { font-style: normal; color: var(--dim); font-size: 0.95rem; }
@media (max-width: 760px) {
  .prose, .split { grid-template-columns: minmax(0, 1fr); }
  .prose > .label { padding-top: 0; }
}

/* case study: real screens from a test room */
.devices { margin: 0; display: grid; gap: 12px; min-width: 0; }
.device-row { display: flex; gap: 16px; align-items: flex-end; justify-content: center; }
.devices img { display: block; width: 100%; height: auto; margin: 0; }
.tv-frame { flex: 0 1 30%; background: #000; border: 6px solid #2a2328; border-radius: 10px; overflow: hidden; }
.phone-frame { flex: 0 1 60%; background: #000; border: 8px solid #2a2328; border-radius: 28px; overflow: hidden; }
.devices figcaption { font-size: 0.9rem; color: var(--dim); max-width: 46ch; }

/* case study: the iPhone app */
.app-strip { margin: 8px 0 0; display: grid; gap: 12px; }
.app-strip .strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 640px; }
.app-strip img { display: block; width: 100%; height: auto; margin: 0; border: 6px solid #2a2328; border-radius: 22px; background: #000; }
.app-strip figcaption { font-size: 0.9rem; color: var(--dim); }
@media (max-width: 480px) { .app-strip .strip { gap: 8px; } .app-strip img { border-width: 4px; border-radius: 14px; } }

/* Booking button + email: the homepage hero, the closing sections */
.contact-cta { display: grid; gap: 14px; justify-items: start; }
.or-email { color: var(--dim); font-size: 0.95rem; }
.or-email a { font-family: var(--mono); }

/* 404 */
.notfound { padding-block: 48px 72px; display: grid; gap: 20px; max-width: 640px; }
.notfound h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 700; }
.notfound .lede { font-size: 1.25rem; }
.notfound-links { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.notfound-links a { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 16px; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 600; }
.notfound-links a:hover { color: var(--pink-ink); }
.notfound-links .mono-bit { font-family: var(--mono); font-weight: 400; color: var(--dim); }

/* Writing, plain pages and the resume */
main > article.post, main > .page-title, main > .archive-year, main > .post-list { max-width: 720px; }
main > article.post, main > .page-title { padding-block: 32px 64px; }
.post h1, .post h2, .post h3, .post h4, .page-title h1 { font-family: var(--display); line-height: 1.15; text-wrap: balance; }
.post-header { margin-bottom: 32px; }
.post-title, .page-title h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 700; margin: 0 0 8px; }
.post-meta, .post-date { color: var(--dim); font-size: 0.95rem; }
.post-content { display: block; }
.post-content > * + * { margin-top: 1.1em; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { margin-top: 1.8em; }
.post-content h2 { font-size: 1.6rem; }
.post-content h3, .post-content h4 { font-size: 1.25rem; }
.post-content p, .post-content ul, .post-content ol { max-width: 66ch; }
.post-content ul, .post-content ol { padding-left: 24px; }
.post-content li + li { margin-top: 6px; }
.post-content blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--pink); color: var(--dim); }
.post-content img { border-radius: 10px; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 32px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface); padding: 2px 5px; border-radius: 4px; }
pre { background: var(--surface); padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 0.9rem; line-height: 1.5; }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; max-width: 66ch; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }

.archive-year { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-ink); margin: 28px 0 10px; }
.post-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.post-list li { display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; }
.post-date { min-width: 64px; font-variant-numeric: tabular-nums; }

.resume h1 { font-size: 2.4rem; font-weight: 700; padding-bottom: 12px; border-bottom: 3px solid var(--pink); }
.resume h2 { color: var(--pink-ink); font-size: 1.3rem; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.resume h3 { font-size: 1.1rem; margin-top: 1.4em; }
.resume h3 + p { margin-top: 2px; }
.resume em { color: var(--dim); font-style: normal; }
.resume p { max-width: none; }

.print-only { display: none; }

@media print {
  @page { margin: 0.5in; }
  :root { --bg: #fff; --fg: #000; --dim: #555; --line: #ccc; --pink-ink: #000; --surface: #fff; color-scheme: light; }
  html { font-size: 10px; }
  body { padding: 0; }
  .wrap { max-width: none; min-height: 0; display: block; }
  .top, footer { display: none; }
  main > article.post { padding: 0; max-width: none; }
  .print-only { display: inline; }
  .post-content > * + * { margin-top: 6px; }
  .resume h1 { margin-bottom: 10px; padding-bottom: 8px; }
  .resume h2 { margin-top: 16px; }
  .resume h3 { margin-top: 10px; margin-bottom: 2px; }
  .resume h2, .resume h3, .resume ul { break-inside: avoid; }
  .resume h2 { break-after: avoid; }
  a { color: #000; text-decoration: none; }
}
