/*
Theme Name: Who Played That
Theme URI: https://github.com/thehillengroup/who-played-that
Author: The Hillen Group
Author URI: https://thehillengroup.net
Description: Editorial block theme for the Who Played That project site. Three palettes (Paper, Archive, Console), serif display type, and liner-notes detailing. Built for WordPress 6.4+.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: who-played-that
Tags: block-theme, one-column, two-columns, editor-style, custom-colors, custom-logo, custom-menu, featured-images, full-site-editing, block-patterns, rtl-language-support, wide-blocks, blog
*/

:root {
  --bg: #f6f3ec;
  --bg-elev: #ffffff;
  --bg-sunk: #efeae0;
  --fg: #1a1a1a;
  --fg-dim: #4a4842;
  /* --fg-mute was #9e9a91 (contrast 2.53:1 vs --bg). Bumped to #6b6862
     which gives ~4.9:1 against #f6f3ec — comfortably above WCAG 2.0 AA's
     4.5:1 minimum for normal text. The eyebrow / step number / colophon
     labels that use it now read as muted but pass automated audits. */
  --fg-mute: #6b6862;
  --rule: #dcd6c7;
  --rule-strong: #b8b0a0;
  --accent: #a93917;
  --accent-fg: #ffffff;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

body.wpt-theme-archive {
  --bg: #f4ede0;
  --bg-elev: #fbf6ea;
  --bg-sunk: #ece4d2;
  --fg: #2a1f14;
  --fg-dim: #3f311c;
  /* #6b5940 hits ~4.9:1 against the archive cream — passes WCAG 2.0 AA. */
  --fg-mute: #6b5940;
  --rule: #d8cdb4;
  --rule-strong: #b09e7f;
  --accent: #8b2a1a;
  --accent-fg: #f4ede0;
}

body.wpt-theme-console {
  --bg: #0d0f12;
  --bg-elev: #14171c;
  --bg-sunk: #070809;
  --fg: #e6ebf0;
  --fg-dim: #a8b1bc;
  /* Lightened from #525a67 for 4.5:1 AA contrast on the dark console bg. */
  --fg-mute: #8a94a2;
  --rule: #1e2229;
  --rule-strong: #2c3139;
  --accent: #5ce1e6;
  --accent-fg: #0d0f12;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.wpt-hero { overflow-x: clip; overflow-y: visible; }
::selection { background: var(--accent); color: var(--accent-fg); }
a { color: inherit; }

/* -------------------------------------------------------------------------
   Site header (navigation)
   ------------------------------------------------------------------------- */
.wpt-site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px 40px;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 13px;
}
.wpt-brand,
.wpt-brand a {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
  margin: 0;
}
.wpt-brand .amp { color: var(--accent); font-style: italic; }
.wpt-nav-menu { display: flex; gap: 28px; color: var(--fg-dim); list-style: none; padding: 0; margin: 0; }
.wpt-nav-menu a { color: inherit; text-decoration: none; transition: color .15s; }
.wpt-nav-menu a:hover { color: var(--fg); }

/* Mobile nav toggle (hidden on desktop, surfaces as a hamburger on mobile) */
.wpt-nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
}
.wpt-nav-burger {
  display: none;
  cursor: pointer;
  color: var(--fg-dim);
  padding: 6px;
  margin-right: -6px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
}
.wpt-nav-burger:hover { color: var(--fg); background: var(--bg-sunk); }
.wpt-nav-burger-close { display: none; }
.wpt-nav-toggle-input:checked ~ .wpt-nav-burger .wpt-nav-burger-open { display: none; }
.wpt-nav-toggle-input:checked ~ .wpt-nav-burger .wpt-nav-burger-close { display: block; }
.wpt-site-header { position: relative; }
.wpt-nav-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Splash hero
   ------------------------------------------------------------------------- */
