/* Plainweave Systems colour tokens (linen identity).
 * Palette: --pw-<colour>. Roles: --pw-<role>, which switch between light and dark mode.
 * Dark mode follows the OS setting; force a mode with <html data-theme="light"> or <html data-theme="dark">.
 * Colours are OKLCH (the source of truth); the hex in each comment is the same colour in sRGB. */

:root {
  --pw-indigo: oklch(28.21% 0.0672 258.36);  /* #13294A · Text, the cloth; the ground in dark mode */
  --pw-cornflower: oklch(46.79% 0.097 253.1);  /* #2F5C8F · Break italics, notation, links */
  --pw-chambray: oklch(63.72% 0.0735 257.36);  /* #6F8DB8 · Washed fabric fields and bands; not for text on linen */
  --pw-linen: oklch(92.3% 0.0217 76.53);  /* #EEE4D6 · The ground, always textured; text in dark mode */
  --pw-butter: oklch(78.79% 0.1374 81.57);  /* #E6B043 · One action per view (indigo text on butter), both modes */
  --pw-rust: oklch(58.2% 0.12 41.92);  /* #B5603E · The finding; one thread. Graphics only */
  --pw-chambray-light: oklch(74.74% 0.0745 254.41);  /* #8DB0DC · Notation on indigo; italics and links in dark mode */
  --pw-paper: oklch(96.01% 0.0148 80.71);  /* #F7F1E7 · Panels, cards, lighter ground */
  --pw-raw: oklch(85.52% 0.0318 75.18);  /* #DCCDB9 · Hairlines, borders */
  --pw-thread: oklch(80.56% 0.0363 77.02);  /* #CDBDA6 · Quiet dividers; secondary text in dark mode */
  --pw-rust-ink: oklch(50.13% 0.1133 40.99);  /* #984A2C · Rust for text (findings labels) */
  --pw-slate: oklch(47.44% 0.0403 257.86);  /* #4E5D73 · Secondary text */
  --pw-fern: oklch(46.73% 0.0652 172.26);  /* #2E6656 · mirrorless notation colour */
  --pw-ochre: oklch(60.3% 0.1205 76.95);  /* #A97614 · jsmcp notation colour */
  --pw-indigo-raised: oklch(33.44% 0.0779 258.76);  /* #1C365E · Cards and panels in dark mode */
  --pw-rust-light: oklch(73.65% 0.1047 47.48);  /* #E0956F · The finding in dark mode, text and graphics */
  --pw-fern-light: oklch(77.58% 0.065 170.41);  /* #8CC4B0 · mirrorless notation in dark mode */
  --pw-ochre-light: oklch(79.88% 0.1216 83.24);  /* #E3B65A · jsmcp notation in dark mode */

  --pw-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --pw-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* light mode (default) */
:root, [data-theme="light"] {
  color-scheme: light;
  --pw-ground: var(--pw-linen);
  --pw-surface: var(--pw-paper);
  --pw-text: var(--pw-indigo);
  --pw-text-secondary: var(--pw-slate);
  --pw-break: var(--pw-cornflower);
  --pw-link: var(--pw-cornflower);
  --pw-notation: var(--pw-cornflower);
  --pw-action: var(--pw-butter);
  --pw-on-action: var(--pw-indigo);
  --pw-finding: var(--pw-rust);
  --pw-finding-text: var(--pw-rust-ink);
  --pw-border: var(--pw-raw);
  --pw-mirrorless: var(--pw-fern);
  --pw-jsmcp: var(--pw-ochre);
}

/* dark mode: the same cloth, dyed indigo */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --pw-ground: var(--pw-indigo);
    --pw-surface: var(--pw-indigo-raised);
    --pw-text: var(--pw-linen);
    --pw-text-secondary: var(--pw-thread);
    --pw-break: var(--pw-chambray-light);
    --pw-link: var(--pw-chambray-light);
    --pw-notation: var(--pw-chambray-light);
    --pw-action: var(--pw-butter);
    --pw-on-action: var(--pw-indigo);
    --pw-finding: var(--pw-rust-light);
    --pw-finding-text: var(--pw-rust-light);
    --pw-border: oklch(74.74% 0.0745 254.41 / 0.28);
    --pw-mirrorless: var(--pw-fern-light);
    --pw-jsmcp: var(--pw-ochre-light);
  }
}
[data-theme="dark"] {
  color-scheme: dark;
  --pw-ground: var(--pw-indigo);
  --pw-surface: var(--pw-indigo-raised);
  --pw-text: var(--pw-linen);
  --pw-text-secondary: var(--pw-thread);
  --pw-break: var(--pw-chambray-light);
  --pw-link: var(--pw-chambray-light);
  --pw-notation: var(--pw-chambray-light);
  --pw-action: var(--pw-butter);
  --pw-on-action: var(--pw-indigo);
  --pw-finding: var(--pw-rust-light);
  --pw-finding-text: var(--pw-rust-light);
  --pw-border: oklch(74.74% 0.0745 254.41 / 0.28);
  --pw-mirrorless: var(--pw-fern-light);
  --pw-jsmcp: var(--pw-ochre-light);
}

