@font-face {
    font-family: "Newsreader";
    src: url("assets/fonts/Newsreader.woff2") format("woff2");
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
  }
@font-face {
    font-family: "Inter";
    src: url("assets/fonts/Inter.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Inter";
    src: url("assets/fonts/Inter-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Inter";
    src: url("assets/fonts/Inter-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "JetBrains Mono";
    src: url("assets/fonts/JetBrainsMono.woff2") format("woff2");
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "TsangerJinKai02";
    src: url("assets/fonts/TsangerJinKai02-W04.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
  }
  

  :root {
    --parchment:    #f5f4ed;
    --ivory:        #faf9f5;
    --warm-sand:    #e8e6dc;
    --dark-surface: #30302e;
    --deep-dark:    #141413;

    --brand:        #1B365D;
    --brand-light:  #2D5A8A;

    --near-black:   #141413;
    --dark-warm:    #3d3d3a;
    --charcoal:     #4d4c48;
    --olive:        #5e5d59;
    --stone:        #87867f;
    --warm-silver:  #b0aea5;

    --border-cream: #e8e5da;
    --border-warm:  #e0ddd2;
    --border-soft:  #e5e3d8;
    --border-dark:  #30302e;

    --ring-warm:    #d1cfc5;
    --ring-deep:    #c2c0b6;

    /* Slide-scale spacing */
    --slide-pad:    80px;

    --serif: "TsangerJinKai02", "Newsreader", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", Georgia, serif;
    --sans: "Inter", "TsangerJinKai02", -apple-system, BlinkMacSystemFont, "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    --mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, Monaco, monospace;
  }

  /* Language switcher */
  .lang-switch {
    position: fixed;
    top: 24px;
    right: 32px;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    gap: 0;
    z-index: 100;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
  }
  .lang-switch a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: var(--olive);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    background: var(--ivory);
    transition: background 0.15s, color 0.15s;
  }
  .lang-switch a:first-child { border-radius: 4px 0 0 4px; }
  .lang-switch a:last-child { border-radius: 0 4px 4px 0; border-left: none; }
  .lang-switch a.active {
    background: var(--brand);
    color: var(--ivory);
    border-color: var(--brand);
  }
  .lang-switch a:hover:not(.active) {
    background: var(--warm-sand);
    color: var(--near-black);
  }
  .lang-switch.hidden {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
  }

  /* Page transition */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }

  /* Print rules: keep warm background, avoid harsh page breaks */
  @page { size: A4; margin: 14mm 16mm; background: #f5f4ed; }
  @media print {
    body { background: #f5f4ed; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .page { padding: 0 !important; max-width: 100% !important; }
    section { page-break-inside: auto; margin-bottom: 36px; }
    .hero, .section-head, .family, .comp, .shadow-demo, .tint, .swatch, .radius, blockquote, pre, tr, .anti > div { break-inside: avoid; page-break-inside: avoid; }
    .hero h1 { font-size: 68px; }
    h2.section-title { font-size: 26px; }
    .comp-grid, .swatches, .tint-strip, .family-grid, .shadow-row, .anti { break-inside: auto; }
  }
  body {
    background: var(--parchment);
    color: var(--near-black);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 88px 64px 120px;
    animation: fadeIn 0.4s ease-out;
  }

  /* ---------- Hero ---------- */
  .hero {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-warm);
    margin-bottom: 48px;
  }
  .hero-tokens {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  .hero-tokens span {
    display: flex;
    gap: 6px;
    font-size: 13px;
    color: var(--stone);
    font-variant-numeric: tabular-nums;
  }
  .hero-tokens b {
    color: var(--charcoal);
    font-weight: 500;
  }
  .eyebrow {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--stone);
    margin: 0 0 18px;
  }
  .hero-links {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .hero-links a {
    color: var(--stone);
    display: flex;
    align-items: center;
    transition: color 0.15s;
  }
  .hero-links a:hover {
    color: var(--charcoal);
  }
  .hero h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 92px;
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 0 0 14px;
    color: var(--near-black);
  }
  .hero h1 .cn {
    display: inline-block;
    margin-left: 16px;
    color: var(--brand);
  }
  .hero .tagline {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.35;
    color: var(--olive);
    margin: 0;
  }

  /* ---------- Section ---------- */
  section { margin-bottom: 96px; }
  .section-head { margin-bottom: 28px; }
  .section-num {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 14px;
    color: var(--brand);
    letter-spacing: 0.5px;
    margin: 0 0 6px;
  }
  .section-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 32px;
    line-height: 1.2;
    color: var(--near-black);
    margin: 0;
    display: inline-block;
    letter-spacing: 0.5px;
  }
  .section-lede {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.55;
    color: var(--olive);
    margin: 14px 0 0;
  }

  /* ---------- Manifesto ---------- */
  .manifesto {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.5;
    color: var(--near-black);
    margin: 0 0 28px;
    font-weight: 500;
  }
  .manifesto em {
    color: var(--brand);
    font-style: normal;
  }

  .rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--border-soft);
  }
  .rules li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 18px 24px 18px 0;
    border-bottom: 1px solid var(--border-soft);
    align-items: baseline;
  }
  .rules li:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--border-soft); padding-left: 0; }
  .rules li:nth-child(even) { padding-left: 32px; }
  .rules .n {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 20px;
    color: var(--brand);
    line-height: 1;
  }
  .rules p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--charcoal);
  }
  .rules code {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--brand);
    background: #EEF2F7;
    padding: 1px 5px;
    border-radius: 2px;
  }

  /* ---------- Color ---------- */
  .swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
  }
  .swatch {
    border: 1px solid var(--border-cream);
    border-radius: 8px;
    background: var(--ivory);
    overflow: hidden;
  }
  .swatch .chip {
    height: 96px;
    border-bottom: 1px solid var(--border-cream);
  }
  .swatch .info {
    padding: 12px 14px 14px;
  }
  .swatch .name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 15px;
    color: var(--near-black);
    margin: 0;
    line-height: 1.25;
  }
  .swatch .role {
    font-size: 12px;
    color: var(--olive);
    margin: 3px 0 6px;
    line-height: 1.4;
  }
  .swatch .hex {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--stone);
    letter-spacing: 0.3px;
  }
  .swatch.brand .name { color: var(--brand); }
  .swatch.dark .chip { border-bottom-color: var(--deep-dark); }

  .subhead {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 18px;
    color: var(--dark-warm);
    margin: 40px 0 14px;
  }

  /* tag tint table */
  .tint-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    background: var(--parchment);
  }
  .tint {
    border: 1px solid var(--border-cream);
    border-radius: 8px;
    background: var(--ivory);
    padding: 18px 16px 14px;
  }
  .tint .sample {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand);
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
  }
  .tint .opacity {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--olive);
    margin: 0 0 2px;
  }
  .tint .hex {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--stone);
  }
  .tint.default { outline: 1.5px solid var(--brand); outline-offset: -1.5px; }
  .tint.default .opacity { color: var(--brand); }
  .tint .flag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: var(--brand);
    margin-bottom: 8px;
    text-transform: uppercase;
    display: block;
    height: 11px;
  }

  /* ---------- Type ---------- */
  .type-grid {
    display: grid;
    grid-template-columns: 180px 1fr 160px;
    column-gap: 40px;
    row-gap: 0;
    border-top: 1px solid var(--border-soft);
  }
  .type-row {
    display: contents;
  }
  .type-row > * {
    padding: 22px 0;
    border-bottom: 1px solid var(--border-soft);
    align-self: baseline;
  }
  .type-label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--stone);
    padding-top: 30px !important;
  }
  .type-specs {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--olive);
    line-height: 1.6;
    text-align: right;
    padding-top: 30px !important;
  }
  .type-specs b { color: var(--charcoal); font-weight: 500; }
  .type-sample.display {
    font-family: var(--serif); font-weight: 500;
    font-size: 60px; line-height: 1.1; color: var(--near-black);
    letter-spacing: -0.5px;
  }
  .type-sample.h1 {
    font-family: var(--serif); font-weight: 500;
    font-size: 30px; line-height: 1.2; color: var(--near-black);
  }
  .type-sample.h2 {
    font-family: var(--serif); font-weight: 500;
    font-size: 22px; line-height: 1.25; color: var(--near-black);
  }
  .type-sample.h3 {
    font-family: var(--serif); font-weight: 500;
    font-size: 17px; line-height: 1.3; color: var(--near-black);
  }
  .type-sample.lede {
    font-family: var(--serif); font-weight: 500;
    font-size: 15px; line-height: 1.55; color: var(--near-black);
    max-width: 540px;
  }
  .type-sample.body {
    font-family: var(--serif); font-weight: 500;
    font-size: 14px; line-height: 1.55; color: var(--charcoal);
    max-width: 540px;
  }
  .type-sample.dense {
    font-family: var(--serif); font-weight: 500;
    font-size: 14px; line-height: 1.4; color: var(--charcoal);
    max-width: 540px;
  }
  .type-sample.caption {
    font-family: var(--serif); font-weight: 500;
    font-size: 12px; line-height: 1.45; color: var(--olive);
  }
  .type-sample.label {
    font-family: var(--serif); font-weight: 500;
    font-size: 12px; line-height: 1.35; color: var(--brand);
    letter-spacing: 0.4px;
    text-transform: uppercase;
  }

  /* family cards */
  .family-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
  }
  .family {
    background: var(--ivory);
    border: 1px solid var(--border-cream);
    border-radius: 12px;
    padding: 28px 24px 22px;
  }
  .family .glyph {
    font-weight: 500;
    font-size: 80px;
    line-height: 1;
    color: var(--near-black);
    margin: 0 0 18px;
    letter-spacing: -1px;
  }
  .family.serif .glyph { font-family: var(--serif); }
  .family.sans .glyph { font-family: var(--sans); }
  .family.mono .glyph { font-family: var(--mono); font-weight: 500; font-size: 64px; }
  .family .role {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 18px;
    color: var(--near-black);
    margin: 0 0 4px;
  }
  .family .name {
    font-size: 12px;
    color: var(--olive);
    font-family: var(--mono);
    margin: 0 0 12px;
  }
  .family .use {
    font-size: 12px;
    color: var(--charcoal);
    line-height: 1.55;
    margin: 0;
  }

  /* ---------- Spacing ---------- */
  .space-table {
    width: 100%;
    border-collapse: collapse;
  }
  .space-table th, .space-table td {
    text-align: left;
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 14px;
    color: var(--charcoal);
    vertical-align: middle;
  }
  .space-table th {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--stone);
    padding-top: 0;
  }
  .space-table td.name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 15px;
    color: var(--near-black);
    width: 120px;
  }
  .space-table td.val { font-family: var(--mono); font-size: 12px; color: var(--olive); width: 130px; }
  .space-table td.bar {
    width: 280px;
  }
  .bar span {
    display: block;
    height: 10px;
    background: var(--brand);
    border-radius: 2px;
  }
  .space-table td.use { color: var(--olive); font-size: 12px; }

  /* radius row */
  .radii {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  .radius {
    text-align: center;
    flex: 0 0 auto;
  }
  .radius .box {
    width: 72px;
    height: 72px;
    background: var(--ivory);
    border: 1px solid var(--border-cream);
    margin-bottom: 8px;
  }
  .radius .r { font-family: var(--mono); font-size: 12px; color: var(--charcoal); }
  .radius .r b { color: var(--brand); font-weight: 500; }
  .radius .label { font-size: 12px; color: var(--olive); margin-top: 2px; }

  /* ---------- Components ---------- */
  .comp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .comp {
    background: var(--ivory);
    border: 1px solid var(--border-cream);
    border-radius: 12px;
    padding: 28px 28px 24px;
  }
  .comp h4 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 16px;
    color: var(--near-black);
    margin: 0 0 4px;
  }
  .comp .hint {
    font-size: 12px;
    color: var(--stone);
    font-family: var(--mono);
    margin: 0 0 20px;
  }
  .comp .demo { margin-bottom: 4px; }

  /* Buttons */
  .btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.1px;
  }
  .btn-primary {
    background: var(--brand);
    color: var(--ivory);
    box-shadow: 0 0 0 1px var(--brand);
  }
  .btn-secondary {
    background: var(--warm-sand);
    color: var(--charcoal);
    box-shadow: 0 0 0 1px var(--ring-warm);
  }
  .btn-ghost {
    background: transparent;
    color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
  }

  /* Tags */
  .tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 2px;
    color: var(--brand);
    letter-spacing: 0.2px;
  }
  .tag.calm { background: #EEF2F7; }
  .tag.standard { background: #E4ECF5; border-radius: 4px; padding: 2px 8px; }
  .tag.brush {
    background: linear-gradient(to right, #D6E1EE, #E4ECF5 70%, #EEF2F7);
  }

  /* Quote */
  .quote {
    border-left: 2px solid var(--brand);
    padding: 4px 0 4px 14px;
    color: var(--olive);
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
  }

  /* Metrics */
  .metrics {
    display: flex;
    gap: 28px;
  }
  .metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .metric-value {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }
  .metric-label {
    font-size: 12px;
    color: var(--olive);
  }

  /* Section title inline sample */
  .sample-section-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 18px;
    color: var(--near-black);
    display: inline-block;
    position: relative;
    padding-left: 12px;
  }
  .sample-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: 3px;
    background: var(--brand);
    border-radius: 2px;
  }

  /* Code block */
  .code {
    background: var(--ivory);
    border: 1px solid var(--border-cream);
    border-radius: 6px;
    padding: 12px 14px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.55;
    color: var(--near-black);
    margin: 0;
    white-space: pre;
    overflow-x: auto;
  }
  .code .k { color: var(--brand); }
  .code .c { color: var(--stone); }

  /* List */
  ul.dash {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--charcoal);
  }
  ul.dash li { position: relative; padding-left: 14px; }
  ul.dash li::before {
    content: "\2013";
    position: absolute;
    left: 0;
    color: var(--brand);
  }

  /* Shadows demo */
  .shadow-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
  }
  .shadow-demo {
    background: var(--ivory);
    border-radius: 12px;
    padding: 24px 20px;
    min-height: 110px;
  }
  .shadow-demo .t {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 15px;
    color: var(--near-black);
    margin: 0 0 4px;
  }
  .shadow-demo .s {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--olive);
    line-height: 1.5;
  }
  .sd-ring { box-shadow: 0 0 0 1px var(--ring-warm); }
  .sd-whisper { box-shadow: 0 4px 24px rgba(0,0,0,0.05); }
  .sd-alt { background: var(--deep-dark); color: var(--warm-silver); }
  .sd-alt .t { color: var(--ivory); font-family: var(--serif); }
  .sd-alt .s { color: var(--warm-silver); }

  /* Decision table */
  .decision {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  .decision th, .decision td {
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
    vertical-align: top;
  }
  .decision th {
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--stone);
    font-weight: 600;
    padding-top: 0;
  }
  .decision td.task {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 14px;
    color: var(--near-black);
    width: 38%;
  }
  .decision td.how { color: var(--charcoal); }
  .decision td.how code {
    font-family: var(--mono);
    font-size: 12px;
    background: #EEF2F7;
    color: var(--brand);
    padding: 1px 5px;
    border-radius: 2px;
  }

  /* Demo grid */
  .demo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
  }
  .demo-card a img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-cream);
    transition: box-shadow 0.2s;
  }
  .demo-card a img:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  }
  .demo-card .demo-title {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--near-black);
    margin: 10px 0 0;
  }
  .demo-card .demo-desc {
    font-size: 12px;
    color: var(--olive);
    margin: 2px 0 0;
  }

  /* Background text */
  .background-text {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-warm);
  }
  .background-text p {
    margin-bottom: 14px;
  }

  /* Brand footer */
  .footer {
    margin-top: 24px;
    padding-top: 40px;
    border-top: 1px solid var(--border-warm);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
  }
  .footer .mark {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .footer .mark img { width: 56px; height: 56px; }
  .footer .mark .wm-name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 28px;
    color: var(--near-black);
    margin: 0;
    line-height: 1;
  }
  .footer .mark .wm-sub {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--olive);
    margin: 4px 0 0;
  }
  .footer .colophon {
    font-size: 12px;
    color: var(--stone);
    line-height: 1.6;
    max-width: 420px;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  .footer .colophon b { color: var(--charcoal); font-weight: 500; }

  /* Anti-patterns */
  .anti {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
  }
  .anti > div {
    padding: 18px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.55;
  }
  .anti .no {
    background: var(--ivory);
    border: 1px solid var(--border-cream);
  }
  .anti .yes {
    background: var(--ivory);
    border: 1px solid var(--border-cream);
    border-left: 3px solid var(--brand);
  }
  .anti h5 {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: var(--stone);
  }
  .anti .yes h5 { color: var(--brand); }
  .anti p {
    margin: 0;
    color: var(--charcoal);
  }
  .anti code {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--brand);
    background: #EEF2F7;
    padding: 1px 4px;
    border-radius: 2px;
  }

