
  /* Trial cut ships Medium only, so every weight maps to it; Geist covers any glyph it lacks */
  @font-face {
    font-family: "ABC Diatype";
    src: url("/assets/fonts/ABCDiatype-Medium-Trial.otf") format("opentype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }
  :root {
    --bg: #f4f4f4;
    --surface: #ffffff;
    --ink: #14140f;
    --muted: #74746f;
    --faint: rgba(0, 0, 0, 0.45);
    --fill-1: rgba(0, 0, 0, 0.03);
    --fill-2: rgba(0, 0, 0, 0.05);
    --fill-3: rgba(0, 0, 0, 0.09);
    --fill-4: rgba(0, 0, 0, 0.13);
    --danger: #e53e3e;
    --font: "ABC Diatype", "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --on-ink: #ffffff;
    --icon: rgba(0, 0, 0, 0.55);
    --overlay: rgba(20, 20, 15, 0.75);
    --logo-ink: #383434;
    --line: rgba(0, 0, 0, 0.1);
    --track: rgba(0, 0, 0, 0.05);
    --pop-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.14);
    --thumb: #14140f;
    --on-thumb: #ffffff;
    --nav-text: #525252;
    --nav-strong: #161616;
    --nav-active: #dedede;
    --nav-hover: #f7f7f7;
    --nav-rule: #e0e0e0;
    --nav-accent: #a8a8a8;
    --doc-bg: #ffffff;
    --doc-card: #f4f4f4;
    --doc-text: #161616;
    --doc-muted: #525252;
    --doc-rule: #e0e0e0;
    --doc-link: #0f62fe;
    --doc-media: #e0e0e0;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #1e1e1e;
      --surface: #2c2c2c;
      --ink: #e6e6e6;
      --muted: #8c8c8c;
      --faint: #6d6d6d;
      --fill-1: rgba(255, 255, 255, 0.03);
      --fill-2: rgba(255, 255, 255, 0.06);
      --fill-3: rgba(255, 255, 255, 0.1);
      --fill-4: rgba(255, 255, 255, 0.16);
      --on-ink: #1e1e1e;
      --icon: #8c8c8c;
      --overlay: rgba(0, 0, 0, 0.7);
      --logo-ink: #e6e6e6;
      --line: #333333;
      --track: #333333;
      --pop-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.45), 0 24px 56px rgba(0, 0, 0, 0.55);
      --thumb: #4d4d4d;
      --on-thumb: #e6e6e6;
      --nav-text: #8c8c8c;
      --nav-strong: #e6e6e6;
      --nav-active: #3a3a3a;
      --nav-hover: #333333;
      --nav-rule: #3a3a3a;
      --nav-accent: #e6e6e6;
      --doc-bg: #2c2c2c;
      --doc-card: #363636;
      --doc-text: #e6e6e6;
      --doc-muted: #8c8c8c;
      --doc-rule: #3a3a3a;
      --doc-link: #e6e6e6;
      --doc-media: #3a3a3a;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #1e1e1e;
    --surface: #2c2c2c;
    --ink: #e6e6e6;
    --muted: #8c8c8c;
    --faint: #6d6d6d;
    --fill-1: rgba(255, 255, 255, 0.03);
    --fill-2: rgba(255, 255, 255, 0.06);
    --fill-3: rgba(255, 255, 255, 0.1);
    --fill-4: rgba(255, 255, 255, 0.16);
    --on-ink: #1e1e1e;
    --icon: #8c8c8c;
    --overlay: rgba(0, 0, 0, 0.7);
    --logo-ink: #e6e6e6;
    --line: #333333;
    --track: #333333;
    --pop-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.45), 0 24px 56px rgba(0, 0, 0, 0.55);
    --thumb: #4d4d4d;
    --on-thumb: #e6e6e6;
    --nav-text: #8c8c8c;
    --nav-strong: #e6e6e6;
    --nav-active: #3a3a3a;
    --nav-hover: #333333;
    --nav-rule: #3a3a3a;
    --nav-accent: #e6e6e6;
    --doc-bg: #2c2c2c;
    --doc-card: #363636;
    --doc-text: #e6e6e6;
    --doc-muted: #8c8c8c;
    --doc-rule: #3a3a3a;
    --doc-link: #e6e6e6;
    --doc-media: #3a3a3a;
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background .2s, color .2s;
  }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  input { font: inherit; }

  /* ---------- Notification bar ---------- */
  .notice {
    flex: none; position: relative;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 36px; padding: 8px 48px;
    background: #D62BF4; color: #000;
    font-size: 13px; line-height: 18px; text-align: center;
  }
  .notice[hidden] { display: none; }
  .notice a { color: inherit; text-underline-offset: 3px; }
  .notice a:hover { color: #000; }
  .notice__tag {
    flex: none; padding: 1px 8px; border-radius: 100px;
    background: #000; color: #fff; font-size: 11px; letter-spacing: 0.3px;
  }
  .notice__close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 100px;
    display: grid; place-items: center; color: #000;
  }
  .notice__close:hover { color: #000; background: rgba(0, 0, 0, 0.1); }
  .notice__close svg { width: 12px; height: 12px; }

  /* ---------- Header ---------- */
  .topbar {
    height: 56px;
    flex: none;
    display: flex;
    align-items: center;
    padding: 0 8px 0 20px;
  }
  .topbar__side { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
  .logo { display: flex; color: var(--logo-ink); }
  /* Sized by the wordmark; the magenta accent hangs above and to the right without moving the layout */
  .logo svg { height: 17px; width: auto; display: block; overflow: visible; margin-right: 14px; }
  .site-name {
    display: flex; align-items: center; gap: 14px; margin-left: 14px;
    font-size: 17px; font-weight: 500; letter-spacing: -0.2px; white-space: nowrap; color: #000; text-decoration: none;
  }
  :root[data-theme-resolved="dark"] .site-name { color: var(--logo-ink); }
  .site-name::before { content: ""; width: 1px; height: 18px; background: currentColor; opacity: .3; }

  .segmented {
    position: relative;
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 100px;
    background: var(--track);
  }
  .segmented__thumb {
    position: absolute;
    top: 3px;
    height: 30px;
    border-radius: 999px;
    background: var(--thumb);
    transition: left .25s cubic-bezier(.3,.7,.2,1), width .25s cubic-bezier(.3,.7,.2,1);
  }
  .segmented button {
    position: relative;
    height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.07px;
    color: var(--muted);
    transition: color .2s;
  }
  .segmented button:hover { color: var(--ink); }
  .segmented button[aria-selected="true"] { color: var(--on-thumb); }
  .topbar__side--end { justify-content: flex-end; gap: 8px; }

  /* Centered search field on desktop; the icon button takes over on mobile */
  .header-search {
    position: relative;
    flex: 0 1 480px; min-width: 0; margin: 0 16px;
    display: flex; align-items: center; gap: 8px;
    height: 32px; padding: 0 10px 0 12px; border-radius: 100px;
    background: var(--fill-3); color: var(--muted);
    transition: background .15s, box-shadow .15s;
  }
  .header-search:hover { background: var(--fill-4); }
  .header-search:focus-within { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .header-search svg { flex: none; width: 16px; height: 16px; }
  .header-search input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none;
    font-size: 13px; color: var(--ink);
  }
  .header-search input::placeholder { color: var(--muted); }
  .header-search:focus-within .kbd { display: none; }
  .header-search__list {
    position: absolute; z-index: 70; top: calc(100% + 8px); left: 0; right: 0;
    margin: 0; padding: 8px; list-style: none;
    max-height: min(60vh, 420px); overflow-y: auto;
    border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--pop-shadow);
  }
  .header-search__list[hidden] { display: none; }
  #search-btn { display: none; }
  .theme-btn {
    width: 36px; height: 36px;
    border-radius: 100px;
    background: var(--track);
    color: var(--ink);
    display: grid; place-items: center;
    transition: background .15s;
  }
  .theme-btn:hover { background: var(--fill-3); }
  .theme-btn svg { width: 18px; height: 18px; display: block; }
  .theme-btn .icon-sun { display: none; }
  :root[data-theme-resolved="dark"] .theme-btn .icon-sun { display: block; }
  :root[data-theme-resolved="dark"] .theme-btn .icon-moon { display: none; }
  .menu-btn { display: none; }
  .scrim { display: none; }

  /* Header icon buttons share the theme button's shape */
  .theme-btn[aria-expanded="true"] { background: var(--thumb); color: var(--on-thumb); }
  .kbd {
    font-size: 11px; padding: 1px 6px; border-radius: 4px;
    border: 1px solid var(--line); color: var(--muted);
  }

  /* ---------- Site switcher ---------- */
  .apps { position: relative; }
  .apps__panel {
    position: absolute; z-index: 70; top: calc(100% + 8px); right: 0;
    width: 300px; max-height: calc(100vh - 120px); overflow-y: auto;
    padding: 8px; border-radius: 8px;
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--pop-shadow);
    opacity: 0; transform: translateY(-4px); pointer-events: none;
    transition: opacity .15s, transform .15s;
  }
  .apps__panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .apps__group + .apps__group { margin-top: 8px; }
  .apps__label {
    margin: 0; padding: 10px 12px 6px;
    font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted);
  }
  .apps__title {
    display: flex; justify-content: space-between;
    margin: 0 4px 4px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line);
    font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none;
  }
  .apps__title span { color: var(--muted); }
  .apps__title:hover span { color: var(--ink); }
  .apps__item {
    display: flex; align-items: center; gap: 12px;
    min-height: 36px; padding: 7px 12px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  }
  .apps__item:hover, .apps__item:focus-visible { background: var(--fill-3); outline: none; }
  .apps__item span { flex: 1; min-width: 0; }
  .apps__item small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--muted); }
  .apps__item svg { flex: none; width: 14px; height: 14px; color: var(--muted); }
  .apps__item[aria-current="page"] svg { color: var(--ink); }

  /* ---------- Search palette ---------- */
  .palette {
    position: fixed; inset: 0; z-index: 80;
    display: flex; justify-content: center; align-items: flex-start;
    padding: 12vh 16px 16px;
    background: rgba(0, 0, 0, 0.4);
  }
  .palette[hidden] { display: none; }
  .palette__box {
    width: min(560px, 100%); overflow: hidden;
    border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  }
  .palette__field { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
  .palette__field svg { width: 18px; height: 18px; flex: none; }
  .palette__field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); }
  .palette__field input::placeholder { color: var(--muted); }
  .palette__list { list-style: none; margin: 0; padding: 8px; max-height: min(50vh, 420px); overflow-y: auto; }
  .palette__item {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 9px 12px; border-radius: 8px; cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--ink);
  }
  .search-result__heading { display: flex; align-items: baseline; gap: 10px; }
  .palette__item small { font-size: 12px; font-weight: 400; color: var(--muted); }
  .search-result__snippet { font-size: 12px; line-height: 1.4; font-weight: 400; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .palette__item[aria-selected="true"] { background: var(--track); }
  .palette__empty { padding: 20px 12px; font-size: 14px; color: var(--muted); }


  /* ---------- Workspace ---------- */
  .workspace { flex: 1; min-height: 0; display: flex; }

  .sidebar {
    flex: none;
    width: 320px;
    margin: 0 8px 8px 8px;
    background: var(--surface);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width .25s cubic-bezier(.3,.7,.2,1);
  }
  /* ---------- Sidebar search, filters and views ---------- */
  .row { display: flex; align-items: center; gap: 3px; min-height: 30px; padding: 0 10px 0 16px; font-size: 13px; }
  .row__label { flex: 1; color: var(--muted); }
  .sidebar > .row:first-child { margin-top: 10px; }
  .row--toggle { cursor: pointer; margin: 4px 0 8px; }
  .icon-btn {
    width: 28px; height: 28px; flex: none; border-radius: 6px;
    display: grid; place-items: center; color: var(--icon); transition: background .15s;
  }
  .icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--fill-2); color: var(--ink); }
  .icon-btn svg { width: 18px; height: 18px; display: block; }

  .filters { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s cubic-bezier(.3,.7,.2,1); }
  .filters.is-open { grid-template-rows: 1fr; }
  .filters__inner { min-height: 0; overflow: hidden; }
  .filters__body { padding: 8px 16px 4px; }
  .chips { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 5px 6px; }
  .chips--inline { display: flex; flex-wrap: wrap; gap: 4px; }
  .chip {
    height: 26px; padding: 0 10px; border-radius: 100px;
    background: var(--fill-2); color: var(--muted);
    font-size: 12px; white-space: nowrap; justify-self: start;
    transition: background .15s, color .15s;
  }
  .chip:hover { background: var(--fill-3); color: var(--ink); }
  .chip[aria-pressed="true"] { background: var(--thumb); color: var(--on-thumb); }
  /* Subject / Medium / Style groups, each folds open like a menu */
  .fgroup + .fgroup { margin-top: 6px; }
  .fgroup__head {
    width: 100%; display: flex; align-items: center; gap: 6px; height: 28px;
    font-size: 13px; font-weight: 500; color: var(--ink); text-align: left;
  }
  .fgroup__head svg { width: 12px; height: 12px; color: var(--muted); transition: transform .2s; }
  .fgroup__head[aria-expanded="true"] svg { transform: rotate(180deg); }
  .fgroup__count { color: var(--muted); font-weight: 400; }
  .fgroup__clear { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--muted); }
  .fgroup__clear:hover { color: var(--ink); }
  .fgroup__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s cubic-bezier(.3,.7,.2,1); }
  .fgroup__body.is-open { grid-template-rows: 1fr; }
  .fgroup__body > div { min-height: 0; overflow: hidden; }
  .fgroup .chips--inline { padding: 4px 0 8px; }
  .views { margin-top: 22px; }
  .views__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
  .views__title svg { width: 15px; height: 15px; }
  .views__row { display: flex; align-items: center; margin-top: 6px; }
  .views__label { width: 36px; flex: none; font-size: 11px; color: var(--muted); }
  .filters__hide { display: block; margin: 14px auto 4px; padding: 2px 6px; font-size: 11px; color: var(--faint); }
  .filters__hide:hover { color: var(--ink); }
  .switch {
    position: relative; width: 26px; height: 15px; margin-right: 2px; border-radius: 100px;
    background: var(--fill-4); transition: background .2s;
  }
  .switch::after {
    content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--surface); transition: transform .2s;
  }
  .switch[aria-checked="true"] { background: var(--thumb); }
  .switch[aria-checked="true"]::after { transform: translateX(11px); background: var(--on-thumb); }

  /* ---------- Category tiles: two columns, label sits on the image ---------- */
  .projects__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 0; font-size: 13px; color: var(--muted); }
  .projects__all { color: var(--muted); font-size: 12px; }
  .projects__all:hover, .projects__all[aria-pressed="true"] { color: var(--ink); }
  .cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 10px 16px; }
  .cat {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px;
    background: var(--cat-bg, var(--fill-3)) var(--cat-img, none) center / cover no-repeat;
    display: flex; align-items: flex-end; padding: 10px;
    color: #fff; text-align: left; font-size: 13px; line-height: 1.2;
    transition: transform .2s;
  }
  .cat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 60%); }
  .cat span { position: relative; }
  .cat:hover { transform: scale(0.98); }
  .cat[aria-current="page"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
  .cat:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

  .menu {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .nav { padding-top: 16px; }
  .nav__rule { margin: 8px 16px 8px; border: 0; border-top: 1px solid var(--nav-rule); }
  .nav__item {
    position: relative;
    width: 100%;
    display: flex; align-items: center; gap: 8px;
    height: 32px;
    padding: 0 16px;
    text-align: left;
    font-size: 14px; line-height: 18px; font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--nav-text);
    transition: background .11s, color .11s;
  }
  .nav__item:hover { background: var(--nav-hover); color: var(--nav-strong); }
  .nav__item--child { padding-left: 32px; font-size: 12px; font-weight: 400; letter-spacing: 0.1px; line-height: 16px; }
  .nav__item[aria-expanded="true"] { color: var(--nav-strong); }
  .nav__item[aria-current="page"] { background: var(--nav-active); color: var(--nav-strong); font-weight: 500; }
  .nav__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav__chevron { width: 16px; height: 16px; flex: none; transition: transform .15s; }
  .nav__item[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }
  .nav__children {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .2s cubic-bezier(.2,0,.38,.9);
  }
  .nav__children.is-open { grid-template-rows: 1fr; }
  .nav__children > div { min-height: 0; overflow: hidden; }

  /* ---------- Stage ---------- */
  .stage {
    position: relative;
    flex: 1;
    min-width: 0;
    margin: 0 8px 8px 0;
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--doc-text);
  }
  .stage__toggle {
    position: absolute; left: 8px; top: 8px; z-index: 1;
    width: 30px; height: 30px; border-radius: 15px;
    display: grid; place-items: center;
    color: rgba(255, 255, 255, 0.7);
  }
  .stage__toggle:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
  .stage__toggle svg { width: 18px; height: 18px; }
  .stage__toggle .icon-sidebar, body.sidebar-hidden .stage__toggle .icon-expand { display: none; }
  body.sidebar-hidden .stage__toggle .icon-sidebar { display: block; }

  body.sidebar-hidden .sidebar { display: none; }
  body.sidebar-hidden .stage { margin-left: 8px; }

  /* ---------- Article (logo page) ---------- */
  .pg { --pad: 32px; }
  /* Page and footer sit as separate panels, like the sidebar */
  .pg__page > header { border-radius: 8px; }
  .pg__body { margin-top: 8px; background: var(--doc-bg); border-radius: 8px; overflow: hidden; }
  .pg__grid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }
  .pg__hero { background: #000; color: #fff; min-height: 800px; padding-bottom: 32px; display: flex; flex-direction: column; justify-content: flex-end; }
  .pg__hero .pg__grid { width: 100%; align-items: end; }
  .pg__num, .pg__title { margin: 0; font-size: 44px; line-height: 1.1; font-weight: 400; letter-spacing: -0.5px; }
  .pg__num { grid-column: 1 / span 6; }
  .pg__title { grid-column: 7 / span 6; }
  .pg__intro { padding: 24px 0 64px; }
  .pg__lead { grid-column: 1 / span 9; margin: 0; font-size: 26px; line-height: 1.3; letter-spacing: -0.2px; }
  .pg__btn {
    grid-column: 1 / span 12; justify-self: start;
    margin-top: 32px;
    height: 32px; padding: 0 14px;
    border-radius: 6px;
    background: var(--doc-text); color: var(--doc-bg);
    font-size: 12px; letter-spacing: 0.8px;
    display: inline-flex; align-items: center;
    text-decoration: none;
    transition: opacity .15s;
  }
  .pg__btn:hover { opacity: .8; }
  .pg__btn--ghost { background: none; color: var(--doc-text); border: 1px solid var(--doc-rule); height: 40px; border-radius: 8px; }

  .pg__section { border-top: 1px solid var(--doc-rule); padding: 32px 0 96px; }
  .pg__head { margin-bottom: 32px; }
  .pg__h2 { grid-column: 1 / span 3; margin: 0; font-size: 18px; line-height: 25px; font-weight: 400; }
  .pg__desc { grid-column: 7 / span 6; margin: 0; font-size: 18px; line-height: 25px; }
  .pg__desc ul { margin: 12px 0; padding-left: 20px; }
  .pg__desc li { margin: 2px 0; }
  .pg__full { grid-column: 1 / span 12; }
  .pg__third { grid-column: span 4; }
  .pg__half { grid-column: span 6; }

  .art {
    position: relative;
    background: var(--doc-card);
    display: grid; place-items: center;
    aspect-ratio: 3 / 2;
    overflow: hidden;
  }
  .art--wide { aspect-ratio: 1376 / 917; }
  .art--dark { background: #000; color: #fff; }
  .art__label {
    position: absolute; left: 14px; bottom: 12px;
    font-size: 12px; letter-spacing: 0.3px;
    color: var(--doc-muted);
  }
  .art--dark .art__label { color: rgba(255, 255, 255, 0.55); }
  .art__mark {
    font-size: clamp(20px, 4vw, 64px); font-weight: 600; letter-spacing: 0.08em;
    color: var(--doc-text); opacity: .16;
  }
  .art--dark .art__mark { color: #fff; opacity: .9; }
  .art--sm .art__mark { font-size: clamp(14px, 1.8vw, 28px); }
  .art--zone::before {
    content: ""; position: absolute; inset: 22%;
    background: repeating-linear-gradient(-45deg, var(--doc-rule) 0 1px, transparent 1px 8px);
    border: 1px dashed var(--doc-muted);
    opacity: .7;
  }
  .art--zone .art__mark { position: relative; }
  .art--swatch .art__label { color: currentColor; opacity: .7; }

  .caption { margin: 16px 0 0; font-size: 15px; line-height: 21px; }
  .caption span { display: block; color: var(--doc-muted); white-space: pre; }
  .caption span + strong { display: block; margin-top: 10px; font-weight: 400; }

  .pg__cells { display: contents; }
  .pg__colors { grid-column: 1 / span 12; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px; }
  .pg__colors .art { grid-column: span 2; }
  .pg__colors .art--big { grid-column: span 3; }

  .card { grid-column: 7 / span 6; border: 1px solid var(--doc-rule); padding: 16px; }
  .card p { margin: 0 0 64px; font-size: 15px; line-height: 21px; }
  .card .pg__btn { margin-top: 0; }

  /* Previous / next sits in its own box between the content and the footer */
  .pg__pager { margin-top: 8px; border-radius: 8px; background: var(--doc-bg); padding: 32px 0; font-size: 18px; line-height: 25px; }
  .pg__pager a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
  .pg__pager a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .pg__pager a:hover .pager__go { background: rgba(0, 0, 0, 0.14); }
  .pager__go {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, 0.08); color: #000;
    transition: background .2s;
  }
  .pager__go svg { width: 14px; height: 14px; }
  :root[data-theme-resolved="dark"] .pager__go { background: rgba(255, 255, 255, 0.12); color: #fff; }

  .pg__pager a:first-child { grid-column: 1 / span 6; }
  .pg__pager a:last-child { grid-column: 7 / span 6; }

  .pg__footer {
    margin-top: 8px; border-radius: 8px; background: var(--surface); color: var(--nav-text); font-size: 15px; line-height: 21px; padding: 32px 0 32px;
    min-height: 622px; display: flex; flex-direction: column;
  }
  .pg__footer a { color: inherit; text-decoration: none; }
  .pg__footer a:hover { text-decoration: underline; }
  .pg__footer .pg__grid > div { grid-column: span 3; }
  .pg__footer p { margin: 0 0 8px; }
  .pg__dim { color: var(--muted); }
  .pg__footer-bottom { margin-top: auto; padding-top: 128px; }
  .pg__footer > .pg__grid, .pg__footer-bottom { width: 100%; }
  .pg__footer-logo { height: 32px; width: auto; display: block; color: var(--logo-ink); }
  .pg__footer .pg__grid > .pg__footer-brand { grid-column: 1 / span 6; }
  .pg__footer .pg__grid > .pg__footer-copy { grid-column: 7 / span 6; }

  /* ---------- Home page ---------- */
  .pg__page[hidden] { display: none; }
  @media (prefers-reduced-motion: reduce) { .home__video { display: none; } }
  .home__hero {
    position: relative; overflow: hidden; min-height: 800px; padding-bottom: 32px;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: radial-gradient(120% 90% at 70% 20%, #3a3a3a 0%, #111 55%, #000 100%); color: #fff;
  }
  .home__hero .pg__grid { width: 100%; }
  .home__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .home__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0)); }
  .home__hero .pg__grid { position: relative; z-index: 1; }
  .home__title { grid-column: 1 / span 12; margin: 0; font-size: 69px; line-height: 1; font-weight: 400; letter-spacing: -1px; }
  .home__title span { display: block; margin-top: 16px; color: rgba(255, 255, 255, 0.6); }
  .home__intro { padding: 24px 0 128px; border-bottom: 1px solid var(--doc-rule); }
  .home__lead { grid-column: 1 / span 12; margin: 0; font-size: 35px; line-height: 40px; letter-spacing: -0.3px; }

  .tiles { padding: 32px 0 128px; }
  .tiles .pg__grid { column-gap: 4px; row-gap: 4px; }
  .tile {
    position: relative; height: 365px; overflow: hidden; padding: 32px;
    grid-column: span 4; text-align: left; color: #fff; font-size: 18px; line-height: 25px;
    display: block; cursor: pointer;
  }
  .tile--wide { grid-column: span 8; }
  .tile--full { grid-column: span 12; }
  .tile__label { position: absolute; z-index: 1; left: 32px; top: 32px; }
  .tile__art { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .4s ease; }
  .tile:hover .tile__art { transform: scale(1.03); }
  .tile:focus-visible { outline: 2px solid var(--nav-accent); outline-offset: 2px; }
  .tile--foundation { background: #0040ff; }
  .tile--foundation .tile__art { font-size: 32px; letter-spacing: -0.5px; }
  .tile--logos { background: #000; }
  .tile--logos .tile__art { font-size: 56px; font-weight: 600; letter-spacing: 0.12em; }
  .tile--type { background: #cbbfa8; }
  .tile--type .tile__art { grid-template-columns: auto 1fr; gap: 24px; padding: 0 64px 0 30%; place-items: center start; }
  .tile--type b { font-size: 120px; line-height: 1; font-weight: 500; letter-spacing: -4px; }
  .tile--type small { font-size: 22px; line-height: 26px; color: rgba(255, 255, 255, 0.75); max-width: 260px; }
  .tile--color .tile__art { display: grid; grid-template-columns: repeat(6, 1fr); }
  .tile--color .tile__art i:nth-child(1) { background: #001d6c; }
  .tile--color .tile__art i:nth-child(2) { background: #0043ce; }
  .tile--color .tile__art i:nth-child(3) { background: #0f62fe; }
  .tile--color .tile__art i:nth-child(4) { background: #4589ff; }
  .tile--color .tile__art i:nth-child(5) { background: #a6c8ff; }
  .tile--color .tile__art i:nth-child(6) { background: #edf5ff; }
  .tile--color .tile__art i { width: 100%; height: 100%; }
  .tile--illustration { background: #ff0f50; }
  .tile--illustration .tile__art::before {
    content: ""; width: 200px; height: 200px; border-radius: 50%;
    background: repeating-radial-gradient(circle, #ffb3d1 0 14px, #ff5c98 14px 28px);
  }
  .tile--photo { background: #3d3d3d; }
  .tile--gallery { background: #8d8d8d; }
  .tile--photo .art__label, .tile--gallery .art__label { left: 32px; bottom: 24px; color: rgba(255, 255, 255, 0.6); }

  .home__block { border-top: 1px solid var(--doc-rule); padding: 32px 0 128px; }
  .home__h2 { grid-column: 1 / span 3; margin: 0; font-size: 23px; line-height: 29px; font-weight: 400; }
  .home__body { grid-column: 7 / span 6; font-size: 23px; line-height: 29px; }
  .home__body p { margin: 0 0 24px; max-width: 560px; }
  .home__toc { grid-column: 7 / span 6; margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; font-size: 23px; line-height: 29px; }
  .home__toc li { margin-bottom: 12px; break-inside: avoid; }
  .home__toc a { color: inherit; text-decoration: none; }
  .home__toc a:hover { text-decoration: underline; }

  /* ---------- Library: copyable cards (Figma "Mockup Editor" grid) ---------- */
  .lib { background: var(--doc-bg); border-radius: 8px; padding: 12px 12px 24px; }
  /* Masonry: cards are dealt into the shortest column, so new batches never reshuffle */
  .lib__search-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px 14px; font-size: 13px; color: var(--muted); }
  .lib__search-status[hidden] { display: none; }
  .lib__search-status button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  .palette__hint { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 13px; }
  .lib__grid { display: flex; align-items: flex-start; gap: 6px; }
  .lib__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
  .lib__more { height: 1px; }
  .pg__footer[hidden] { display: none; }
  .pcard { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: var(--ar, 1); background: var(--fill-2); }
  .pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .pcard__play, .pcard__close {
    position: absolute; z-index: 3; display: grid; place-items: center; border: 0;
    color: #fff; background: rgba(0,0,0,.62); cursor: pointer;
  }
  .pcard__play { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; font-size: 20px; }
  .pcard__play[hidden] { display: none; }
  .pcard__close { left: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; }
  .pcard__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 2; }
  .pcard__btn:disabled { opacity: .6; cursor: default; }
  /* Rollover: image dims, title and actions appear */
  .pcard__shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.1));
    opacity: 0; transition: opacity .2s;
  }
  .pcard__over {
    position: absolute; inset: 0; padding: 16px;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
    opacity: 0; transition: opacity .2s; pointer-events: none;
  }
  .pcard:hover .pcard__shade, .pcard:focus-within .pcard__shade,
  .pcard:hover .pcard__over, .pcard:focus-within .pcard__over { opacity: 1; }
  .pcard:hover .pcard__over, .pcard:focus-within .pcard__over { pointer-events: auto; }
  .pcard__title { margin: 0; color: rgba(255, 255, 255, 0.92); font-size: 14px; line-height: 1.3; }
  .pcard__actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .pcard__btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 12px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.16); color: #fff;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    font-size: 13px; white-space: nowrap; text-decoration: none;
    transition: background .15s, box-shadow .15s;
  }
  .pcard__btn:hover { background: rgba(255, 255, 255, 0.26); }
  .pcard__btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff; }
  .pcard__btn svg { width: 15px; height: 15px; flex: none; }
  .pcard__btn--icon { width: 32px; padding: 0; justify-content: center; }
  .pcard__btn.is-copied { background: rgba(255, 255, 255, 0.9); color: #14140f; }
  .pcard__like {
    position: absolute; top: 12px; right: 12px; pointer-events: auto;
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(0, 0, 0, 0.35); color: #fff;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .pcard__like svg { width: 16px; height: 16px; }
  .pcard__like[aria-pressed="true"] { color: #D62BF4; }
  .pcard__like[aria-pressed="true"] svg path { fill: currentColor; }
  /* Touch screens have no hover, so the actions stay visible */
  @media (hover: none) {
    .pcard__shade, .pcard__over { opacity: 1; pointer-events: auto; }
  }
  .lib__empty { margin: 0; padding: 48px 10px; font-size: 14px; color: var(--muted); }

  /* ---------- Responsive ---------- */
  @media (max-width: 1100px) {
    .pg { --pad: 20px; }
    .pg__grid { column-gap: 20px; }
    .pg__lead { grid-column: 1 / span 12; font-size: 22px; }
    .pg__h2, .pg__desc { grid-column: 1 / span 12; }
    .pg__desc { margin-top: 12px; }
    .card { grid-column: 1 / span 12; }
    .home__title { font-size: 52px; }
    .home__lead { font-size: 28px; line-height: 34px; }
    .home__h2, .home__body, .home__toc { grid-column: 1 / span 12; }
    .home__body, .home__toc { margin-top: 24px; }
    .tile { grid-column: span 6; }
    .tile--wide, .tile--full { grid-column: span 12; }
    .pg__footer .pg__grid > div { grid-column: span 6; margin-bottom: 24px; }
  }
  @media (max-width: 760px) {
    body { overflow: auto; height: auto; }
    /* Two-row header: menu · logo · theme, then full-width mode tabs */
    .topbar {
      position: sticky; top: 0; z-index: 40;
      height: auto; flex-wrap: wrap; gap: 12px 6px;
      padding: 12px 16px; background: var(--bg);
    }
    .topbar__side { gap: 12px; }
    .topbar__side--end { display: contents; }
    .header-search { display: none; }
    #search-btn { display: grid; }
    .menu-btn {
      display: grid; place-items: center;
      width: 36px; height: 36px; margin-left: -8px;
      border-radius: 100px; color: var(--ink);
    }
    .menu-btn:hover { background: var(--fill-2); }
    .menu-btn svg { width: 18px; height: 18px; }
    .segmented { order: 3; flex: 1 0 100%; }
    .segmented button { flex: 1; height: 34px; }
    .segmented__thumb { height: 34px; }

    /* Sidebar becomes a slide-in drawer */
    .workspace { flex-direction: column; }
    .sidebar {
      position: fixed; z-index: 60; top: 0; bottom: 0; left: 0;
      width: min(320px, 86vw); margin: 0; border-radius: 0 12px 12px 0;
      transform: translateX(-100%); transition: transform .28s cubic-bezier(.3,.7,.2,1);
      box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
    }
    body.drawer-open .sidebar { transform: none; }
    .scrim {
      display: block; position: fixed; inset: 0; z-index: 55;
      background: rgba(0, 0, 0, 0.4); opacity: 0; pointer-events: none; transition: opacity .28s;
    }
    body.drawer-open .scrim, body.apps-open .scrim { opacity: 1; pointer-events: auto; }
    body.apps-open .topbar { z-index: 65; }
    .apps { position: static; }
    .apps__panel {
      position: fixed; top: auto; left: 0; right: 0; bottom: 0;
      width: auto; max-height: 75vh; padding: 12px 12px 24px;
      border-radius: 16px 16px 0 0; border-width: 1px 0 0;
      transform: translateY(16px);
    }
    .apps__item { min-height: 44px; }
    .palette { padding-top: 16px; }
    body.drawer-open { overflow: hidden; }
    body.sidebar-hidden .sidebar { display: flex; }
    .stage__toggle { display: none; }
    .stage { margin: 0 16px 16px; overflow: visible; }
    .pg { --pad: 16px; }
    .pg__num, .pg__title { font-size: 32px; }
    .pg__hero, .home__hero { min-height: 420px; }
    .home__title { font-size: 36px; }
    .home__lead { font-size: 22px; line-height: 28px; }
    .tile, .tile--wide, .tile--full { grid-column: 1 / span 12; height: 260px; }
    .tile--type .tile__art { padding: 0 24px 0 40%; }
    .tile--type b { font-size: 72px; }
    .tile--type small { display: none; }
    .home__toc { columns: 1; font-size: 20px; }
    .pg__third, .pg__half { grid-column: 1 / span 12; margin-bottom: 24px; }
    .pg__colors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .pg__colors .art, .pg__colors .art--big { grid-column: span 1; }
    .pg__pager a:first-child, .pg__pager a:last-child { grid-column: 1 / span 12; }
    .pg__footer .pg__grid > div, .pg__footer .pg__grid > .pg__footer-brand, .pg__footer .pg__grid > .pg__footer-copy { grid-column: 1 / span 12; }
    body.sidebar-hidden .stage { margin-left: 16px; }
  }
  @media (max-width: 480px) {
    .site-name { display: none; }
  }
  @media (max-width: 760px) and (prefers-reduced-motion: reduce) {
    .sidebar, .scrim { transition: none; }
  }

  .pg__footer .pg__grid > .pg__footer-copy { grid-column: 1 / span 12; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: inherit; row-gap: 16px; align-items: start; padding-top: 20px; border-top: 0; }
  .pg__footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: inherit; }
  .pg__footer-credit { padding-left: 16px; border-left: 1px solid rgba(128,128,128,.5); }
  @media (max-width: 760px) { .pg__footer .pg__grid > .pg__footer-copy { grid-template-columns: 1fr; } }