.wpt-hero {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 40px 72px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
}
.wpt-hero > * { position: relative; z-index: 1; }
.wpt-hero-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.wpt-hero-kicker::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}
.wpt-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 7.8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.wpt-hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  color: var(--accent);
}
.wpt-hero h1 .underline {
  position: relative; display: inline-block;
}
.wpt-hero h1 .underline::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0.07em;
  height: 0.22em;
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  z-index: -1;
}
.wpt-hero-lede {
  font-size: 18px; line-height: 1.55;
  color: var(--fg-dim);
  max-width: 52ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}

/* CTA */
.wpt-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wpt-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--fg); color: var(--bg);
  border-radius: 4px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: transform .1s, background .15s, color .15s;
}
.wpt-cta:hover { background: var(--accent); color: var(--accent-fg); }
.wpt-cta:active { transform: translateY(1px); }
.wpt-cta svg { transition: transform .15s; }
.wpt-cta:hover svg { transform: translateX(2px); }
.wpt-cta-menu .wpt-cta:hover .wpt-download-chev { transform: none; }
.wpt-cta-menu[open] .wpt-cta:hover .wpt-download-chev { transform: rotate(180deg); }
/* Align the hero dropdown with the button's left edge so it extends rightward
   rather than overflowing the button on the left. The /download page keeps
   right-alignment because its CTA sits on the right side of a card. */
.wpt-cta-menu .wpt-download-menu-panel { left: 0; right: auto; }
.wpt-cta-ghost {
  font-size: 13px; color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.wpt-cta-ghost:hover { color: var(--fg); border-color: var(--fg); }
/* Secondary button — same size/shape/weight as .wpt-cta, outlined instead of
   filled. A real button pair, not a weak underline link. */
.wpt-cta-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: transparent; color: var(--fg);
  border: 1.5px solid var(--rule-strong);
  border-radius: 4px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: transform .1s, background .15s, color .15s, border-color .15s;
}
.wpt-cta-secondary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.wpt-cta-secondary:active { transform: translateY(1px); }

/* Demo card */
.wpt-demo {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 20px 56px -16px rgba(28,24,16,.18);
  overflow: hidden;
  transform: rotate(-0.6deg);
}
.wpt-demo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-sunk));
  pointer-events: none;
}
.wpt-demo-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wpt-demo-head .dots { display: flex; gap: 5px; }
.wpt-demo-head .dots span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong);
}
.wpt-demo-search { padding: 18px; border-bottom: 1px solid var(--rule); }
.wpt-demo-search .input {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
}
.wpt-demo-search .input svg { color: var(--fg-mute); flex-shrink: 0; }
.wpt-demo-search .query { color: var(--fg); }
.wpt-demo-search .caret {
  width: 2px; height: 16px; background: var(--accent);
  animation: wpt-blink 1.05s steps(2, end) infinite;
  margin-left: -2px;
}
@keyframes wpt-blink { 50% { opacity: 0; } }

.wpt-contrib {
  display: flex; align-items: center; gap: 22px;
  padding: 14px 18px;
  margin: 0 18px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-sunk));
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.wpt-contrib .who {
  display: flex; flex-direction: column; gap: 2px;
  padding-right: 18px; border-right: 1px solid var(--rule);
}
.wpt-contrib .who .label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-mute); font-weight: 600;
}
.wpt-contrib .who .name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.01em;
}
.wpt-contrib .stat { display: flex; flex-direction: column; gap: 1px; }
.wpt-contrib .stat .n {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px; font-weight: 600;
}
.wpt-contrib .stat .l {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-mute); font-weight: 600;
}