@media (max-width: 768px) {
  /* Container + spacing */
  .page { padding: 48px 20px 64px; }
  section { margin-bottom: 56px; }
  .section-head { margin-bottom: 20px; }

  /* Typography scale */
  .hero h1 { font-size: 40px; letter-spacing: -0.5px; margin-bottom: 10px; }
  .hero h1 .cn { margin-left: 8px; }
  .hero .tagline { font-size: 17px; }
  .hero-tokens { gap: 14px; margin-top: 14px; }
  .section-title { font-size: 24px; }
  .manifesto { font-size: 17px; line-height: 1.5; }
  .subhead { font-size: 16px; margin: 28px 0 12px; }

  /* Grids: single column */
  .demo-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .demo-card { min-width: 0; }
  .demo-card .demo-desc { overflow-wrap: break-word; word-break: break-word; }
  .swatches { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .tint-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rules { grid-template-columns: 1fr; }
  .rules li:nth-child(odd) { padding-right: 0; border-right: none; }
  .rules li:nth-child(even) { padding-left: 0; }
  .type-grid { grid-template-columns: 1fr; row-gap: 0; }
  .type-row { display: block; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
  .type-row > * { border-bottom: none; padding: 4px 0; }
  .family-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .shadow-row { grid-template-columns: 1fr; }
  .anti { grid-template-columns: 1fr; }

  /* Table: hide bar column */
  .space-table td.bar { display: none; }

  /* Type samples */
  .type-sample.display { font-size: 36px; }
  .family .glyph { font-size: 48px; }
  .family .glyph.mono { font-size: 40px; }

  /* Footer */
  .footer { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer .colophon { text-align: left; max-width: 100%; }
  .footer .mark .wm-name { font-size: 22px; }

  /* Lang switch + eyebrow */
  .lang-switch { top: 16px; right: 16px; }
  .eyebrow { justify-content: flex-start; gap: 8px; }
  .eyebrow-date { display: none; }
  .hero-tokens { display: none; }

  /* Misc */
  .hero { padding-bottom: 32px; margin-bottom: 36px; }
  .comp { padding: 20px 16px 16px; }
  .family { padding: 20px 16px 16px; }
  .radius .box { width: 56px; height: 56px; }
}