/* Chop landing page, on top of Bootstrap 5.3. Paper, ink and one red: the screenshots bring the
   colour. Layout: a 3/9 grid, labels on the left, content on the right. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f4f3ef;
  --ink: #151513;
  --muted: #6b6860;
  --rule: #dcd9d0;
  --red: #d8391d;
  --lcd: #abb691; /* the green of the app's LCD screens */
  --nav-h: 84px;

  --bs-body-bg: var(--paper);
  --bs-body-color: var(--ink);
  --bs-body-font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.55;
  --bs-border-color: var(--rule);
  --bs-link-color: var(--ink);
  --bs-link-color-rgb: 21, 21, 19;
  --bs-link-hover-color: var(--red);
  --bs-link-hover-color-rgb: 216, 57, 29;
  --bs-font-monospace: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--muted);
}

html { scroll-padding-top: calc(var(--nav-h) + 16px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01"; }
::selection { background: var(--ink); color: var(--paper); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

@media (min-width: 1400px) {
  .container { max-width: 1296px; }
}

.skip { position: absolute; left: 16px; top: 12px; z-index: 1100; padding: 8px 12px; background: var(--ink); color: var(--paper); }

/* ---------- Navigation ---------- */

.site-nav {
  min-height: var(--nav-h);
  background: rgba(244, 243, 239, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-nav.scrolled { border-bottom-color: var(--rule); }
.navbar-brand { display: inline-flex; align-items: center; gap: 14px; padding: 0; }
.navbar-brand:hover { color: var(--ink); }
.mark { width: 52px; height: 52px; }
.wordmark { display: block; height: 34px; width: auto; }

.site-nav .nav-link { padding: 8px 0 !important; margin: 0 16px; font-size: 16px; font-weight: 700; color: var(--muted); position: relative; white-space: nowrap; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--ink); }
.site-nav .nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink); }

.nav-download {
  display: inline-flex; align-items: center;
  margin-left: 20px; padding: 8px 20px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--ink);
  font-size: 14.5px; font-weight: 500; color: var(--paper); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.nav-download:hover { background: var(--lcd); border-color: var(--lcd); color: var(--ink); }

.pulse { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }

.navbar-toggler { border: 0; padding: 10px 4px; box-shadow: none !important; display: none; flex-direction: column; gap: 6px; }
.toggler-bar { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 767.98px) {
  :root { --nav-h: 68px; }
  .mark { width: 42px; height: 42px; }
  .wordmark { height: 28px; }
  .navbar-toggler { display: flex; }
  .site-nav .navbar-collapse.show { display: flex; flex-direction: column; padding: 8px 0 20px; }
  .site-nav .navbar-collapse.show .navbar-nav { width: 100%; }
  /* Right-aligned, within reach of the thumb of the hand holding the phone. */
  .site-nav .nav-link { margin: 0; padding: 12px 0 !important; font-size: 18px; text-align: right; border-bottom: 1px solid var(--rule); }
  .site-nav .nav-link.active::after { display: none; }
  .nav-download { align-self: flex-end; margin: 18px 0 0; }
  .site-nav:has(.show), .site-nav:has(.collapsing) { background: var(--paper); border-bottom-color: var(--rule); }
}

/* ---------- Type ---------- */

.eyebrow, .step-no, .story-caption {
  font-family: var(--bs-font-monospace);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--muted);
}

.display-title {
  margin: 14px 0 0;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;
}
.display-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.display-title .line > span { display: inline-block; }

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}
.section-title-sub { font-size: clamp(1.35rem, 1.8vw, 1.6rem); }
.section-lead {
  margin: 0;
  max-width: 26em;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
}

/* ---------- Hero ---------- */