.wpt-rows { padding: 14px 0 18px; }
.wpt-rows .row {
  display: grid;
  grid-template-columns: 26px 1fr 80px;
  gap: 12px; align-items: center;
  padding: 8px 18px;
  font-size: 13px;
  border-bottom: 1px solid var(--rule);
}
.wpt-rows .row:last-child { border-bottom: none; }
.wpt-rows .row .tn {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--fg-mute);
  text-align: right;
}
.wpt-rows .row .track .title { color: var(--fg); font-weight: 500; }
.wpt-rows .row .track .meta {
  color: var(--fg-dim); font-size: 11.5px; margin-top: 2px;
}
.wpt-rows .row .track .meta mark {
  background: transparent; color: var(--accent); font-weight: 600;
}
.wpt-rows .row .album {
  font-family: var(--font-display); font-style: italic;
  font-size: 12px; color: var(--fg-dim);
  text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Decorative vinyl */
.wpt-vinyl {
  position: absolute;
  right: -120px; top: 10%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 54px, transparent 55px),
    repeating-radial-gradient(circle at 50% 50%,
      #1a1816 60px, #1a1816 60.6px,
      #242120 60.7px, #242120 62px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  animation: wpt-spin 30s linear infinite;
}
@keyframes wpt-spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------------
   Bullets strip
   ------------------------------------------------------------------------- */
.wpt-bullets {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 40px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 40px;
  border-top: 1px solid var(--rule);
}
.wpt-bullet .n {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.wpt-bullet h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.wpt-bullet p {
  margin: 0;
  font-size: 13px; line-height: 1.55;
  color: var(--fg-dim);
  text-wrap: pretty;
}

/* -------------------------------------------------------------------------
   Screens (screenshot strip)
   ------------------------------------------------------------------------- */
.wpt-screens {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 40px 24px;
  border-top: 1px solid var(--rule);
}
.wpt-screens-head { margin-bottom: 32px; max-width: 720px; }
.wpt-screens-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 14px;
}
.wpt-screens-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.wpt-screens-head h2 em { font-style: italic; color: var(--accent); }
.wpt-screens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 32px;
}
.wpt-screen {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wpt-screen img {
  width: 100%; height: auto; display: block;
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 12px 32px -16px rgba(28,24,16,.18);
}
.wpt-screen figcaption {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px 14px;
  align-items: baseline;
}
.wpt-screen figcaption .n {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent);
}
.wpt-screen figcaption .label {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.01em;
}
.wpt-screen figcaption .note {
  grid-column: 1 / -1;
  font-size: 13px; line-height: 1.55;
  color: var(--fg-dim);
}
.wpt-screen-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wpt-screen-trigger:hover { transform: translateY(-2px); }
.wpt-screen-trigger:hover img {
  box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 18px 44px -16px rgba(28,24,16,.28);
  border-color: var(--accent);
}
.wpt-screen-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.wpt-screen-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 95vw;
  color: #f5f1ea;
  overflow: visible;
}
.wpt-screen-modal::backdrop {
  background: rgba(20, 14, 4, 0.88);
  backdrop-filter: blur(4px);
}
.wpt-screen-modal-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.wpt-screen-modal-img {
  max-width: 95vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  background: #1a140a;
}
.wpt-screen-modal-caption {
  text-align: center;
  color: rgba(245, 241, 234, 0.85);
  max-width: 720px;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 12px;
}
.wpt-screen-modal-caption .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.wpt-screen-modal-caption .label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wpt-screen-modal-caption .dot { color: rgba(245, 241, 234, 0.4); }
.wpt-screen-modal-caption .note {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 241, 234, 0.7);
  flex-basis: 100%;
  margin-top: 4px;
}
.wpt-screen-modal-close,
.wpt-screen-modal-prev,
.wpt-screen-modal-next {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  z-index: 1;
}
.wpt-screen-modal-close:hover,
.wpt-screen-modal-prev:hover,
.wpt-screen-modal-next:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}
.wpt-screen-modal-close { top: 20px; right: 20px; width: 40px; height: 40px; }
.wpt-screen-modal-prev,
.wpt-screen-modal-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.wpt-screen-modal-prev { left: 20px; }
.wpt-screen-modal-next { right: 20px; }
@media (max-width: 720px) {
  .wpt-screens { padding: 40px 24px 16px; }
  .wpt-screens-grid { grid-template-columns: 1fr; gap: 28px; }
  .wpt-screen-modal-img { max-height: 70vh; }
  .wpt-screen-modal-prev { left: 8px; width: 40px; height: 40px; }
  .wpt-screen-modal-next { right: 8px; width: 40px; height: 40px; }
  .wpt-screen-modal-caption .dot { display: none; }
  .wpt-screen-modal-caption .note { display: block; margin-top: 6px; }
}