/* browsers without OKLCH (before 2023): the same palette in hex */
@supports not (color: oklch(0% 0 0)) {
  :root {
    --pw-indigo: #13294A;
    --pw-cornflower: #2F5C8F;
    --pw-chambray: #6F8DB8;
    --pw-linen: #EEE4D6;
    --pw-butter: #E6B043;
    --pw-rust: #B5603E;
    --pw-chambray-light: #8DB0DC;
    --pw-paper: #F7F1E7;
    --pw-raw: #DCCDB9;
    --pw-thread: #CDBDA6;
    --pw-rust-ink: #984A2C;
    --pw-slate: #4E5D73;
    --pw-fern: #2E6656;
    --pw-ochre: #A97614;
    --pw-indigo-raised: #1C365E;
    --pw-rust-light: #E0956F;
    --pw-fern-light: #8CC4B0;
    --pw-ochre-light: #E3B65A;
  }
}

/* Site-specific surfaces and artwork, alongside the unmodified brand role tokens. */
:root {
  --ground-texture: url("/assets/tex-linen.74e5702fc3ef.jpg");
  --surface-texture: url("/assets/tex-paper.f196bec08a51.jpg");
  --band-texture: url("/assets/tex-chambray.b1c3b8171143.jpg");
  --band-ground: var(--pw-chambray);
  --hero-image: url("/assets/hero.729935fb6377.jpg");
  --hero-narrow-image: url("/assets/hero-narrow.ce38c9bc9e76.jpg");
  --hero-halo: 0 0 12px var(--pw-linen);
  --hero-kicker: var(--pw-text);
  --hero-lead: var(--pw-text);
  --nav-ground: var(--pw-surface);
  --leader-halo: var(--pw-linen);
  --day-display: block;
  --night-display: none;
  /* Ochre itself is for graphics; this deeper ink is readable on light cloth. */
  --jsmcp-ink: #765310;
  --jsmcp-ink: oklch(46.8433% 0.090793 78.0165);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground-texture: url("/assets/tex-indigo.61d2b507d79d.jpg");
    --surface-texture: url("/assets/tex-indigo-raised.86dd2888a68b.jpg");
    --band-texture: url("/assets/tex-indigo-raised.86dd2888a68b.jpg");
    --band-ground: var(--pw-surface);
    --hero-image: url("/assets/hero-dark.d88f0b77e048.jpg");
    --hero-narrow-image: url("/assets/hero-dark-narrow.d87c0917f315.jpg");
    --hero-halo: none;
    --hero-kicker: var(--pw-notation);
    --hero-lead: var(--pw-text-secondary);
    --nav-ground: var(--pw-ground);
    --leader-halo: var(--pw-indigo);
    --day-display: none;
    --night-display: block;
    --jsmcp-ink: var(--pw-jsmcp);
  }
}
:root[data-theme="dark"] {
  --ground-texture: url("/assets/tex-indigo.61d2b507d79d.jpg");
  --surface-texture: url("/assets/tex-indigo-raised.86dd2888a68b.jpg");
  --band-texture: url("/assets/tex-indigo-raised.86dd2888a68b.jpg");
  --band-ground: var(--pw-surface);
  --hero-image: url("/assets/hero-dark.d88f0b77e048.jpg");
  --hero-narrow-image: url("/assets/hero-dark-narrow.d87c0917f315.jpg");
  --hero-halo: none;
  --hero-kicker: var(--pw-notation);
  --hero-lead: var(--pw-text-secondary);
  --nav-ground: var(--pw-ground);
  --leader-halo: var(--pw-indigo);
  --day-display: none;
  --night-display: block;
  --jsmcp-ink: var(--pw-jsmcp);
}
.mode-light {
  display: var(--day-display);
}
.mode-dark {
  display: var(--night-display);
}
[hidden] {
  display: none !important;
}
.theme-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--pw-text-secondary);
  font-family: var(--pw-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.theme-control select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--pw-border);
  border-radius: 8px;
  background: var(--pw-surface);
  color: var(--pw-text);
  font: inherit;
  cursor: pointer;
}
/* Printed pages always use the daylight identity, even after an explicit dark override. */
@media print {
  :root,
  :root[data-theme] {
    color-scheme: light;
    --pw-ground: var(--pw-linen);
    --pw-surface: var(--pw-paper);
    --pw-text: var(--pw-indigo);
    --pw-text-secondary: var(--pw-slate);
    --pw-break: var(--pw-cornflower);
    --pw-link: var(--pw-cornflower);
    --pw-notation: var(--pw-cornflower);
    --pw-border: var(--pw-raw);
    --pw-finding: var(--pw-rust);
    --pw-finding-text: var(--pw-rust-ink);
    --pw-mirrorless: var(--pw-fern);
    --pw-jsmcp: var(--pw-ochre);
    --surface-texture: none;
    --day-display: block;
    --night-display: none;
    --jsmcp-ink: #765310;
  }
  .theme-control {
    display: none;
  }
}

