    /* =============================================
       TOKENS
    ============================================= */
    :root {
      --red:    #d0021b;
      --black:  #111;
      --mid:    #555;
      --light:  #888;
      --rule:   #e0e0e0;
      --bg:     #f5f5f5;
      --sidebar-w: 280px;
      --gap: 48px;
      --nav-h: 56px;
    }

    [data-theme="dark"] {
      --black:  #f0f0f0;
      --mid:    #aaa;
      --light:  #666;
      --rule:   #2a2a2a;
      --bg:     #202020;
      --red:    #ff2a3d;
    }

    /* Theme toggle button */
    .theme-toggle {
      width: 32px;
      height: 32px;
      border: 1px solid var(--rule);
      background: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: border-color 0.2s, background 0.2s;
    }

    .theme-toggle:hover {
      border-color: var(--black);
      background: var(--black);
    }

    .theme-toggle:hover svg { stroke: var(--bg); }

    @keyframes icon-shake {
      0%   { transform: rotate(0deg); }
      20%  { transform: rotate(-12deg); }
      40%  { transform: rotate(10deg); }
      60%  { transform: rotate(-7deg); }
      75%  { transform: rotate(5deg); }
      88%  { transform: rotate(-2deg); }
      100% { transform: rotate(0deg); }
    }

    .theme-toggle svg {
      width: 15px;
      height: 15px;
      stroke: var(--black);
      fill: none;
      stroke-width: 1.75;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: stroke 0.2s;
    }

    .theme-toggle:hover svg {
      animation: icon-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    }

    .theme-toggle.shake svg {
      animation: icon-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    }

    .icon-sun { display: none; }

    [data-theme="dark"] .icon-moon { display: none; }
    [data-theme="dark"] .icon-sun  { display: block; }

    /* =============================================
       RESET
    ============================================= */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    a { text-decoration: none; color: inherit; }

    body {
      font-family: 'Chivo', sans-serif;
      background: var(--bg);
      color: var(--black);
      -webkit-font-smoothing: antialiased;
      transition: background 0.3s, color 0.3s;
    }

    /* =============================================
       NAV
    ============================================= */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      height: var(--nav-h);
      background: var(--bg);
      border-bottom: 1px solid var(--rule);
      display: flex;
      align-items: center;
      transition: background 0.3s, border-color 0.3s;
    }

    .nav-inner {
      width: 100%;
      max-width: 1160px;
      margin: 0 auto;
      padding: 0 40px;
      display: flex;
      align-items: center;
      gap: 32px;
    }

    .nav-name {
      display: flex;
      align-items: center;
      margin-right: auto;
      color: var(--mid);
      transition: color 0.15s, transform 0.15s;
    }

    .nav-name:hover { color: var(--red); transform: scale(1.1); }

    .nav-links {
      list-style: none;
      display: flex;
      gap: 28px;
    }

    .nav-links a {
      display: inline-block;
      font-size: 13px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--mid);
      transition: color 0.15s, transform 0.15s;
    }

    .nav-links a:hover { color: var(--red); }
    .nav-links a.active, .nav-links a.active:hover { color: var(--black); font-weight: 700; }

    /* =============================================
       PAGE GRID
    ============================================= */
    .page-wrapper {
      max-width: 1160px;
      margin: 0 auto;
      padding: 32px 40px 80px;
      display: grid;
      grid-template-columns: 1fr var(--sidebar-w);
      gap: var(--gap);
    }

    /* =============================================
       ARTICLE CONTENT
    ============================================= */
    .sub-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0 20px;
      border-bottom: none;
    }

    .sub-nav a {
      font-size: 13px;
      font-weight: 400;
      color: var(--light);
      white-space: nowrap;
      line-height: 2;
      transition: color 0.15s;
    }

    .sub-nav a:hover { color: var(--black); }

    .sub-nav a.is-current {
      font-weight: 700;
      color: var(--black);
    }

    .article-content a {
      color: var(--red);
      transition: color 0.15s;
    }

    .article-content {
      min-width: 0;
      overflow: hidden;
      overflow-wrap: break-word;
      word-break: break-word;
    }

    .article-content a:hover { color: var(--black); }

    /* Article header */
    .article-header {
      margin-top: 8px;
      margin-bottom: 24px;
    }

    .article-tag {
      display: inline-block;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 10px;
    }

    .article-title {
      font-size: 24px;
      font-weight: 600;
      line-height: 1.2;
      margin-bottom: 10px;
    }

    .article-meta {
      font-size: 14px;
      color: var(--light);
      margin-bottom: 24px;
    }

    .article-subtitle {
      font-size: 17px;
      font-weight: 400;
      line-height: 1.45;
      color: var(--mid);
      margin-bottom: 10px;
    }

    .article-substack-source {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--mid);
      border: 1px solid var(--rule);
      padding: 4px 10px;
      margin-bottom: 24px;
      transition: border-color 0.2s, color 0.2s;
    }

    .article-substack-source a {
      color: inherit;
      text-decoration: none;
      transition: color 0.2s;
    }

    .article-substack-source:hover {
      border-color: var(--red);
      color: var(--red);
    }

    /* Article body */
    .article-body p {
      font-size: 15px;
      line-height: 1.75;
      color: var(--mid);
      margin-bottom: 20px;
    }

    .article-body h2 {
      font-size: 20px;
      font-weight: 600;
      margin-top: 40px;
      margin-bottom: 16px;
      color: var(--black);
    }

    .article-body h3 {
      font-size: 16px;
      font-weight: 700;
      margin-top: 32px;
      margin-bottom: 12px;
      color: var(--black);
    }

    .article-body blockquote {
      border-left: 3px solid var(--red);
      margin: 32px 0;
      padding: 0 0 0 24px;
    }

    .article-body blockquote p {
      font-size: 18px;
      font-style: italic;
    }

    .article-body ul, .article-body ol {
      font-size: 15px;
      line-height: 1.75;
      color: var(--mid);
      margin-bottom: 20px;
      padding-left: 24px;
    }

    .article-body li {
      margin-bottom: 8px;
    }

    .article-body img {
      width: 100% !important;
      max-width: 100% !important;
      height: auto !important;
      display: block;
      margin: 32px 0;
    }

    .article-body figure,
    .article-body .captioned-image-container {
      max-width: 100%;
      margin: 0;
      padding: 0;
    }

    .article-body iframe {
      max-width: 100%;
    }

    .article-body .youtube-wrap {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%;
      height: 0;
      overflow: hidden;
      margin-bottom: 24px;
    }

    .article-body .youtube-wrap iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .article-body figcaption {
      font-size: 13px;
      color: var(--light);
      font-style: italic;
      margin-top: -24px;
      margin-bottom: 32px;
    }

    .article-body hr {
      border: none;
      border-top: 1px solid var(--rule);
      margin: 40px 0;
    }

    /* Prev / Next navigation */
    .article-pager {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 24px;
      margin-top: 56px;
      padding-top: 24px;
      border-top: 1px solid var(--rule);
    }

    .article-pager-link {
      display: flex;
      flex-direction: column;
      gap: 4px;
      transition: color 0.15s;
      max-width: 45%;
    }

    .article-pager-link:hover .pager-direction,
    .article-pager-link:hover .pager-title { color: var(--red); }

    .article-pager-link .pager-direction {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--light);
      transition: color 0.15s;
    }

    .article-pager-link .pager-title {
      font-size: 15px;
      font-weight: 400;
      color: var(--black);
      transition: color 0.15s;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .article-pager-link.next {
      text-align: right;
      margin-left: auto;
    }

    /* =============================================
       SIDEBAR
    ============================================= */
    .sidebar {
      position: sticky;
      top: calc(var(--nav-h) + 48px);
      align-self: start;
      margin-top: 33.5px;
    }

    .sidebar-photo {
      width: 100%;
      aspect-ratio: 3 / 3.6;
      overflow: hidden;
      margin-bottom: 20px;
    }

    .sidebar-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .sidebar-name {
      font-size: 20px;
      font-weight: 400;
      letter-spacing: 0;
      line-height: 1.2;
      margin-bottom: 4px;
    }

    .sidebar-tagline {
      font-size: 14px;
      color: var(--mid);
      line-height: 1.5;
    }

    .sidebar-bio {
      font-size: 14px;
      color: var(--mid);
      line-height: 1.6;
      margin-top: 16px;
    }

    /* Social links */
    .sidebar-bio-link {
      color: var(--red);
      font-weight: 700;
      font-size: 13px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: gap 0.15s;
    }

    .sidebar-bio-link:hover { gap: 8px; }

    /* Social links */
    .sidebar-social {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-top: 16px;
      margin-top: 12px;
      border-top: 1px solid var(--rule);
      margin-bottom: 24px;
    }

    .social-row {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: var(--mid);
      transition: color 0.15s;
    }

    .social-row:hover { color: var(--black); }

    .social-row svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
      flex-shrink: 0;
    }

    .social-row span {
      white-space: nowrap;
    }

    /* =============================================
       SECTION LABELS + NOTES FOOTER
    ============================================= */
    .section-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--light);
      margin-bottom: 20px;
    }

    .notes-footer {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-top: 24px;
    }

    /* =============================================
       VIDEO MODAL
    ============================================= */
    .video-modal {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(0, 0, 0, 0.85);
      align-items: center;
      justify-content: center;
      padding: 40px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .video-modal.is-open { display: flex; }
    .video-modal.is-open.is-visible { opacity: 1; }
    .video-modal-inner { width: 100%; max-width: 800px; cursor: default; position: relative; }

    .video-modal-player {
      position: relative; width: 100%; aspect-ratio: 16 / 9;
      background: #000; overflow: hidden;
      transition: box-shadow 1s ease;
    }

    .video-modal-thumb {
      position: absolute; inset: 0; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
    }

    .video-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

    .video-modal-thumb .play-btn {
      position: absolute; width: 68px; height: 68px;
      background: rgba(0,0,0,0.7); border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s, transform 0.2s;
    }

    .video-modal-thumb:hover .play-btn { background: var(--red); transform: scale(1.08); }
    .play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 3px; }
    .video-modal-thumb.is-hidden { display: none; }

    .video-modal-iframe {
      position: absolute; inset: 0; width: 100%; height: 100%;
      border: none; display: none;
    }

    .video-modal-iframe.is-playing { display: block; }

    .video-modal-caption {
      font-size: 14px; color: #aaa; line-height: 1.5;
      min-height: 42px; text-align: center; flex: 1; padding: 0 20px;
      margin-top: 16px;
    }

    .video-modal-close {
      position: absolute; top: 20px; right: 24px;
      width: 36px; height: 36px; background: none; border: none;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
    }

    .video-modal-close svg {
      width: 20px; height: 20px; stroke: #888; fill: none;
      stroke-width: 2; stroke-linecap: round; transition: stroke 0.15s;
    }

    .video-modal-close:hover svg { stroke: #fff; }

    .video-modal-nav {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 32px; height: 32px; background: none;
      border: 1px solid rgba(255,255,255,0.25); border-radius: 0;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: border-color 0.15s, background 0.15s; z-index: 10;
    }

    .video-modal-nav:hover { background: var(--red); border-color: var(--red); }

    .video-modal-nav svg {
      width: 14px; height: 14px; stroke: #fff; fill: none;
      stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
      transition: stroke 0.15s;
    }

    .video-modal-prev { left: -60px; }
    .video-modal-next { right: -60px; }

    .video-modal-nav.is-disabled { opacity: 0.2; cursor: default; pointer-events: none; }

    @media (max-width: 900px) {
      .video-modal-prev, .video-modal-next {
        position: static; transform: none;
        border-color: rgba(255,255,255,0.25);
        width: 44px; height: 44px; flex-shrink: 0;
      }
      .video-modal-prev svg, .video-modal-next svg { stroke: #fff; }
      .video-modal-nav:hover svg { stroke: #fff; }
      .video-modal { padding: 24px 16px; }
      .video-modal-inner { display: flex; flex-direction: column; align-items: center; }
      .video-modal-player { width: 100%; }
      .video-modal-arrows {
        display: flex; align-items: center; gap: 0;
        margin-top: 12px; justify-content: space-between; width: 100%;
      }
      .video-modal-caption { margin-top: 0; min-height: auto; }
    }

    @media (min-width: 901px) {
      .video-modal-arrows { display: contents; }
    }

    /* =============================================
       FOOTER
    ============================================= */
    footer, footer.site-footer {
      max-width: 1160px;
      margin: 0 auto;
      padding: 24px 40px;
      border-top: 1px solid var(--rule);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      color: var(--light);
      transition: border-color 0.3s;
    }

    .footer-contact {
      display: inline-block;
      padding: 12px 28px;
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border: 1px solid var(--rule);
      color: var(--mid);
      text-align: center;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
    }

    .footer-contact:hover {
      background: var(--red);
      color: var(--bg);
      border-color: var(--red);
    }

    /* =============================================
       RESPONSIVE
    ============================================= */
    @media (max-width: 900px) {
      .page-wrapper {
        grid-template-columns: 1fr;
        padding: 32px 24px 0;
        gap: 48px;
      }

      .sidebar {
        position: static;
        display: contents;
      }

      .sidebar-intro {
        order: 98;
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 16px 24px;
        align-items: start;
      }

      .sidebar-intro .sidebar-photo {
        grid-row: 1 / 3;
        width: 200px;
        margin-bottom: 0;
      }

      .sidebar-intro .sidebar-text { grid-column: 2; grid-row: 1 / 3; align-self: center; }
      .sidebar-intro .sidebar-name { grid-column: 2; grid-row: 1; align-self: end; padding-bottom: 2px; }
      .sidebar-intro .sidebar-tagline { grid-column: 2; grid-row: 2; align-self: start; }

      .sidebar-intro {
        padding-top: 0;
        margin-bottom: 0;
      }
      .sidebar-social {
        order: 99;
        padding-top: 24px;
        padding-bottom: 24px;
        margin-top: -24px;
        margin-bottom: 0;
        border-top: 1px solid var(--rule);
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 24px;
        row-gap: 10px;
      }
      .sidebar-social .social-row {
        width: calc(50% - 12px);
      }

      .nav-inner { padding: 0 24px; }
      footer, footer.site-footer { padding: 24px; }

      .writing-item { gap: 16px; padding: 20px 0; }
      .writing-item.has-thumb { grid-template-columns: 160px 1fr; }
      .writing-thumb { width: 160px; }
    }

    @media (max-width: 600px) {
      .page-wrapper {
        padding: 24px 24px 0;
        gap: 24px;
      }
      .sidebar-intro {
        grid-template-columns: 140px 1fr;
        gap: 16px;
      }
      .sidebar-intro .sidebar-photo {
        width: 140px;
        aspect-ratio: 3/3.6;
        margin-bottom: 0;
        grid-row: 1 / 3;
      }
      .sidebar-intro .sidebar-text { grid-column: 2; grid-row: 1 / 3; align-self: center; }
      .sidebar-intro .sidebar-name { font-size: 19px; grid-column: 2; grid-row: 1; align-self: end; padding-bottom: 2px; }
      .sidebar-intro .sidebar-tagline { margin-bottom: 0; grid-column: 2; grid-row: 2; align-self: start; }
      .sidebar-social { padding-top: 24px; margin-top: 0; margin-bottom: 0; }
      nav { gap: 16px; }
      .nav-links { gap: 16px; }

      .sub-nav { gap: 5px 14px; }
      .sub-nav a { font-size: 12px; }
      .article-body h2 { font-size: 18px; }
      .article-body blockquote p { font-size: 16px; }
      .article-pager { margin-top: 32px; gap: 16px; flex-direction: column; }
      .article-pager-link { max-width: 100%; }
      .article-pager-link .pager-title { font-size: 14px; }
      .article-pager-link.next { text-align: left; margin-left: 0; }

      /* Notes listing mobile */
      .writing-item { grid-template-columns: 1fr; gap: 12px; }
      .writing-thumb { width: 100%; }
      .writing-excerpt { font-size: 13px; }
    }

    /* =============================================
       ANIMATIONS
    ============================================= */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .article-content {
      animation: fadeUp 0.5s ease both;
    }

    /* =============================================
       NOTES LISTING (index.php / archive.php)
    ============================================= */
    .notes-list { display: flex; flex-direction: column; }

    .writing-item {
      display: grid;
      grid-template-columns: 1fr;
      gap: 24px;
      align-items: start;
      padding: 24px 0;
      border-bottom: 1px solid var(--rule);
      transition: opacity 0.15s;
    }

    .writing-item.has-thumb {
      grid-template-columns: 200px 1fr;
    }

    .writing-item:hover { opacity: 0.8; }

    .writing-item:first-child { padding-top: 0; }

    .writing-thumb {
      width: 200px;
      max-width: 100%;
      aspect-ratio: 16 / 10;
      overflow: hidden;
      background: var(--rule);
    }

    .writing-thumb img {
      width: 100%;
      height: 100%;
      max-width: 100%;
      object-fit: cover;
      display: block;
    }

    .writing-info { display: flex; flex-direction: column; gap: 6px; }

    .writing-tag {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--red);
    }

    .writing-title {
      font-size: 18px;
      font-weight: 600;
      line-height: 1.3;
      color: var(--black);
      transition: color 0.15s;
    }

    .writing-item:hover .writing-title { color: var(--red); }

    .writing-excerpt {
      font-size: 14px;
      color: var(--mid);
      line-height: 1.55;
      font-weight: 400;
    }

    .writing-date {
      font-size: 12px;
      color: var(--light);
      white-space: nowrap;
      font-weight: 400;
    }

    .notes-pagination {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 40px;
      padding-top: 24px;
      border-top: 1px solid var(--rule);
    }

    .notes-pagination a,
    .notes-pagination span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 32px;
      height: 32px;
      padding: 0 8px;
      font-size: 13px;
      color: var(--mid);
      transition: color 0.15s;
    }

    .notes-pagination a:hover { color: var(--red); }
    .notes-pagination .current { color: var(--black); font-weight: 700; }

    .notes-empty {
      font-size: 16px;
      color: var(--light);
      padding: 40px 0;
    }
