/* Typefaces from the joshcool.com design, self-hosted. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-italic.woff2") format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono.woff2") format("woff2-variations");
}

:root {
  --paper: #f3f0e8;
  --card: #fbfaf6;
  --card-tint: #f7f4ec;
  --band: #e9e4d8;
  --ink: #15171c;
  --text: #2e323a;
  --muted: #4a4f5a;
  --rule: #d6cfbf;
  --pill: #8c8472;
  --accent: #2447d6;
  --current: #b8430f;
  --night-text: #d9d4c8;
  --night-muted: #b9b4a8;
  --night-rule: #3a3d45;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --pad-x: clamp(1.25rem, 7.5vw, 7.5rem);
  --section-gap: clamp(4.5rem, 9vw, 7.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 1rem; }
.skip:focus { left: 1.5rem; z-index: 10; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; border-radius: 8px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Shared type */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.plain { color: var(--muted); }

.display-1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.3rem + 4.6vw, 4.75rem);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: -0.035em;
}
.display-2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.5rem);
  line-height: 1.05;
  font-weight: 740;
  letter-spacing: -0.03em;
}
.display-3 {
  font-family: var(--display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  line-height: 1.05;
  font-weight: 740;
  letter-spacing: -0.03em;
}
.title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem); line-height: 1.55; color: var(--text); }

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; }
.pills li, .pill {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--pill);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { color: var(--paper); background: #2b2e36; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--card); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.redact {
  display: inline-block;
  width: 11.875rem;
  max-width: 100%;
  height: 1.125rem;
  border-radius: 4px;
  background: var(--ink);
  vertical-align: middle;
}
.unredacted { font-weight: 600; color: var(--ink); }

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem var(--pad-x);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.brand-name { font-family: var(--display); font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; padding: 0; }
.site-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-nav .nav-key { margin-left: 0.5rem; border: 1px solid var(--ink); border-radius: 10px; }
.site-nav .nav-cta { margin-left: 0.5rem; padding: 0 1.125rem; border-radius: 10px; background: var(--ink); color: var(--paper); }
.site-nav .nav-cta:hover { color: var(--paper); }
.nav-key svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.keybar { padding: 0.875rem var(--pad-x); background: var(--band); font-size: 1rem; color: var(--text); }
.keybar a { font-family: var(--mono); font-size: 0.875rem; }

main { display: flex; flex-direction: column; }
.section { padding: var(--section-gap) var(--pad-x) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; }
.section-head > div { display: flex; flex-direction: column; gap: 1rem; }
.section-head > p { max-width: 27.5rem; font-size: 1.1875rem; line-height: 1.55; color: var(--text); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 3rem;
  align-items: end;
  padding: clamp(3rem, 7vw, 6rem) var(--pad-x) clamp(3rem, 6vw, 5.5rem);
}
.hero-copy { grid-column: 1 / span 7; display: flex; flex-direction: column; }
.hero-copy h1 { margin-top: 1.5rem; }
.hero-copy .lede { margin-top: 2rem; max-width: 38.75rem; }
.hero-copy .actions { margin-top: 2.5rem; }