/* The entrance is plain CSS, so it starts with the first paint instead of waiting for the scripts, and
   the screenshot (the largest element) moves but is never hidden: it counts for the page's LCP at once. */
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { transform: translateY(80px) scale(.965); } }
.display-title .line > span { animation: rise 1.2s cubic-bezier(.16, 1, .3, 1) backwards; }
.display-title .line:nth-child(1) > span { animation-delay: .15s; }
.display-title .line:nth-child(2) > span { animation-delay: .27s; }
.hero .eyebrow, .hero .intro, .hero .status { animation: fade-up .9s cubic-bezier(.33, 1, .68, 1) backwards; }
.hero .eyebrow { animation-delay: .45s; }
.hero .intro { animation-delay: .56s; }
.hero .status { animation-delay: .67s; }
.hero-shot { animation: settle 1.6s cubic-bezier(.16, 1, .3, 1) .2s backwards; }

.hero { padding: calc(var(--nav-h) + clamp(48px, 9vw, 120px)) 0 clamp(64px, 8vw, 112px); }
.intro { margin: 0; font-size: 1.125rem; color: var(--ink); }
.status { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.hero-shot { margin: clamp(40px, 6vw, 80px) 0 0; }
.hero-shot img, .screens img {
  display: block; width: 100%; height: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(21, 21, 19, .1), 0 30px 60px -32px rgba(21, 21, 19, .45);
}

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--rule); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); row-gap: 12px; }

/* How it works: the figure stays while the three steps scroll past it. */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 80px); }
.story-figure { grid-column: 2; grid-row: 1; position: sticky; top: calc(50vh - 150px); align-self: start; margin: 0; }
.story-steps { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 8vh; }
.step:last-child { min-height: 60vh; }
/* Inactive steps are dimmed by colour, not opacity, so their text keeps a readable contrast (5:1). */
.step h3 { margin: 10px 0 12px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); color: var(--muted); transition: color .35s; }
.step p { margin: 0; max-width: 30em; color: var(--muted); transition: color .35s; }
.step.active h3 { color: var(--ink); }
.step.active p { color: #3d3b36; }
.step.active .step-no { color: var(--ink); }

.chop { display: block; width: 100%; height: auto; overflow: visible; }
.chop .wave { fill: var(--ink); }
.chop .mark-line { stroke: var(--red); stroke-width: 1.5; transform-box: fill-box; transform-origin: 50% 0; }
.chop .num { font-family: var(--bs-font-monospace); font-size: 12px; fill: var(--muted); }
.chop .flip { transform-box: fill-box; transform-origin: 50% 50%; }
.chop .axis { stroke: var(--rule); stroke-width: 1; }
.story-caption { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); }
.story-caption b { font-weight: 400; color: var(--ink); }

@media (max-width: 991.98px) {
  .story { display: block; }
  .story-figure { position: sticky; top: var(--nav-h); z-index: 2; padding: 16px 0 12px; background: var(--paper); }
  .story-caption { margin-top: 12px; padding-top: 10px; }
  .step, .step:first-child, .step:last-child { min-height: 50vh; justify-content: center; padding-top: 0; }
}

/* Screens */
.screen-tabs { position: relative; display: flex; gap: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--rule); }
.screen-tabs .nav-link {
  padding: 0 0 14px; border: 0; background: none;
  font-size: 17px; font-weight: 500; color: var(--muted);
}
.screen-tabs .nav-link:hover, .screen-tabs .nav-link.active { color: var(--ink); }
.tab-indicator { position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--ink); }
.screens figure { margin: 0; }
.screens figcaption { margin-top: 24px; color: var(--muted); font-size: 16px; }

