  :root {
    --paper: #FBFAF6;
    --recessed: #F2F0E9;
    --ink: #191712;
    --ink-muted: #6C665A;
    --rule: #E0DCD1;
    --red: #B31324;
    --red-g: #CE1126;
    --green: #0F6B3B;
    --green-g: #149954;
    color-scheme: light dark;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --paper: #EAE2CE;
      --recessed: #E1D7BC;
      --ink: #241F14;
      --ink-muted: #6E6350;
      --rule: #CFC4A6;
      --red: #A31220;
      --red-g: #C11224;
      --green: #0D5F35;
      --green-g: #127A44;
      color-scheme: light;
    }
  }
  :root[data-theme="light"] {
    --paper: #FBFAF6;
    --recessed: #F2F0E9;
    --ink: #191712;
    --ink-muted: #6C665A;
    --rule: #E0DCD1;
    --red: #B31324;
    --red-g: #CE1126;
    --green: #0F6B3B;
    --green-g: #149954;
    color-scheme: light;
  }
  :root[data-theme="dark"] {
    --paper: #EAE2CE;
    --recessed: #E1D7BC;
    --ink: #241F14;
    --ink-muted: #6E6350;
    --rule: #CFC4A6;
    --red: #A31220;
    --red-g: #C11224;
    --green: #0D5F35;
    --green-g: #127A44;
    color-scheme: light;
  }

  html { font-size: 100%; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Iowan Old Style', Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, 'Times New Roman', serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    font-variant-numeric: oldstyle-nums;
    -webkit-font-smoothing: antialiased;
  }
  ::selection { background: var(--red-g); color: var(--paper); }

  [lang="ar"] {
    font-family: 'Geeza Pro', 'Al Bayan', 'Noto Naskh Arabic', 'Times New Roman', serif;
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    font-size: 1.08em;
    line-height: 1.5;
  }

  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }

  a { color: inherit; }
  p a, li a, figcaption a {
    text-decoration-color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s;
  }
  p a:hover, li a:hover, figcaption a:hover { color: var(--red); }
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--red-g);
    outline-offset: 3px;
  }

  .skip-link {
    position: fixed;
    top: -4rem;
    left: 1rem;
    z-index: 10;
    background: var(--ink);
    color: var(--paper);
    padding: 0.6rem 1rem;
    text-decoration: none;
    transition: top 0.2s;
  }
  .skip-link:focus { top: 1rem; }

  .wrap {
    max-width: 66rem;
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 6vw, 4rem);
  }

  .smallcaps {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.6875rem;
    font-weight: 600;
    font-variant-numeric: lining-nums tabular-nums;
  }

  h1, h2, h3 { text-wrap: balance; font-weight: 400; margin: 0; }

  /* Header */
  .folio {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--rule);
    padding-top: 0.8rem;
    color: var(--ink-muted);
  }
  .navrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem 1.5rem;
    flex-wrap: wrap;
    padding-block: 1.15rem 1rem;
  }
  .brand {
    color: var(--red);
    text-decoration: none;
    font-size: 0.875rem;
  }
  .nav { display: flex; gap: 0.4rem 1.4rem; flex-wrap: wrap; }
  .nav a {
    text-decoration: none;
    color: var(--ink-muted);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
  }
  .nav a:hover { color: var(--ink); }
  .nav a.current { color: var(--ink); border-bottom-color: var(--red-g); }
  .dbl {
    height: 3px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .band-row { padding-block: 0.9rem; }

  /* Pages */
  .page { display: none; }
  .page.active { display: block; }

  /* Cover (home) */
  .cover { text-align: center; padding-block: 4.5rem 3.5rem; }
  .cover .eyebrow { color: var(--red); margin: 0 0 2rem; }
  .cover-title .ar-name {
    display: block;
    font-size: clamp(2.3rem, 6vw, 3.7rem);
    line-height: 1.35;
    font-weight: 400;
  }
  .cover-title .en-name {
    display: block;
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-top: 0.9rem;
  }
  .cover .dek {
    font-style: italic;
    color: var(--ink-muted);
    margin: 1.8rem 0 0;
    font-size: 1.125rem;
  }
  .cover-orn { margin: 2.4rem auto 0; width: 68px; color: var(--red-g); }
  .cover-orn svg { display: block; width: 100%; height: auto; }

  /* Featured figure (home) */
  .feature {
    border-top: 1px solid var(--rule);
    padding-block: 3rem 1.5rem;
    display: flex;
    justify-content: center;
  }
  .feature .fig { max-width: 320px; text-align: center; }

  /* Continue links */
  .continue { text-align: right; margin-top: 2.8rem; }
  .continue a {
    text-decoration: none;
    color: var(--red);
    border-bottom: 2px dashed var(--red);
    padding-bottom: 2px;
  }
  .continue a:hover { color: var(--ink); border-bottom-color: var(--ink); }

  /* Contents */
  .toc { padding-block: 1rem 4rem; }
  .toc-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.6rem;
    border-top: 1px solid var(--rule);
    padding-top: 2.4rem;
  }
  .toc-head .smallcaps { color: var(--red); }
  .toc-head [lang="ar"] { color: var(--ink-muted); }
  .toc ol { list-style: none; margin: 0; padding: 0; }
  .toc li + li { margin-top: 0.7rem; }
  .toc a { display: flex; align-items: baseline; text-decoration: none; }
  .toc-no {
    color: var(--red);
    font-variant-numeric: lining-nums tabular-nums;
    font-size: 0.875rem;
    min-width: 2.4rem;
  }
  .toc-title { transition: color 0.2s; }
  .toc a:hover .toc-title { color: var(--red); }
  .leader {
    flex: 1 1 auto;
    border-bottom: 1px dotted var(--rule);
    margin: 0 0.6em;
    transform: translateY(-0.28em);
    min-width: 2rem;
  }
  .toc-ar { color: var(--ink-muted); }

  /* Catalog sections */
  .cat {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    column-gap: 3rem;
    border-top: 1px solid var(--rule);
    padding-block: 4rem 4.5rem;
  }
  .rail p { margin: 0; }
  .rail .no {
    color: var(--red);
    font-variant-numeric: lining-nums tabular-nums;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
  }
  .rail .no [lang="ar"] { color: var(--ink-muted); margin-inline-start: 0.35em; }
  .rail .lbl { color: var(--ink); margin-top: 0.5rem; }
  .rail .lbl-ar { color: var(--ink-muted); margin-top: 0.3rem; }
  .matter > h2 {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.15;
    margin-bottom: 1.6rem;
  }
  .matter p { max-width: 62ch; margin: 0 0 1.2rem; }
  .matter p:last-child { margin-bottom: 0; }

  .dropcap::first-letter {
    float: left;
    font-size: 3.4em;
    line-height: 0.85;
    color: var(--red-g);
    padding-right: 0.12em;
    margin-top: 0.04em;
  }

  blockquote {
    margin: 2rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 2px solid var(--red-g);
    background: var(--recessed);
    font-style: italic;
    max-width: 55ch;
  }
  blockquote p { margin: 0; }

  /* Programs */
  .prog { border-top: 1px solid var(--rule); padding-block: 1.6rem; }
  .prog:first-of-type { border-top: none; padding-top: 0.4rem; }
  .prog h3 { font-size: 1.25rem; line-height: 1.3; }
  .prog h3 [lang="ar"] { color: var(--ink-muted); font-size: 1em; margin-inline-start: 0.4em; }
  .prog .gloss {
    font-style: italic;
    color: var(--ink-muted);
    font-size: 1rem;
    margin: 0.15rem 0 0.7rem;
  }
  .prog p { max-width: 62ch; margin: 0; }

  /* Events */
  .callout {
    border: 1px solid var(--green);
    padding: 1.2rem 1.5rem;
    max-width: 58ch;
    margin-bottom: 2.2rem;
  }
  .callout .smallcaps { color: var(--green); display: block; margin-bottom: 0.4rem; }
  .callout p { margin: 0; }
  .evt-list { list-style: none; margin: 0; padding: 0; }
  .evt {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    column-gap: 2rem;
    border-top: 1px solid var(--rule);
    padding-block: 1.15rem;
    align-items: baseline;
  }
  .evt:first-child { border-top: none; padding-top: 0.4rem; }
  .evt-date { color: var(--green); }
  .evt-title { font-size: 1.125rem; margin: 0; }
  .evt-detail {
    font-style: italic;
    color: var(--ink-muted);
    font-size: 1rem;
    margin: 0.15rem 0 0;
    max-width: 52ch;
  }
  .evt-venue { color: var(--ink-muted); text-align: right; }
  .evt-tickets { margin: 0.8rem 0 0; }
  .ticket-cta {
    display: inline-block;
    border: 1px solid var(--green);
    color: var(--green);
    padding: 0.45rem 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }
  .ticket-cta:hover { background: var(--green); color: var(--paper); }
  .chip {
    display: inline-block;
    border: 1px solid var(--green);
    color: var(--green);
    padding: 0.05rem 0.45rem;
  }
  .caption-line {
    font-style: italic;
    color: var(--ink-muted);
    font-size: 1rem;
    border-top: 1px solid var(--rule);
    padding-top: 0.9rem;
    margin: 1.6rem 0 0;
    max-width: 62ch;
  }

  /* Archive figures */
  .term {
    color: var(--green);
    display: block;
    border-top: 1px solid var(--rule);
    padding-top: 1rem;
    margin: 2.4rem 0 1.4rem;
  }
  .term:first-of-type { margin-top: 0.4rem; }
  .figs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2.4rem;
  }
  .fig { margin: 0; }
  .fmount {
    background: var(--recessed);
    border: 1px solid var(--rule);
    padding: 0.75rem;
  }
  .fmount img { display: block; width: 100%; height: auto; }
  .fig figcaption { margin-top: 0.8rem; }
  .fig-no { color: var(--green); display: block; }
  .fig-title { display: block; font-size: 1.125rem; margin-top: 0.25rem; }
  .fig-cap {
    display: block;
    font-style: italic;
    color: var(--ink-muted);
    font-size: 1rem;
    margin-top: 0.3rem;
  }

  /* Plates */
  .plates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 2.2rem 0;
  }
  .plate { margin: 0; }
  .mount {
    background: var(--recessed);
    border: 1px solid var(--rule);
    padding: 2.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
  }
  .mount svg { max-width: 100%; max-height: 100%; }
  .plate-red .mount svg { color: var(--red-g); }
  .plate-green .mount svg { color: var(--green-g); }
  .plate-ink .mount svg { color: var(--ink); }
  .plate figcaption { margin-top: 0.9rem; }
  .plate .pl-no { color: var(--red); display: block; }
  .plate-green .pl-no { color: var(--green); }
  .plate-ink .pl-no { color: var(--ink); }
  .plate .pl-cap {
    font-style: italic;
    color: var(--ink-muted);
    font-size: 1rem;
    display: block;
    margin-top: 0.3rem;
  }
  .plate .pl-ar { color: var(--ink-muted); display: block; margin-top: 0.2rem; }

  /* Join */
  .join-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .cta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
    margin-top: 2.4rem;
  }
  .btn {
    display: inline-block;
    border: 1px solid var(--ink);
    padding: 0.85rem 1.6rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }
  .btn:hover { background: var(--ink); color: var(--paper); }
  .cta-quiet {
    text-decoration: none;
    border-bottom: 2px dashed var(--red);
    padding-bottom: 2px;
    transition: color 0.2s;
  }
  .cta-quiet:hover { color: var(--red); }
  .welcome { margin-top: 3rem; font-size: 1.125rem; }
  .board { margin-top: 2.6rem; }
  .board-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-top: 1px solid var(--rule);
    padding-top: 1rem;
  }
  .board-head .smallcaps { color: var(--green); }
  .board-head [lang="ar"] { color: var(--ink-muted); }
  .board ul {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.1rem 2rem;
    max-width: 62ch;
  }
  .board .role { display: block; color: var(--ink-muted); }
  .board .name { display: block; margin-top: 0.2rem; }
  .board .note {
    font-style: italic;
    color: var(--ink-muted);
    font-size: 1rem;
    margin: 1.6rem 0 0;
    max-width: 62ch;
  }
  .contact, .give { margin-top: 2.6rem; }
  .contact-head, .give-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-top: 1px solid var(--rule);
    padding-top: 1rem;
  }
  .contact-head .smallcaps { color: var(--green); }
  .give-head .smallcaps { color: var(--red); }
  .contact-head [lang="ar"], .give-head [lang="ar"] { color: var(--ink-muted); }
  .contact-primary { margin-top: 1.4rem; }
  .give p { margin-top: 1.4rem; }
  .give-note { font-style: italic; color: var(--ink-muted); font-size: 1rem; }
  .contact-block { list-style: none; margin: 1.4rem 0 0; padding: 0; max-width: 62ch; }
  .contact-block li {
    border-top: 1px solid var(--rule);
    padding-block: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 2rem;
    justify-content: space-between;
    align-items: baseline;
  }
  .contact-block .k { color: var(--ink-muted); }

  /* Colophon: always the beige linen ground */
  .colophon {
    --paper: #E6DCC2;
    --recessed: #DDD1B1;
    --ink: #241F14;
    --ink-muted: #6F6450;
    --rule: #C9BD9D;
    --red: #A31220;
    --red-g: #C11224;
    --green: #0D5F35;
    --green-g: #127A44;
    background: var(--paper);
    color: var(--ink);
    margin-top: 4.5rem;
  }
  .colophon-inner {
    max-width: 66rem;
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 6vw, 4rem);
    padding-block: 3.5rem 0;
    text-align: center;
  }
  .endpiece-fig { margin: 0 auto 1.6rem; width: min(200px, 60%); }
  .endpiece-fig img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--rule);
  }
  .colophon .org-ar { display: block; font-size: 1.35rem; margin-top: 1.6rem; }
  .colophon .org-en { display: block; color: var(--red); margin-top: 0.6rem; }
  .darwish { margin: 1.8rem 0 0; }
  .darwish [lang="ar"] { display: block; font-size: 1.25rem; }
  .darwish .tr { display: block; font-style: italic; color: var(--ink-muted); font-size: 1rem; margin-top: 0.35rem; }
  .fineprint { color: var(--ink-muted); font-size: 0.9375rem; margin-top: 1.8rem; }
  .credit { color: var(--ink-muted); font-size: 0.875rem; font-style: italic; margin-top: 1.4rem; }
  .theme-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    margin: 1.6rem 0 1.2rem;
    color: var(--ink-muted);
  }
  .theme-link {
    background: none;
    border: none;
    padding: 0.2rem 0.35rem;
    line-height: 1;
    color: var(--ink-muted);
    font: inherit;
    cursor: pointer;
    font-size: 0.9rem;
  }
  .theme-link:hover { color: var(--red); }
  .foot-dbl { margin-top: 1.6rem; margin-bottom: 0; border-color: var(--rule); }
  .colophon .dbl { border-top-color: var(--rule); border-bottom-color: var(--rule); }
  .colophon-pad { padding-bottom: 2.5rem; }

  @media print {
    :root {
      --paper: #FFFFFF;
      --recessed: #F2F0E9;
      --ink: #191712;
      --ink-muted: #6C665A;
      --rule: #C9C2B2;
      --red: #B31324;
      --red-g: #CE1126;
      --green: #0F6B3B;
      --green-g: #149954;
    }
    .nav, .theme-row, .continue { display: none !important; }
    .page { display: block !important; }
    .page:not(#page-home) { break-before: page; }
    .colophon { break-before: page; }
    .fig, .plate, .prog, .evt, blockquote, .callout { break-inside: avoid; }
  }

  @media (max-width: 760px) {
    .cat { grid-template-columns: 1fr; padding-block: 3rem; }
    .rail { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.4rem; }
    .rail .lbl { margin-top: 0; }
    .rail .lbl-ar { margin-top: 0; margin-left: auto; }
    .evt { grid-template-columns: 1fr; row-gap: 0.2rem; }
    .evt-venue { text-align: left; }
    .cover { padding-block: 3.5rem 2.8rem; }
    .toc-ar { display: none; }
    .join-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 700px) {
    .plates { grid-template-columns: 1fr; }
  }