/* -------------------------------------------------------------------------
   How-it-works
   ------------------------------------------------------------------------- */
.wpt-how {
  max-width: 1280px; margin: 40px auto 0;
  padding: 56px 40px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.wpt-how .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 16px;
}
.wpt-how h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.wpt-how h2 em { font-style: italic; color: var(--accent); }
.wpt-how-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  color: var(--fg-dim);
  margin: 32px 0 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--accent);
  max-width: 32ch;
  text-wrap: balance;
}
.wpt-how-quote em { color: var(--accent); font-style: italic; }
.wpt-steps { display: flex; flex-direction: column; gap: 2px; }
.wpt-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.wpt-step:last-child { border-bottom: 0; }
.wpt-step .stepnum {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--fg-mute);
  padding-top: 4px;
}
.wpt-step h4 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.wpt-step p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14px; line-height: 1.55;
  max-width: 55ch;
}
.wpt-step code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-sunk);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--fg);
  border: 1px solid var(--rule);
}

/* -------------------------------------------------------------------------
   Download page (page-download.html → patterns/download-page.php)
   ------------------------------------------------------------------------- */
.wpt-download-page {
  max-width: 1080px;
  margin: 40px auto 96px;
  padding: 56px 40px;
}
.wpt-download-head { margin-bottom: 40px; }
.wpt-download-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 16px;
}
.wpt-download-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.wpt-download-head h1 em { font-style: italic; color: var(--accent); }
.wpt-download-head .lede {
  font-size: 18px; line-height: 1.55;
  color: var(--fg-dim);
  max-width: 60ch;
  margin: 0;
}
.wpt-download-card {
  margin: 32px 0 56px;
  padding: 28px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 36px -12px rgba(70, 60, 40, 0.18);
}
.wpt-download-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.wpt-download-card-meta .label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 6px;
}
.wpt-download-card-meta .version {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500;
  color: var(--fg);
  line-height: 1.2;
}
.wpt-download-card-meta .sublabel {
  font-size: 13px; color: var(--fg-dim);
  margin-top: 4px;
}
.wpt-download-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s, transform 0.05s;
}
.wpt-download-cta:hover { background: var(--accent); }
.wpt-download-cta:active { transform: translateY(1px); }
.wpt-download-card-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--fg-dim);
}
.wpt-download-card-foot a { color: var(--fg-dim); text-decoration: underline; }
.wpt-download-card-foot a:hover { color: var(--accent); }
.wpt-download-card-foot-sep { margin: 0 10px; color: var(--fg-mute); }

.wpt-download-menu { position: relative; }
.wpt-download-menu summary {
  list-style: none;
  cursor: pointer;
}
.wpt-download-menu summary::-webkit-details-marker { display: none; }
.wpt-download-menu summary::marker { content: ""; }
.wpt-download-chev { transition: transform 0.15s ease; }
.wpt-download-menu[open] .wpt-download-chev { transform: rotate(180deg); }
.wpt-download-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 16px 44px -10px rgba(70,60,40,0.22);
  overflow: hidden;
  z-index: 10;
}
.wpt-download-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--fg);
  transition: background 0.12s;
}
.wpt-download-menu-item + .wpt-download-menu-item {
  border-top: 1px solid rgba(0,0,0,0.06);
}
.wpt-download-menu-item:hover { background: rgba(70,60,40,0.04); }
.wpt-download-menu-item-body { display: block; }
.wpt-download-menu-item-title {
  display: block;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
}
.wpt-download-menu-item-sub {
  display: block;
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 3px;
}
.wpt-download-menu-item-arrow { color: var(--fg-dim); flex: none; }
.wpt-download-menu-item:hover .wpt-download-menu-item-arrow { color: var(--accent); }
@media (max-width: 720px) {
  .wpt-download-menu-panel { right: auto; left: 0; min-width: 0; width: 100%; }
}