.spec {
  grid-column: 8 / span 5;
  padding: 1.75rem 1.75rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
}
.spec-head { display: flex; align-items: center; justify-content: space-between; }
.spec-head h2 { font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.spec-head span { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.spec > p { margin-top: 0.75rem; font-size: 1.0625rem; line-height: 1.5; color: var(--text); }
.spec dl { margin-top: 1.25rem; }
.spec dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.875rem 0; border-top: 1px solid var(--rule); }
.spec dt { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-size: 1.0625rem; font-weight: 600; text-align: right; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.5rem;
  margin: 0 var(--pad-x);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.stats div { display: flex; flex-direction: column; gap: 0.625rem; padding: 2rem 0; }
.stats .num { font-family: var(--display); font-size: clamp(2.75rem, 2rem + 2.4vw, 3.75rem); line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.stats .label { font-size: 1.0625rem; line-height: 1.45; color: var(--muted); }

/* Changelog */

.cl-bar {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cl-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border-radius: 999px;
  border: 1px solid var(--pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  cursor: pointer;
}
.chip span { font-size: 0.75rem; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.legend { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.legend i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.legend .now { background: var(--current); }
.legend .past { border: 2px solid var(--accent); }
.order-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 10px;
  border: 1px solid var(--pill);
  background: var(--card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  cursor: pointer;
}
.order-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cl-count { margin-top: 1rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }

.cl-list { list-style: none; margin-top: 2rem; padding: 0; }
.cl-list > li { display: grid; grid-template-columns: 13.75rem 3rem minmax(0, 1fr); }
.cl-when { padding: 1.75rem 1.5rem 0 0; text-align: right; display: flex; flex-direction: column; gap: 0.375rem; }
.cl-date { font-family: var(--mono); font-size: 0.9375rem; font-weight: 600; }
.cl-type { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cl-rail { position: relative; display: flex; justify-content: center; }
.cl-rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; background: var(--rule); }
.cl-rail i {
  position: relative;
  display: block;
  margin-top: 1.875rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--paper);
}
.is-now .cl-rail i { background: var(--current); border-color: var(--current); }
.cl-body { padding: 1.25rem 0 2.5rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cl-org { font-style: italic; color: var(--muted); }
.cl-body > p:not(.cl-org) { margin-top: 0.375rem; max-width: 48.75rem; }
.cl-body .pills { margin-top: 0.625rem; }

/* Work cards */

.cards { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
}
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-top svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card .status { padding: 0.25rem 0.625rem; border: 1px solid var(--pill); border-radius: 999px; font-family: var(--mono); font-size: 0.75rem; color: var(--text); }
.card h3 { margin-top: 0.5rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .pills { margin-top: auto; padding-top: 0.5rem; }
.more-link { margin-top: 2rem; font-family: var(--mono); font-size: 0.9375rem; font-weight: 500; }

/* Ventures and credentials */

.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 4rem; }
.duo > div { display: flex; flex-direction: column; gap: 1rem; }
.duo .ventures { grid-column: 1 / span 5; }
.duo .credentials { grid-column: 7 / span 6; }
.duo .ventures > p:not(.eyebrow) { margin-top: 0.5rem; font-size: 1.1875rem; color: var(--text); }
.out-link { display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; min-height: 2.75rem; font-family: var(--mono); font-size: 0.9375rem; font-weight: 500; }
.out-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.certs { list-style: none; margin-top: 0.5rem; padding: 0; border-bottom: 1px solid var(--rule); }
.certs li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding: 0.875rem 0; border-top: 1px solid var(--rule); }
.certs .yr { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); padding-top: 0.15rem; }
.certs .by { color: var(--muted); }

/* Contact (dark) */

.contact {
  margin-top: var(--section-gap);
  padding: clamp(4.5rem, 8vw, 7rem) var(--pad-x) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: var(--ink);
  color: var(--paper);
}
.contact .eyebrow { color: var(--night-muted); }
.contact h2 { font-family: var(--display); font-size: clamp(3rem, 1.6rem + 5.6vw, 6rem); line-height: 1; font-weight: 760; letter-spacing: -0.04em; }
.contact .lede { max-width: 40rem; color: var(--night-text); }
.contact .actions { margin-top: 0.75rem; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { color: var(--ink); background: #fff; }
.btn-ghost { border: 1px solid var(--paper); color: var(--paper); }
.btn-ghost:hover { color: var(--paper); background: #24272e; }
.contact .note { font-size: 1rem; color: var(--night-text); max-width: 40rem; }
.contact .note a { color: var(--paper); }
.contact-meta, .site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.contact-meta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--night-rule); color: var(--night-muted); }
.site-footer { margin-top: var(--section-gap); padding: 1.5rem var(--pad-x) 3rem; border-top: 1px solid var(--rule); color: var(--muted); }

/* Projects page */

.page-hero { padding: clamp(3rem, 6vw, 5.5rem) var(--pad-x) 3.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.page-hero h1 { max-width: 61.25rem; }
.segmented { display: flex; align-self: flex-start; margin-top: 0.5rem; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; }
.segmented a { display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0 1.375rem; color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 0.9375rem; }
.segmented a:first-child { background: var(--ink); color: var(--paper); }
.segmented span { font-size: 0.75rem; }

.group { padding: 0 var(--pad-x); display: flex; flex-direction: column; gap: 2rem; scroll-margin-top: 1rem; }
.group + .group { padding-top: var(--section-gap); }
.group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.group-head p { max-width: 32.5rem; color: var(--text); }

.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.proj { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.sig { display: block; width: 100%; height: 120px; background: var(--card-tint); border-bottom: 1px solid var(--rule); }
.sig .base { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 4 6; }
.sig .wave { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.proj-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem 2rem 2rem; flex-grow: 1; }
.proj-body .built-for { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; font-size: 1rem; color: var(--text); }
.proj-body .pills { margin-top: 0.5rem; }
.proj-body .read { margin-top: auto; padding-top: 0.5rem; font-family: var(--mono); font-size: 0.875rem; font-weight: 500; }

.sealed {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
}
.sealed-art { grid-column: 1 / span 7; width: 100%; height: auto; display: block; background: #efebe1; border-radius: 12px; }
.sealed-info { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 0.875rem; padding: 0.5rem 0; }
.sealed-info h3 { font-family: var(--display); font-size: clamp(2.25rem, 1.8rem + 1.6vw, 2.75rem); line-height: 1; font-weight: 760; letter-spacing: -0.03em; }
.lock-label { display: flex; align-items: center; gap: 0.5rem; }
.lock-label svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.redact-lines { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 0.25rem; }
.redact-lines span { display: block; height: 1rem; border-radius: 4px; background: var(--ink); }
.facts { margin-top: 0.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.facts div { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.625rem; border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.facts .redact { width: 7.5rem; height: 0.875rem; }

.per-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }


/* Case studies */

.case { padding: clamp(2.5rem, 6vw, 5rem) var(--pad-x) 0; display: flex; flex-direction: column; }
.case > * { max-width: 48rem; }
.case .back { font-family: var(--mono); font-size: 0.875rem; }
.case .eyebrow { margin-top: 2rem; }
.case h1 { margin-top: 1rem; }
.case > .lede { margin-top: 1.5rem; }
.case .details { margin-top: 2.5rem; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.75rem 2rem; padding: 1.25rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.case .details dt { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.case section { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.case section h2 { font-family: var(--display); font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; }
.case section ul { padding-left: 1.25rem; }
.case section li + li { margin-top: 0.5rem; }

/* Narrow screens */

@media (max-width: 1080px) {
  .hero-copy, .spec { grid-column: 1 / -1; }
  .spec { max-width: 36rem; }
  .cards, .per-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo .ventures, .duo .credentials { grid-column: 1 / -1; }
  .sealed-art, .sealed-info { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 0 0.625rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .per-grid, .proj-grid { grid-template-columns: minmax(0, 1fr); }
  .cl-list > li { grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: 0.75rem; }
  .cl-when { grid-column: 2; grid-row: 1; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; padding: 1.5rem 0 0; text-align: left; }
  .cl-when .cl-type::before { content: "· "; }
  .cl-rail { grid-column: 1; grid-row: 1 / span 2; }
  .cl-rail i { margin-top: 1.6rem; width: 16px; height: 16px; }
  .cl-body { grid-column: 2; padding: 0.5rem 0 2rem; }
  .card, .proj-body, .sealed { padding: 1.5rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .case .details { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .case .details dd + dt { margin-top: 0.75rem; }
}

@media print {
  .site-nav, .keybar, .cl-bar, .actions, .skip { display: none !important; }
  body { background: #fff; }
  .contact { background: #fff; color: #000; }
}

.redact-lines .w100 { width: 100%; }
.redact-lines .w86 { width: 86%; }
.redact-lines .w62 { width: 62%; }
.read { font-family: var(--mono); font-size: 0.875rem; font-weight: 500; }
.sealed-info .read { align-self: flex-start; margin-top: 0.25rem; }
.case .locked-note { padding: 1rem 1.25rem; background: var(--band); border-radius: 12px; font-size: 1rem; color: var(--text); }
.case .locked-note a { font-family: var(--mono); font-size: 0.875rem; }

/* "Have a key?" hint: shown on hover and focus, dismissible with Escape. */
.key-tip { position: relative; }
.site-nav .nav-key {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-left: 0.5rem;
  padding: 0 0.875rem;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  cursor: help;
}
.tip {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  width: min(20rem, 80vw);
  padding: 0.875rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.tip::before { content: ""; position: absolute; left: 0; right: 0; top: -0.5rem; height: 0.5rem; }
.key-tip:hover .tip,
.key-tip:focus-within .tip { opacity: 1; visibility: visible; pointer-events: auto; }
.key-tip.dismissed .tip { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .tip { transition: opacity 0.15s ease, visibility 0.15s; } }
@media (max-width: 720px) { .tip { left: 0; right: auto; } }
.redact[title], .redact-lines[title] { cursor: help; }

/* A note from Claude */
.claude-note {
  margin: 3rem 0 0;
  max-width: 48rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
}
.claude-note blockquote { margin: 0; }
.claude-note blockquote p { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.65; }
.claude-note blockquote p + p { margin-top: 1.1em; }
.claude-note figcaption { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.35rem; }
.claude-note .who { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.claude-note .what { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.site-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.site-line .redact { width: 9rem; }