/* Plainweave Systems — linen identity, October 2026.
   The kit's colour tokens are bundled before these site styles. */
@font-face {
  font-family: Newsreader;
  src: url("/assets/fonts/newsreader.e5428a4b1e8b.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/assets/fonts/newsreader-italic.2ae4feb44801.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/dm-mono.f136280dbd6a.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --gutter: clamp(20px, 5vw, 72px);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  --accent: var(--pw-notation);
  --accent-mark: var(--pw-notation);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--pw-ground) var(--ground-texture) 0 0 / 512px 512px;
  color: var(--pw-text);
  font-family: var(--pw-serif);
  font-size: 18px;
  font-weight: 420;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--pw-action);
  color: var(--pw-on-action);
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  color: var(--pw-text);
  font-weight: 540;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 em,
h2 em,
h3 em {
  color: var(--pw-break);
  font-weight: 420;
}
h2 {
  font-size: clamp(32px, 3.2vw, 38px);
  line-height: 1.1;
}
h3 {
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 560;
}
strong {
  font-weight: 560;
  color: var(--pw-text);
}
p {
  max-width: 30em;
  text-wrap: pretty; /* About 68 Newsreader characters. */
}
a {
  color: var(--pw-link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--pw-text);
}
a:focus-visible,
summary:focus-visible,
select:focus-visible,
pre:focus-visible {
  outline: 2px solid var(--pw-link);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--pw-ground);
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: min(1296px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.label,
.kicker {
  font-family: var(--pw-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.kicker {
  font-size: 15px;
  letter-spacing: 0.08em;
}
.lead,
.section-lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  font-weight: 420;
}
.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 16px;
  padding: 10px 18px;
  background: var(--pw-surface);
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* Stitched rules: currentColor lets notation follow its mode and project thread. */
.panel,
.code-panel {
  position: relative;
  background: var(--pw-surface) var(--surface-texture) 0 0 / 320px 320px;
  border: 1px solid var(--pw-border);
  border-radius: 12px;
}
.panel::before,
.panel::after,
.code-panel::before,
.code-panel::after,
.steps::before,
.steps li::after,
.experience article::before,
.footer-bottom::before,
.adapters li::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 0;
  border-top: 2px dashed var(--accent-mark);
  opacity: 0.5;
  pointer-events: none;
}
.panel::before,
.code-panel::before {
  top: 8px;
}
.panel::after,
.code-panel::after {
  bottom: 8px;
}

/* The one action: butter is unchanged between modes. */
.patch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 11px;
  background: var(--pw-action) url("/assets/tex-butter.cd40c6004d77.jpg") 0 0 / 160px 160px;
  color: var(--pw-on-action);
  font-size: 19px;
  font-weight: 520;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s;
}
.patch::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed var(--pw-on-action);
  border-radius: 8px;
  opacity: 0.32;
  pointer-events: none;
}
.patch:hover {
  color: var(--pw-on-action);
  transform: translateY(-1px);
}
.patch .icon {
  width: 22px;
  height: 22px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 8px;
  color: var(--pw-text);
  font-size: 18px;
  text-decoration-color: var(--pw-link);
}

