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

    :root {
      --bg-primary: #0f0f0f;
      --bg-secondary: #161616;
      --bg-tertiary: #1c1c1c;
      --bg-elevated: #242424;
      --border-subtle: rgba(255, 255, 255, 0.06);
      --border-default: rgba(255, 255, 255, 0.1);
      --text-primary: #efefef;
      --text-secondary: #a0a0a0;
      --text-tertiary: #737373;
      --accent-warm: #5d9ac4;
      --accent-rose: #c4887a;
      --accent-sage: #8aaa8a;
      --accent-sky: #9a9ab0;
      --accent-lavender: #b0a090;
      --tag-personal: #a88bc4;
      --tag-ruby: #cc342d;
      --tag-technical: #5ca8e8;
      --text-redacted: #c41e3a;
      --font-serif: 'Lora', Georgia, serif;
      --font-sans: 'DM Sans', system-ui, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --focus-ring: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent-warm);
      --space-xs: 4px;
      --space-sm: 8px;
      --space-md: 12px;
      --space-lg: 16px;
      --space-xl: 24px;
      --space-2xl: 32px;
      --space-3xl: 48px;
      --radius-sm: 4px;
      --radius-md: 8px;
      --radius-lg: 12px;
      --radius-full: 50%;
      --transition-fast: 150ms ease;
      --transition-base: 200ms ease;
      --transition-slow: 300ms ease;
      color-scheme: dark;
    }

    [data-theme="light"] {
      --bg-primary: #f4f1eb;
      --bg-secondary: #eae7e1;
      --bg-tertiary: #e0ddd6;
      --bg-elevated: #faf8f5;
      --border-subtle: rgba(0, 0, 0, 0.06);
      --border-default: rgba(0, 0, 0, 0.1);
      --text-primary: #1a1a1a;
      --text-secondary: #555;
      --text-tertiary: #666;
      --accent-warm: #2d6a94;
      --accent-rose: #8a5040;
      --accent-sage: #4a6a4a;
      --accent-sky: #5a5a70;
      --accent-lavender: #706050;
      --tag-personal: #7a5a9a;
      --tag-ruby: #a82820;
      --tag-technical: #2a6a9a;
      --text-redacted: #a82020;
      --focus-ring: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent-warm);
      color-scheme: light;
    }

    [data-theme="light"] div.highlighted,
    [data-theme="light"] .code-editor,
    [data-theme="light"] .playground {
      background: #1e1e1e;
      border-color: #333;
    }

    [data-theme="light"] div.highlighted .copy-button,
    [data-theme="light"] .playground .copy-button {
      background: #2a2a2a;
      border-color: #444;
      color: #888;
    }

    [data-theme="light"] div.highlighted .copy-button:hover,
    [data-theme="light"] .playground .copy-button:hover {
      color: #ccc;
      border-color: #666;
    }

    [data-theme="light"] .code-editor-lines {
      color: #555;
      border-right-color: #333;
    }

    [data-theme="light"] .playground-controls {
      background: #252525;
      border-bottom-color: #333;
    }

    [data-theme="light"] .playground-controls button {
      color: #FFF;
    }

    [data-theme="light"] .playground-controls button:hover {
      color: #ccc;
    }

    [data-theme="light"] .playground-reset {
      background: #2a2a2a;
      border-color: #444;
    }

    [data-theme="light"] .playground-reset:hover {
      background: #333;
      border-color: #555;
    }

    [data-theme="light"] .playground-output {
      background: #1a1a1a;
      border-top-color: #333;
    }

    [data-theme="light"] .playground-output code {
      color: #b0b0b0;
    }

    [data-theme="light"] .playground-toolbar {
      background: #252525;
      border-bottom-color: #333;
    }

    [data-theme="light"] .playground-examples {
      background: #1e1e1e;
      color: #999;
      border-color: #444;
    }


    .reading-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 2px;
      background: var(--accent-warm);
      z-index: 3000;
      transition: width 0.05s linear;
      pointer-events: none;
    }

    html {
      font-size: 17px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      font-family: var(--font-sans);
      background: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.6;
      min-height: 100vh;
      position: relative;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      opacity: 0.02;
      pointer-events: none;
      z-index: 0;
    }

    [data-theme="light"] body::before {
      opacity: 0.04;
    }

    a { color: inherit; text-decoration: none; }

    div.highlighted {
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: 10px;
      margin: 24px 0;
      overflow-x: auto;
      position: relative;
    }

    div.highlighted .copy-button,
    div.playground .copy-button {
      position: absolute;
      top: 8px;
      right: 8px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: 4px;
      padding: 4px 8px;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text-tertiary);
      cursor: pointer;
      opacity: 0;
      z-index: 10;
    }

    div.d-none { display: none; }

    div.playground-warning {
        background: yellow;
        padding: 0em 1em;
        font-family: var(--font-mono);
        font-size: 12px;
        color: var(--text-tertiary);
    }

    div.highlighted:hover .copy-button,
    div.playground:hover .copy-button {
      opacity: 1;
    }

    div.highlighted .copy-button:hover,
    div.playground .copy-button:hover {
      color: var(--text-primary);
      border-color: var(--border-primary);
    }

    div.highlight {
      background: transparent;
      border: 0;
      border-radius: 0;
      margin: 0;
      padding: 0;
    }

    pre {
      font-family: var(--font-mono);
      font-size: 13px;
      line-height: 1.6;
    }

    pre.highlight,
    pre.shiki {
      margin: 0 !important;
      padding: 20px !important;
      background: transparent !important;
      border: 0 !important;
      border-radius: 0 !important;
      font-family: var(--font-mono) !important;
      font-size: 13px !important;
      line-height: 1.6 !important;
      white-space: pre !important;
      overflow-x: auto !important;
    }

    :not(pre) > code[class*=language-],
    pre[class*=language-] {
      background: transparent !important;
    }

    code {
      font-family: var(--font-mono);
      font-size: 0.9em;
    }

    pre code {
      background: none;
      padding: 0;
      font-size: 13px;
      border: none;
    }

    p code,
    li code {
      background: rgba(255, 255, 255, 0.1);
      padding: 2px 6px;
      border-radius: 4px;
      color: var(--accent-rose);
    }

    @media (prefers-color-scheme: light) {
      p code,
      li code {
        background: rgba(0, 0, 0, 0.06);
      }
    }

    
    
    .book-about h2,
    .startup-layout h2 {
      font-family: var(--font-serif);
      font-size: 14px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-tertiary);
    }

    
    
    .startup-section p,
    .startup-layout p,
    .website-content {
      font-size: 16px;
      line-height: 1.7;
      color: var(--text-secondary);
    }

    
    
    .toc,
    .toc-mobile-panel,
    .newsletter {
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
    }

    .newsletter {
      margin: 48px 0;
      padding: 32px;
      text-align: center;
    }

    .newsletter-title {
      font-family: var(--font-serif);
      font-size: 1.4rem;
      font-weight: 500;
      margin-bottom: 8px;
    }

    .newsletter-desc {
      font-size: 15px;
      color: var(--text-secondary);
      margin-bottom: 20px;
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
    }

    .newsletter-form {
      display: flex;
      gap: 8px;
      max-width: 400px;
      margin: 0 auto;
    }

    .newsletter-input {
      flex: 1;
      padding: 12px 16px;
      background: var(--bg-primary);
      border: 1px solid var(--border-default);
      border-radius: 8px;
      font-family: var(--font-sans);
      font-size: 14px;
      color: var(--text-primary);
      transition: border-color 0.15s;
    }

    .newsletter-input::placeholder {
      color: var(--text-tertiary);
    }

    .newsletter-input:focus {
      outline: none;
      border-color: var(--accent-warm);
    }

    .newsletter-btn {
      padding: 12px 24px;
      background: var(--accent-warm);
      border: none;
      border-radius: 8px;
      font-family: var(--font-sans);
      font-size: 14px;
      font-weight: 500;
      color: var(--bg-primary);
      cursor: pointer;
      transition: filter 0.15s;
      white-space: nowrap;
    }

    .newsletter-btn:hover {
      filter: brightness(1.1);
    }

    @media (max-width: 480px) {
      .newsletter-form {
        flex-direction: column;
      }
    }

    @keyframes glitch {
      0% { opacity: 1; transform: translateX(0); }
      20% { opacity: 0.8; transform: translateX(-2px); }
      40% { opacity: 0.6; transform: translateX(2px); }
      60% { opacity: 0.8; transform: translateX(-1px); }
      80% { opacity: 0.9; transform: translateX(1px); }
      100% { opacity: 1; transform: translateX(0); }
    }

    
    
    .article-content a {
      color: var(--accent-warm);
      text-decoration: underline;
      text-underline-offset: 2px;
      transition: opacity 0.15s;
    }

    
    .article-content a:hover {
      opacity: 0.8;
    }

    
    input:focus,
    textarea:focus {
      outline: none;
    }

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    summary:focus-visible,
    [tabindex]:focus-visible {
      outline: none;
      box-shadow: var(--focus-ring);
      border-radius: 4px;
    }

    
    .article-content a[href^="http"]::after,
    .book-description a[href^="http"]::after {
      content: '';
      display: inline-block;
      width: 0.6em;
      height: 0.6em;
      margin-left: 0;
      background: currentColor;
      opacity: 0.5;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17'/%3E%3C/svg%3E") no-repeat center;
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17'/%3E%3C/svg%3E") no-repeat center;
      vertical-align: baseline;
    }

    
    .theme-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      background: none;
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.15s;
      flex-shrink: 0;
    }

    .theme-toggle:hover {
      border-color: var(--border-default);
      color: var(--text-primary);
    }

    .theme-toggle svg {
      width: 18px;
      height: 18px;
    }

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

    
    .ambient {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
      transition: opacity 0.3s;
    }

    [data-theme="light"] .ambient {
      opacity: 0.7;
    }

    @keyframes orbDrift1 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33% { transform: translate(15px, 10px) scale(1.02); }
      66% { transform: translate(-10px, 5px) scale(0.98); }
    }

    @keyframes orbDrift2 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50% { transform: translate(-20px, -15px) scale(1.03); }
    }
    @keyframes cloudPulse {
      0%, 100% { transform: scale(1); opacity: 0.18; }
      50% { transform: scale(1.08); opacity: 0.25; }
    }
    body.weather-rain::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cline x1='20' y1='0' x2='18' y2='16' stroke='%234a6a80' stroke-width='0.8' opacity='0.7'/%3E%3Cline x1='80' y1='10' x2='78' y2='26' stroke='%234a6a80' stroke-width='0.7' opacity='0.6'/%3E%3Cline x1='150' y1='5' x2='148' y2='21' stroke='%234a6a80' stroke-width='0.8' opacity='0.65'/%3E%3Cline x1='45' y1='15' x2='43' y2='31' stroke='%234a6a80' stroke-width='0.6' opacity='0.55'/%3E%3Cline x1='120' y1='8' x2='118' y2='24' stroke='%234a6a80' stroke-width='0.7' opacity='0.6'/%3E%3C/svg%3E");
      background-size: 200px 200px;
      animation: rainFall 2.5s linear infinite;
      opacity: 0.7;
      z-index: 0;
    }
    @keyframes rainFall {
      0% { background-position: 0 -200px; }
      100% { background-position: -20px 200px; }
    }
    [data-theme="light"] body.weather-rain::after {
      opacity: 0.15;
    }
    body.weather-snow::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 60% 20%, rgba(255,255,255,0.75) 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 50%, rgba(255,255,255,0.65) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 10% 80%, rgba(255,255,255,0.7) 50%, transparent 50%);
      background-size: 250px 250px;
      animation: snowFallRight 4s linear infinite;
      opacity: 0.6;
      z-index: 9999;
    }
    @keyframes snowFallRight {
      0% { background-position: 0 -250px; }
      100% { background-position: 40px 250px; }
    }
    @keyframes snowFallLeft {
      0% { background-position: 0 -250px; }
      100% { background-position: -40px 250px; }
    }
    @keyframes snowFallStraight {
      0% { background-position: 0 -250px; }
      100% { background-position: 0 250px; }
    }
    body.weather-snow.snow-right::after { animation-name: snowFallRight; }
    body.weather-snow.snow-left::after { animation-name: snowFallLeft; }
    body.weather-snow.snow-straight::after { animation-name: snowFallStraight; }
    [data-theme="light"] body.weather-snow::after {
      background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(100,120,140,0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 40% 70%, rgba(100,120,140,0.25) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 20%, rgba(100,120,140,0.3) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 80% 50%, rgba(100,120,140,0.2) 50%, transparent 50%),
        radial-gradient(1px 1px at 10% 80%, rgba(100,120,140,0.25) 50%, transparent 50%);
      opacity: 0.25;
    }
    body.weather-fog::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg,
        rgba(100, 110, 120, 0.15) 0%,
        rgba(100, 110, 120, 0.25) 50%,
        rgba(100, 110, 120, 0.12) 100%
      );
      z-index: 0;
    }
    [data-theme="light"] body.weather-fog::after {
      background: linear-gradient(180deg,
        rgba(200, 210, 220, 0.4) 0%,
        rgba(200, 210, 220, 0.55) 50%,
        rgba(200, 210, 220, 0.3) 100%
      );
    }
    body.weather-storm::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      pointer-events: none;
      background: rgba(180, 190, 210, 0.08);
      opacity: 0;
      animation: lightning 12s ease-in-out infinite;
      z-index: 1;
    }
    @keyframes lightning {
      0%, 94%, 96%, 100% { opacity: 0; }
      95% { opacity: 1; }
    }
    body.weather-storm::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 150'%3E%3Cline x1='15' y1='0' x2='10' y2='22' stroke='%234a6080' stroke-width='0.6' opacity='0.45'/%3E%3Cline x1='70' y1='8' x2='65' y2='30' stroke='%234a6080' stroke-width='0.6' opacity='0.4'/%3E%3Cline x1='120' y1='3' x2='115' y2='25' stroke='%234a6080' stroke-width='0.6' opacity='0.42'/%3E%3Cline x1='40' y1='12' x2='35' y2='34' stroke='%234a6080' stroke-width='0.5' opacity='0.35'/%3E%3Cline x1='95' y1='6' x2='90' y2='28' stroke='%234a6080' stroke-width='0.5' opacity='0.38'/%3E%3C/svg%3E");
      background-size: 150px 150px;
      animation: stormRain 1.5s linear infinite;
      opacity: 0.6;
      z-index: 0;
    }
    @keyframes stormRain {
      0% { background-position: 0 -150px; }
      100% { background-position: -30px 150px; }
    }
    @keyframes windDrift {
      0%, 100% { transform: translateX(0) scale(1); }
      50% { transform: translateX(30px) scale(1.02); }
    }
    @keyframes sunrisePulse {
      0%, 100% { opacity: 0.12; transform: scale(1); }
      50% { opacity: 0.2; transform: scale(1.05); }
    }
    @keyframes sunsetPulse {
      0%, 100% { opacity: 0.1; transform: scale(1) translateX(0); }
      50% { opacity: 0.18; transform: scale(1.08) translateX(10px); }
    }

    
    .container {
      max-width: 720px;
      margin: 0 auto;
      padding: 0 24px;
      position: relative;
      z-index: 1;
    }

    .container.wide {
      max-width: 900px;
    }

    .container.full-width {
      max-width: 1200px;
      padding: 0 48px;
    }

    .view.full-width .container,
    main.full-width .container {
      max-width: 1200px;
      padding: 0 48px;
    }

    @media (max-width: 700px) {
      .container.full-width,
      .view.full-width .container,
      main.full-width .container {
        padding: 0 24px;
      }
    }

    .container.article-container {
      max-width: 70ch;
    }

    @media (max-width: 480px) {
      .container { padding: 0 16px; }
    }

    
    header {
      padding: 16px 0;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: color-mix(in srgb, var(--bg-primary) 90%, transparent);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }

    .site-header::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      opacity: 0.02;
      pointer-events: none;
    }

    [data-theme="light"] .site-header::before {
      opacity: 0.04;
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 48px;
    }

    @media (max-width: 700px) {
      .header-inner {
        padding: 0 24px;
      }
    }

    .identity {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent-warm), var(--accent-rose));
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-serif);
      font-size: 18px;
      font-weight: 500;
      color: var(--bg-primary);
    }

    .site-name {
      font-family: var(--font-serif);
      font-size: 20px;
      font-weight: 500;
      letter-spacing: -0.01em;
    }

    .header-nav {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nav-link {
      padding: 8px 14px;
      font-size: 14px;
      color: var(--text-secondary);
      border-radius: 8px;
      transition: color 0.15s, background 0.15s;
    }

    .nav-link:hover {
      color: var(--text-primary);
      background: var(--bg-tertiary);
    }

    .nav-link.active {
      color: var(--text-primary);
      background: none;
    }

    @media (max-width: 600px) {
      .nav-link { display: none; }
      .header-inner { padding: 0 16px; }
    }

    
    .mobile-menu-trigger {
      display: none;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      margin-right: -12px;
      background: none;
      border: none;
      font-family: var(--font-sans);
      font-size: 13px;
      color: var(--text-secondary);
      cursor: pointer;
      transition: color 0.15s;
    }

    .mobile-menu-trigger:hover {
      color: var(--text-primary);
    }

    @media (max-width: 600px) {
      .mobile-menu-trigger { display: flex; }
    }

    .mobile-menu-dots {
      display: flex;
      gap: 3px;
    }

    .mobile-menu-dots span {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: currentColor;
    }

    
    .mobile-nav-checkbox {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    
    .mobile-nav-overlay {
      position: fixed;
      inset: 0;
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s, visibility 0.3s;
    }

    .mobile-nav-overlay.open,
    body:has(.mobile-nav-checkbox:checked) .mobile-nav-overlay {
      opacity: 1;
      visibility: visible;
    }

    body:has(.mobile-nav-checkbox:checked) {
      overflow: hidden;
    }

    .mobile-nav-backdrop {
      position: absolute;
      inset: 0;
      background: color-mix(in srgb, var(--bg-primary) 90%, transparent);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      cursor: pointer;
    }

    [data-theme="light"] .mobile-nav-close {
      border-color: var(--border-default);
      color: var(--text-secondary);
    }

    [data-theme="light"] .mobile-nav-item {
      color: var(--text-secondary);
    }

    [data-theme="light"] .mobile-nav-item:hover,
    [data-theme="light"] .mobile-nav-item.active {
      color: var(--text-primary);
    }

    [data-theme="light"] .mobile-nav-social a {
      color: var(--text-secondary);
    }

    .mobile-nav-close {
      position: absolute;
      top: 24px;
      right: 20px;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: 1px solid var(--border-default);
      border-radius: 50%;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.15s;
      z-index: 1;
    }

    .mobile-nav-close:hover {
      border-color: var(--text-tertiary);
      color: var(--text-primary);
    }

    .mobile-nav-content {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      transform: scale(0.95) translateY(10px);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-nav-overlay.open .mobile-nav-content {
      transform: scale(1) translateY(0);
    }

    .mobile-nav-item {
      font-family: var(--font-serif);
      font-size: 2rem;
      font-weight: 400;
      color: var(--text-tertiary);
      padding: 8px 24px;
      transition: color 0.15s, transform 0.15s;
    }

    .mobile-nav-item:hover {
      color: var(--text-primary);
      transform: translateX(4px);
    }

    .mobile-nav-item.active {
      color: var(--accent-warm);
    }

    .mobile-nav-footer {
      position: absolute;
      bottom: 32px;
      left: 0;
      right: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      z-index: 1;
    }

    .mobile-nav-social {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .mobile-nav-social a {
      color: var(--text-tertiary);
      transition: color 0.15s;
    }

    .mobile-nav-social a:hover {
      color: var(--text-primary);
    }

    
    .bio {
      padding: 32px 0 64px;
    }

    .bio-text {
      font-family: var(--font-serif);
      font-size: 1.65rem;
      line-height: 1.5;
      color: var(--text-secondary);
      max-width: 580px;
    }

    .bio-text strong {
      display: block;
      font-size: clamp(1.75rem, 4vw, 2.25rem);
      color: var(--text-primary);
      font-weight: 500;
      line-height: 1.2;
      margin-bottom: 12px;
    }

    .bio-links {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 20px;
    }

    .bio-link {
      font-size: 14px;
      color: var(--text-tertiary);
      transition: color 0.2s;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .bio-link:hover { color: var(--text-primary); }

    
    .section {
      padding: 48px 0;
    }

    .page-header + .section {
      padding-top: 0;
    }

    .section-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .section-title {
      font-family: var(--font-serif);
      font-size: 14px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-tertiary);
    }

    .section-more {
      font-size: 13px;
      color: var(--text-tertiary);
      transition: color 0.2s;
    }

    .section-more:hover { color: var(--text-primary); }

    .section-more-count {
      margin-top: 16px;
      font-size: 13px;
      color: var(--text-tertiary);
    }

    .section-more-count a {
      color: var(--text-tertiary);
      transition: color 0.2s;
    }

    .section-more-count a:hover { color: var(--text-primary); }


    .tag {
      display: inline-block;
      font-size: 11px;
      padding: 3px 8px;
      background: var(--bg-tertiary);
      border-radius: 4px;
      color: var(--text-tertiary);
      transition: background 0.15s, color 0.15s;
    }

    .tag:hover {
      background: var(--bg-elevated);
      color: var(--text-secondary);
    }

    .tag.accent {
      background: rgba(232, 168, 92, 0.15);
      color: var(--accent-warm);
    }

    .tag-personal {
      background: color-mix(in srgb, var(--tag-personal) 15%, transparent);
      color: var(--tag-personal);
    }

    .tag-ruby {
      background: color-mix(in srgb, var(--tag-ruby) 15%, transparent);
      color: var(--tag-ruby);
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    
    .post-list {
      display: flex;
      flex-direction: column;
      margin-bottom: 48px;
    }

    .section .post-list {
      margin-bottom: 0;
    }

    .post-item {
      display: grid;
      grid-template-columns: 70px 1fr auto;
      align-items: baseline;
      gap: 16px;
      padding: 18px 0;
      border-bottom: 1px solid var(--border-subtle);
      transition: opacity 0.2s;
    }

    .post-item:first-child { border-top: 1px solid var(--border-subtle); }
    .post-item:last-child { border-bottom: none; }

    .post-date {
      font-size: 13px;
      color: var(--text-tertiary);
      font-variant-numeric: tabular-nums;
    }

    .post-title {
      font-family: var(--font-serif);
      font-size: 1.1rem;
      font-weight: 400;
      color: var(--text-primary);
      text-decoration: none;
    }

    .post-title:hover {
      opacity: 0.7;
    }

    .post-title-sealed {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .post-title-sealed .post-title-text {
      text-decoration: line-through;
      text-decoration-thickness: 2px;
      opacity: 0.5;
    }
    .post-title-sealed .post-title-redacted {
      display: inline-block;
      font-family: var(--font-mono);
      font-size: 0.65em;
      font-weight: 700;
      letter-spacing: 0.1em;
      color: var(--text-redacted);
      border: 1px solid var(--text-redacted);
      padding: 2px 6px;
      vertical-align: middle;
    }
    .post-title-sealed .post-title-redacted::after {
      content: 'SEALED';
    }

    .post-tags {
      display: flex;
      gap: 6px;
    }

    @media (max-width: 600px) {
      .post-item {
        grid-template-columns: 1fr;
        gap: 8px;
      }
      .post-date { order: 2; }
      .post-tags { order: 3; }
    }

    
    .projects-grid {
      display: grid;
      gap: 16px;
      margin-bottom: 48px;
    }

    .section .projects-grid {
      margin-bottom: 0;
    }

    @media (min-width: 600px) {
      .projects-grid.home-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .project-card {
      padding: 20px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      transition: border-color 0.15s;
      cursor: pointer;
    }

    .project-card:hover {
      border-color: var(--border-default);
    }

    .project-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .project-name {
      font-family: var(--font-serif);
      font-size: 1.15rem;
      font-weight: 500;
    }

    .project-type {
      font-size: 11px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 4px 10px;
      border-radius: 4px;
      background: var(--bg-tertiary);
      color: var(--text-tertiary);
    }

    .project-type.book { background: rgba(212, 119, 140, 0.2); color: var(--accent-rose); }
    .project-type.startup { background: rgba(106, 155, 192, 0.2); color: var(--accent-sky); }
    .project-type.gem { background: rgba(204, 52, 45, 0.15); color: #cc342d; }
    .project-type.website { background: rgba(93, 154, 196, 0.2); color: var(--accent-warm); }
    .project-type.coming-soon { background: rgba(201, 160, 114, 0.2); color: var(--accent-warm); }

    .project-desc {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .project-tech {
      display: flex;
      gap: 8px;
      margin-top: 14px;
      flex-wrap: wrap;
    }

    .project-tech span {
      font-size: 11px;
      font-family: var(--font-mono);
      padding: 3px 8px;
      background: var(--bg-tertiary);
      border-radius: 4px;
      color: var(--text-tertiary);
    }

    .project-years {
      font-size: 12px;
      font-family: var(--font-mono);
      color: var(--text-tertiary);
      margin-top: 14px;
    }


    .page-header {
      padding: 24px 0 40px;
      margin-bottom: 32px;
    }

    .page-header-label {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-tertiary);
      margin-bottom: 8px;
    }

    .page-header-title {
      font-family: var(--font-serif);
      font-size: 2.5rem;
      font-weight: 500;
      line-height: 1.2;
    }

    .page-header-desc {
      font-size: 16px;
      color: var(--text-secondary);
      margin-top: 12px;
      max-width: 520px;
    }

    
    .tag-page-header {
      padding: 48px 0 40px;
      margin-bottom: 32px;
    }

    .tag-page-title-row {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .tag-page-title {
      font-family: var(--font-serif);
      font-size: 2.5rem;
      font-weight: 500;
      margin: 0;
      color: var(--text-primary);
    }

    .tag-page-count {
      font-size: 14px;
      color: var(--text-tertiary);
      font-variant-numeric: tabular-nums;
    }

    .tag-page-description {
      color: var(--text-secondary);
      margin: 16px 0 0;
      font-size: 1.1rem;
      max-width: 600px;
      line-height: 1.6;
    }

    .tag[aria-current="true"] {
      outline: 1px solid currentColor;
      outline-offset: -1px;
    }

    @media (max-width: 600px) {
      .tag-page-header {
        padding: 32px 0;
      }

      .tag-page-title {
        font-size: 1.8rem;
      }

    }

    
    .article-view {
      display: none;
      padding: 24px 0 64px;
    }

    .article-view.active { display: block; }

    .article-back {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: var(--text-tertiary);
      margin-bottom: 32px;
      transition: color 0.2s;
    }

    .article-back:hover { color: var(--text-primary); }

    .article-header {
      margin-bottom: 40px;
      max-width: 65ch;
      margin-left: auto;
      margin-right: auto;
    }

    .article-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
      font-size: 13px;
      color: var(--text-tertiary);
      margin-bottom: 16px;
    }

    .article-title {
      font-family: var(--font-serif);
      font-size: clamp(2rem, 5vw, 2.5rem);
      font-weight: 500;
      line-height: 1.2;
      letter-spacing: -0.02em;
      margin-bottom: 20px;
    }

    .article-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .article-content {
      font-family: var(--font-serif);
      max-width: 65ch;
      margin: 0 auto;
    }

    .article-content div.highlighted {
      max-width: 100%;
      width: 100ch;
    }


    .article-content p {
      font-size: 1.15rem;
      line-height: 1.8;
      color: var(--text-secondary);
      margin-bottom: 24px;
    }

    .article-content h2,
    .article-content h3 {
      scroll-margin-top: 80px;
    }

    .article-content h2 {
      font-size: 1.4rem;
      font-weight: 500;
      margin: 48px 0 20px;
      color: var(--text-primary);
    }

    .article-content blockquote {
      border-left: 2px solid var(--accent-warm);
      padding-left: 20px;
      margin: 32px 0;
      font-style: italic;
      color: var(--text-secondary);
    }

    .article-content pre.highlight code,
    .article-content pre.shiki code {
      display: block;
      color: var(--text-secondary);
    }

    .article-content p code,
    .article-content li code {
      font-size: 0.9em;
      background: none;
      border: none;
      padding: 0;
    }

    .article-content a {
      text-underline-offset: 3px;
    }

    .article-content hr {
      border: none;
      height: 1px;
      background: var(--border-subtle);
      margin: 48px 0;
    }

    .article-content ul, .article-content ol {
      margin-bottom: 24px;
      padding-left: 24px;
      color: var(--text-secondary);
    }

    .article-content li {
      font-size: 1.1rem;
      line-height: 1.7;
      margin-bottom: 8px;
    }


    
    .format-451 .article-sidebar { display: none !important; }
        .format-451 .article-main {
      margin: 0 auto;
    }
    .format-451 .article-header {
      text-align: center;
      border-bottom: none;
    }
    .format-451 .article-meta,
    .format-451 .article-tags {
      display: none;
    }
    .format-451 .article-title {
      font-family: var(--font-mono);
    }
    .format-451 .article-content {
      text-align: center;
      max-width: 800px;
      margin: 0 auto;
    }
    .format-451 .document-header {
      margin-bottom: 48px;
    }
    .format-451 .document-stamp {
      display: inline-block;
      font-family: var(--font-mono);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.2em;
      color: var(--text-redacted);
      border: 2px solid var(--text-redacted);
      padding: 6px 16px;
      transform: rotate(-3deg);
      opacity: 0.8;
    }
    .format-451 .document-case {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text-tertiary);
      margin-top: 12px;
    }
    .format-451 .error-code {
      font-family: var(--font-mono);
      font-size: 72px;
      font-weight: 700;
      color: var(--text-tertiary);
      opacity: 0.3;
      margin-bottom: 24px;
    }
    .format-451 .prison-letter {
      background:
        repeating-linear-gradient(
          0deg,
          transparent,
          transparent 2px,
          rgba(0,0,0,0.01) 2px,
          rgba(0,0,0,0.01) 4px
        ),
        repeating-linear-gradient(
          90deg,
          transparent,
          transparent 2px,
          rgba(0,0,0,0.008) 2px,
          rgba(0,0,0,0.008) 4px
        ),
        linear-gradient(135deg, rgba(0,0,0,0.03) 0%, transparent 50%),
        #f5f1e8;
      color: #000;
      padding: 32px 40px;
      margin: 40px auto;
      max-width: 800px;
      font-family: 'Courier New', monospace;
      font-size: 14px;
      line-height: 1.8;
      text-align: left;
      position: relative;
      box-shadow:
        0 2px 8px rgba(0,0,0,0.1),
        inset 0 0 60px rgba(139, 115, 85, 0.15),
        inset 0 0 20px rgba(139, 115, 85, 0.1);
    }
    .format-451 .letter-header {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      color: #666;
      margin-bottom: 24px;
      padding-bottom: 12px;
      border-bottom: 1px solid #ddd;
    }
    .format-451 .letter-body p {
      margin: 0 0 16px 0;
    }
    :root[data-theme="dark"] .format-451 .prison-letter {
      background:
        repeating-linear-gradient(
          0deg,
          transparent,
          transparent 2px,
          rgba(0,0,0,0.02) 2px,
          rgba(0,0,0,0.02) 4px
        ),
        repeating-linear-gradient(
          90deg,
          transparent,
          transparent 2px,
          rgba(0,0,0,0.015) 2px,
          rgba(0,0,0,0.015) 4px
        ),
        linear-gradient(135deg, rgba(0,0,0,0.05) 0%, transparent 50%),
        #e8e4db;
      color: #000 !important;
      -webkit-text-fill-color: #000;
      box-shadow:
        0 4px 20px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 0 80px rgba(120, 100, 70, 0.25),
        inset 0 0 30px rgba(100, 80, 50, 0.2);
    }
    .format-451 .error-title {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 16px;
    }
    .format-451 .error-desc {
      color: var(--text-secondary);
      margin-bottom: 32px;
    }
    .format-451 .error-citation {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text-tertiary);
      padding: 16px;
      background: var(--bg-secondary);
      border-radius: 4px;
      text-align: left;
    }
    .format-451 .error-citation a {
      color: var(--accent-sky);
    }

    
    .links-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 24px;
    }

    .links-filter {
      padding: 8px 14px;
      background: none;
      border: 1px solid var(--border-subtle);
      border-radius: 6px;
      font-family: var(--font-sans);
      font-size: 13px;
      color: var(--text-tertiary);
      cursor: pointer;
      transition: all 0.15s;
    }

    .links-filter:hover {
      border-color: var(--border-default);
      color: var(--text-secondary);
    }

    .links-filter.active {
      background: var(--bg-tertiary);
      border-color: var(--border-default);
      color: var(--text-primary);
    }
    .links-list {
      display: flex;
      flex-direction: column;
      gap: 1px;
      background: var(--border-subtle);
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 48px;
    }
    .link-card {
      display: block;
      background: var(--bg-primary);
      padding: 20px 24px;
      text-decoration: none;
      transition: background 0.15s;
    }
    .link-card:hover {
      background: var(--bg-secondary);
    }
    .link-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 8px;
    }
    .link-card-title {
      font-family: var(--font-serif);
      font-size: 1.1rem;
      font-weight: 500;
      color: var(--text-primary);
      line-height: 1.4;
    }
    .link-card-arrow {
      color: var(--accent-warm);
      flex-shrink: 0;
      opacity: 0;
      transform: translateX(-4px);
      transition: all 0.15s;
    }
    .link-card:hover .link-card-arrow {
      opacity: 1;
      transform: translateX(0);
    }
    .link-card-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      font-family: var(--font-sans);
      font-size: 12px;
      color: var(--text-tertiary);
      margin-bottom: 8px;
    }
    .link-card-type {
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 2px 8px;
      background: var(--bg-tertiary);
      border-radius: 4px;
    }
    .link-card-type.article { color: var(--accent-sage); background: rgba(127, 170, 140, 0.15); }
    .link-card-type.tool { color: var(--accent-sky); background: rgba(106, 155, 192, 0.15); }
    .link-card-type.video { color: var(--accent-rose); background: rgba(212, 119, 140, 0.15); }
    .link-card-type.repo { color: var(--accent-lavender); background: rgba(160, 140, 196, 0.15); }
    .link-card-domain {
      color: var(--text-tertiary);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .link-favicon {
      width: 14px;
      height: 14px;
      border-radius: 2px;
      opacity: 0.7;
    }
    .link-card-desc {
      font-family: var(--font-sans);
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    
    .project-view {
      display: none;
      padding: 24px 0 64px;
    }

    .project-view.active { display: block; }

    
    .book-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 48px;
    }

    @media (min-width: 700px) {
      .book-layout {
        grid-template-columns: 200px 1fr;
        gap: 48px;
      }
    }

    .book-cover {
      aspect-ratio: 2/3;
      background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-elevated));
      border-radius: 4px;
      box-shadow: 8px 8px 24px rgba(0,0,0,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-serif);
      font-size: 1.5rem;
      font-style: italic;
      color: var(--text-tertiary);
      position: relative;
      overflow: hidden;
    }

    .book-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      top: 0;
      left: 0;
    }

    .book-cover::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 12px;
      background: linear-gradient(90deg, rgba(0,0,0,0.2), transparent);
      z-index: 1;
    }

    .book-content h1 {
      font-family: var(--font-serif);
      font-size: 2rem;
      font-weight: 500;
      margin-bottom: 8px;
    }

    .book-subtitle {
      font-size: 16px;
      color: var(--text-secondary);
      margin-bottom: 24px;
    }

    .book-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 13px;
      color: var(--text-tertiary);
      margin-bottom: 24px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .book-description {
      font-size: 16px;
      line-height: 1.7;
      color: var(--text-secondary);
      margin-bottom: 32px;
    }

    .book-about {
      margin-bottom: 32px;
    }
    .book-about h2 {
      margin-bottom: 16px;
    }
    .book-about-content {
      font-size: 15px;
      line-height: 1.7;
      color: var(--text-secondary);
    }
    .book-about-content p {
      margin-bottom: 12px;
    }
    .book-about-content p:last-child {
      margin-bottom: 0;
    }

    .book-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      font-size: 14px;
      color: var(--text-secondary);
      transition: all 0.15s;
    }

    .book-link:hover {
      background: var(--bg-elevated);
      color: var(--text-primary);
      border-color: var(--border-default);
    }

    .book-link.primary {
      background: var(--accent-warm);
      border-color: var(--accent-warm);
      color: var(--bg-primary);
    }

    .book-link.primary:hover {
      filter: brightness(1.1);
    }

    
    .startup-layout {}

    .startup-hero {
      padding: 48px 0;
      border-bottom: 1px solid var(--border-subtle);
      margin-bottom: 48px;
    }

    .startup-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--accent-sky);
      margin-bottom: 16px;
    }

    .startup-badge::before {
      content: '';
      width: 8px;
      height: 8px;
      background: var(--accent-sky);
      border-radius: 50%;
    }

    .startup-title {
      font-family: var(--font-serif);
      font-size: clamp(2rem, 5vw, 3rem);
      font-weight: 500;
      line-height: 1.15;
      margin-bottom: 16px;
    }

    .startup-tagline {
      font-size: 18px;
      color: var(--text-secondary);
      max-width: 540px;
      line-height: 1.6;
      margin-bottom: 24px;
    }

    .startup-links {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .startup-section {
      padding: 32px 0;
    }

    .startup-layout h2 {
      margin-top: 32px;
      margin-bottom: 16px;
    }

    .startup-layout h2:first-child {
      margin-top: 0;
    }

    .startup-layout p {
      margin-bottom: 1em;
    }

    .startup-layout ul {
      margin-bottom: 1.25em;
      padding-left: 1.25em;
      color: var(--text-secondary);
    }

    .startup-layout li {
      margin-bottom: 0.5em;
      line-height: 1.6;
    }

    .startup-layout > p a,
    .startup-layout > ul a {
      color: var(--text-primary);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .startup-layout > p a:hover,
    .startup-layout > ul a:hover {
      opacity: 0.7;
    }

    .startup-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px;
    }

    
    .website-layout {}

    .website-header {
      margin-bottom: 24px;
    }
    .website-title {
      font-size: clamp(1.5rem, 4vw, 2rem);
      font-weight: 600;
      margin-bottom: 8px;
    }
    .website-tagline {
      font-size: 16px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .website-links {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 32px;
    }

    .website-content p {
      margin-bottom: 1em;
    }
    .website-content a {
      color: var(--text-primary);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .website-content a:hover {
      opacity: 0.7;
    }

    
    .gem-layout .startup-badge {
      color: var(--accent-lavender);
    }

    .gem-layout .startup-badge::before {
      background: var(--accent-lavender);
    }

    .startup-badge.coming-soon {
      color: var(--accent-warm);
    }

    .startup-badge.coming-soon::before {
      background: var(--accent-warm);
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }

    
    footer {
      padding: 48px 0;
      border-top: 1px solid var(--border-subtle);
    }

    .footer-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 48px;
    }

    @media (max-width: 700px) {
      .footer-inner {
        padding: 0 24px;
        flex-direction: column;
        align-items: flex-start;
      }
    }

    .footer-link-btn {
      font-size: 13px;
      font-family: var(--font-sans);
      color: var(--text-tertiary);
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      transition: color 0.2s;
    }

    .footer-link-btn:hover {
      color: var(--text-primary);
    }

    .newsletter-dialog {
      background: var(--bg-elevated);
      border: 1px solid var(--border-subtle);
      border-radius: 16px;
      padding: 32px;
      max-width: 400px;
      width: 90vw;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      margin: 0;
    }

    .newsletter-dialog::backdrop {
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
    }

    .newsletter-dialog-close {
      position: absolute;
      top: 16px;
      right: 16px;
      background: none;
      border: none;
      color: var(--text-tertiary);
      cursor: pointer;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s;
    }

    .newsletter-dialog-close:hover {
      color: var(--text-primary);
    }

    .newsletter-dialog-title {
      font-size: 20px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .newsletter-dialog-desc {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.5;
      margin-bottom: 20px;
    }

    .newsletter-dialog-form {
      display: flex;
      gap: 8px;
    }

    .newsletter-dialog-input {
      flex: 1;
      padding: 10px 14px;
      font-size: 14px;
      font-family: var(--font-sans);
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      color: var(--text-primary);
    }

    .newsletter-dialog-input::placeholder {
      color: var(--text-tertiary);
    }

    .newsletter-dialog-input:focus {
      outline: none;
      border-color: var(--accent-warm);
    }

    .newsletter-dialog-btn {
      padding: 10px 20px;
      font-size: 14px;
      font-family: var(--font-sans);
      font-weight: 500;
      background: var(--accent-warm);
      color: var(--bg-primary);
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: opacity 0.15s;
    }

    .newsletter-dialog-btn:hover {
      opacity: 0.9;
    }

    @media (max-width: 480px) {
      .newsletter-dialog {
        padding: 24px;
        width: calc(100vw - 32px);
        max-width: none;
      }

      .newsletter-dialog-form {
        flex-direction: column;
      }

      .newsletter-dialog-btn {
        width: 100%;
      }
    }

    .weather-dialog {
      background: var(--bg-elevated);
      border: 1px solid var(--border-subtle);
      border-radius: 16px;
      padding: 32px;
      max-width: 400px;
      width: 90vw;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      margin: 0;
    }

    .weather-dialog::backdrop {
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
    }

    .weather-dialog-close {
      position: absolute;
      top: 16px;
      right: 16px;
      background: none;
      border: none;
      color: var(--text-tertiary);
      cursor: pointer;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s;
    }

    .weather-dialog-close:hover {
      color: var(--text-primary);
    }

    .weather-dialog-title {
      font-size: 20px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .weather-dialog-desc {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.5;
      margin-bottom: 20px;
    }

    .weather-dialog-current {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .weather-dialog-current dt {
      color: var(--text-tertiary);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-top: 12px;
    }

    .weather-dialog-current dt:first-child {
      margin-top: 0;
    }

    .weather-dialog-current dd {
      color: var(--text-primary);
      margin: 2px 0 0 0;
    }

    .weather-dialog-moon {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--border-subtle);
    }

    .weather-dialog-moon moon-phase {
      display: block;
      width: 32px;
      height: 32px;
      flex-shrink: 0;
      --moon-phase-mask-bg: var(--bg-elevated);
    }

    .weather-dialog-moon-label {
      font-size: 14px;
      color: var(--text-secondary);
    }

    .weather-dialog-more {
      margin-top: 16px;
      font-size: 13px;
    }

    .weather-dialog-more a {
      color: var(--text-tertiary);
    }

    .weather-dialog-more a:hover {
      color: var(--text-primary);
    }

    .weather-indicator.is-loading,
    .weather-indicator.is-loading + .footer-sep {
      opacity: 0;
      transform: translateY(8px);
    }

    .weather-indicator.is-loading,
    .weather-indicator.is-ready {
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .weather-indicator.is-ready,
    .weather-indicator.is-ready + .footer-sep {
      opacity: 0.5;
      transform: translateY(0);
    }

    .weather-indicator.is-ready {
      opacity: 1;
    }

    .weather-indicator.is-interactive {
      cursor: pointer;
    }

    .weather-indicator.is-interactive:hover {
      opacity: 0.8;
    }

    @media (max-width: 480px) {
      .weather-dialog {
        padding: 24px;
        width: calc(100vw - 32px);
        max-width: none;
      }
    }

    body:has(dialog[open]) {
      overflow: hidden;
    }

    dialog {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      margin: 0;
    }

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

    .footer-links a {
      font-size: 13px;
      color: var(--text-tertiary);
      transition: color 0.2s;
    }

    .footer-links a:hover { color: var(--text-primary); }

    .footer-copy {
      font-size: 13px;
      color: var(--text-tertiary);
    }

    .footer-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .footer-sep {
      color: var(--text-tertiary);
      opacity: 0.5;
    }

    
    .weather-indicator {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: var(--font-sans);
      font-size: 12px;
      color: var(--text-tertiary);
      text-decoration: none;
    }
    .weather-indicator-icon {
      font-size: 14px;
      line-height: 1;
    }
    .weather-indicator-temp {
      color: var(--text-secondary);
    }
    .weather-indicator-loc {
      color: var(--text-tertiary);
    }

    
    @keyframes effectsFadeOut {
      0%, 80% { opacity: 1; }
      100% { opacity: 0; }
    }

    body.weather-rain::after,
    body.weather-snow::after,
    body.weather-fog::after,
    body.weather-storm::before,
    body.weather-storm::after {
      animation-duration: 10s;
      animation-name: effectsFadeOut;
      animation-fill-mode: forwards;
    }

    body.weather-rain::after {
      animation: rainFall 2.5s linear infinite, effectsFadeOut 6s ease-out forwards;
    }
    body.weather-snow::after {
      animation: snowFallRight 4s linear infinite, effectsFadeOut 6s ease-out forwards;
    }
    body.weather-snow.snow-right::after {
      animation: snowFallRight 4s linear infinite, effectsFadeOut 6s ease-out forwards;
    }
    body.weather-snow.snow-left::after {
      animation: snowFallLeft 4s linear infinite, effectsFadeOut 6s ease-out forwards;
    }
    body.weather-snow.snow-straight::after {
      animation: snowFallStraight 4s linear infinite, effectsFadeOut 6s ease-out forwards;
    }
    body.weather-storm::before {
      animation: lightning 4s ease-in-out infinite, effectsFadeOut 6s ease-out forwards;
    }
    body.weather-storm::after {
      animation: stormRain 1.5s linear infinite, effectsFadeOut 6s ease-out forwards;
    }

    body.weather-anim-played.weather-rain::after,
    body.weather-anim-played.weather-snow::after,
    body.weather-anim-played.weather-storm::before,
    body.weather-anim-played.weather-storm::after {
      animation: none;
      opacity: 0;
    }

    .footnotes {
      margin-top: 48px;
      padding-top: 24px;
      border-top: 1px solid var(--border-subtle);
    }

    
    .article-content pre {
      position: relative;
    }

    
    .view { display: none; }
    .view.active { display: block; }

    
    .year-group {
      margin-bottom: 0;
      border-bottom: 1px solid var(--border-subtle);
    }

    .year-group:first-child {
      border-top: 1px solid var(--border-subtle);
    }

    .year-group:last-child {
      border-bottom: none;
    }

    #postsByYear {
      margin-bottom: 48px;
    }

    .year-group summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 0;
      cursor: pointer;
      list-style: none;
      transition: opacity 0.15s;
    }

    .year-group summary::-webkit-details-marker { display: none; }

    .year-group summary:hover { opacity: 0.7; }

    .year-label {
      font-family: var(--font-serif);
      font-size: 1.25rem;
      font-weight: 500;
      color: var(--text-primary);
    }

    .year-count {
      font-size: 12px;
      color: var(--text-tertiary);
    }

    .year-toggle {
      font-size: 10px;
      color: var(--text-tertiary);
      transition: transform 0.2s;
    }

    .year-group[open] .year-toggle {
      transform: rotate(180deg);
    }

    
    .toc {
      padding: 0;
      margin-bottom: 32px;
      font-size: 14px;
      line-height: 1.5;
    }

    .toc summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      cursor: pointer;
      list-style: none;
      font-weight: 500;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-tertiary);
    }

    .toc summary::-webkit-details-marker { display: none; }

    .toc summary::after {
      content: 'hide';
      font-size: 11px;
      font-weight: 400;
      text-transform: lowercase;
      letter-spacing: 0;
    }

    .toc:not([open]) summary::after {
      content: 'show';
    }

    .toc .section-nav {
      list-style: none;
      padding: 8px 16px 12px;
      margin: 0;
      border-top: 1px solid var(--border-subtle);
    }

    .toc .section-nav ul {
      list-style: none;
      padding-left: 12px;
      margin: 0;
    }

    .toc .toc-entry {
      padding: 5px 0;
      line-height: 1.4;
    }

    .toc .toc-entry a {
      color: var(--text-secondary);
      transition: color 0.15s;
      display: block;
    }

    .toc .toc-entry a:hover {
      color: var(--text-primary);
    }

    .toc .toc-entry a.toc-active {
      color: var(--accent-warm);
      font-weight: 600;
    }

    .toc .toc-h3 a {
      color: var(--text-tertiary);
      font-size: 12px;
    }

    .toc .toc-h3 a:hover {
      color: var(--text-primary);
    }

    .toc .toc-h3 a.toc-active {
      color: var(--accent-warm);
      font-weight: 600;
    }

    
    .article-layout {
      display: block;
    }

    .article-sidebar {
      display: none;
    }

    .article-main {
      min-width: 0;
    }

    .toc-bottom {
      position: fixed;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 100;
    }

    .toc-bottom-checkbox {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .toc-bottom-btn {
      display: block;
      padding: 10px 20px;
      background: var(--bg-elevated);
      border: 1px solid var(--border-subtle);
      border-radius: 20px;
      color: var(--text-secondary);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    }

    .toc-bottom-btn:hover {
      color: var(--text-primary);
    }

    .toc-bottom-panel {
      display: none;
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      margin-bottom: 8px;
      width: 280px;
      max-height: 50vh;
      overflow-y: auto;
      background: var(--bg-elevated);
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.2);
      padding: 12px 0;
    }

    .toc-bottom-checkbox:checked ~ .toc-bottom-panel {
      display: block;
    }

    .toc-bottom-checkbox:checked ~ .toc-bottom-btn {
      background: var(--bg-tertiary);
    }

    .toc-bottom-panel .section-nav {
      list-style: none;
      padding: 0 16px;
      margin: 0;
    }

    .toc-bottom-panel .section-nav ul {
      list-style: none;
      padding-left: 12px;
      margin: 0;
    }

    .toc-bottom-panel .toc-entry {
      padding: 6px 0;
      line-height: 1.4;
    }

    .toc-bottom-panel .toc-entry a {
      color: var(--text-secondary);
      font-size: 14px;
    }

    .toc-bottom-panel .toc-entry a:hover {
      color: var(--text-primary);
    }

    .toc-bottom-panel .toc-h3 a {
      color: var(--text-tertiary);
      font-size: 13px;
    }

    @media (min-width: 1100px) {
      .article-layout {
        display: flex;
        align-items: flex-start;
        gap: 48px;
      }

      .article-sidebar {
        display: block;
        flex-shrink: 0;
        width: 200px;
        align-self: stretch;
      }

      .toc-sticky {
        position: sticky;
        top: 130px;
      }

      .article-sidebar .toc {
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        max-height: calc(100vh - 180px);
        overflow-y: auto;
      }

      .article-sidebar .toc summary {
        padding: 0 0 12px 0;
        pointer-events: none;
      }

      .article-sidebar .toc summary::after {
        display: none;
      }

      .article-sidebar .toc[open] .section-nav,
      .article-sidebar .toc .section-nav {
        display: block;
        padding: 0;
        border-top: none;
      }

      .article-sidebar details.toc {
        display: block;
      }

      .article-sidebar details.toc > *:not(summary) {
        display: block;
      }

      .article-sidebar .toc::-webkit-scrollbar {
        width: 4px;
      }

      .article-sidebar .toc::-webkit-scrollbar-thumb {
        background: var(--border-default);
        border-radius: 2px;
      }

      .toc-bottom {
        display: none !important;
      }

      .article-main {
        flex: 1;
        min-width: 0;
      }

      .format-essay .article-main {
        max-width: 70ch;
        margin: 0 auto;
      }
    }

    .article-content img {
      max-width: 100%;
      border-radius: 8px;
      cursor: zoom-in;
      transition: transform 0.2s;
    }

    .article-content img:hover {
      transform: scale(1.01);
    }

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 4000;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.9);
      backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s, visibility 0.3s;
      cursor: zoom-out;
    }

    .lightbox.open {
      opacity: 1;
      visibility: visible;
    }

    .lightbox img {
      max-width: 90vw;
      max-height: 90vh;
      border-radius: 8px;
      transform: scale(0.95);
      transition: transform 0.3s;
    }

    .lightbox.open img {
      transform: scale(1);
    }

    .lightbox-close {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.1);
      border: none;
      border-radius: 50%;
      color: #fff;
      cursor: pointer;
      transition: background 0.15s;
    }

    .lightbox-close:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    .lightbox-caption {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 14px;
      color: rgba(255, 255, 255, 0.7);
      text-align: center;
      max-width: 80%;
    }

    
    .project-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 24px;
    }

    .project-filter {
      padding: 8px 14px;
      background: none;
      border: 1px solid var(--border-subtle);
      border-radius: 6px;
      font-family: var(--font-sans);
      font-size: 13px;
      color: var(--text-tertiary);
      cursor: pointer;
      transition: all 0.15s;
    }

    .project-filter:hover {
      border-color: var(--border-default);
      color: var(--text-secondary);
    }

    .project-filter.active {
      background: var(--bg-tertiary);
      border-color: var(--border-default);
      color: var(--text-primary);
    }

    
    .about-page {
      max-width: 640px;
      margin: 0 auto;
      padding: 48px 0;
    }

    .about-hero {
      display: flex;
      align-items: flex-start;
      gap: 24px;
      margin-bottom: 48px;
    }

    @media (max-width: 500px) {
      .about-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
    }

    .about-photo-8bit {
      width: 120px;
      height: 120px;
      border-radius: 12px;
      border: 1px solid var(--border-subtle);
      overflow: hidden;
      background: var(--bg-tertiary);
      flex-shrink: 0;
      position: relative;
      animation: glitch-container 2s ease-out forwards;
    }

    .about-photo-8bit img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      /* animation: glitch-img 2s ease-out forwards; */
    }

    .about-photo-front {
      position: absolute;
      top: 0;
      left: 0;
      animation: glitch-img 2s ease-out forwards, photoFadeOut 0.5s ease-out 0.4s forwards;
    }

    @keyframes photoFadeOut {
      to { opacity: 0; }
    }

    @keyframes glitch-container {
      0% { transform: translate(0); }
      2% { transform: translate(-3px, 2px); }
      4% { transform: translate(2px, -2px); }
      6% { transform: translate(0); }
      10% { transform: translate(3px, 1px); }
      12% { transform: translate(-2px, -1px); }
      14% { transform: translate(0); }
      20% { transform: translate(-2px, 2px); }
      22%, 100% { transform: translate(0); }
    }

    @keyframes glitch-img {
      0% { filter: hue-rotate(0deg); opacity: 1; }
      2% { filter: hue-rotate(90deg); opacity: 0.8; }
      4% { filter: hue-rotate(-90deg); opacity: 0.9; }
      6% { filter: hue-rotate(0deg); opacity: 1; }
      10% { filter: hue-rotate(180deg); opacity: 0.7; }
      12% { filter: hue-rotate(0deg); opacity: 1; }
      20% { filter: hue-rotate(-45deg); opacity: 0.9; }
      22%, 100% { filter: hue-rotate(0deg); opacity: 1; }
    }

    .about-intro {
      flex: 1;
    }

    .about-name {
      font-family: var(--font-serif);
      font-size: 2rem;
      font-weight: 500;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .about-lede {
      font-size: 1.1rem;
      color: var(--text-secondary);
      line-height: 1.5;
      margin-bottom: 16px;
    }

    .about-links {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 14px;
    }

    @media (max-width: 500px) {
      .about-links {
        justify-content: center;
      }
    }

    .about-links a {
      color: var(--text-tertiary);
      text-decoration: none;
      transition: color 0.15s;
    }

    .about-links a:hover {
      color: var(--text-primary);
    }

    .about-body {
      font-size: 16px;
      line-height: 1.7;
      color: var(--text-secondary);
    }

    .about-body p {
      margin-bottom: 1em;
    }

    .about-body h2 {
      font-family: var(--font-serif);
      font-size: 1.25rem;
      font-weight: 500;
      color: var(--text-primary);
      margin-top: 48px;
      margin-bottom: 16px;
    }

    .about-body a {
      color: var(--accent-warm);
      text-decoration: underline;
      text-underline-offset: 2px;
    }


    .weather-page {
      max-width: 640px;
      margin: 0 auto;
      padding: 48px 0;
    }

    .weather-hero {
      margin-bottom: 32px;
    }

    .weather-hero h1 {
      font-family: var(--font-serif);
      font-size: 2rem;
      font-weight: 500;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .weather-lede {
      font-size: 18px;
      color: var(--text-secondary);
    }

    .weather-body {
      font-size: 16px;
      line-height: 1.7;
      color: var(--text-secondary);
    }

    .weather-body p {
      margin-bottom: 1em;
    }

    .weather-body h2 {
      font-family: var(--font-serif);
      font-size: 1.25rem;
      font-weight: 500;
      color: var(--text-primary);
      margin-top: 48px;
      margin-bottom: 16px;
    }

    .weather-body h3 {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-primary);
      margin-top: 24px;
      margin-bottom: 8px;
    }

    .weather-body ul {
      margin: 0 0 1em 0;
      padding-left: 1.5em;
    }

    .weather-body li {
      margin-bottom: 0.5em;
    }

    .weather-body a {
      color: var(--accent-warm);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .weather-current {
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      padding: 20px 24px;
      margin: 24px 0;
    }

    .weather-current dl {
      margin: 0;
    }

    .weather-current dt {
      color: var(--text-tertiary);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-top: 12px;
    }

    .weather-current dt:first-child {
      margin-top: 0;
    }

    .weather-current dd {
      color: var(--text-primary);
      margin: 2px 0 0 0;
    }

    .weather-current-loading {
      color: var(--text-tertiary);
      font-size: 14px;
    }

    .weather-current-loading.js-only {
      display: none;
    }

    .weather-current-noscript {
      color: var(--text-tertiary);
      font-size: 14px;
      margin: 0 !important;
    }


    moon-phase {
      --_w: calc(100% - 1% * var(--illumination, 0));
      --_lat: var(--lat, 44.98);
      --_hour: var(--hour, 12);
      --_l: calc(var(--_lat) * 1.5deg);
      --_a: calc(((var(--_hour) - 12) * 15 * 0.7) * 1deg);
      --_r: calc(var(--_l) + var(--_a));

      aspect-ratio: 1;
      border-radius: 50%;
      display: none;
      width: 16px;
      height: 16px;
      overflow: clip;
      position: relative;
      rotate: var(--_r, 0deg);
      flex-shrink: 0;
    }

    .weather-night moon-phase,
    moon-phase.is-ready {
      display: block;
    }

    .weather-night .weather-indicator-icon {
      display: none;
    }

    moon-phase::before {
      background: url('/assets/images/moon.png') center / cover no-repeat;
      content: '';
      filter: var(--moon-phase-filter, sepia(1) grayscale(.25));
      inset: 0;
      position: absolute;
    }

    moon-phase::after {
      background-color: var(--moon-phase-mask-bg, var(--bg-primary));
      border-radius: var(--_btlr, 0) var(--_btrr, 0) var(--_bbrr, 0) var(--_bblr, 0);
      content: '';
      height: 100%;
      top: 0;
      inset-inline: var(--_ii, auto 0);
      opacity: 1;
      position: absolute;
      width: var(--_w);
    }

    moon-phase[phase*="first quarter"],
    moon-phase[phase*="waxing"] {
      --_ii: 0 auto;
    }
    moon-phase[phase*="crescent"],
    moon-phase[phase*="first quarter"],
    moon-phase[phase*="waxing"] {
      --_bblr: 100%;
      --_btlr: 100%;
    }
    moon-phase[phase*="crescent"],
    moon-phase[phase*="last quarter"],
    moon-phase[phase*="waning"] {
      --_btrr: 100%;
      --_bbrr: 100%;
    }
    moon-phase[phase*="gibbous"]::after {
      border-radius: 0;
      width: 100%;
    }

    
    .newsletter-page {
      max-width: 480px;
      margin: 0 auto;
      padding: 80px 20px;
    }

    .newsletter-page-header {
      margin-bottom: 32px;
    }

    .newsletter-page-title {
      font-family: var(--font-serif);
      font-size: 32px;
      font-weight: 500;
      color: var(--text-primary);
      margin-bottom: 12px;
    }

    .newsletter-page-lede {
      font-size: 16px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .newsletter-page-form {
      display: flex;
      gap: 12px;
    }

    .newsletter-page-input {
      flex: 1;
      padding: 12px 16px;
      font-size: 16px;
      font-family: var(--font-sans);
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      color: var(--text-primary);
    }

    .newsletter-page-input::placeholder {
      color: var(--text-tertiary);
    }

    .newsletter-page-input:focus {
      outline: none;
      border-color: var(--accent-warm);
    }

    .newsletter-page-btn {
      padding: 12px 24px;
      font-size: 16px;
      font-family: var(--font-sans);
      font-weight: 500;
      background: var(--accent-warm);
      color: var(--bg-primary);
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: opacity 0.15s;
    }

    .newsletter-page-btn:hover {
      opacity: 0.9;
    }

    @media (max-width: 480px) {
      .newsletter-page-form {
        flex-direction: column;
      }
    }


    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    /* Playground animations */
    @keyframes playground-pulse {
      0%, 100% { opacity: 0.6; }
      50% { opacity: 1; }
    }

    @keyframes playground-shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }

    /* Code editor - unified component for all code blocks */
    .code-editor {
      display: flex;
      font-family: var(--font-mono);
      font-size: 12px;
      line-height: 20px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: 6px;
      overflow: hidden;
      margin: 16px 0;
    }

    .code-editor-lines {
      display: flex;
      flex-direction: column;
      padding: 16px 0;
      color: var(--text-tertiary);
      text-align: right;
      user-select: none;
      min-width: 40px;
      overflow: hidden;
      border-right: 1px solid var(--border-subtle);
    }

    .code-editor-lines span {
      padding: 0 8px 0 16px;
    }

    .code-editor-content {
      flex: 1;
      position: relative;
      min-width: 0;
      overflow: auto;
    }

    .code-editor-content pre {
      margin: 0 !important;
      padding: 16px !important;
      background: transparent !important;
      border: 0 !important;
      border-radius: 0 !important;
      font-family: inherit !important;
      font-size: inherit !important;
      line-height: inherit !important;
      white-space: pre !important;
      overflow: visible !important;
    }

    .code-editor-content pre code {
      padding: 0 !important;
      margin: 0 !important;
      background: none !important;
      border: 0 !important;
      font-family: inherit !important;
      font-size: inherit !important;
      line-height: inherit !important;
      white-space: pre !important;
    }

    .code-editor-input {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 16px;
      border: 0;
      resize: none;
      background: transparent;
      color: transparent;
      caret-color: #fff;
      font-family: inherit;
      font-size: inherit;
      line-height: inherit;
      white-space: pre;
      outline: none;
      overflow: auto;
      z-index: 1;
    }

    .code-editor-input:disabled {
      cursor: default;
    }

    .code-editor-input:focus-visible {
      box-shadow: none;
    }

    /* Playground styles */
    .playground {
      position: relative;
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: 10px;
      margin: 24px 0;
      overflow: hidden;
    }

    .playground .code-editor {
      margin: 0;
      border: 0;
      border-radius: 0;
      border-bottom: 1px solid var(--border-subtle);
    }

    .playground .code-editor-content pre,
    .playground .code-editor-content pre code,
    .playground .code-editor-input {
      white-space: pre-wrap !important;
      word-wrap: break-word;
    }

    .playground-controls {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 20px;
      background: var(--bg-tertiary);
      border-bottom: 1px solid var(--border-subtle);
    }

    .playground-controls-buttons {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .playground-controls-note {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--text-tertiary);
      min-width: 130px;
    }

    .playground-run,
    .playground-load {
      padding: 6px 16px;
      background: var(--accent-warm);
      color: #fff;
      border: none;
      border-radius: 4px;
      font-family: var(--font-sans);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      transform: translateY(0);
    }

    .playground-run:hover,
    .playground-load:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .playground-run:active,
    .playground-load:active {
      transform: translateY(0) scale(0.98);
      box-shadow: none;
    }

    .playground-run:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .playground-run.running {
      opacity: 0.7;
      transform: none;
    }

    .playground-run.running::after {
      content: '';
      display: inline-block;
      width: 12px;
      height: 12px;
      margin-left: 8px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: playground-spin 0.8s linear infinite;
    }

    @keyframes playground-spin {
      to { transform: rotate(360deg); }
    }

    .playground-reset {
      padding: 6px 16px;
      background: var(--bg-secondary);
      color: var(--text-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: 4px;
      font-family: var(--font-sans);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .playground-reset:hover {
      background: var(--bg-tertiary);
      border-color: var(--border-default);
    }

    .playground-reset:active {
      transform: scale(0.98);
    }

    .playground-reset:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .playground-reset.resetting {
      opacity: 0.6;
    }

    .playground-output {
      background: var(--bg-primary);
      position: relative;
    }

    .playground-output.hidden {
      display: none;
    }

    .playground-output > pre {
      margin: 0;
    }

    .playground-output code {
      display: block;
      padding: 16px 20px;
      font-family: var(--font-mono);
      font-size: 13px;
      line-height: 1.6;
      color: var(--text-secondary);
      white-space: pre-wrap;
      transition: opacity 0.15s ease;
    }

    .playground-output.loading code {
      opacity: 0.4;
    }

    .playground-output.resetting code {
      opacity: 0.3;
    }

    .playground.loading .code-editor {
      opacity: 0.5;
    }

    .playground.loading .code-editor::after,
    .playground.resetting .code-editor::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 100%
      );
      background-size: 200% 100%;
      animation: playground-shimmer 1.5s ease-in-out infinite;
      pointer-events: none;
    }

    /* Rails playground */

    .playground[data-runtime="rails"] .playground-controls {
      display: flex;
    }

    .playground-toolbar {
      padding: 12px 20px;
      background: var(--bg-tertiary);
      border-bottom: 1px solid var(--border-subtle);
    }

    .playground-examples {
      font-family: var(--font-mono);
      font-size: 13px;
      padding: 6px 10px;
      background: var(--bg-secondary);
      color: var(--text-primary);
      border: 1px solid var(--border-subtle);
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .playground-examples:hover {
      background: var(--bg-tertiary);
      border-color: var(--border-default);
    }