.wpt-download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 56px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.wpt-download-block .num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.wpt-download-block h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.wpt-download-block p {
  margin: 0;
  font-size: 14px; line-height: 1.55;
  color: var(--fg-dim);
  max-width: 50ch;
}
.wpt-download-foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--fg-dim);
}
.wpt-download-foot a { color: var(--fg-dim); text-decoration: underline; }
.wpt-download-foot a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .wpt-download-page { padding: 40px 24px; }
  .wpt-download-grid { grid-template-columns: 1fr; gap: 32px; }
  .wpt-download-card { padding: 22px; }
}

/* -------------------------------------------------------------------------
   About / Why page (page-about.html → patterns/about-page.php)
   ------------------------------------------------------------------------- */
.wpt-essay {
  max-width: 1080px;
  margin: 40px auto 96px;
  padding: 56px 40px;
}
/* Body copy reads at a comfortable measure even though the page container
   matches the wider download page; the container width is for visual parity,
   not for stretching paragraphs to 1080px. */
.wpt-essay-body {
  max-width: 720px;
}
.wpt-essay-head { margin-bottom: 48px; }
.wpt-essay-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 16px;
}
.wpt-essay-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.wpt-essay-head h1 em { font-style: italic; color: var(--accent); }
.wpt-essay-head .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0;
  text-wrap: pretty;
}
.wpt-essay-head .lede em { font-style: italic; color: var(--fg); }
.wpt-essay-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
}
.wpt-essay-body p,
.wpt-essay-body li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
}
.wpt-essay-body ul {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}
.wpt-essay-body li {
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--rule);
  margin-bottom: 8px;
}
.wpt-essay-body li strong {
  font-weight: 600;
  color: var(--accent);
}
.wpt-essay-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-sunk);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--rule);
}
.wpt-essay-body .cta-row {
  margin-top: 56px;
}
.wpt-essay-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s;
}
.wpt-essay-cta:hover { background: var(--accent); }

/* -------------------------------------------------------------------------
   License / Pro page (page-license.html → patterns/license-page.php)
   ------------------------------------------------------------------------- */
.wpt-license {
  max-width: 1080px;
  margin: 40px auto 96px;
  padding: 56px 40px;
}
.wpt-license-head { max-width: 780px; margin-bottom: 44px; }
.wpt-license-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 16px;
}
.wpt-license-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.wpt-license-head h1 em { font-style: italic; color: var(--accent); }
.wpt-license-head .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0;
  text-wrap: pretty;
}
.wpt-license-head .lede em { font-style: italic; color: var(--fg); }

/* Hero screenshot — the Bio tab, the flagship Pro surface. */
.wpt-license-hero { margin: 0 0 56px; }
.wpt-license-hero img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.5);
}
.wpt-license-hero figcaption {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 16px;
  max-width: 820px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-mute);
}
.wpt-license-hero figcaption .tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-fg);
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 3px;
}

.wpt-license-gridlede {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 16px;
}
/* Feature grid — hairline-ruled cards on a shared rule background. */
.wpt-license-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 0 56px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.wpt-license-card {
  background: var(--bg-elev);
  padding: 26px 24px;
}
.wpt-license-card .n {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.wpt-license-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 10px;
}
.wpt-license-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 0;
}

/* Two-up: what stays free / how the key works. */
.wpt-license-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.wpt-license-panel {
  padding: 30px 32px;
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.wpt-license-panel h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.wpt-license-panel p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 12px;
}
.wpt-license-panel p:last-child { margin-bottom: 0; }
.wpt-license-panel ol {
  margin: 0;
  padding-left: 20px;
}
.wpt-license-panel li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 12px;
}
.wpt-license-panel li:last-child { margin-bottom: 0; }
.wpt-license-panel a {
  color: var(--accent);
  text-underline-offset: 2px;
}
.wpt-license-panel code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-elev);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