/* Supplied static lockups: no live stitches, filters or hover transforms to re-rasterise. */
.project-label {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  text-decoration: none;
}
.project-label img {
  width: auto;
  height: 64px;
}
.label-by {
  display: block;
  margin-top: 10px;
  color: var(--pw-text-secondary);
  font-family: var(--pw-mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.06em;
}
a.project-label {
  border-radius: 7px;
}

/* Header: the supplied horizontal lockup, always 40px high. */
.site-header {
  position: relative;
  z-index: 3;
  padding-block: 30px;
}
.site-header--over {
  position: absolute;
  inset: 0 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  flex: none;
  border-radius: 4px;
}
.brand img,
.footer-top img {
  width: auto;
  height: 40px;
}
.nav-inline,
.nav-menu summary,
.nav-menu nav {
  background: var(--nav-ground);
  border: 1px solid var(--pw-border);
  border-radius: 14px;
}
.nav-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
}
.nav-inline a,
.nav-menu nav a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--pw-text);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.2;
  text-decoration: none;
}
.nav-inline a:hover,
.nav-menu nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--pw-link);
}
.nav-menu {
  display: none;
  position: relative;
}
.nav-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--pw-text);
  cursor: pointer;
  list-style: none;
}
.nav-menu summary::-webkit-details-marker {
  display: none;
}
.nav-menu summary .icon {
  grid-area: 1 / 1;
  width: 24px;
  height: 24px;
}
.nav-menu .icon-close,
.nav-menu[open] .icon-menu {
  display: none;
}
.nav-menu[open] .icon-close {
  display: block;
}
.nav-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 200px;
  padding: 8px;
  background: var(--pw-surface) var(--surface-texture) 0 0 / 320px 320px;
}
.nav-menu nav a {
  padding: 12px 14px;
  font-size: 19px;
}

/* Hero: live type over matching daylight/evening plates. */
.hero {
  position: relative;
  overflow: hidden;
  --plate-w: max(100vw, 55vw + 600px);
  --shift: min(0px, 640px - 0.39 * var(--plate-w));
  --panel: calc(0.437 * var(--plate-w) + var(--shift));
  height: calc(var(--panel) + 212px);
  background: var(--pw-ground);
}
.hero-plate {
  position: absolute;
  top: var(--shift);
  left: min(0px, 100vw - 0.97 * var(--plate-w));
  width: var(--plate-w);
  aspect-ratio: 3 / 2;
  background: var(--hero-image) left top / 100% 100% no-repeat;
}
.lens {
  position: absolute;
  left: 87.7%;
  top: 31.5%;
  width: min(14.6%, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 6px var(--pw-linen),
    0 0 0 7px var(--pw-notation);
}
.lens img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.lens-leader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
}
.leader-halo {
  stroke: var(--leader-halo);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}
.leader-line {
  stroke: var(--pw-notation);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}
