  /* Editorial issue layout: bone paper, ink type, one terracotta accent. Deliberately single-theme. */
  :root {
    color-scheme: light;
    --bone: #F6F2EA;
    --paper: #FBF9F4;
    --ink: #1A1C18;
    --ink-2: #3A3D36;
    --muted: #686B62;
    --line: #DED8CB;
    --accent: #B45B34;
    --accent-ink: #9A4A27;
    --accent-bright: #DB8460;
    --night: #1A1C18;
    --night-fg: #F4EFE6;
    --night-muted: rgba(244, 239, 230, 0.68);
    --night-line: rgba(244, 239, 230, 0.16);

    --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --caps: "Jost", "Helvetica Neue", Arial, sans-serif;
    --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --gutter: clamp(16px, 4vw, 56px);
    --wrap: 1320px;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bone);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  ::selection { background: #E9C4B0; color: var(--ink); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  .wrap {
    max-width: var(--wrap); margin: 0 auto;
    padding-left: max(16px, var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(16px, var(--gutter), env(safe-area-inset-right, 0px));
  }
  code { font-family: var(--mono); font-size: 0.9em; }

  /* Magazine credits: small tracked caps. */
  .caps {
    font-family: var(--caps);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .credit { color: var(--muted); }
  .credit b { color: var(--ink); font-weight: 600; }

  h1, h2, h3 {
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
  }
  h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--caps); font-size: 13px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    text-decoration: none;
    padding: 16px 26px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    transition: background .2s, color .2s, border-color .2s;
  }
  .btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
  .btn-solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
  .btn-line { background: transparent; color: var(--ink); }
  .btn-line:hover { background: var(--ink); color: var(--bone); }
  .link {
    font-family: var(--caps); font-size: 13px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent-ink); text-decoration: none;
    border-bottom: 1px solid currentColor; padding-bottom: 2px;
  }

  /* ---------- Masthead ---------- */
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bone); }
  .mast {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    background: rgba(246, 242, 234, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .mast .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
  .brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
  .brand img { height: 30px; width: auto; }
  .brand .caps { font-size: 11px; color: var(--muted); }
  .nav { display: flex; gap: 30px; }
  .nav a { font-family: var(--caps); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
  .nav a:hover { color: var(--accent-ink); }
  .nav a[aria-current="page"] { color: var(--accent-ink); box-shadow: inset 0 -1px 0 currentColor; }
  .mast-actions { display: flex; align-items: center; gap: 10px; }
  .menu-btn {
    display: none; align-items: center; gap: 8px;
    font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 14px; cursor: pointer;
  }
  .menu-btn .bars { width: 14px; height: 9px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
  .menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
  .mast .btn { padding: 11px 20px; font-size: 12px; }

  /* ---------- Cover ---------- */
  .cover { padding: clamp(40px, 6vw, 80px) 0 0; }
  .cover-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: end;
  }
  .issue { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: clamp(28px, 4vw, 52px); }
  .cover h1 {
    font-size: clamp(56px, 10.5vw, 168px);
    line-height: 0.88;
    letter-spacing: -0.025em;
  }
  .cover h1 .indent { display: block; padding-left: 12%; }
  .cover .dek {
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 34em;
    margin: 32px 0 32px;
  }
  .cover .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .cover-figure { margin: 0; }
  .cover-figure .frame { aspect-ratio: 688 / 1022; overflow: hidden; background: #E6E0D4; }
  .cover-figure img { width: 100%; height: 100%; object-fit: cover; }
  figcaption { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }

  .strap {
    margin-top: clamp(48px, 6vw, 88px);
    border-top: 1px solid var(--ink);
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .strap > div { padding: 22px 20px 26px 0; border-right: 1px solid var(--line); }
  .strap > div + div { padding-left: 20px; }
  .strap > div:last-child { border-right: 0; }
  .strap .n { font-family: var(--display); font-size: clamp(36px, 4vw, 54px); line-height: 1; }
  .strap .l { color: var(--muted); font-size: 14px; margin-top: 6px; }

  /* ---------- Chapters ---------- */
  .chapter { padding: clamp(80px, 11vw, 160px) 0; }
  .chapter-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 3vw, 48px); margin-bottom: clamp(40px, 5vw, 72px); }
  .numeral {
    font-family: var(--display); font-style: italic;
    font-size: clamp(64px, 9vw, 132px); line-height: 0.8; color: var(--accent);
  }
  .chapter-head .caps { display: block; margin-bottom: 18px; color: var(--muted); }
  .chapter h2 { font-size: clamp(42px, 6.2vw, 92px); line-height: 0.95; max-width: 13em; }
  .lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 36em; margin: 24px 0 0; }

  /* Before / after */
  .ba { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2.4vw, 32px); align-items: end; }
  .ba figure { margin: 0; }
  .ba .frame { aspect-ratio: 3 / 4; overflow: hidden; background: #ECE6DA; }
  .ba img { width: 100%; height: 100%; object-fit: cover; }
  .ba .before .frame { filter: saturate(0.85); }
  .pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
  .piece { background: var(--paper); border: 1px solid var(--line); }
  .piece .pf { aspect-ratio: 3 / 4; overflow: hidden; }
  .piece img { width: 100%; height: 100%; object-fit: cover; }
  .piece p { margin: 0; padding: 10px 12px 12px; font-size: 14px; line-height: 1.35; }
  .piece p span { display: block; color: var(--muted); font-size: 13px; }

  /* Stylist spread */
  .spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
  .look { margin: 0; }
  .look .frame { aspect-ratio: 3 / 4; overflow: hidden; background: #ECE6DA; }
  .look img { width: 100%; height: 100%; object-fit: cover; }
  .look h3 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.05; margin: 18px 0 10px; }
  .look p { margin: 0; color: var(--ink-2); font-size: 16px; }
  .look .rank { color: var(--accent-ink); }
  .look-1 { grid-column: 1 / span 6; }
  .look-2 { grid-column: 8 / span 5; margin-top: 18%; }
  .look-3 { grid-column: 3 / span 5; margin-top: clamp(24px, 4vw, 56px); }
  .look-3 .frame { filter: grayscale(0.35); }
  .swap {
    display: inline-block; margin-top: 14px;
    font-family: var(--caps); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
    color: var(--accent-ink);
  }
  .note {
    grid-column: 9 / span 4; align-self: end;
    border-top: 1px solid var(--ink); padding-top: 18px;
  }
  .note p { margin: 0 0 14px; font-size: 16px; color: var(--ink-2); }
  .pull {
    font-family: var(--display); font-style: italic;
    font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; color: var(--ink);
    margin: 0 0 18px;
  }

  /* Feature band: dark copy column beside a photo column (the source photo is 688px wide). */
  .bleed { background: var(--night); color: var(--night-fg); }
  .bleed-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); max-width: var(--wrap); margin: 0 auto; }
  .bleed .copy {
    align-self: center;
    padding-block: clamp(64px, 9vw, 128px);
    padding-left: max(16px, var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: clamp(16px, 4vw, 56px);
  }
  .bleed .numeral { color: var(--accent-bright); }
  .bleed h2 { font-size: clamp(44px, 6.2vw, 92px); line-height: 0.95; max-width: 9em; margin-top: 18px; }
  .bleed h2 em { color: var(--accent-bright); }
  .bleed .lede { color: var(--night-muted); max-width: 30em; }
  .bleed .caps { color: var(--night-muted); }
  .bleed figure { margin: 0; position: relative; min-height: 520px; max-width: 640px; width: 100%; justify-self: end; }
  .bleed figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
  .bleed figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; margin: 0; color: var(--night-fg); text-shadow: 0 1px 8px rgba(0,0,0,.55); }
  .cart-lines { margin-top: 32px; max-width: 460px; border-top: 1px solid var(--night-line); }
  .cart-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--night-line); font-size: 15px; }
  .cart-lines span:last-child { color: var(--night-muted); white-space: nowrap; }
  .cart-lines .total { font-weight: 600; color: var(--night-fg); }
  .cart-lines .total span:last-child { color: var(--night-fg); }

  /* Platform index */
  .index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
  .index article { padding: 28px 28px 34px 0; border-bottom: 1px solid var(--line); }
  .index article:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
  .index article:not(:nth-child(3n+1)) { padding-left: 28px; }
  .index .k { color: var(--accent-ink); }
  .index h3 { font-size: 30px; line-height: 1.1; margin: 10px 0 10px; }
  .index p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

  /* Ledger / attribution */
  .ledger-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
  .tag {
    display: inline-block; font-family: var(--caps); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    background: #ECE7DC; color: #5F5649; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
  }
  .ledger { background: var(--paper); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); }
  .ledger-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
  .figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
  .figures > div { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
  .figures > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
  .figures > div:nth-child(even) { padding-left: 20px; }
  .figures .n { font-family: var(--display); font-size: clamp(40px, 4.4vw, 60px); line-height: 1; }
  .figures .l { font-size: 14px; color: var(--muted); margin-top: 6px; }
  .chain { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: c; }
  .chain li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
  .chain li span:last-child { font-family: var(--mono); font-size: 14px; }

  /* Engineering chapter (dark) */
  .eng { background: var(--night); color: var(--night-fg); }
  .eng .chapter-head .caps { color: var(--night-muted); }
  .eng .numeral { color: var(--accent-bright); }
  .eng h2 em { color: var(--accent-bright); }
  .eng .lede { color: var(--night-muted); }
  .eng-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
  pre {
    margin: 0; background: #11130F; border: 1px solid var(--night-line);
    padding: clamp(18px, 2.6vw, 30px); overflow-x: auto;
    font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #E6E1D6;
  }
  pre .c { color: #8C8F86; }
  pre .s { color: #E9B08F; }
  pre .k { color: #B9C8A6; }
  .file { display: flex; justify-content: space-between; padding: 10px 0; color: var(--night-muted); }
  .eng ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--night-line); }
  .eng li { padding: 14px 0; border-bottom: 1px solid var(--night-line); font-size: 15.5px; color: var(--night-muted); }
  .eng li b { color: var(--night-fg); font-weight: 600; display: block; }
  .roadmap { margin-top: 28px; }
  .roadmap .caps { color: var(--accent-bright); display: block; margin-bottom: 8px; }
  .roadmap p { margin: 0; font-size: 15px; color: var(--night-muted); }
  .eng .link { color: var(--accent-bright); }

  /* Modules & privacy diptych */
  .diptych { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
  .diptych figure { margin: 0 0 24px; }
  .diptych .frame { aspect-ratio: 4 / 3; overflow: hidden; background: #ECE6DA; }
  .diptych img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
  .diptych h3 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.02; margin: 14px 0 14px; }
  .diptych p { color: var(--ink-2); margin: 0 0 12px; }
  .mini-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .mini-row div { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
  .mini-row img { width: 100%; height: 100%; object-fit: cover; }

  /* Engagement */
  .terms { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); border-top: 1px solid var(--ink); padding-top: 36px; }
  .terms h3 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; }
  .terms dl { margin: 0; }
  .terms dt { font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin-top: 22px; }
  .terms dt:first-child { margin-top: 0; }
  .terms dd { margin: 6px 0 0; color: var(--ink-2); padding-bottom: 20px; border-bottom: 1px solid var(--line); }

  /* FAQ */
  .faq { border-top: 1px solid var(--ink); }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
    padding: 22px 0;
    font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-family: var(--body); font-size: 24px; color: var(--accent); flex: none; }
  .faq details[open] summary::after { content: "–"; }
  .faq details p { margin: 0 0 24px; max-width: 46em; color: var(--ink-2); }

  /* Closing */
  .closing { position: relative; overflow: hidden; background: var(--night); color: var(--night-fg); }
  .closing-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 640px; }
  .closing .copy { padding: clamp(64px, 9vw, 140px) var(--gutter); align-self: center; }
  .closing h2 { font-size: clamp(50px, 7.4vw, 116px); line-height: 0.9; }
  .closing h2 em { color: var(--accent-bright); }
  .closing p { color: var(--night-muted); max-width: 30em; margin: 26px 0 32px; font-size: 18px; }
  .closing .btn-line { color: var(--night-fg); border-color: var(--night-line); }
  .closing .btn-line:hover { background: var(--night-fg); color: var(--night); }
  .closing .photo { position: relative; min-height: 420px; }
  .closing .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .closing .ctas { display: flex; flex-wrap: wrap; gap: 14px; }

  /* Footer */
  footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
  .foot { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
  .foot img { height: 30px; width: auto; margin-bottom: 14px; }
  .foot p { color: var(--muted); font-size: 14px; margin: 0; max-width: 24em; }
  .foot h4 { font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 14px; color: var(--muted); }
  .foot ul { list-style: none; padding: 0; margin: 0; }
  .foot li { margin: 0 0 8px; }
  .foot a { text-decoration: none; font-size: 15px; }
  .foot a:hover { color: var(--accent-ink); }
  .fine { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

  /* ---------- Inner pages ---------- */
  .opener { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
  .opener-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
  .opener h1 { font-size: clamp(52px, 8.4vw, 132px); line-height: 0.9; letter-spacing: -0.02em; text-wrap: balance; }
  .opener .dek { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; margin: 28px 0 0; }
  .opener .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
  .opener figure { margin: 0; }
  .opener .frame { aspect-ratio: 3 / 4; overflow: hidden; background: #ECE6DA; }
  .opener .frame img { width: 100%; height: 100%; object-fit: cover; }
  .toc { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); }
  .toc a { text-decoration: none; color: var(--ink-2); }
  .toc a:hover { color: var(--accent-ink); }

  .section-title { font-size: clamp(38px, 5vw, 72px); line-height: 0.98; text-wrap: balance; max-width: 14em; }
  .two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); border-top: 1px solid var(--ink); padding-top: 36px; }
  .two h2, .two h3 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1; text-wrap: balance; }
  .two .side .lede { margin-top: 18px; }
  .prose p { margin: 0 0 16px; color: var(--ink-2); max-width: 40em; }
  .prose h4 { font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin: 26px 0 8px; }
  .prose h4:first-child { margin-top: 0; }

  .rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .rows li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .rows li > b { font-weight: 600; }
  .rows li > span { color: var(--ink-2); }
  .rows .soon { color: var(--muted); }
  .rows .soon > b::after { content: "On the roadmap"; display: inline-block; margin-left: 10px; font-family: var(--caps); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); vertical-align: 2px; }

  /* Three moves (a real sequence, so numbered) */
  .moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); border-top: 1px solid var(--ink); }
  .move { padding-top: 22px; min-width: 0; }
  .move .numeral { font-size: clamp(54px, 6vw, 88px); }
  .move h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; margin: 14px 0 10px; }
  .move p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }
  .move pre { font-size: 12.5px; }

  /* Light code panel for paper pages */
  .paper-pre { background: var(--night); }

  /* API reference */
  .ref-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
  .ref { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
  .ref th { text-align: left; font-family: var(--caps); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 10px 0; border-bottom: 1px solid var(--line); }
  .ref td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
  .ref td:first-child { white-space: nowrap; }
  .ref .m { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--accent-ink); display: inline-block; min-width: 4.4em; }
  .ref code { color: var(--ink); }
  .ref .group td { padding-top: 30px; border-bottom: 1px solid var(--ink); font-family: var(--display); font-size: 26px; color: var(--ink); }
  .ref .group td span { font-family: var(--body); font-size: 14px; color: var(--muted); margin-left: 12px; }

  .eng .ref-wrap { border-top-color: var(--night-line); }
  .ref-dark { min-width: 420px; }
  .eng .ref th, .eng .ref td { border-color: var(--night-line); color: var(--night-muted); }
  .eng .ref code { color: var(--night-fg); }
  .eng code { color: var(--night-fg); }

  /* Pricing plans */
  .plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
  .plan { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
  .plan h3 { font-size: clamp(36px, 4vw, 56px); line-height: 1; }
  .plan p { margin: 0; color: var(--ink-2); }
  .plan ul { list-style: none; margin: 4px 0 8px; padding: 0; border-top: 1px solid var(--line); }
  .plan li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
  .plan .btn { align-self: flex-start; margin-top: auto; }
  .plan.featured h3 em { color: var(--accent); }

  /* Demo stories */
  .story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
  .story + .story { margin-top: clamp(72px, 9vw, 140px); }
  .story.flip > figure { order: 2; }
  .story figure { margin: 0; }
  .story .frame { aspect-ratio: 688 / 1022; overflow: hidden; background: #ECE6DA; max-width: 560px; }
  .story .frame img { width: 100%; height: 100%; object-fit: cover; }
  .story h2 { font-size: clamp(48px, 6.4vw, 96px); line-height: 0.92; margin: 14px 0 18px; }
  .story .lede { margin-top: 0; }
  .story .rows { margin-top: 28px; }
  .story .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

  .contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
  .eng-grid > *, .two > *, .diptych > *, .ledger-grid > * { min-width: 0; }

  /* Contact form */
  .form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; border-top: 1px solid var(--ink); padding-top: 28px; }
  .field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .field.full { grid-column: 1 / -1; }
  .field label { font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
  .field .opt { color: var(--muted); font-weight: 500; letter-spacing: 0.1em; }
  .field input, .field select, .field textarea {
    font: inherit; font-size: 17px; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line); border-radius: 0;
    padding: 13px 14px; width: 100%;
  }
  .field textarea { min-height: 140px; resize: vertical; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
  .field[data-invalid] input, .field[data-invalid] select { border-color: #A3361C; }
  .field .err { font-size: 14px; color: #A3361C; min-height: 0; }
  .field .err:empty { display: none; }
  .form .submit-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
  .form .submit-row .credit { font-size: 14px; }
  button.btn { cursor: pointer; }

  .ready { margin-top: 36px; border: 1px solid var(--ink); background: var(--paper); padding: clamp(20px, 3vw, 32px); }
  .ready h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1.05; margin: 10px 0 12px; }
  .ready p { margin: 0 0 16px; color: var(--ink-2); }
  .ready pre { background: var(--bone); color: var(--ink); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; font-size: 14px; }
  .ready .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
  .address { font-family: var(--mono); font-size: 16px; user-select: all; background: var(--bone); border: 1px solid var(--line); padding: 8px 12px; }
  .status { font-size: 14px; color: var(--muted); }

  .steps-list { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
  .steps-list li { counter-increment: step; display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
  .steps-list li::before { content: counter(step, upper-roman) "."; font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1; color: var(--accent); }
  .steps-list b { color: var(--ink); font-weight: 600; display: block; }

  .callout { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: var(--ink-2); max-width: 40em; }

  /* ---------- Responsive ---------- */
  @media (max-width: 1080px) {
    .menu-btn { display: inline-flex; }
    .nav {
      display: none;
      position: absolute; left: 0; right: 0; top: 100%;
      flex-direction: column; gap: 0;
      background: var(--bone); border-bottom: 1px solid var(--line);
      padding: 8px max(16px, var(--gutter), env(safe-area-inset-right, 0px)) 18px max(16px, var(--gutter), env(safe-area-inset-left, 0px));
      box-shadow: 0 18px 30px -24px rgba(26, 28, 24, .5);
    }
    .mast.open .nav { display: flex; }
    .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
    .nav a[aria-current="page"] { box-shadow: none; }
    .mast { position: sticky; }
    .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .index article:not(:nth-child(3n)) { border-right: 0; }
    .index article:not(:nth-child(3n+1)) { padding-left: 0; }
    .index article:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
    .index article:nth-child(even) { padding-left: 24px; }
  }
  @media (max-width: 860px) {
    .opener-grid, .two, .moves, .plans, .story, .form, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .opener figure { max-width: 460px; }
    .story.flip > figure { order: 0; }
    .rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .cover-grid, .ba, .ledger-grid, .eng-grid, .diptych, .terms, .closing-grid, .chapter-head, .bleed-grid { grid-template-columns: minmax(0, 1fr); }
    .bleed figure { min-height: 0; aspect-ratio: 688 / 1022; max-width: 520px; justify-self: stretch; margin: 0 max(16px, var(--gutter)) 48px; width: auto; }
    .cover-figure { max-width: 520px; }
    .cover h1 .indent { padding-left: 0; }
    .strap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .strap > div:nth-child(2) { border-right: 0; }
    .strap > div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
    .strap > div:nth-child(4) { border-top: 1px solid var(--line); }
    .spread { grid-template-columns: minmax(0, 1fr); }
    .look-1, .look-2, .look-3, .note { grid-column: auto; margin-top: 0; }
    .look-2 { margin-top: 24px; }
    .closing .photo { min-height: 460px; }
    .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot > div:first-child { grid-column: 1 / -1; }
  }
  @media (max-width: 600px) {
    body { font-size: 16px; }
    .brand .caps { display: none; }
    .issue span:last-child { display: none; }
    .index { grid-template-columns: minmax(0, 1fr); }
    .index article, .index article:nth-child(odd), .index article:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; }
    .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .piece p { font-size: 12.5px; padding: 8px; }
    .piece p span { font-size: 12px; }
    .figures { grid-template-columns: minmax(0, 1fr); }
    .figures > div:nth-child(odd), .figures > div:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
    .mast .btn { padding: 10px 14px; letter-spacing: 0.08em; }
    .menu-btn .label { display: none; }
    pre { font-size: 12px; }
  }

  /* Switcher between the two Riti Enterprise sites and the Shopify app. */
  .switcher { background: var(--night); color: var(--night-fg); font-family: var(--caps); font-size: 12px; letter-spacing: .06em; }
  .switcher-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-block: 9px; }
  .switcher-label { text-transform: uppercase; letter-spacing: .14em; color: var(--night-muted); }
  .switcher-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
  .switcher-tabs a, .switcher-shopify { color: var(--night-fg); text-decoration: none; padding: 4px 12px; border-radius: 999px; }
  .switcher-tabs a:hover, .switcher-shopify:hover { background: var(--night-line); }
  .switcher-tabs a[aria-current] { background: var(--accent); color: var(--paper); }
  .switcher-shopify { margin-left: auto; color: var(--accent-bright); }
  .switcher a:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
  @media (max-width: 640px) { .switcher-label { display: none; } .switcher-shopify { margin-left: 0; } }