.wpt-license-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .wpt-license-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wpt-license { padding: 40px 22px; }
  .wpt-license-grid { grid-template-columns: 1fr; }
  .wpt-license-split { grid-template-columns: 1fr; gap: 16px; }
}

/* -------------------------------------------------------------------------
   FAQ page (page-faq.html → patterns/faq-page.php)
   ------------------------------------------------------------------------- */
.wpt-faq {
  max-width: 1080px;
  margin: 40px auto 96px;
  padding: 56px 40px;
}
.wpt-faq-list,
.wpt-faq-head {
  max-width: 800px;
}
.wpt-faq-head { margin-bottom: 40px; }
.wpt-faq-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 16px;
}
.wpt-faq-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.wpt-faq-head h1 em { font-style: italic; color: var(--accent); }
.wpt-faq-head .lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0;
}
.wpt-faq-head .lede a { color: var(--accent); text-decoration: underline; }
.wpt-faq-list {
  margin: 0;
  padding: 0;
}
.wpt-faq-list details {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}
.wpt-faq-list details:last-of-type {
  border-bottom: 1px solid var(--rule);
}
.wpt-faq-list summary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.wpt-faq-list summary::-webkit-details-marker { display: none; }
.wpt-faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--fg-mute);
  flex-shrink: 0;
}
.wpt-faq-list details[open] > summary::after { content: "−"; }
.wpt-faq-list details > div {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 65ch;
}
.wpt-faq-list details > div p { margin: 0 0 12px; }
.wpt-faq-list details > div p:last-child { margin-bottom: 0; }
.wpt-faq-list details > div code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-sunk);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  color: var(--fg);
}
.wpt-faq-list details > div a { color: var(--fg); text-decoration: underline; }
.wpt-faq-list details > div a:hover { color: var(--accent); }
.wpt-faq-cta {
  margin-top: 56px;
  text-align: center;
  font-size: 16px;
}
.wpt-faq-cta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.wpt-faq-cta a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .wpt-essay,
  .wpt-faq { padding: 40px 24px; }
}

/* -------------------------------------------------------------------------
   What's new page (page-whats-new.html → patterns/whats-new-page.php)
   ------------------------------------------------------------------------- */
.wpt-whatsnew {
  max-width: 1080px;
  margin: 40px auto 96px;
  padding: 56px 40px;
}
.wpt-whatsnew-head { margin-bottom: 40px; max-width: 720px; }
.wpt-whatsnew-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 16px;
}
.wpt-whatsnew-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.wpt-whatsnew-head h1 em { font-style: italic; color: var(--accent); }
.wpt-whatsnew-head .lede {
  font-size: 17px; line-height: 1.55;
  color: var(--fg-dim);
  margin: 0;
}
.wpt-whatsnew-head .lede strong { color: var(--fg); font-weight: 600; }
.wpt-whatsnew-head .lede a { color: var(--accent); text-decoration: underline; }
.wpt-whatsnew-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 4px;
}
.wpt-release {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.wpt-release:last-child { border-bottom: 1px solid var(--rule); }
.wpt-release-meta .ver {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.wpt-release-meta .date {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 6px;
}
.wpt-release-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.wpt-release-body ul {
  margin: 0; padding: 0;
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
}
.wpt-release-body li {
  font-size: 14px; line-height: 1.6;
  color: var(--fg-dim);
  padding-left: 18px;
  position: relative;
}
.wpt-release-body li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}
.wpt-release-body li code,
.wpt-release-body li kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-sunk);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  color: var(--fg);
}
.wpt-whatsnew-foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--fg-dim);
}
.wpt-whatsnew-foot a { color: var(--accent); text-decoration: underline; }
@media (max-width: 720px) {
  .wpt-whatsnew { padding: 40px 24px; }
  .wpt-release { grid-template-columns: 1fr; gap: 12px; }
}