.leader-dot {
  fill: var(--pw-notation);
}
.lens-caption {
  position: absolute;
  top: calc(100% + 16px);
  right: calc(50% + 4px);
  padding: 3px 7px;
  border: 1px solid var(--pw-border);
  border-radius: 4px;
  background: var(--nav-ground);
  color: var(--pw-notation);
  font-family: var(--pw-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.hero-copy {
  position: relative;
  padding-top: clamp(130px, 11vw, 168px);
}
.hero h1 {
  max-width: 13em;
  margin-top: 14px;
  font-size: clamp(46px, 6.1vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero h1 em {
  display: block;
}
.hero .kicker {
  color: var(--hero-kicker);
}
.hero .kicker,
.hero .lead {
  text-shadow: var(--hero-halo);
}
.hero .lead {
  max-width: 31em;
  margin-top: clamp(20px, 1.8vw, 26px);
  color: var(--hero-lead);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 30px;
  margin-top: clamp(24px, 2.2vw, 32px);
}
.hero-band {
  position: absolute;
  top: calc(var(--panel) + 26px);
  left: 0;
  right: 0;
}
.hero-labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-left: 22px;
}

/* Sections */
main {
  flex: 1 0 auto;
}
.section {
  padding-top: clamp(84px, 10vw, 136px);
}
.section-head {
  max-width: 820px;
}
.section-head h2 {
  margin-top: 16px;
}
.section-head .section-lead {
  margin-top: 22px;
  max-width: 30em;
}
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 4vw, 56px);
}
.mode {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 3vw, 44px);
}
.mode h3 {
  margin-top: 14px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  font-weight: 540;
}
.mode h3 + p {
  margin-top: 14px;
}
.mode-list {
  margin-top: 26px;
  border-top: 1px solid var(--pw-border);
}
.mode-list li {
  padding-block: 14px;
  border-bottom: 1px solid var(--pw-border);
  font-size: 17px;
  line-height: 1.5;
}
.mode-list strong {
  display: block;
  font-size: 18px;
}
.mode-note {
  margin-top: auto;
  padding-top: 20px;
  color: var(--pw-text-secondary);
  font-size: 15px;
  line-height: 1.5;
}
.finding {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  max-width: 900px;
  margin-top: clamp(48px, 5vw, 72px);
}
.finding img {
  width: 240px;
  height: auto;
}
.finding-title {
  color: var(--pw-text);
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 540;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.finding figcaption p + p {
  margin-top: 8px;
  font-size: 17px;
}
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(40px, 4vw, 56px);
  padding-top: 34px;
}
.steps::before {
  top: 4px;
  left: 0;
  right: 0;
}
.steps li {
  position: relative;
}
.steps li::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent-mark);
}
.steps li::after {
  content: none;
}
.step-number {
  font-family: var(--pw-mono);
  font-size: 13px;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.steps h3 {
  margin-top: 8px;
}
.steps p {
  margin-top: 10px;
  font-size: 17px;
}
.projects {
  margin-top: clamp(40px, 4vw, 56px);
}
.project {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px clamp(32px, 4vw, 64px);
  align-items: start;
  padding-block: 34px;
  border-top: 1px solid var(--pw-border);
}
.project:last-child {
  border-bottom: 1px solid var(--pw-border);
}
.project .project-label {
  justify-self: start;
}
.project-summary {
  color: var(--pw-text);
  font-size: clamp(20px, 1.6vw, 22px);
  font-weight: 520;
  line-height: 1.35;
}
.project-summary + p {
  margin-top: 10px;
  font-size: 17px;
}
.project-meta {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 16px;
  font-family: var(--pw-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--pw-text-secondary);
}
.project-meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-block: 6px;
}
.project-meta .icon {
  width: 16px;
  height: 16px;
}
.experience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(40px, 4vw, 56px);
}
.experience article {
  position: relative;
  padding-top: 26px;
}
.experience article::before {
  top: 0;
  left: 0;
  right: 0;
}
.experience h3 {
  margin-top: 12px;
}
.experience h3 + p {
  margin-top: 12px;
  font-size: 17px;
}
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about h2 {
  margin-top: 16px;
}
.about .section-lead {
  margin-top: 26px;
}
.about .section-lead + p {
  margin-top: 16px;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 6px solid var(--pw-surface);
  outline: 1px solid var(--pw-border);
  border-radius: 12px;
}
.about-photo figcaption {
  margin-top: 12px;
  font-family: var(--pw-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--pw-text-secondary);
}

/* An indigo contact panel in either mode: a deliberately inverse surface. */
.contact-panel {
  --pw-ground: var(--pw-indigo);
  --pw-text: var(--pw-linen);
  --pw-text-secondary: var(--pw-thread);
  --pw-link: var(--pw-chambray-light);
  --pw-break: var(--pw-chambray-light);
  --accent: var(--pw-chambray-light);
  --accent-mark: var(--pw-chambray-light);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 5vw, 80px);
  align-items: end;
  padding: clamp(36px, 5vw, 72px);
  border: 1px solid var(--pw-border);
  border-radius: 16px;
  background: var(--pw-ground) url("/assets/tex-indigo.61d2b507d79d.jpg") 0 0 / 320px 320px;
  color: var(--pw-text);
}
.contact-panel::before,
.contact-panel::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 0;
  border-top: 2px dashed var(--accent);
  opacity: 0.6;
}
.contact-panel::before {
  top: 10px;
}
.contact-panel::after {
  bottom: 10px;
}
.contact-panel h2 {
  margin-top: 16px;
  font-size: clamp(32px, 3.2vw, 38px);
}
.contact-copy p:last-child {
  margin-top: 22px;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.5;
}
.contact-address {
  margin-top: 18px;
  font-family: var(--pw-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}
.contact-note {
  margin-top: 22px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pw-text-secondary);
}
.site-footer {
  padding-block: clamp(64px, 7vw, 96px) 36px;
}
.footer-top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 26px;
}
.footer-top p,
.footer-bottom p {
  color: var(--pw-text-secondary);
  font-size: 15px;
}
.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 26px;
}
.footer-bottom::before {
  top: 0;
  left: 0;
  right: 0;
}
.footer-bottom a {
  color: var(--pw-text-secondary);
}

