 :root {
      --bg: #0d0f14;
      --surface: #13161d;
      --border: #1e2230;
      --accent: #6c8cff;
      --accent2: #a78bfa;
      --text: #c9d1e8;
      --muted: #5a6280;
      --heading: #eef0f8;
      --tag-bg: #1a1f30;
    }

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

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-weight: 300;
      font-size: 16px;
      line-height: 1.75;
      min-height: 100vh;
    }

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

    /* — Glow blobs — */
   

    /* — Layout — */
    .wrapper {
      position: relative;
      z-index: 1;
      max-width: 780px;
      margin: 0 auto;
      padding: 80px 32px 120px;
    }

    /* — Header — */
    header {
      margin-bottom: 64px;
      padding-bottom: 40px;
      border-bottom: 1px solid var(--border);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 40px;
      text-decoration: none;
    }

    .brand-icon {
      width: 36px; 
      height: 36px;
      /* background: linear-gradient(135deg, var(--accent), var(--accent2)); */
      border-radius: 10px;
      /* display: flex; align-items: center; justify-content: center; */
      /* font-size: 18px; */
    }

    .brand-name {
      font-family: 'DM Serif Display', serif;
      font-size: 18px;
      color: var(--heading);
      letter-spacing: 0.01em;
    }

    .page-label {
      display: inline-block;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--accent);
      background: rgba(108,140,255,0.1);
      border: 1px solid rgba(108,140,255,0.2);
      padding: 4px 12px;
      border-radius: 20px;
      margin-bottom: 20px;
    }

    h1 {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(32px, 5vw, 48px);
      font-weight: 400;
      color: var(--heading);
      line-height: 1.15;
      margin-bottom: 16px;
      text-align: center;
    }

    h1 em {
      font-style: italic;
      /* color: var(--accent2); */
    }

    .meta {
      font-size: 13px;
      color: var(--muted);
      letter-spacing: 0.02em;
    }

    /* — TOC — */
    .toc {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 28px 32px;
      margin-bottom: 56px;
    }

    .toc-label {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 16px;
    }

    .toc ol {
      list-style: none;
      counter-reset: toc;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px 24px;
    }

    @media (max-width: 540px) {
      .toc ol { grid-template-columns: 1fr; }
    }

    .toc li {
      counter-increment: toc;
      display: flex;
      align-items: baseline;
      gap: 8px;
    }

    .toc li::before {
      content: counter(toc, decimal-leading-zero);
      font-size: 11px;
      color: var(--accent);
      font-weight: 500;
      flex-shrink: 0;
    }

    .toc a {
      color: var(--text);
      text-decoration: none;
      font-size: 14px;
      transition: color 0.2s;
    }

    .toc a:hover { color: var(--accent); }

    /* — Sections — */
    section {
      margin-bottom: 52px;
    }

    .section-anchor {
      display: block;
      position: relative;
      top: -80px;
      visibility: hidden;
    }

    h2 {
      font-family: 'DM Serif Display', serif;
      font-size: 24px;
      font-weight: 400;
      color: var(--heading);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 14px;
    }

    h2 .num {
      font-family: 'DM Sans', sans-serif;
      font-size: 12px;
      font-weight: 500;
      color: var(--accent);
      background: rgba(108,140,255,0.1);
      border: 1px solid rgba(108,140,255,0.2);
      border-radius: 6px;
      padding: 2px 8px;
      letter-spacing: 0.05em;
    }

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

    /* — Info cards — */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 24px 28px;
      margin: 20px 0;
    }

    .card-title {
      font-size: 13px;
      font-weight: 500;
      color: var(--heading);
      letter-spacing: 0.04em;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .card-title .dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent);
      flex-shrink: 0;
    }

    ul.styled {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    ul.styled li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 15px;
    }

    ul.styled li::before {
      content: '→';
      color: var(--accent);
      flex-shrink: 0;
      margin-top: -1px;
    }

    /* — Third-party table — */
    .tp-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 20px 0;
    }

    .tp-row {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 18px 22px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px 16px;
      align-items: start;
    }

    @media (max-width: 500px) {
      .tp-row { grid-template-columns: 1fr; }
    }

    .tp-name {
      font-weight: 500;
      color: var(--heading);
      font-size: 15px;
    }

    .tp-purpose {
      font-size: 13px;
      color: var(--muted);
    }

    .tp-link a {
      font-size: 13px;
      color: var(--accent);
      text-decoration: none;
      word-break: break-all;
    }

    .tp-link a:hover { text-decoration: underline; }

    /* — Highlight box — */
    .highlight {
      border-left: 3px solid var(--accent);
      padding: 16px 20px;
      background: rgba(108,140,255,0.05);
      border-radius: 0 10px 10px 0;
      margin: 20px 0;
      font-size: 15px;
    }

    /* — Contact — */
    .contact-box {
      background: linear-gradient(135deg, rgba(108,140,255,0.08), rgba(167,139,250,0.08));
      border: 1px solid rgba(108,140,255,0.2);
      border-radius: 16px;
      padding: 32px;
      text-align: center;
    }

    .contact-box h3 {
      font-family: 'DM Serif Display', serif;
      font-size: 22px;
      color: var(--heading);
      margin-bottom: 10px;
    }

    .contact-box p {
      color: var(--muted);
      font-size: 15px;
      margin-bottom: 20px;
    }

    .contact-email {
      display: inline-block;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 22px;
      font-size: 15px;
      color: var(--accent);
      text-decoration: none;
      transition: border-color 0.2s, background 0.2s;
    }

    .contact-email:hover {
      border-color: var(--accent);
      background: rgba(108,140,255,0.08);
    }

    /* — Footer — */
    footer {
      margin-top: 80px;
      padding-top: 32px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    footer p {
      font-size: 13px;
      color: var(--muted);
      margin: 0;
    }

    /* — Fade-in animation — */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .wrapper > * {
      animation: fadeUp 0.6s ease both;
    }

    header { animation-delay: 0.05s; }
    .toc   { animation-delay: 0.15s; }
    section:nth-child(1) { animation-delay: 0.2s; }
    section:nth-child(2) { animation-delay: 0.25s; }
    section:nth-child(3) { animation-delay: 0.3s; }