/* -------------------------------------------------------------------------
   Editorial content (post / page bodies)
   ------------------------------------------------------------------------- */
.wpt-entry {
  max-width: 720px; margin: 0 auto;
  padding: 48px 40px 64px;
}
.wpt-entry-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 16px;
}
.wpt-entry-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.wpt-entry-meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.wpt-entry-content {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
}
.wpt-entry-content p { margin: 0 0 1.25em; }
.wpt-entry-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.015em;
  margin: 2em 0 0.5em;
}
.wpt-entry-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 1.8em 0 0.4em;
}
.wpt-entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.wpt-entry-content a:hover { text-decoration-thickness: 2px; }
.wpt-entry-content blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--fg);
}
.wpt-entry-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-sunk);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--rule);
}
.wpt-entry-content pre {
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}
.wpt-entry-content pre code { background: transparent; border: 0; padding: 0; }
.wpt-entry-content img {
  max-width: 100%; height: auto; display: block;
  border-radius: 4px;
  margin: 1.5em 0;
}
.wpt-entry-content ul, .wpt-entry-content ol { padding-left: 1.4em; }
.wpt-entry-content li { margin: 0.35em 0; }
.wpt-entry-content hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5em 0;
}

/* -------------------------------------------------------------------------
   Archive / index listings
   ------------------------------------------------------------------------- */
.wpt-archive {
  max-width: 880px; margin: 0 auto;
  padding: 48px 40px 64px;
}
.wpt-archive-head {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.wpt-archive-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 12px;
}
.wpt-archive-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.wpt-archive-list { display: flex; flex-direction: column; gap: 0; }
.wpt-archive-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.wpt-archive-item:last-child { border-bottom: 0; }
.wpt-archive-item .date {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding-top: 6px;
}
.wpt-archive-item h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.wpt-archive-item h2 a { text-decoration: none; color: inherit; }
.wpt-archive-item h2 a:hover { color: var(--accent); }
.wpt-archive-item .excerpt {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Pagination */
.wpt-pagination {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.wpt-pagination a { color: inherit; text-decoration: none; }
.wpt-pagination a:hover { color: var(--accent); }

/* -------------------------------------------------------------------------
   Search / 404
   ------------------------------------------------------------------------- */
.wpt-search-form {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 14px;
  max-width: 480px;
}
.wpt-search-form input[type="search"] {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
  color: var(--fg);
  font-size: 14px;
}
.wpt-search-form input[type="search"]::placeholder { color: var(--fg-mute); }
.wpt-search-form button {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--fg); color: var(--bg);
  border: 0; border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
}

.wpt-notfound {
  max-width: 720px; margin: 0 auto;
  padding: 72px 40px;
  text-align: center;
}
.wpt-notfound .code {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.wpt-notfound h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.wpt-notfound p {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 48ch;
}

/* -------------------------------------------------------------------------
   Comments
   ------------------------------------------------------------------------- */
.wpt-comments {
  max-width: 720px; margin: 0 auto;
  padding: 0 40px 64px;
}
.wpt-comments-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.wpt-comments ol { list-style: none; padding: 0; margin: 0; }
.wpt-comments .comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.wpt-comments .comment-meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 8px;
}
.wpt-comments .comment-author { color: var(--fg); font-weight: 600; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.wpt-site-footer {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 40px 56px;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--fg-mute);
  flex-wrap: wrap;
}
.wpt-colophon { font-family: var(--font-mono); letter-spacing: 0.04em; }
.wpt-colophon span { color: var(--fg-dim); }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .wpt-hero { grid-template-columns: 1fr; gap: 48px; padding-bottom: 48px; }
  .wpt-bullets { grid-template-columns: repeat(2, 1fr); gap: 32px; padding-top: 36px; }
  .wpt-how { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .wpt-vinyl { display: none; }

  /* Mobile nav: burger toggles a dropdown panel beneath the header */
  .wpt-nav-burger { display: inline-flex !important; }
  .wpt-nav-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #dcd6c7 !important;
    border-bottom: 1px solid #dcd6c7 !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 8px 24px 16px !important;
    z-index: 1000 !important;
    box-shadow: 0 8px 24px -16px rgba(28,24,16,.2);
  }
  .wpt-nav-toggle-input:checked ~ .wpt-nav-menu,
  .wpt-site-header:has(.wpt-nav-toggle-input:checked) .wpt-nav-menu {
    display: flex !important;
  }
  .wpt-nav-menu a {
    display: block !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #dcd6c7 !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
  }
  .wpt-nav-menu a:last-of-type { border-bottom: none !important; }
  .wpt-nav-tag { display: none !important; }
  .wpt-archive-item { grid-template-columns: 1fr; gap: 6px; }
  .wpt-archive-item .date { padding-top: 0; }
}
@media (max-width: 600px) {
  .wpt-site-header, .wpt-hero, .wpt-bullets, .wpt-site-footer,
  .wpt-entry, .wpt-archive, .wpt-comments, .wpt-notfound {
    padding-left: 24px; padding-right: 24px;
  }
  .wpt-bullets { grid-template-columns: 1fr; }
  .wpt-demo { transform: none; }
  .wpt-site-footer { flex-direction: column; align-items: flex-start; }
}