/* Documents: privacy and the real 404 page. */
.document {
  padding-block: clamp(40px, 6vw, 80px) 40px;
}
.missing-draft {
  width: 132px;
  margin-bottom: 36px;
}
.document > * {
  max-width: 720px;
}
.document h1 {
  margin-top: 16px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.04;
}
.document h1 + p {
  margin-top: 24px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
}
.document h2 {
  margin-top: 44px;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.15;
}
.document h2 + p,
.document p + p {
  margin-top: 14px;
}
.document .patch,
.document .text-link {
  margin-top: 36px;
}

/* Project pages: same cloth, own notation thread. Break italics remain cornflower. */
.thread-page--fern {
  --accent: var(--pw-mirrorless);
  --accent-mark: var(--pw-mirrorless);
}
.thread-page--ochre {
  --accent: var(--jsmcp-ink);
  --accent-mark: var(--pw-jsmcp);
}
.thread-page .label,
.thread-page .step-number {
  color: var(--accent);
}
.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 48px clamp(40px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 56px);
}
.crumb {
  font-family: var(--pw-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--pw-text-secondary);
}
.crumb a {
  color: var(--pw-text-secondary);
}
.crumb span {
  margin-inline: 6px;
}
.project-lockup {
  margin-top: 28px;
}
.project-hero h1 {
  margin-top: 32px;
  font-size: clamp(40px, 4.3vw, 56px);
  line-height: 1.04;
}
.project-hero h1 em {
  display: block;
}
.project-hero .lead {
  margin-top: 24px;
  max-width: 30em;
}
.actions-secondary {
  display: inline-flex;
  gap: 24px;
}
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  max-width: none;
  margin-top: 26px;
  font-family: var(--pw-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--pw-text-secondary);
}
.project-facts li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--accent-mark);
  vertical-align: 1px;
}
code,
pre {
  font-family: var(--pw-mono);
  font-size: 0.86em;
  letter-spacing: 0;
}
.code-panel {
  min-width: 0;
  padding: 26px clamp(20px, 2.4vw, 30px) 24px;
}
.code-title {
  margin-bottom: 12px;
  font-family: var(--pw-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--pw-text-secondary);
}
.code-panel pre {
  margin: 0 -10px;
  padding: 4px 10px;
  overflow-x: auto;
  color: var(--pw-text);
  font-size: 15px;
  line-height: 1.65;
  tab-size: 2;
}
.code-panel pre code {
  font-size: inherit;
}
pre:focus-visible {
  border-radius: 4px;
}
.notes li + li {
  margin-top: 8px;
}
.notes li {
  position: relative;
  padding-left: 18px;
}
.notes li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-mark);
}
.code-panel pre:has(+ figcaption) {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pw-border);
}
.code-panel figcaption {
  max-width: 46em;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.5;
}
pre .c {
  color: var(--pw-text-secondary);
}
pre .s {
  color: var(--accent);
}
pre .k {
  color: inherit;
}
.finding-line {
  display: inline-block;
  min-width: calc(100% + 20px);
  margin-inline: -10px;
  padding-left: 7px;
  border-left: 3px solid var(--pw-finding);
}
.finding-mark {
  display: inline-block;
  width: 26px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
}
.finding-mark rect:first-child {
  fill: none;
  stroke: var(--pw-finding);
  stroke-width: 1.5;
}
.finding-mark rect:last-child {
  fill: var(--pw-finding);
}
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: clamp(40px, 4vw, 56px);
}
.compare-note {
  margin-top: 36px;
  max-width: 32em;
  color: var(--pw-text);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.35;
}
.steps--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.local-state {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px clamp(40px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(56px, 6vw, 88px);
}
.local-state h3 {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  font-weight: 540;
}
.local-state h3 + p {
  margin-top: 16px;
}
.local-state p + p {
  margin-top: 12px;
}
.local-state + .local-state {
  margin-top: clamp(48px, 5vw, 72px);
}
.state-wrap {
  padding: 18px 8px;
}
.state-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
.state-table th {
  padding: 8px 18px 10px;
  font-family: var(--pw-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: left;
  color: var(--accent);
}
.state-table td {
  padding: 12px 18px;
  border-top: 1px solid var(--pw-border);
  vertical-align: top;
}
.state-table code {
  font-size: 15px;
}
.owner {
  white-space: nowrap;
}
.owner::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border: 1.5px solid var(--accent-mark);
  border-radius: 2px;
}
.owner--server {
  color: var(--pw-text);
  font-weight: 520;
}
.owner--server::before {
  background: var(--accent-mark);
}
.adapters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 32px;
  margin-top: clamp(40px, 4vw, 56px);
}
.adapters li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}
.adapters li::before {
  top: 0;
  left: 0;
  right: 0;
}
.adapters h3 span {
  color: var(--pw-text-secondary);
  font-weight: 430;
  font-size: 0.8em;
}
.adapters code {
  margin-top: 8px;
  color: var(--accent);
  font-size: 15px;
}
.adapters p {
  margin-top: 8px;
  font-size: 16px;
}
.adapter-peer {
  margin-top: 6px;
  font-family: var(--pw-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--pw-text-secondary);
}
.idioms {
  margin-top: clamp(48px, 5vw, 72px);
}
.idioms .label {
  margin-bottom: 12px;
}
.idioms details {
  border-top: 1px solid var(--pw-border);
}
.idioms details:last-of-type {
  border-bottom: 1px solid var(--pw-border);
}
.idioms summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  color: var(--pw-text);
  font-size: 20px;
  font-weight: 520;
  cursor: pointer;
  list-style: none;
}
.idioms summary::-webkit-details-marker {
  display: none;
}
.idioms summary::after {
  content: "+";
  font-family: var(--pw-mono);
  font-size: 22px;
  color: var(--accent);
}
.idioms details[open] summary::after {
  content: "\2212";
}
.idioms pre {
  margin: 0 0 20px;
  padding: 20px 24px;
  overflow-x: auto;
  border: 1px solid var(--pw-border);
  border-radius: 12px;
  background: var(--pw-surface) var(--surface-texture) 0 0 / 320px 320px;
  color: var(--pw-text);
  font-size: 15px;
  line-height: 1.65;
}
.idioms-note {
  margin-top: 18px;
  color: var(--pw-text-secondary);
  font-size: 15px;
}
.fit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(40px, 4vw, 56px);
}
.fit-col ul {
  margin-top: 14px;
}
.fit-col li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-top: 1px solid var(--pw-border);
  font-size: 17px;
}
.fit-col li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.fit-col--yes li::before {
  background: var(--accent-mark);
}
.fit-col--no li::before {
  border: 1.5px solid var(--accent-mark);
}
.fit-col--never li::before {
  top: 24px;
  height: 2px;
  background: var(--pw-text-secondary);
}
.note-panel {
  margin-top: clamp(48px, 5vw, 72px);
  padding: clamp(28px, 3.5vw, 44px);
}
.note-panel > * {
  max-width: 40em;
}
.note-panel p {
  margin-top: 14px;
  font-size: 17px;
}
.note-panel h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
}
.note-panel .text-link {
  margin-top: 12px;
  font-size: 17px;
}
.start {
  margin-top: clamp(40px, 4vw, 56px);
}
.start > li {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px 40px;
  align-items: start;
  padding-block: 28px;
  border-top: 1px solid var(--pw-border);
}
.start h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 18px;
}
.demos {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px 48px;
  align-items: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--pw-border);
}
.demos h3 + p {
  margin-top: 10px;
  font-size: 17px;
}
.docs {
  margin-top: clamp(48px, 5vw, 72px);
}
.docs ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 32px;
  margin-top: 14px;
}
.docs a {
  display: inline-block;
  padding-block: 6px;
  font-size: 18px;
}
.maker-panel {
  align-items: center;
}
.maker-links {
  display: grid;
  gap: 10px;
}
.maker-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 6px;
  color: var(--pw-text);
  font-size: clamp(19px, 1.6vw, 22px);
  text-decoration-color: var(--pw-link);
  overflow-wrap: anywhere;
}
.maker-links a:hover {
  color: var(--pw-link);
}
.maker-panel .contact-copy p:last-child {
  max-width: 34em;
}

