:root {
      --bg: #F8F8F5;
      --text: #1a1a1a;
      --muted: #888;
      --rule: #e0ddd6;
      --link: #1a1a1a;
      --link-visited: #666;
      --card-bg: #F0EDE8;
      --card-border: #e0ddd6;
      --art-bg: #e8e6e0;
    }

    [data-theme="dark"] {
      --bg: #141210;
      --text: #E4E0D8;
      --muted: #5C5750;
      --rule: #272320;
      --link: #E4E0D8;
      --link-visited: #8A837A;
      --card-bg: #1c1916;
      --card-border: #272320;
      --art-bg: #2a2724;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { background: var(--bg); transition: background 0.35s ease; scrollbar-width: none; }
    html::-webkit-scrollbar { display: none; }

    body {
      font-family: 'Public Sans', system-ui, sans-serif;
      font-size: 15px;
      font-weight: 300;
      line-height: 1.75;
      color: var(--text);
      background: var(--bg);
      max-width: 600px;
      margin: 0 auto;
      padding: 80px 28px 80px;
      transition: background 0.35s ease, color 0.35s ease;
    }

    h1 {
      font-family: 'Bricolage Grotesque', system-ui, sans-serif;
      font-size: 2em;
      font-weight: 700;
      font-optical-sizing: auto;
      font-variation-settings: 'opsz' 12;
      letter-spacing: -0.03em;
      line-height: 1;
      margin-bottom: 32px;
    }

    p { margin-bottom: 20px; }
    p:last-child { margin-bottom: 0; }

    a {
      color: var(--link);
      text-underline-offset: 3px;
      text-decoration-thickness: 1px;
      transition: color 0.35s ease;
    }
    a:visited { color: var(--link-visited); }
    a:hover { text-decoration: none; }

    hr { border: none; margin: 36px 0; }

    /* ── Theme toggle ── */
    .theme-toggle {
      position: fixed;
      top: 28px;
      right: 32px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: none;
      background: #141210;
      cursor: pointer;
      padding: 0;
      transition: background 0.35s ease;
      outline: none;
    }
    .theme-toggle:hover { opacity: 0.7; }
    [data-theme="dark"] .theme-toggle { background: var(--text); }

    /* ── Section headers ── */
    .section-header { margin-bottom: 12px; }

    .section-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      color: var(--muted);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      transition: color 0.35s ease;
    }

    /* ── Expandable work list ── */
    .expand-list { list-style: none; }

    .expand-item { border-bottom: 1px solid var(--rule); overflow: hidden; max-height: 300px; opacity: 1; transition: border-color 0.35s ease, max-height 0.25s ease, opacity 0.2s ease; }
    .expand-item:first-child { border-top: 1px solid var(--rule); }

    .expand-trigger {
      width: 100%;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      background: none;
      border: none;
      padding: 14px 0;
      cursor: pointer;
      color: var(--text);
      font-family: inherit;
      font-size: 15px;
      font-weight: 300;
      text-align: left;
      transition: color 0.35s ease;
    }

    .expand-trigger:hover .expand-title {
      text-decoration: underline;
      text-underline-offset: 3px;
      text-decoration-thickness: 1px;
    }

    .expand-title { flex: 1; }

    .expand-tags {
      display: flex;
      gap: 5px;
      flex-shrink: 0;
      align-items: center;
    }

    .tag {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--muted);
      border: 1px solid var(--rule);
      border-radius: 3px;
      padding: 1px 6px;
      letter-spacing: 0.02em;
      transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
      white-space: nowrap;
      cursor: pointer;
    }

    .tag.active {
      color: var(--bg);
      background: var(--text);
      border-color: var(--text);
    }

    .expand-item.filtered { max-height: 0; opacity: 0; border-bottom-color: transparent; pointer-events: none; }

    .expand-icon {
      color: var(--muted);
      font-size: 16px;
      font-weight: 300;
      line-height: 1;
      flex-shrink: 0;
      margin-left: 8px;
      transition: transform 0.25s ease, color 0.35s ease;
    }

    .expand-item.open .expand-icon { transform: rotate(45deg); }

    .expand-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
    .expand-item.open .expand-body { grid-template-rows: 1fr; }
    .expand-body-inner { overflow: hidden; }

    .expand-detail {
      padding-bottom: 14px;
      font-size: 13.5px;
      color: var(--muted);
      line-height: 1.65;
      transition: color 0.35s ease;
    }

    /* ── Lately — horizontal strip ── */
    .now-panel {
      border: 1px solid var(--rule);
      border-radius: 6px;
      overflow: hidden;
      transition: border-color 0.35s ease;
    }

    .now-list {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .now-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 10px 12px;
      text-decoration: none;
      color: var(--text);
      transition: background 0.15s ease;
      min-width: 0;
    }
    .now-item + .now-item { border-left: 1px solid var(--rule); }
    .now-item:hover { background: var(--card-bg); text-decoration: none; color: var(--text); }

    .now-thumb {
      width: 48px;
      height: 48px;
      border-radius: 3px;
      object-fit: contain;
      background: transparent;
      flex-shrink: 0;
      display: block;
      transition: background 0.35s ease;
    }

    .now-text {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .now-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
      overflow: hidden;
      transition: color 0.35s ease;
    }

    .now-live-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--muted);
      flex-shrink: 0;
      transition: background 0.4s ease;
    }
    .now-live-dot.live {
      background: #1DB954;
      animation: pulse 2s ease-in-out infinite;
    }

    .now-title {
      font-size: 12.5px;
      font-weight: 400;
      line-height: 1.25;
      white-space: nowrap;
      color: var(--text);
      transition: color 0.35s ease, transform 0.4s ease;
    }

    .now-sub {
      font-size: 11px;
      line-height: 1.25;
      color: var(--muted);
      font-style: italic;
      white-space: nowrap;
      transition: color 0.35s ease, transform 0.4s ease;
    }

    /* ── Footer ── */
    .site-footer {
      margin-top: 36px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-links {
      display: flex;
      gap: 16px;
    }

    .footer-links a {
      font-size: 14px;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s ease;
    }
    .footer-links a:hover { color: var(--text); }

    .footer-meta {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--muted);
      white-space: nowrap;
      letter-spacing: 0.02em;
      transition: color 0.35s ease;
    }

    /* ── Image hover ── */
    .img-hover { cursor: default; }

    .img-hover-tooltip {
      display: none;
      position: fixed;
      z-index: 100;
      pointer-events: none;
    }

    .img-hover-tooltip img {
      display: block;
      width: 280px;
      border-radius: 6px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.3);
      object-fit: cover;
    }

    /* ── Pulse ── */
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }

    /* ── Mobile ── */
    @media (max-width: 540px) {
      body { padding: 52px 20px 72px; }
      .theme-toggle { top: 20px; right: 20px; }

      .expand-tags { display: none; }

      .now-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
      .now-item { padding: 8px; gap: 6px; min-width: 0; overflow: hidden; }
      .now-thumb { width: 34px; height: 34px; }
      .now-label { font-size: 7.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .now-live-dot { display: inline-block; vertical-align: middle; position: relative; top: -1px; }
      .now-title { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .now-sub { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

      .footer-meta { display: none; }
    }