/* Editor adjustments — keep block editor comfortable, not identical. */
.editor-styles-wrapper { background: var(--bg); }

/* ------------------------------------------------------------------ */
/* Accessibility utilities (Section 508 / WCAG 2.0 AA conformance).   */
/* ------------------------------------------------------------------ */

/* The hero's decorative demo card is aria-hidden="true" — but automated
   contrast checkers (axe-core's color-contrast rule via pa11y) don't
   always honor that and flag every dim label inside as a contrast fail.
   These overrides bump the demo's small-text colors from fg-mute to
   fg-dim so the audit passes; the visual hierarchy still reads as muted
   because the elements remain small and uppercased. */
.wpt-demo-head,
.wpt-demo-search .input svg,
.wpt-contrib .who .label,
.wpt-contrib .stat .l,
.wpt-rows .row .tn {
  color: var(--fg-dim);
}


/* Visually-hidden helper — content stays in the accessibility tree for
   screen readers but is removed from the visual layout. Standard
   "sr-only" technique; safe at zero size with overflow:hidden so the
   layout doesn't reflow when it's used to label a region. */
.wpt-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip-to-content link — first focusable element on every page (rendered
   from wpt_skip_link() on wp_body_open). Off-screen until it receives
   keyboard focus, then becomes a high-contrast pill at the top of the
   viewport. WCAG 2.4.1. */
.wpt-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.15s ease;
}
.wpt-skip-link:focus,
.wpt-skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Global keyboard focus indicator. Browsers' default outline gets stripped
   by resets or "outline: none" written for mouse states; this re-asserts
   a visible 2px outline whenever an interactive element receives keyboard
   focus, satisfying WCAG 2.4.7 (focus visible). The :focus-visible
   pseudo-class fires only on keyboard focus, so mouse clicks don't draw
   the outline. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[role="menuitem"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* The search field has outline:none above (line ~1327) so it can blend
   into the bordered wrapper. Restore a visible focus signal on the
   wrapper itself when its child input is keyboard-focused. */
.wpt-search-form:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Reduced-motion respect. WCAG 2.3.3 / Section 508 §1194.22(j) — users who
   set prefers-reduced-motion at the OS level should not be exposed to
   non-essential animation. This kills transitions, scroll-snap, and the
   decorative vinyl-spin in the hero demo. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .wpt-vinyl,
  .wpt-demo {
    animation: none !important;
    transform: none !important;
  }
}