@media (min-width: 1000px) {
  .local-state--flip {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .local-state--flip > :first-child {
    order: 2;
  }
}
@media (max-width: 999px) {
  .hero {
    display: grid;
    grid-template-areas: "copy" "band";
    height: auto;
    background: none;
  }
  .hero-plate {
    grid-area: copy;
    position: relative;
    inset: auto;
    width: auto;
    aspect-ratio: auto;
    overflow: hidden;
    background-image: var(--hero-narrow-image);
    background-size: cover;
  }
  .lens,
  .lens-leader,
  .lens-caption {
    display: none;
  }
  .hero-copy {
    grid-area: copy;
    padding-block: 128px 48px;
  }
  .hero h1 {
    font-size: clamp(40px, 11.5vw, 68px);
    line-height: 1.02;
  }
  .hero-band {
    grid-area: band;
    position: relative;
    inset: auto;
    padding-block: 34px 40px;
    background: var(--band-ground) var(--band-texture) 0 0 / 320px 320px;
  }
  .hero-band::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
    height: 0;
    border-top: 2px dashed var(--pw-chambray-light);
  }
  .hero-labels {
    flex-flow: row wrap;
    gap: 14px 18px;
    padding-left: 0;
  }
  .modes,
  .experience {
    grid-template-columns: 1fr;
  }
  .modes {
    gap: 20px;
  }
  .experience {
    gap: 36px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
    padding-top: 0;
  }
  .steps::before {
    content: none;
  }
  .steps li {
    padding-top: 30px;
  }
  .steps li::before {
    top: 0;
  }
  .steps li::after {
    content: "";
    top: 4px;
    left: 22px;
    right: 0;
  }
  .project,
  .about,
  .contact-panel {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 520px;
  }
  .about-photo img {
    aspect-ratio: 4 / 3;
  }
  .contact-panel {
    align-items: start;
  }
  .project-hero,
  .compare,
  .local-state,
  .fit,
  .demos {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps--three {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .adapters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .start > li {
    grid-template-columns: minmax(0, 1fr);
  }
  .start h3 {
    padding-top: 0;
  }
  .docs ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 859px) {
  .nav-inline {
    display: none;
  }
  .nav-menu {
    display: block;
  }
  .site-header {
    padding-block: 22px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 18px;
  }
  .kicker {
    font-size: 13px;
  }
  .kicker-sep {
    display: none;
  }
  .kicker-place {
    display: block;
  }
  .hero-copy {
    padding-block: 112px 40px;
  }
  .hero-labels {
    flex-direction: column;
  }
  .finding {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 20px;
  }
  .finding img {
    width: 220px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mode-list li,
  .steps p,
  .experience h3 + p,
  .project-summary + p,
  .finding figcaption p + p {
    font-size: 17px;
  }
  .contact-panel {
    margin-inline: calc(var(--gutter) * -0.5);
    padding: 40px 26px;
  }
  .state-table {
    font-size: 16px;
  }
  .state-table th,
  .state-table td {
    padding-inline: 12px;
  }
  .owner {
    white-space: normal;
  }
  .adapters {
    gap: 28px 20px;
  }
  .docs ul {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 359px) {
  /* Keep the 40px header mark and its clear space, rather than shrinking the artwork. */
  .header-inner {
    gap: 8px;
  }
  .header-inner.wrap {
    width: calc(100% - 24px);
  }
  .patch {
    padding-inline: 20px;
  }
  .project-hero h1 {
    font-size: 34px;
  }
  .adapters {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  body {
    background: var(--pw-ground);
    font-size: 11pt;
  }
  .site-header nav,
  .nav-menu,
  .skip-link,
  .hero-plate,
  .hero-band {
    display: none;
  }
  .hero {
    height: auto;
    background: none;
  }
  .hero-copy {
    padding-top: 24px;
  }
  .hero .kicker,
  .hero .lead {
    color: var(--pw-text);
    text-shadow: none;
  }
  .site-header--over {
    position: static;
  }
  .section {
    padding-top: 32px;
  }
  .panel,
  .contact-panel,
  .steps li,
  .experience article,
  .project {
    break-inside: avoid;
  }
  .contact-panel {
    --pw-ground: var(--pw-linen);
    --pw-text: var(--pw-indigo);
    --pw-text-secondary: var(--pw-slate);
    --pw-link: var(--pw-cornflower);
    --pw-break: var(--pw-cornflower);
    --accent: var(--pw-cornflower);
    background: none;
  }
}
