/* The app's own fonts (SIL OFL, licences in fonts/), served from this site so
   no visitor's address goes to a font host. */
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url("../fonts/Outfit_800ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("../fonts/DMSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("../fonts/DMSans_700Bold.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 800; font-display: swap; src: url("../fonts/DMSans_800ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/JetBrainsMono_500Medium.ttf") format("truetype"); }
/* Layout: a pattern page. Hero beside the app's own guide screen, then the
   round read two ways, the library, the promises, and an ink band, like the
   app's counter block. Tokens are the app's (CLAUDE.md §5). */
:root {
  --bg: #F7F1E8;
  --surface: #FFFFFF;
  --ink: #3B2A20;
  --muted: #6E5B4E;
  --primary: #A44A26;
  --primary-press: #803A1E;
  --accent: #F2C26B;
  --accent-ink: #3B2A20;
  --line: #EAE3DA;
  --line-strong: #E0D9D0;
  --track: #E4DDD4;
  --block: #3B2A20;          /* the ink counter block */
  --on-block: #FFFFFF;
  --on-block-muted: #C8C3C1;
  --on-block-line: #62554D;
  --on-block-ok: #F4D08F;
  --mint-bg: #DDF2EC; --mint-fg: #1F6B5B;
  --butter-bg: #F6EBC4; --butter-fg: #6B500F;
  --rose-bg: #FFE4D6; --rose-fg: #9A3412;
  --lilac-bg: #E7E2F6; --lilac-fg: #4B3F8A;
  --sky-bg: #DCEBF7; --sky-fg: #24577F;
  --shadow: 0 1px 2px rgba(59, 42, 32, 0.06);
  --shadow-lift: 0 24px 60px -24px rgba(59, 42, 32, 0.35);

  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-device: 40px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #211812; --surface: #3B2A20; --ink: #F7F1E8; --muted: #C8C3C1;
    --primary: #F0A07A; --primary-press: #F6BC9F; --line: #56483F; --line-strong: #62554D;
    --track: #56483F; --block: #150F0B; --on-block-line: #56483F;
    --mint-bg: #1C4A42; --mint-fg: #BDEBDD; --butter-bg: #4A3D12; --butter-fg: #F6EBC4;
    --rose-bg: #4E2A1C; --rose-fg: #FFD2BE; --lilac-bg: #2F2A52; --lilac-fg: #D9D2F5;
    --sky-bg: #1D3A52; --sky-fg: #CFE3F5;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-lift: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #211812; --surface: #3B2A20; --ink: #F7F1E8; --muted: #C8C3C1;
  --primary: #F0A07A; --primary-press: #F6BC9F; --line: #56483F; --line-strong: #62554D;
  --track: #56483F; --block: #150F0B; --on-block-line: #56483F;
  --mint-bg: #1C4A42; --mint-fg: #BDEBDD; --butter-bg: #4A3D12; --butter-fg: #F6EBC4;
  --rose-bg: #4E2A1C; --rose-fg: #FFD2BE; --lilac-bg: #2F2A52; --lilac-fg: #D9D2F5;
  --sky-bg: #1D3A52; --sky-fg: #CFE3F5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-lift: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-press); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.eyebrow { font: 800 13px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.mono { font-family: var(--font-mono); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar */
.top { padding-block: 20px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font: 800 22px/1 var(--font-display); letter-spacing: -0.01em; }
.top nav { display: flex; gap: 20px; font-weight: 700; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* ---------- hero */
.hero { padding-block: 32px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero h1 em { font-style: normal; color: var(--primary); }
.lede { font-size: 20px; color: var(--muted); max-width: 34ch; }
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.pill-solid { background: var(--ink); color: var(--bg); }
.pill-soft { background: var(--mint-bg); color: var(--mint-fg); }
.pill svg { width: 16px; height: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 8px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; padding-top: 16px; }
.facts b { font: 800 30px/1 var(--font-display); }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- the phone: the app's guide screen */
.stage { position: relative; display: flex; justify-content: center; min-width: 0; }
.stage::before {
  content: ""; position: absolute; inset: 8% 4% 6%;
  background: radial-gradient(closest-side, var(--butter-bg), transparent 70%);
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 340px; max-width: 100%;
  background: var(--surface);
  border: 10px solid var(--block);
  border-radius: var(--r-device);
  box-shadow: var(--shadow-lift);
  padding: 18px 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
  color: var(--ink);
}
.ph-head { display: flex; align-items: center; gap: 10px; }
.ph-round-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; color: var(--ink); }
.ph-round-btn svg { width: 16px; height: 16px; }
.ph-title { flex: 1; min-width: 0; }
.ph-title b { display: block; font: 800 15px/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-title span { font-size: 12px; color: var(--muted); }
.ph-aa { font: 800 14px/1 var(--font-display); }
.bar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; width: 25%; background: var(--accent); border-radius: 3px; }
.card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.card-photo { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--rose-bg); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.card .eyebrow { font-size: 11px; }
.card code { font: 500 13px/1.3 var(--font-mono); color: var(--muted); }
.card p { font: 700 17px/1.35 var(--font-body); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.chip-mint { background: var(--mint-bg); color: var(--mint-fg); }
.chip-rose { background: var(--rose-bg); color: var(--rose-fg); }
.counter { background: var(--block); color: var(--on-block); border-radius: var(--r-md); padding: 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.counter button { border: 0; cursor: pointer; display: grid; place-items: center; font: 800 26px/1 var(--font-display); transition: transform 120ms ease; }
.counter button:active { transform: scale(0.94); }
.c-minus { width: 48px; height: 48px; border-radius: 50%; background: transparent; color: var(--on-block); box-shadow: inset 0 0 0 1px var(--on-block-line) !important; }
.c-plus { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.c-read { text-align: center; }
.c-read b { display: block; font: 800 40px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.c-read b small { font-size: 20px; color: var(--on-block-muted); }
.c-read > span { font-size: 12px; color: var(--on-block-muted); }
.c-read b span { font: inherit; color: inherit; }
.c-read > span.ok { color: var(--on-block-ok); font-weight: 700; }
.hint { position: absolute; z-index: 2; right: -6px; bottom: 54px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 12px; }


/* hero: a screen recording of the guide, with a caption that follows it */
.demo { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0; min-width: 0; }
.phone-reel { padding: 0; overflow: hidden; margin: 0; width: 100%; aspect-ratio: 720 / 1558; background: var(--bg); gap: 0; border-width: 8px; border-radius: 34px; }
/* two phones: the guide in front, the Discover reel set lower beside it */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 250px)); gap: 20px; justify-content: center; align-items: start; }
.duo .demo:nth-child(2) { margin-top: 64px; }
.phone-reel video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.steps button { width: 28px; height: 28px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.steps button i { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--track); transition: width 200ms ease, background 200ms ease; }
.steps button[aria-current="step"] i { width: 22px; background: var(--primary); }
.demo figcaption { min-height: 4.6em; text-align: center; max-width: 26ch; display: flex; flex-direction: column; gap: 2px; }
.demo figcaption b { font: 800 17px/1.25 var(--font-display); }
.demo figcaption span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.demo .tag { font: 800 12px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }

/* questions */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.faq details { border-bottom: 1px solid var(--line); min-width: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 700 17px/1.35 var(--font-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 22px/1 var(--font-display); color: var(--primary); flex: none; transition: transform 160ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 60ch; }
/* how it reads: the round two ways, beside the guide screen */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; align-items: center; }
.tw-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hint-guide { right: 50%; transform: translateX(50%); bottom: -18px; white-space: nowrap; }

/* ---------- sections */
section { padding-block: 72px; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); }
.sec-head p { color: var(--muted); font-size: 18px; }

/* round, two ways */
.twoway { background: var(--surface); border-block: 1px solid var(--line); }
.tw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.tw-card { border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tw-orig { background: var(--bg); border: 1px dashed var(--line-strong); }
.tw-plain { background: var(--butter-bg); color: var(--butter-fg); }
.tw-card .label { font: 800 13px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.tw-orig .label { color: var(--muted); }
.tw-orig .big { font: 500 clamp(26px, 3.4vw, 36px)/1.25 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.tw-plain .big { font: 800 clamp(24px, 3vw, 32px)/1.25 var(--font-display); }
.tw-card small { font-size: 15px; }
.tw-orig small { color: var(--muted); }

.abbr { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }
.abbr-intro { display: flex; flex-direction: column; gap: 14px; }
.abbr-intro p { color: var(--muted); }
.seg { display: inline-flex; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; gap: 4px; align-self: flex-start; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 700 15px/1 var(--font-body); padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(59, 42, 32, 0.10); }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.st-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-list .ab { font: 500 17px/1.4 var(--font-mono); color: var(--primary); }
.st-list b { display: block; font-size: 16px; }
.st-list span { font-size: 14px; color: var(--muted); }

/* library */
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.shelf figure { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shelf .ph { aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--r-md); overflow: hidden; background: var(--rose-bg); box-shadow: var(--shadow); }
.shelf img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.shelf figure:hover img { transform: scale(1.04); }
.shelf figcaption { display: flex; flex-direction: column; gap: 4px; }
.shelf figcaption b { font-size: 15px; line-height: 1.3; }
.shelf .lvl { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--mint-bg); color: var(--mint-fg); }
.cats { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.cats span { display: inline-flex; gap: 8px; align-items: baseline; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 15px; }
.cats em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }

/* promises */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feat .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.feat .ic svg { width: 24px; height: 24px; }
.feat h3 { font-size: 20px; }
.feat p { font-size: 15px; color: var(--muted); }

/* ink band */
.band { background: var(--block); color: var(--on-block); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.band h2 { font-size: clamp(30px, 4vw, 46px); }
.band p { color: var(--on-block-muted); font-size: 18px; margin-top: 14px; max-width: 46ch; }
.band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.band li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.band li i { width: 28px; height: 28px; border-radius: 50%; background: var(--mint-bg); color: var(--mint-fg); display: grid; place-items: center; flex: none; }
.band li svg { width: 15px; height: 15px; }
.band a { color: var(--on-block-ok); }

/* footer */
footer { padding-block: 48px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.contact { display: flex; flex-direction: column; gap: 8px; }
.contact span { font-size: 14px; color: var(--muted); }
.mail { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mail code { font: 500 15px/1.4 var(--font-mono); user-select: all; overflow-wrap: anywhere; }
.mail button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 700 14px/1 var(--font-body); padding: 10px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.foot-links { display: flex; gap: 20px; font-weight: 700; font-size: 15px; }
.fine { width: 100%; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }

@media (max-width: 920px) {
  .hero .wrap, .band .wrap, .abbr, .how-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 48px; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf figure:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .hero { padding-block: 16px 56px; }
  .lede { font-size: 18px; }
  section { padding-block: 56px; }
  .tw-grid, .st-list, .feats, .faq { grid-template-columns: minmax(0, 1fr); }
  .duo { gap: 12px; }
  .duo .demo:nth-child(2) { margin-top: 40px; }
  .phone-reel { border-width: 6px; border-radius: 26px; }
  .phone-reel video { border-radius: 20px; }
  .demo figcaption b { font-size: 15px; }
  .demo figcaption span { font-size: 13px; }
  .steps button { width: 20px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf figure:nth-child(n+3) { display: none; }
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
body{margin:0}img{max-width:100%}

/* ---------- language menu and suggestion */
.top-end { display: flex; align-items: center; gap: 20px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink); background: var(--surface); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); max-height: 60vh; overflow: auto; min-width: 190px; }
.lang li a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.lang li a:hover, .lang li a[aria-current="true"] { background: var(--bg); }
.suggest { background: var(--ink); color: var(--bg); font-size: 15px; }
.suggest .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; padding-block: 10px; }
.suggest a { color: var(--accent); font-weight: 800; }
.suggest button { border: 0; background: transparent; color: var(--bg); font: 700 14px/1 var(--font-body); cursor: pointer; padding: 8px; min-height: 36px; }

/* ---------- library pages: patterns, categories, stitches */
.crumbs { font-size: 14px; color: var(--muted); padding-block: 4px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head { padding-block: 28px 8px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); }
.page-head p { color: var(--muted); font-size: 19px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.tile .ph { aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--r-md); overflow: hidden; background: var(--rose-bg); box-shadow: var(--shadow); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.tile:hover img { transform: scale(1.04); }
.tile b { font-size: 16px; line-height: 1.3; }
.tile .meta { font-size: 14px; color: var(--muted); }
.cat-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-links a { display: inline-flex; gap: 8px; align-items: baseline; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.cat-links a:hover { border-color: var(--primary); }
.cat-links em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }

.pattern { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; padding-block: 24px 56px; }
.pattern-photo { position: sticky; top: 16px; border-radius: var(--r-lg); overflow: hidden; background: var(--rose-bg); aspect-ratio: 3 / 4; max-width: 100%; box-shadow: var(--shadow-lift); }
.pattern-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pattern-body { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.pattern-body h1 { font-size: clamp(32px, 4.6vw, 50px); }
.byline { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tiles div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.tiles span { font-size: 13px; color: var(--muted); }
.tiles b { font: 800 19px/1.2 var(--font-display); }
.pattern-body h2 { font-size: 26px; }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li span:last-child { color: var(--muted); text-align: end; }
.rounds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rounds li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.rounds .eyebrow { font-size: 12px; }
.rounds code { font: 500 15px/1.4 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
.rounds p { font: 700 18px/1.4 var(--font-body); }
.cta { background: var(--block); color: var(--on-block); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cta b { font: 800 22px/1.2 var(--font-display); }
.cta span { color: var(--on-block-muted); }
.gloss { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.gloss th, .gloss td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gloss th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.gloss td.ab { font: 500 17px/1.4 var(--font-mono); color: var(--primary); white-space: nowrap; }
.gloss a { color: var(--ink); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.lead-block { display: flex; flex-direction: column; gap: 14px; max-width: 70ch; }
.lead-block p { font-size: 18px; }
.abbr-big { display: flex; flex-wrap: wrap; gap: 12px; }
.abbr-big span { font: 500 28px/1 var(--font-mono); color: var(--primary); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; }
.abbr-big small { display: block; font: 700 12px/1 var(--font-body); color: var(--muted); margin-top: 8px; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 860px) {
  .pattern { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pattern-photo { position: static; max-width: 460px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top-end nav { display: none; }
}
.pattern-body section { padding-block: 0; }
[dir="rtl"] .rounds code, [dir="rtl"] .gloss td.ab, [dir="rtl"] .abbr-big span { direction: ltr; unicode-bidi: isolate; }