/* Features */
.features h3 { margin: 0 0 14px; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.features ul { list-style: none; margin: 0; padding: 0; }
.features li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.4; color: #45423c; }
.features li:last-child { border-bottom: 0; }
.not-included { margin-top: clamp(64px, 8vw, 110px); row-gap: 12px; }
.not-included p { margin: 0; max-width: 40em; font-size: 1.2rem; line-height: 1.5; color: #3d3b36; }

/* Specs */
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 16px; }
.specs tr:first-child th, .specs tr:first-child td { border-top: 1px solid var(--ink); }
.specs th { width: 34%; padding-right: 24px; font-weight: 400; color: var(--muted); }

/* FAQ: plain <details>; name="faq" keeps one answer open at a time. */
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0; list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3e%3cpath d='M0 7h14M7 0v14' stroke='%23151513' stroke-width='1.4'/%3e%3c/svg%3e") center / contain no-repeat;
}
.faq-item[open] summary::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3e%3cpath d='M0 7h14' stroke='%23151513' stroke-width='1.4'/%3e%3c/svg%3e"); }
.faq summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.faq-answer { padding-bottom: 22px; max-width: 38em; color: #45423c; }

/* Under the questions: the way to the user guide. */
/* Same space above as the section leaves below it. */
.guide-more { margin-top: clamp(80px, 11vw, 150px); row-gap: 12px; }
.guide-more .section-lead { margin-bottom: 32px; }

/* Coming soon */
.soon { padding-bottom: clamp(100px, 13vw, 180px); }
.soon-title { font-size: clamp(2.4rem, 6vw, 5rem) !important; line-height: 1 !important; letter-spacing: -.045em !important; }
.soon-text { margin: 24px 0 0; max-width: 32em; font-size: 1.125rem; color: var(--muted); }

.downloads { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink);
  font: inherit; font-size: 16px; font-weight: 500; color: var(--paper); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.os-logo { height: 21px; width: auto; fill: currentColor; flex: none; }
.os-windows { height: 18px; }
.btn-download:hover { background: var(--lcd); border-color: var(--lcd); color: var(--ink); }
.btn-download:disabled, .btn-download:disabled:hover { background: transparent; border-color: var(--muted); color: var(--muted); cursor: default; }
.btn-download:focus-visible, .nav-download:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Footer */
.site-foot { padding: 28px 0 40px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }

.site-foot a { color: var(--ink); text-underline-offset: 3px; }
.site-foot a:hover { color: var(--red); }

/* ---------- User guide (guide/*.html) ----------
   Only what the guide adds: the list of pages on the left and the text on the right, in the landing
   page's 3/9 proportions. Header, buttons, footer, colours and type are the ones above. */

.guide-layout {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 24px;
  padding-top: calc(var(--nav-h) + clamp(32px, 5vw, 64px)); padding-bottom: clamp(64px, 9vw, 120px);
}

/* ---------- List of pages ---------- */

.guide-menu { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; padding-right: 24px; }
.guide-menu summary { display: none; }
.guide-menu-group { margin: 22px 0 6px; font-family: var(--bs-font-monospace); font-size: 12.5px; letter-spacing: .02em; color: var(--muted); }
.guide-menu-group:first-child { margin-top: 0; }
.guide-menu ul { list-style: none; margin: 0; padding: 0; }
.guide-menu a { display: block; padding: 5px 0; font-size: 15px; line-height: 1.35; color: #45423c; text-decoration: none; }
.guide-menu a:hover { color: var(--red); }
.guide-menu a[aria-current="page"] { font-weight: 700; color: var(--ink); }

/* ---------- Text ---------- */

.guide-page { min-width: 0; max-width: 46em; }
.guide-page h1 { margin: 10px 0 0; font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; }
.guide-page .guide-lead { margin: 20px 0 24px; color: var(--ink); font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.3; letter-spacing: -.015em; }
.guide-page h2 { margin: clamp(48px, 6vw, 72px) 0 16px; padding-top: 16px; border-top: 1px solid var(--ink); font-size: clamp(1.4rem, 2.1vw, 1.7rem); font-weight: 600; letter-spacing: -.03em; }
.guide-page h3 { margin: 32px 0 10px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.guide-page p, .guide-page li { color: #3d3b36; }
.guide-page p { margin: 0 0 16px; }
.guide-page ul, .guide-page ol { margin: 0 0 16px; padding-left: 1.3em; }
.guide-page li { margin-bottom: 8px; }
.guide-page li::marker { color: var(--muted); }
.guide-page b { font-weight: 700; color: var(--ink); }

kbd {
  padding: 1px 6px; border: 1px solid #c9c5b9; border-bottom-width: 2px; border-radius: 4px; background: #fbfaf7;
  font-family: var(--bs-font-monospace); font-size: .82em; color: var(--ink); white-space: nowrap;
}
.guide-page code { font-family: var(--bs-font-monospace); font-size: .88em; color: var(--ink); }

.guide-page table { width: 100%; margin: 0 0 24px; border-collapse: collapse; }
.guide-page th, .guide-page td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; font-size: 15.5px; line-height: 1.45; color: #3d3b36; }
.guide-page thead th { border-bottom-color: var(--ink); font-size: 13.5px; font-weight: 400; color: var(--muted); }
.guide-page tbody th { font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* A note beside the steps: something to know, not something to do. */
.note { margin: 0 0 20px; padding: 14px 18px; border-left: 2px solid var(--red); background: #ecebe5; }
.note p:last-child { margin-bottom: 0; }

/* Screenshots, and the labelled box that stands in until the file exists. */
.shot { margin: 24px 0 28px; }
.shot-frame { position: relative; display: block; max-width: 100%; }
.shot img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(21, 21, 19, .14); }
/* A numbered badge beside a screenshot, never on it, and the line from it to what it names.
   The text beside the image says what each number is. */
.shot-t { margin-top: 58px; }
.shot-b { margin-bottom: 58px; }
.shot-t2 { margin-top: 84px; }
.shot-b2 { margin-bottom: 84px; }
.shot-l .shot-frame { margin-left: 34px; }
.shot-r .shot-frame { margin-right: 34px; }
.callout {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; width: 21px; height: 21px; border-radius: 50%;
  background: var(--red);
  font-family: var(--bs-font-monospace); font-size: 12px; font-weight: 700; line-height: 1; color: #fff;
}
.callout-t { top: -20px; }
.callout-b { top: calc(100% + 20px); }
.callout-t2 { top: -46px; }
.callout-b2 { top: calc(100% + 46px); }
.callout-l { left: -20px; }
.callout-r { left: calc(100% + 20px); }
.lead { position: absolute; background: var(--red); }
.lead-t, .lead-b, .lead-t2, .lead-b2 { width: 2px; margin-left: -1px; }
.lead-l, .lead-r { height: 2px; margin-top: -1px; }
.lead-t { top: -10px; }
.lead-b { bottom: -10px; }
.lead-t2 { top: -36px; }
.lead-b2 { bottom: -36px; }
.lead-l { left: -10px; }
.lead-r { right: -10px; }
.guide-page b.callout { color: #fff; }
.num { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; margin-right: 6px; padding: 0 5px; border-radius: 11px; background: var(--red); font-family: var(--bs-font-monospace); font-size: 12px; font-weight: 700; line-height: 1; color: #fff; vertical-align: 1px; }
/* A tall, narrow screenshot beside the text that explains it. */
.side { display: flex; align-items: flex-start; gap: 44px; margin: 0 0 24px; }
.side .shot { flex: none; margin: 4px 0 0; }
.side > :last-child { flex: 1; min-width: 0; }
.shots-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 20px; margin: 24px 0 28px; }
.shots-row .shot { margin: 0; }
.shot-todo { padding: 28px 20px; border: 1px dashed var(--muted); border-radius: 8px; text-align: center; }
.shot-todo p { margin: 0 0 6px; font-size: 15px; color: var(--muted); }
.shot-todo code { font-size: 12.5px; color: var(--muted); }

/* The overview's list of pages. */
.guide-page .guide-toc { list-style: none; margin: 0 0 8px; padding: 0; }
.guide-page .guide-toc li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.guide-toc a { font-weight: 600; }
.guide-toc span { display: block; font-size: 15.5px; color: var(--muted); }

.guide-pager { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 7vw, 88px); padding-top: 20px; border-top: 1px solid var(--ink); }
.guide-pager a { max-width: 48%; font-weight: 600; text-decoration: none; }
.guide-pager a:hover { color: var(--red); }
.guide-pager span { display: block; font-family: var(--bs-font-monospace); font-size: 12.5px; font-weight: 400; color: var(--muted); }
.guide-pager .next { margin-left: auto; text-align: right; }

@media (max-width: 991.98px) {
  .guide-layout { display: block; }
  .guide-menu { position: static; max-height: none; margin-bottom: 36px; padding: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
  .guide-menu summary { display: block; padding: 14px 0; font-weight: 700; cursor: pointer; }
  .guide-menu nav { padding-bottom: 16px; }
  .guide-menu a { padding: 8px 0; }
}
/* The list of a page's sections, under its title: every section is one click away. */
.guide-onpage { margin: 28px 0 28px; padding: 16px 20px 14px; border: 1px solid var(--rule); border-radius: 8px; }
.guide-onpage p { margin: 0 0 8px; font-family: var(--bs-font-monospace); font-size: 12.5px; letter-spacing: .02em; color: var(--muted); }
.guide-page .guide-onpage ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.guide-page .guide-onpage li { margin: 0; padding: 3px 0; break-inside: avoid; font-size: 15px; line-height: 1.35; }
.guide-onpage a { color: #3d3b36; text-decoration: none; }
.guide-onpage a:hover { color: var(--red); text-decoration: underline; }
.guide-page i { color: var(--ink); }

/* Find a function: the letters, then one list per letter. */
.guide-letters { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 24px 0 0; font-family: var(--bs-font-monospace); font-size: 15px; }
.guide-letters a { text-decoration: none; }
.guide-letters a:hover { color: var(--red); }
.guide-page .guide-index { list-style: none; margin: 0 0 8px; padding: 0; }
.guide-page .guide-index li { display: flex; justify-content: space-between; gap: 24px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.guide-index span { flex: none; max-width: 45%; text-align: right; font-size: 14px; color: var(--muted); }

@media (max-width: 767.98px) {
  .side { display: block; }
  .side .shot { margin: 0 0 24px; }
  .guide-page .guide-onpage ul { columns: 1; }
  .guide-page .guide-index li { display: block; }
  .guide-index span { display: block; max-width: none; text-align: left; }
}

/* Drawn diagrams (inline SVG): ink lines on the paper, the app's LCD green for what holds audio. On a
   phone they keep a readable size and scroll sideways instead of shrinking. */
.diagram { margin: 24px 0 28px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 600px; height: auto; }
.diagram figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.diagram text { font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-size: 14px; fill: var(--ink); }
.diagram .t-label { font-weight: 700; }
.diagram .t-small { font-size: 12.5px; fill: var(--muted); }
.diagram .t-mono { font-family: var(--bs-font-monospace); font-size: 12.5px; }
.diagram .d-box { fill: #dfe3cd; stroke: var(--ink); stroke-width: 1.25; }
.diagram .d-plain { fill: #fbfaf7; stroke: var(--ink); stroke-width: 1.25; }
.diagram .d-empty { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.diagram .d-line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.diagram .d-thin { fill: none; stroke: var(--muted); stroke-width: 1; }
.diagram .d-red { fill: none; stroke: var(--red); stroke-width: 2; }
.diagram .d-dash { stroke-dasharray: 6 5; }
.diagram .d-dot { stroke-dasharray: 2 5; }
.diagram .d-ink { fill: var(--ink); }

/* The idea of a page: a few paragraphs of explanation before the steps. */
.guide-page h3 + p { margin-top: 0; }
.example { margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 8px; background: #fbfaf7; }
.example p:last-child, .example ul:last-child, .example ol:last-child { margin-bottom: 0; }
.example > p:first-child b:first-child { font-family: var(--bs-font-monospace); font-size: 12.5px; font-weight: 400; letter-spacing: .02em; color: var(--muted); }

/* ---------- Before the scripts run ---------- */

.js [data-reveal] { opacity: 0; }
