
    :root {
      color-scheme: light dark;
      --paper: #f7f3ec;
      --paper-2: #efe8db;
      --card: #fffaf2;
      --ink: #26231f;
      --muted: #6b665d;
      --line: #d8cfbf;
      --line-strong: #a89c89;
      --signal: #e96342;
      --signal-soft: #fbe3da;
      --signal-ink: #32140d;
      --chartreuse: #f0c94d;
      --chartreuse-soft: #fbf0cd;
      --teal: #3fa7b8;
      --leaf: #7fb069;
      --dark-panel: #25231f;
      --white: #fffaf2;
      --shadow: 0 16px 44px rgba(20, 24, 20, .10);
      --content: 1180px;
      --gutter: clamp(20px, 4vw, 56px);
      --radius: 20px;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --paper: #171614;
        --paper-2: #211f1c;
        --card: #23211d;
        --ink: #f5efe6;
        --muted: #c3bbb1;
        --line: #4b4640;
        --line-strong: #8e8479;
        --signal: #f07a59;
        --signal-soft: #3d231b;
        --signal-ink: #2b100a;
        --chartreuse: #e7c65c;
        --chartreuse-soft: #37301c;
        --dark-panel: #0f0e0d;
        --white: #fffaf2;
        --shadow: 0 16px 44px rgba(0, 0, 0, .28);
      }
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      overflow-x: hidden;
      background: var(--paper);
      color: var(--ink);
      font-family: "Manrope", sans-serif;
      font-size: 16px;
      line-height: 1.55;
      text-rendering: optimizeLegibility;
    }
    button, input, textarea, select { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    a { color: inherit; }
    img, svg { display: block; max-width: 100%; }
    ::selection { background: var(--chartreuse); color: #26231f; }
    :focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
    [hidden] { display: none !important; }

    .shell { max-width: var(--content); margin: 0 auto; padding-inline: var(--gutter); }
    .mono { font-family: "DM Mono", monospace; }
    .eyebrow {
      margin: 0 0 18px;
      font-family: "DM Mono", monospace;
      font-size: .76rem;
      font-weight: 500;
      letter-spacing: .05em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .eyebrow::before { content: "[ "; color: var(--signal); }
    .eyebrow::after { content: " ]"; color: var(--signal); }

    /* ---------- Nav ---------- */
    .site-nav {
      position: sticky;
      top: 0;
      z-index: 20;
      background: var(--paper);
      border-bottom: 1px solid var(--line);
    }
    main > section, footer { scroll-margin-top: 84px; }
    .site-nav__inner {
      min-height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
    }
    .wordmark {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      text-decoration: none;
      font-size: 1.05rem;
      font-weight: 800;
      letter-spacing: -.02em;
    }
    .wordmark .mascot { width: 40px; height: 38px; }
    .nav-links { display: flex; align-items: center; gap: 26px; }
    .nav-links a {
      text-decoration: none;
      font-size: .9rem;
      font-weight: 700;
    }
    .nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
    .nav-cta {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-height: 42px;
      padding: 0 18px;
      background: var(--ink);
      color: var(--paper);
      border-radius: 999px;
      text-decoration: none;
      font-size: .85rem;
      font-weight: 800;
    }
    .nav-cta span { transition: transform .2s ease; }
    .nav-cta:hover span { transform: translateY(2px); }
    .nav-cta:hover { text-decoration: none; }
    .menu-toggle {
      display: none;
      width: 44px;
      height: 44px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
    }
    .menu-toggle span,
    .menu-toggle::before,
    .menu-toggle::after {
      content: "";
      display: block;
      width: 19px;
      height: 2px;
      margin: 4px auto;
      background: currentColor;
      border-radius: 2px;
      transition: transform .2s ease, opacity .2s ease;
    }
    .menu-toggle[aria-expanded="true"] span { opacity: 0; }
    .menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

    /* ---------- Mascot ---------- */
    .mascot { overflow: visible; }
    .mascot-body { fill: var(--chartreuse); stroke: var(--ink); stroke-width: 5; }
    .mascot-eye { fill: var(--ink); }
    .mascot-cheek { fill: var(--signal); opacity: .55; }
    .mascot-mouth { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
    .mascot-antenna { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
    .mascot-star { fill: var(--signal); stroke: var(--ink); stroke-width: 3.5; transform-box: fill-box; transform-origin: center; animation: star-pulse 3.2s ease-in-out infinite; }
    .mascot-arm { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
    .mascot-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.8s infinite; }
    .mascot-bob { animation: bob 5s ease-in-out infinite; }
    .arm-wave { transform-box: fill-box; transform-origin: 15% 85%; animation: wave-idle 7s ease-in-out infinite; }
    @keyframes blink {
      0%, 91%, 100% { transform: scaleY(1); }
      94% { transform: scaleY(.08); }
      97% { transform: scaleY(1); }
    }
    @keyframes bob {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-9px); }
    }
    @keyframes star-pulse {
      0%, 100% { transform: scale(1) rotate(0deg); }
      50% { transform: scale(1.18) rotate(12deg); }
    }
    @keyframes wave-idle {
      0%, 84%, 100% { transform: rotate(0deg); }
      87% { transform: rotate(-17deg); }
      90% { transform: rotate(7deg); }
      93% { transform: rotate(-13deg); }
      96% { transform: rotate(0deg); }
    }

    /* ---------- Hero ---------- */
    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
      gap: clamp(28px, 5vw, 72px);
      align-items: center;
      padding-block: clamp(52px, 8vw, 104px) clamp(60px, 8vw, 110px);
    }
    .hero h1 {
      margin: 0;
      font-size: clamp(2.9rem, 6.4vw, 5.4rem);
      font-weight: 800;
      line-height: 1.02;
      letter-spacing: -.045em;
    }
    .hero h1 .quiet { display: block; color: var(--muted); font-weight: 600; }
    .hero-lede {
      margin: 26px 0 0;
      max-width: 540px;
      font-size: clamp(1.05rem, 1.7vw, 1.25rem);
      line-height: 1.6;
      font-weight: 500;
      color: var(--muted);
    }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
    .button {
      min-height: 52px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 0 24px;
      border: 2px solid var(--ink);
      border-radius: 999px;
      background: var(--signal);
      color: #fff;
      font-weight: 800;
      font-size: .95rem;
      cursor: pointer;
      text-decoration: none;
      box-shadow: 0 4px 0 var(--ink);
      transition: transform .15s ease, box-shadow .15s ease;
    }
    .button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
    .button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
    .button.secondary { background: var(--card); color: var(--ink); }
    .button.small { min-height: 44px; padding: 0 18px; font-size: .86rem; }
    .mascot-stage {
      position: relative;
      display: grid;
      place-items: center;
      padding: clamp(30px, 4vw, 54px);
      background: var(--card);
      border: 1.5px solid var(--line);
      border-radius: 32px;
      box-shadow: var(--shadow);
      background-image: radial-gradient(var(--line) 1.6px, transparent 1.7px);
      background-size: 22px 22px;
    }
    .mascot-stage .mascot { width: min(280px, 68vw); height: auto; }
    .chip {
      position: absolute;
      padding: 8px 14px;
      background: var(--card);
      border: 1.5px solid var(--line-strong);
      border-radius: 999px;
      font-family: "DM Mono", monospace;
      font-size: .68rem;
      font-weight: 500;
      box-shadow: 0 6px 16px rgba(20,24,20,.08);
      animation: chip-float 6s ease-in-out infinite;
    }
    .chip.c1 { top: 9%; left: 6%; }
    .chip.c2 { top: 16%; right: 5%; animation-delay: -2s; background: var(--chartreuse-soft); }
    .chip.c3 { bottom: 11%; left: 9%; animation-delay: -3.6s; background: var(--signal-soft); }
    .chip.c4 { bottom: 17%; right: 7%; animation-delay: -1.2s; }
    @keyframes chip-float {
      0%, 100% { transform: translateY(0) rotate(-1.5deg); }
      50% { transform: translateY(-8px) rotate(1.5deg); }
    }
    .mascot-caption {
      position: absolute;
      bottom: 14px;
      left: 0; right: 0;
      text-align: center;
      font-family: "DM Mono", monospace;
      font-size: .68rem;
      color: var(--muted);
    }

    /* ---------- Ticker ---------- */
    .ticker {
      border-block: 1px solid var(--line);
      background: var(--paper-2);
      overflow: hidden;
      padding-block: 12px;
    }
    .ticker-track {
      display: flex;
      width: max-content;
      animation: tick 30s linear infinite;
    }
    .ticker-track span {
      padding-inline: 18px;
      font-family: "DM Mono", monospace;
      font-size: .72rem;
      letter-spacing: .06em;
      white-space: nowrap;
    }
    .ticker-track span::after { content: "✳"; margin-left: 36px; color: var(--signal); }
    @keyframes tick { to { transform: translateX(-50%); } }

    /* ---------- Sections ---------- */
    section { border-bottom: 1px solid var(--line); }
    .section-pad { padding-block: clamp(70px, 9vw, 118px); }
    .section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
    .section-head h2 {
      margin: 0;
      font-size: clamp(2.1rem, 4.4vw, 3.6rem);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -.04em;
    }
    .section-head p { margin: 16px 0 0; color: var(--muted); font-size: 1.06rem; max-width: 600px; }

    .card {
      background: var(--card);
      border: 1.5px solid var(--line);
      border-radius: var(--radius);
      padding: clamp(22px, 3vw, 32px);
      box-shadow: 0 8px 26px rgba(20,24,20,.05);
    }
    .card-tag {
      display: inline-block;
      padding: 4px 11px;
      border-radius: 999px;
      background: var(--chartreuse-soft);
      font-family: "DM Mono", monospace;
      font-size: .64rem;
      letter-spacing: .05em;
      text-transform: uppercase;
    }
    .card-tag.orange { background: var(--signal-soft); }
    .card h3 { margin: 14px 0 6px; font-size: 1.35rem; letter-spacing: -.02em; }
    .card .card-sub { margin: 0 0 20px; color: var(--muted); font-size: .92rem; }
    .status-line {
      min-height: 1.5em;
      margin: 14px 0 0;
      font-weight: 700;
      font-size: .92rem;
    }
    .status-line:empty { margin: 0; }

    /* ---------- Games ---------- */
    .games-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
    }
    .score-row {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
      margin-top: 16px;
      font-family: "DM Mono", monospace;
      font-size: .72rem;
      color: var(--muted);
    }
    .score-row b { color: var(--ink); font-size: .85rem; }
    .echo-pads {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 6px;
    }
    .echo-pad {
      aspect-ratio: 1.35;
      border: 2px solid var(--ink);
      border-radius: 16px;
      cursor: pointer;
      transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
      box-shadow: 0 3px 0 var(--ink);
    }
    .echo-pad.pad-0 { background: var(--signal); }
    .echo-pad.pad-1 { background: var(--chartreuse); }
    .echo-pad.pad-2 { background: var(--teal); }
    .echo-pad.pad-3 { background: var(--leaf); }
    .echo-pad.lit { filter: brightness(1.3) saturate(1.15); transform: scale(1.05); box-shadow: 0 0 0 5px rgba(240,201,77,.35); }
    .echo-pad:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
    .echo-pad:disabled { cursor: default; opacity: .85; }
    .reaction-pad {
      display: grid;
      place-items: center;
      min-height: 190px;
      padding: 20px;
      border: 2px dashed var(--line-strong);
      border-radius: 16px;
      background: var(--paper-2);
      text-align: center;
      font-weight: 800;
      font-size: 1.15rem;
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none;
      transition: background .15s ease, border-color .15s ease;
    }
    .reaction-pad.waiting { background: var(--signal-soft); border-color: var(--signal); border-style: solid; }
    .reaction-pad.ready { background: var(--chartreuse); border-color: var(--ink); border-style: solid; color: #26231f; }
    .reaction-pad small { display: block; margin-top: 6px; font-weight: 600; font-size: .8rem; color: var(--muted); }
    .reaction-pad.ready small { color: #4d4316; }
    .guess-display {
      display: grid;
      place-items: center;
      min-height: 118px;
      margin-bottom: 6px;
      border-radius: 16px;
      background: var(--paper-2);
      border: 1.5px solid var(--line);
    }
    .guess-number { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
    .guess-range { font-family: "DM Mono", monospace; font-size: .68rem; color: var(--muted); margin-top: 6px; }
    .btn-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
    .btn-row .button { flex: 1 1 auto; }
  
    /* ---------- Tools ---------- */
    .tools { background: var(--paper-2); }
    .tool-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin-bottom: 20px;
    }
    .tool-tab {
      min-height: 46px;
      padding: 0 20px;
      border: 2px solid var(--line-strong);
      border-radius: 999px;
      background: var(--card);
      color: var(--ink);
      font-weight: 800;
      font-size: .88rem;
      cursor: pointer;
      transition: background .15s ease, border-color .15s ease, color .15s ease;
    }
    .tool-tab:hover { border-color: var(--ink); }
    .tool-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
    .tool-panel h3 { margin-top: 0; }
    .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
    .field label {
      font-family: "DM Mono", monospace;
      font-size: .7rem;
      letter-spacing: .05em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .field input[type="text"],
    .field input[type="email"],
    .field textarea {
      width: 100%;
      min-width: 0;
      border: 1.5px solid var(--line-strong);
      border-radius: 14px;
      background: var(--paper);
      color: var(--ink);
      padding: 14px 16px;
    }
    .field input[type="text"],
    .field input[type="email"] { min-height: 52px; }
    .field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
    .field textarea.output { min-height: 190px; }
    .field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
    .file-drop {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      padding: 22px;
      border: 2px dashed var(--line-strong);
      border-radius: 16px;
      background: var(--paper);
      cursor: pointer;
      transition: border-color .15s ease, background .15s ease;
    }
    .file-drop:hover, .file-drop.is-over { border-color: var(--signal); background: var(--signal-soft); }
    .file-drop strong { font-size: 1rem; }
    .file-drop span { color: var(--muted); font-size: .85rem; }
    .file-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
    .file-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
    .file-list li {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 9px 13px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper);
      font-size: .85rem;
      font-weight: 600;
    }
    .file-list li span:last-child { color: var(--muted); font-family: "DM Mono", monospace; font-size: .7rem; white-space: nowrap; }
    .stat-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 9px;
      margin-bottom: 16px;
    }
    .stat-box {
      padding: 12px 10px;
      border: 1.5px solid var(--line);
      border-radius: 14px;
      background: var(--paper);
      text-align: center;
    }
    .stat-box b { display: block; font-size: 1.3rem; letter-spacing: -.02em; }
    .stat-box span { font-family: "DM Mono", monospace; font-size: .6rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

    /* ---------- Lab ---------- */
    .lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .mood-meter {
      height: 22px;
      border: 2px solid var(--ink);
      border-radius: 999px;
      background: var(--paper);
      overflow: hidden;
      margin-top: 18px;
    }
    .mood-fill {
      height: 100%;
      width: 50%;
      background: var(--chartreuse);
      border-radius: 999px;
      transition: width .6s cubic-bezier(.22,1,.36,1), background .4s ease;
    }
    .mood-scale { display: flex; justify-content: space-between; margin-top: 7px; font-family: "DM Mono", monospace; font-size: .62rem; color: var(--muted); }
    .mood-verdict {
      margin: 18px 0 0;
      font-size: 1.25rem;
      font-weight: 800;
      letter-spacing: -.02em;
      min-height: 1.6em;
    }
    .mood-words { margin: 8px 0 0; color: var(--muted); font-size: .85rem; min-height: 1.4em; }
    .mixer-slots { display: grid; gap: 10px; margin-bottom: 4px; }
    .mixer-slot {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 16px;
      border: 1.5px solid var(--line);
      border-radius: 14px;
      background: var(--paper);
      font-weight: 700;
    }
    .mixer-slot .slot-label {
      flex: 0 0 auto;
      font-family: "DM Mono", monospace;
      font-size: .6rem;
      letter-spacing: .05em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .mixer-result {
      margin: 18px 0 0;
      padding: 18px;
      border-radius: 14px;
      background: var(--chartreuse-soft);
      font-size: 1.12rem;
      font-weight: 700;
      line-height: 1.45;
      min-height: 3.4em;
    }

    /* ---------- About / footer ---------- */
    .about-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
      gap: clamp(30px, 6vw, 80px);
      align-items: center;
    }
    .about-copy h2 {
      margin: 0 0 20px;
      font-size: clamp(2rem, 4.2vw, 3.4rem);
      font-weight: 800;
      line-height: 1.06;
      letter-spacing: -.04em;
    }
    .about-copy p { margin: 0 0 16px; color: var(--muted); font-size: 1.05rem; max-width: 560px; }
    .about-copy p strong { color: var(--ink); }
    .house-rules { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
    .house-rules li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
    .house-rules .rule-dot {
      flex: 0 0 auto;
      width: 26px; height: 26px;
      display: grid; place-items: center;
      border-radius: 50%;
      background: var(--chartreuse);
      border: 2px solid var(--ink);
      font-family: "DM Mono", monospace;
      font-size: .65rem;
      margin-top: 1px;
    }
    .about-card { text-align: center; }
    .about-card .mascot { width: 150px; margin: 0 auto 8px; }
    .about-card p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
    .about-card .mascot-name { font-weight: 800; color: var(--ink); font-size: 1.05rem; }

    footer { background: var(--dark-panel); color: var(--white); }
    .footer-inner {
      min-height: 140px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding-block: 34px;
    }
    .footer-statement { max-width: 480px; font-size: 1rem; font-weight: 700; }
    .footer-meta { text-align: right; color: #9da39a; font-family: "DM Mono", monospace; font-size: .68rem; line-height: 1.8; }
    .footer-meta a { color: var(--chartreuse); }

    .toast {
      position: fixed;
      z-index: 50;
      right: 22px;
      bottom: 22px;
      max-width: calc(100vw - 44px);
      padding: 14px 20px;
      background: var(--chartreuse);
      color: #26231f;
      border: 2px solid var(--ink);
      border-radius: 14px;
      box-shadow: var(--shadow);
      font-weight: 800;
      transform: translateY(160%);
      transition: transform .25s ease;
    }
    .toast.is-visible { transform: translateY(0); }

    /* ---------- Projects ---------- */
    .projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .project-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 18px;
      font-weight: 800;
      font-size: .92rem;
      text-decoration: none;
      border-bottom: 2px solid var(--signal);
      padding-bottom: 2px;
    }
    .project-link:hover { color: var(--signal); }
    .project-link span { transition: transform .15s ease; }
    .project-link:hover span { transform: translateX(3px); }
    .case-lines { margin: 16px 0 0; display: grid; gap: 12px; }
    .case-lines > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
    .case-lines dt {
      font-family: "DM Mono", monospace;
      font-size: .64rem;
      letter-spacing: .05em;
      text-transform: uppercase;
      color: var(--muted);
      padding-top: 3px;
    }
    .case-lines dd { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

    /* ---------- Blog ---------- */
    .blog { background: var(--paper-2); }
    .blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
    .post-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      margin-top: 12px;
      font-family: "DM Mono", monospace;
      font-size: .66rem;
      letter-spacing: .04em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .post details { margin-top: 16px; }
    .post summary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 16px;
      border: 2px solid var(--ink);
      border-radius: 999px;
      background: var(--card);
      font-weight: 800;
      font-size: .84rem;
      cursor: pointer;
      list-style: none;
      box-shadow: 0 3px 0 var(--ink);
      transition: transform .15s ease, box-shadow .15s ease;
    }
    .post summary::-webkit-details-marker { display: none; }
    .post summary:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
    .post summary .read-less { display: none; }
    .post details[open ] summary .read-more { display: none; }
    .post details[open ] summary .read-less { display: inline; }
    .post-body { margin-top: 18px; }
    .post-body p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; line-height: 1.65; }
    .post-body p strong { color: var(--ink); }
    .post-body ol, .post-body ul { margin: 0 0 14px; padding-left: 22px; color: var(--muted); font-size: .95rem; line-height: 1.65; }
    .post-body li { margin-bottom: 6px; }
    .post-body li strong { color: var(--ink); }

    /* ---------- FAQ ---------- */
    .faq-list { display: grid; gap: 12px; max-width: 820px; }
    .faq-item {
      border: 1.5px solid var(--line);
      border-radius: 16px;
      background: var(--card);
      overflow: hidden;
    }
    .faq-item summary {
      padding: 18px 22px;
      font-weight: 800;
      font-size: 1rem;
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after {
      content: "+";
      flex: 0 0 auto;
      width: 28px; height: 28px;
      display: grid; place-items: center;
      border: 2px solid var(--ink);
      border-radius: 50%;
      background: var(--chartreuse);
      font-size: 1rem;
      line-height: 1;
    }
    .faq-item[open ] summary::after { content: "–"; }
    .faq-item .faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; line-height: 1.65; }
    .faq-item .faq-answer p { margin: 0; }

    /* ---------- Contact ---------- */
    .contact { background: var(--paper-2); }
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
    .contact-card .big-mail {
      display: inline-block;
      margin-top: 4px;
      font-size: 1.15rem;
      font-weight: 800;
      letter-spacing: -.01em;
      color: var(--signal);
      text-decoration: none;
      border-bottom: 2px solid var(--signal);
      padding-bottom: 2px;
      word-break: break-all;
    }
    .contact-card .big-mail:hover { color: var(--ink); border-color: var(--ink); }
    .fine-print { margin: 14px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

    /* ---------- Build with me ---------- */
    .build-with-me { background: var(--paper); }
    .build-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: clamp(20px, 4vw, 48px);
      align-items: center;
    }
    .build-card h3 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.02em; }
    .build-card .card-sub { margin-bottom: 0; }

    .sr-only {
      position: absolute;
      width: 1px; height: 1px;
      padding: 0; margin: -1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      border: 0;
    }

    /* ---------- Pathway ---------- */
    .pathway {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 14px;
      padding-block: 22px;
    }
    .pathway a, .pathway button {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 9px 16px;
      border: 1.5px solid var(--line-strong);
      border-radius: 999px;
      background: var(--card);
      color: var(--ink);
      font-family: inherit;
      font-size: .86rem;
      font-weight: 800;
      text-decoration: none;
      cursor: pointer;
      transition: border-color .15s ease, transform .15s ease;
    }
    .pathway a:hover, .pathway button:hover { border-color: var(--ink); transform: translateY(-1px); }
    .pathway a span, .pathway button span {
      font-family: "DM Mono", monospace;
      font-size: .62rem;
      color: var(--signal);
    }
    .pathway-arrow { color: var(--muted); font-size: .85rem; }

    .project-link.as-button {
      background: none;
      font-family: inherit;
      cursor: pointer;
    }

    /* ---------- Blog tools ---------- */
    .blog-tools { margin-bottom: 26px; }
    .blog-search { max-width: 480px; margin-bottom: 14px; }
    .filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .filter-chip {
      min-height: 40px;
      padding: 0 16px;
      border: 2px solid var(--line-strong);
      border-radius: 999px;
      background: var(--card);
      color: var(--ink);
      font-weight: 700;
      font-size: .82rem;
      cursor: pointer;
      transition: background .15s ease, border-color .15s ease, color .15s ease;
    }
    .filter-chip:hover { border-color: var(--ink); }
    .filter-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
    .blog-count {
      margin: 14px 0 0;
      font-family: "DM Mono", monospace;
      font-size: .68rem;
      letter-spacing: .04em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .blog-empty {
      margin-bottom: 26px;
      padding: 20px 22px;
      border: 1.5px dashed var(--line-strong);
      border-radius: 16px;
      background: var(--card);
      color: var(--muted);
      font-size: .95rem;
      line-height: 1.6;
    }
    .blog-empty strong { color: var(--ink); }
    .post-sources { margin: 14px 0 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); }
    .post-sources h4 { margin: 0 0 8px; font-family: "DM Mono", monospace; font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
    .post-sources ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; line-height: 1.6; }

    /* ---------- Mini Lab ---------- */
    .ml-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
    .ml-subhead { margin-top: 26px; }
    .ml-palette-group { margin-bottom: 18px; }
    .ml-palette-group h4 {
      margin: 0 0 9px;
      font-family: "DM Mono", monospace;
      font-size: .62rem;
      letter-spacing: .05em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .ml-palette-btns { display: grid; gap: 8px; }
    .ml-add-btn {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
      width: 100%;
      padding: 11px 14px;
      border: 1.5px solid var(--line-strong);
      border-radius: 13px;
      background: var(--paper);
      color: var(--ink);
      text-align: left;
      cursor: pointer;
      transition: border-color .15s ease, background .15s ease, transform .15s ease;
    }
    .ml-add-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
    .ml-add-btn strong { font-size: .9rem; }
    .ml-add-btn span { color: var(--muted); font-size: .76rem; line-height: 1.4; }
    .ml-templates { display: flex; flex-wrap: wrap; gap: 8px; }
    .ml-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
    .ml-stage-head h3 { margin: 0; }
    .ml-head-btns { margin-top: 0; }
    .ml-chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
    .ml-block {
      position: relative;
      padding: 14px 16px 16px;
      border: 1.5px solid var(--line);
      border-left: 6px solid var(--line-strong);
      border-radius: 14px;
      background: var(--paper);
      transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .ml-block + .ml-block { margin-top: 26px; }
    .ml-block + .ml-block::before {
      content: "↓";
      position: absolute;
      top: -23px;
      left: 22px;
      color: var(--muted);
      font-size: .85rem;
    }
    .ml-block.stage-input { border-left-color: var(--teal); }
    .ml-block.stage-logic { border-left-color: var(--chartreuse); }
    .ml-block.stage-action { border-left-color: var(--signal); }
    .ml-block.is-running {
      border-color: var(--ink);
      background: var(--chartreuse-soft);
      box-shadow: 0 0 0 4px rgba(240, 201, 77, .35);
    }
    .ml-block.is-done { border-color: var(--line-strong); }
    .ml-block-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .ml-stage-tag {
      padding: 3px 9px;
      border-radius: 999px;
      background: var(--paper-2);
      border: 1px solid var(--line);
      font-family: "DM Mono", monospace;
      font-size: .58rem;
      letter-spacing: .05em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .ml-block-head strong { font-size: .98rem; }
    .ml-block-btns { margin-left: auto; display: flex; gap: 6px; }
    .ml-icon-btn {
      width: 32px; height: 32px;
      display: grid; place-items: center;
      border: 1.5px solid var(--line-strong);
      border-radius: 9px;
      background: var(--card);
      color: var(--ink);
      font-size: .8rem;
      cursor: pointer;
    }
    .ml-icon-btn:hover { border-color: var(--ink); }
    .ml-icon-btn:disabled { opacity: .35; cursor: default; }
    .ml-config { display: grid; gap: 10px; margin-top: 12px; }
    .ml-config .field { margin-bottom: 0; }
    .ml-config textarea { min-height: 74px; }
    .ml-config select {
      width: 100%;
      min-height: 48px;
      padding: 10px 12px;
      border: 1.5px solid var(--line-strong);
      border-radius: 12px;
      background: var(--paper);
      color: var(--ink);
    }
    .ml-config input[type="number"] {
      width: 100%;
      min-height: 48px;
      padding: 10px 12px;
      border: 1.5px solid var(--line-strong);
      border-radius: 12px;
      background: var(--paper);
      color: var(--ink);
    }
    .ml-preview {
      margin: 12px 0 0;
      padding: 9px 12px;
      border-radius: 10px;
      background: var(--paper-2);
      font-family: "DM Mono", monospace;
      font-size: .7rem;
      color: var(--muted);
      word-break: break-word;
    }
    .ml-preview:empty { display: none; }
    .ml-empty { margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
    .ml-log {
      margin-top: 18px;
      padding: 14px 16px;
      border-radius: 14px;
      background: var(--dark-panel);
      color: #d8e2cf;
      font-family: "DM Mono", monospace;
      font-size: .72rem;
      line-height: 1.75;
      max-height: 220px;
      overflow-y: auto;
    }
    .ml-log:empty { display: none; }
    .ml-log .ml-log-stop { color: #f0a58e; }
    .ml-log .ml-log-ok { color: #a8d08a; }
    .ml-result {
      margin-top: 14px;
      padding: 16px;
      border: 2px solid var(--ink);
      border-radius: 14px;
      background: var(--chartreuse-soft);
    }
    .ml-result-label {
      font-family: "DM Mono", monospace;
      font-size: .6rem;
      letter-spacing: .05em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .ml-result pre {
      margin: 8px 0 0;
      font-family: "DM Mono", monospace;
      font-size: .85rem;
      white-space: pre-wrap;
      word-break: break-word;
      max-height: 240px;
      overflow-y: auto;
    }
    .ml-project-bar {
      margin-top: 22px;
      padding-top: 20px;
      border-top: 1.5px solid var(--line);
      display: grid;
      gap: 14px;
    }
    .ml-save-field, .ml-load-field { margin-bottom: 0; }
    .ml-project-btns { margin-top: 0; }
    .ml-import-label { margin: 0; }
    .ml-load-row { display: flex; gap: 8px; flex-wrap: wrap; }
    .ml-load-row select {
      flex: 1 1 160px;
      min-height: 44px;
      padding: 8px 12px;
      border: 1.5px solid var(--line-strong);
      border-radius: 12px;
      background: var(--paper);
      color: var(--ink);
    }

    /* ---------- Pip ---------- */
    .pip-fab {
      position: fixed;
      right: 20px;
      bottom: 20px;
      z-index: 60;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-height: 56px;
      padding: 8px 18px 8px 10px;
      border: 2px solid var(--ink);
      border-radius: 999px;
      background: var(--chartreuse);
      color: #26231f;
      font-weight: 800;
      font-size: .9rem;
      cursor: pointer;
      box-shadow: 0 6px 0 var(--ink), var(--shadow);
      transition: transform .15s ease, box-shadow .15s ease;
    }
    .pip-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink), var(--shadow); }
    .pip-fab .mascot { width: 34px; height: 32px; }
    .pip-panel {
      position: fixed;
      right: 20px;
      bottom: 20px;
      z-index: 61;
      width: min(400px, calc(100vw - 24px));
      max-height: min(640px, calc(100dvh - 40px));
      display: flex;
      flex-direction: column;
      background: var(--card);
      border: 2px solid var(--ink);
      border-radius: 22px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .pip-head {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 16px 18px 12px;
      border-bottom: 1.5px solid var(--line);
      background: var(--chartreuse-soft);
    }
    .pip-head .mascot { width: 46px; height: 43px; flex: 0 0 auto; }
    .pip-head-copy { flex: 1 1 auto; min-width: 0; }
    .pip-head-copy h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }
    .pip-head-copy p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
    .pip-close {
      flex: 0 0 auto;
      width: 34px; height: 34px;
      display: grid; place-items: center;
      border: 1.5px solid var(--line-strong);
      border-radius: 50%;
      background: var(--card);
      color: var(--ink);
      font-size: 1.05rem;
      line-height: 1;
      cursor: pointer;
    }
    .pip-close:hover { border-color: var(--ink); }
    .pip-messages {
      flex: 1 1 auto;
      overflow-y: auto;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .pip-msg {
      max-width: 88%;
      padding: 11px 14px;
      border-radius: 16px;
      font-size: .9rem;
      line-height: 1.55;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .pip-msg.pip { align-self: flex-start; background: var(--paper-2); border: 1.5px solid var(--line); border-bottom-left-radius: 5px; }
    .pip-msg.user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
    .pip-msg strong { font-weight: 800; }
    .pip-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
    .pip-typing i {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--muted);
      animation: pip-dot 1s ease-in-out infinite;
    }
    .pip-typing i:nth-child(2) { animation-delay: .15s; }
    .pip-typing i:nth-child(3) { animation-delay: .3s; }
    @keyframes pip-dot {
      0%, 100% { transform: translateY(0); opacity: .5; }
      50% { transform: translateY(-4px); opacity: 1; }
    }
    .pip-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; }
    .pip-chips:empty { display: none; }
    .pip-chip {
      min-height: 36px;
      padding: 0 13px;
      border: 1.5px solid var(--line-strong);
      border-radius: 999px;
      background: var(--card);
      color: var(--ink);
      font-size: .78rem;
      font-weight: 700;
      cursor: pointer;
    }
    .pip-chip:hover { border-color: var(--ink); background: var(--chartreuse-soft); }
    .pip-form {
      display: flex;
      gap: 8px;
      padding: 12px 16px;
      border-top: 1.5px solid var(--line);
    }
    .pip-form input {
      flex: 1 1 auto;
      min-width: 0;
      min-height: 46px;
      padding: 10px 14px;
      border: 1.5px solid var(--line-strong);
      border-radius: 999px;
      background: var(--paper);
      color: var(--ink);
    }
    .pip-fine { margin: 0; padding: 0 16px 14px; color: var(--muted); font-size: .72rem; line-height: 1.5; }

    .footer-stats {
      background: none;
      border: 0;
      padding: 0;
      color: var(--chartreuse);
      font: inherit;
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .toast { right: auto; left: 22px; bottom: 22px; }

    @media (max-width: 960px) {
      .ml-layout { grid-template-columns: 1fr; }
    }
    @media (max-width: 640px) {
      .pip-panel { right: 12px; bottom: 12px; }
      .pip-fab { right: 12px; bottom: 12px; }
      .pathway-arrow { display: none; }
      .ml-load-row .button { flex: 1 1 auto; }
    }

    /* ---------- About page view ---------- */
    .page-view > section { scroll-margin-top: 84px; }
    .back-row { margin-top: 34px; }

    @media (max-width: 960px) {
      .projects-grid { grid-template-columns: 1fr; }
      .blog-grid { grid-template-columns: 1fr; }
      .contact-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 960px) {
      .games-grid { grid-template-columns: 1fr; }
      .lab-grid { grid-template-columns: 1fr; }
      .hero { grid-template-columns: 1fr; }
      .mascot-stage { order: -1; padding-block: 44px 58px; }
      .about-grid { grid-template-columns: 1fr; }
      .about-card { max-width: 420px; }
    }
    @media (max-width: 900px) {
      .nav-links {
        position: absolute;
        top: 70px;
        left: 0; right: 0;
        display: none;
        padding: 20px var(--gutter) 26px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
      }
      .nav-links.is-open { display: flex; }
      .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
      .nav-links .nav-cta { margin-top: 16px; border-bottom: 0; justify-content: center; }
      .menu-toggle { display: block; }
    }
    @media (max-width: 640px) {
      .stat-grid { grid-template-columns: repeat(2, 1fr); }
      .chip.c1 { left: 2%; } .chip.c2 { right: 2%; }
      .chip.c3 { left: 3%; } .chip.c4 { right: 3%; }
      .chip { font-size: .6rem; padding: 6px 10px; }
      .hero-actions .button { flex: 1 1 100%; }
      .btn-row .button { flex: 1 1 40%; }
      .build-card { grid-template-columns: 1fr; }
      .build-card .button { justify-self: start; }
      .footer-inner { align-items: flex-start; flex-direction: column; }
      .footer-meta { text-align: left; }
      .guess-number { font-size: 2.8rem; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    }

    /* ---------- Situation Room ---------- */
    .sitroom { background: var(--paper-2); }
    .sit-controls { display: grid; gap: 16px; margin-bottom: 20px; }
    .sit-loc-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
    .sit-loc-row .field { flex: 1 1 220px; margin-bottom: 0; }
    .sit-loc-row select { width: 100%; min-height: 52px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--paper); color: var(--ink); }
    .sit-save { display: flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 700; color: var(--muted); cursor: pointer; }
    .sit-save input { width: 19px; height: 19px; accent-color: var(--signal); }
    .sit-board { margin-bottom: 20px; }
    .sit-nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; margin-top: 14px; }
    .sit-node { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-family: "DM Mono", monospace; font-size: .66rem; letter-spacing: .03em; }
    .sit-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
    .sit-node[data-state="waiting"] .sit-dot { background: var(--chartreuse); animation: pip-dot 1s ease-in-out infinite; }
    .sit-node[data-state="connected"] .sit-dot { background: var(--leaf); }
    .sit-node[data-state="error"] .sit-dot { background: var(--signal); }
    .sit-node .sit-node-state { margin-left: auto; color: var(--muted); text-transform: uppercase; font-size: .56rem; }
    .sit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
    .sit-card h3 { margin-top: 12px; }
    .sit-big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
    .sit-rows { display: grid; gap: 7px; margin-top: 12px; font-size: .9rem; color: var(--muted); }
    .sit-rows b { color: var(--ink); }
    .sit-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--chartreuse-soft); font-size: .88rem; font-weight: 700; line-height: 1.5; }
    .sit-alert { border: 1.5px solid var(--signal); border-radius: 12px; padding: 13px 15px; margin-top: 12px; background: var(--signal-soft); }
    .sit-alert h4 { margin: 0 0 5px; font-size: .98rem; }
    .sit-alert p { margin: 0 0 7px; font-size: .86rem; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }
    .sit-alert .sit-alert-meta { font-family: "DM Mono", monospace; font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
    .sit-skel { display: grid; gap: 9px; margin-top: 14px; }
    .sit-skel i { display: block; height: 15px; border-radius: 7px; background: var(--paper-2); animation: pip-dot 1.2s ease-in-out infinite; }
    .sit-skel i:nth-child(2) { width: 72%; } .sit-skel i:nth-child(3) { width: 48%; }
    .sit-err { margin-top: 12px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
    .sit-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-family: "DM Mono", monospace; font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
    .sit-bars { display: flex; align-items: end; gap: 5px; height: 74px; margin-top: 16px; }
    .sit-bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
    .sit-bar i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: var(--teal); }
    .sit-bar span { font-family: "DM Mono", monospace; font-size: .52rem; color: var(--muted); white-space: nowrap; }
    .sit-radar-img { width: 100%; margin-top: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper-2); image-rendering: auto; }
    .sit-toggle { display: flex; gap: 8px; margin-top: 12px; }
    .sit-toggle .filter-chip { min-height: 38px; }
    .sit-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
    .sit-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: .86rem; line-height: 1.5; }
    .sit-list li b { color: var(--ink); }
    .sit-list li span { color: var(--muted); }
    @media (max-width: 960px) { .sit-grid { grid-template-columns: 1fr; } }
  
/* ---- manual theme override (core.js sets data-theme; default follows OS) ---- */
:root[data-theme="dark"] {
  --paper: #171614; --paper-2: #211f1c; --card: #23211d; --ink: #f5efe6;
  --muted: #c3bbb1; --line: #4b4640; --line-strong: #8e8479; --signal: #f07a59;
  --signal-soft: #3d231b; --signal-ink: #2b100a; --chartreuse: #e7c65c;
  --chartreuse-soft: #37301c; --dark-panel: #0f0e0d; --white: #fffaf2;
  --shadow: 0 16px 44px rgba(0, 0, 0, .28);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="light"] {
    --paper: #f7f3ec; --paper-2: #efe8db; --card: #fffaf2; --ink: #26231f;
    --muted: #6b665d; --line: #d8cfbf; --line-strong: #a89c89; --signal: #e96342;
    --signal-soft: #fbe3da; --signal-ink: #32140d; --chartreuse: #f0c94d;
    --chartreuse-soft: #fbf0cd; --dark-panel: #25231f; --white: #fffaf2;
    --shadow: 0 16px 44px rgba(20, 24, 20, .10);
  }
}
/* ---- shared site chrome ---- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--signal); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }
.site-head { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { max-width: var(--content); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; color: var(--muted); font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.theme-btn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 10px; cursor: pointer; color: var(--ink); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 10px; cursor: pointer; }
@media (max-width: 860px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 16px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav .theme-btn { margin-top: 6px; }
}
.site-foot { border-top: 1px solid var(--line); margin-top: 72px; }
.site-foot .wrap { max-width: var(--content); margin: 0 auto; padding: 28px var(--gutter); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.site-foot a { color: var(--ink); }
