/* Lumar — site + manual.
   The system is the app's own: black ground, white at stepped opacities, Avenir Next with the
   condensed cut on dials, small uppercase demi-bold labels, hairlines instead of boxes.
   The values come from the app's default theme (CameraUITheme.lumar).

   Contrast on black (WCAG): w100 21:1 · w85 14.9:1 · w65 8.6:1 · w50 5.3:1 · w42 3.9:1.
   Text never goes below w50. w42 and lower are for strokes, hairlines and fills only. */
:root {
  color-scheme: dark;
  --bg: #000;
  --accent: #fff;
  --w100: #fff;
  --w85: rgba(255, 255, 255, 0.85);
  --w65: rgba(255, 255, 255, 0.65);
  --w50: rgba(255, 255, 255, 0.5);
  --w42: rgba(255, 255, 255, 0.42);
  --w18: rgba(255, 255, 255, 0.18);
  --w08: rgba(255, 255, 255, 0.08);
  --rec: #ff3b2f;
  --callout: #ff6410; /* Quick Start callouts: the app's Nordic orange, a color no camera control uses */
  --bar: rgba(0, 0, 0, 0.84);
  --font: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --dial: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  --w-text: 400; --w-head: 400; --w-label: 600; --w-dial: 600;
  --label: var(--w-label) 0.6875rem/1.2 var(--font); /* 11 px, the smallest size on the site */
  --notch: 1;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 56px;
}
/* Increase Contrast: every step moves up. */
@media (prefers-contrast: more) {
  :root { --w85: #fff; --w65: rgba(255, 255, 255, 0.85); --w50: rgba(255, 255, 255, 0.72); --w42: rgba(255, 255, 255, 0.6); --w18: rgba(255, 255, 255, 0.4); }
}
/* Reduce Transparency: bars go solid. */
@media (prefers-reduced-transparency: reduce) { :root { --bar: #000; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--w85); font: var(--w-text) 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--w100); text-decoration-color: var(--w42); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--w100); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: #000; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; text-decoration: none; border-radius: 10px; }
.skip:focus { top: 10px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Type ---------- */
.label { font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); margin: 0; }
h1, h2, h3 { font-family: var(--font); font-weight: var(--w-head); color: var(--w100); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 8.2vw, 7.75rem); line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.875rem); line-height: 1.05; letter-spacing: -0.024em; }
.major h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.028em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--w65); max-width: 56ch; }
.num { font-family: var(--dial); font-weight: var(--w-dial); letter-spacing: 0.02em; }
.note { color: var(--w65); font-size: 0.9375rem; max-width: 52ch; }

/* Paid-tier marker, for when Lumar has a free and a paid tier. Put it after a feature's name:
   <h3>Star <span class="tier">Pro</span></h3>. Not used yet. */
.tier { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 8px; vertical-align: 0.2em; border: 1px solid var(--w42); border-radius: 6px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w85); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bar); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--w18); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header); }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--w100); font: var(--w-label) 0.875rem/1 var(--font); letter-spacing: 0.2em; text-transform: uppercase; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
/* Two kinds of link, kept apart: the sections of this page, and the other pages. */
.nav { display: flex; align-items: center; gap: 26px; min-width: 0; }
.nav.sections { margin-left: auto; }
.nav.pages { margin-left: auto; }
.nav.sections + .nav.pages { margin-left: 0; padding-left: 26px; border-left: 1px solid var(--w18); }
.nav a { display: flex; align-items: center; min-height: 44px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--w100); }
.nav a[aria-current="page"], .nav a.active { color: var(--accent); }
@media (max-width: 899px) {
  .nav.sections { display: none; }
  .nav.pages { gap: 22px; }
  .nav.sections + .nav.pages { padding-left: 0; border-left: 0; margin-left: auto; }
}

/* Section strip: the sections of a long page, floating under the header on narrow screens.
   The home page and the manual share it. */
.strip { position: sticky; top: var(--header); z-index: 40; background: var(--bar); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--w18); }
.strip ol { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.strip ol::-webkit-scrollbar { display: none; }
.strip a { position: relative; display: flex; align-items: center; min-height: 44px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); text-decoration: none; white-space: nowrap; }
.strip a:hover { color: var(--w100); }
.strip a.active { color: var(--accent); }
.strip a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); }
@media (min-width: 900px) { .home-strip { display: none; } }
@media (max-width: 899px) { html:has(.home-strip) { scroll-padding-top: calc(var(--header) + 64px); } }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--w42); color: var(--w100); font: var(--label); letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--w100); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #000; }

/* ---------- Sections ---------- */
.hero { padding: clamp(56px, 10vw, 150px) 0 0; }
.hero h1 { margin: 26px 0 30px; max-width: 11ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 38px; }

section.band { padding: clamp(72px, 10vw, 150px) 0; border-top: 1px solid var(--w18); }
.hero + .band, .home-strip + .band { border-top: 0; }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.major .head { gap: 22px; margin-bottom: clamp(40px, 6vw, 84px); max-width: 860px; }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Photograph with the app's caption line beneath: lens · aperture · style · frame */
.plate { margin: 0; }
.plate .img { position: relative; overflow: hidden; background: #0a0a0a; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 12px 0 0; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); }
.plate figcaption b { font-weight: inherit; color: var(--w100); }
.plate.bleed { margin-top: clamp(56px, 8vw, 110px); }
.plate.bleed figcaption { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.r-xpan { aspect-ratio: 65 / 24; } .r-scope { aspect-ratio: 2.39 / 1; } .r-32 { aspect-ratio: 3 / 2; } .r-43 { aspect-ratio: 4 / 3; }
@media (max-width: 640px) { .plate.bleed .r-xpan { aspect-ratio: 2.39 / 1; } }
.rec::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); margin-right: 8px; }

/* Hairline rows: the site's replacement for cards */
.rows { border-top: 1px solid var(--w18); }
.rows > * { display: grid; grid-template-columns: minmax(120px, 0.9fr) minmax(0, 2fr); gap: 6px 32px; padding: 20px 0; border-bottom: 1px solid var(--w18); align-items: baseline; }
.rows h3 { font-size: 1.1875rem; }
.rows p:not(.label) { color: var(--w65); font-size: 1rem; }
.rows .label { grid-column: 2; }
.rows.three > * { grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr) minmax(0, 1.6fr); }
.rows.three .label { grid-column: auto; }
@media (max-width: 640px) { .rows > *, .rows.three > * { grid-template-columns: 1fr; } .rows .label { grid-column: auto; } }
.grid-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.grid-rows > .rows + .rows { border-top: 0; }
@media (min-width: 760px) { .grid-rows > .rows + .rows { border-top: 1px solid var(--w18); } }
/* Specifications: the same rows, set tighter, as at the back of a camera brochure */
.rows.spec > * { padding: 14px 0; }
.rows.spec h3 { font-size: 1rem; font-weight: 500; }
.rows.spec p:not(.label) { font-size: 0.9375rem; }

/* ---------- Open-type option rows (LOOK / FRAME / FOCUS, aspect ratios, kits) ---------- */
.options { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.options > .label { width: 62px; color: var(--w50); }
.opt { display: inline-flex; align-items: center; min-width: 28px; min-height: 44px; font: var(--w-label) 0.75rem/1 var(--font); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); transition: color 0.15s; }
.opt:hover { color: var(--w85); }
.opt[aria-pressed="true"], .opt.on { color: var(--accent); }
.panel { display: grid; gap: 4px; padding: 18px 0 0; }

/* ---------- Lens tiles ---------- */
.lens-row { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 18px 0 18px; min-height: 104px; }
.lens { display: grid; justify-items: center; gap: 4px; width: 68px; padding: 6px 0 8px; border-radius: 7px; color: var(--w65); }
.lens svg { width: 64px; height: 64px; }
.lens .num { font-size: 0.9375rem; line-height: 1; color: inherit; }
.lens small { font: var(--label); letter-spacing: 0.1em; color: var(--w50); }
.lens:hover { color: var(--w100); }
.lens[aria-pressed="true"] { background: var(--w08); color: var(--accent); }
.kit-note { color: var(--w65); max-width: 52ch; min-height: 3.2em; }

/* ---------- Aperture dial (ApertureScale in the app) ---------- */
.dial { position: relative; height: 64px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.12) 6%, rgba(0,0,0,.46) 14%, rgba(0,0,0,.82) 23%, #000 34%, #000 66%, rgba(0,0,0,.82) 77%, rgba(0,0,0,.46) 86%, rgba(0,0,0,.12) 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.12) 6%, rgba(0,0,0,.46) 14%, rgba(0,0,0,.82) 23%, #000 34%, #000 66%, rgba(0,0,0,.82) 77%, rgba(0,0,0,.46) 86%, rgba(0,0,0,.12) 94%, transparent 100%); }
.dial:active { cursor: grabbing; }
.dial .stop, .dial .notch { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; }
.dial .stop { width: 72px; height: 24px; margin: -12px 0 0 -36px; display: grid; place-items: center; font: 400 16px/1 var(--dial); color: #fff; }
.dial .stop span { grid-area: 1 / 1; }
.dial .stop .b { font-weight: var(--w-dial); }
.dial .notch { width: calc(1.4px * var(--notch)); height: calc(10px * var(--notch)); margin: calc(-5px * var(--notch)) 0 0 -0.7px; border-radius: 1px; background: #fff; }
.dial-label { text-align: center; margin-top: 2px; color: var(--w50); }
.hint { color: var(--w50); padding-top: 6px; }

/* ---------- Before / after ---------- */
.compare { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; --pos: 50%; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .rule { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: #fff; pointer-events: none; }
.compare .rule::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(0, 0, 0, 0.35); }
/* The range input is only there for the keyboard; dragging is handled on the picture itself. */
.compare input[type="range"] { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.compare input:focus-visible + .rule::after { outline: 1.5px solid var(--accent); outline-offset: 4px; }

/* ---------- Film rolls ---------- */
.rolls { display: flex; flex-wrap: wrap; gap: 6px 2px; }
.roll { display: grid; justify-items: center; align-content: start; gap: 7px; width: 66px; padding: 8px 0 9px; border-radius: 7px; font: var(--label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--w65); text-align: center; }
.roll svg { width: 30px; height: 44px; }
button.roll:hover { color: var(--w100); }
.roll[aria-pressed="true"] { background: var(--w08); color: var(--accent); }
/* Slider row (LumarRateLimitedSlider): label · thin filled track · value */
.slide { display: grid; grid-template-columns: auto minmax(0, 1fr) 3ch; align-items: center; gap: 18px; min-height: 44px; }
.slide output { font: var(--w-dial) 0.875rem/1 var(--dial); color: var(--w100); text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; --fill: 100%; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: linear-gradient(to right, var(--accent) var(--fill), var(--w18) var(--fill)); }
input[type="range"]::-moz-range-track { height: 2px; border-radius: 1px; background: linear-gradient(to right, var(--accent) var(--fill), var(--w18) var(--fill)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; }

/* Dot-on-a-line (the app's COLOR FILTER control), shown here as a picture of the control */
.dots { position: relative; display: flex; justify-content: space-between; max-width: 340px; padding: 8px 0 0; grid-column: 1 / -1; }
.dots::before { content: ""; position: absolute; left: 22px; right: 22px; top: 15px; height: 2px; background: var(--w18); }
.dots span { position: relative; display: grid; justify-items: center; gap: 9px; width: 48px; font: var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--w65); }
.dots i { width: 15px; height: 15px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.dots .on i { box-shadow: 0 0 0 2px #fff; } .dots .on { color: var(--w100); }

/* ---------- Framing ---------- */
.stage { position: relative; overflow: hidden; background: #000; }
.stage > img { width: 100%; height: 100%; object-fit: cover; }
.frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.78); outline: 1px solid rgba(255, 255, 255, 0.85); transition: width 0.34s cubic-bezier(.2,.7,.2,1), height 0.34s cubic-bezier(.2,.7,.2,1); }
.frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame svg * { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- Level ruler (the editor's FRAME tab) ---------- */
.level .img img { transform-origin: center; will-change: transform; }
.level .fine { position: absolute; inset: 0; opacity: 0; transition: opacity 0.2s; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 8.333% 12.5%; }
.level.busy .fine { opacity: 1; }
.level .options { justify-content: center; }
.readout { text-align: center; font: var(--w-dial) 1.25rem/1 var(--dial); color: var(--accent); margin: 16px 0 2px; }
.ruler { position: relative; height: 44px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(to right, transparent, #000 28%, #000 72%, transparent); }
.ruler .ticks { position: absolute; left: 50%; top: 0; height: 100%; will-change: transform; }
.ruler .ticks i { position: absolute; top: 16px; width: 1px; height: calc(9px * var(--notch)); background: var(--w42); }
.ruler .ticks i.major { top: 12px; height: calc(17px * var(--notch)); background: var(--w85); }
.ruler::after { content: ""; position: absolute; left: 50%; top: 4px; width: 1.5px; height: 32px; margin-left: -0.75px; background: var(--accent); }

/* ---------- Closing ---------- */
.cta { text-align: center; }
.cta .head { margin-inline: auto; justify-items: center; margin-bottom: 0; }
.cta img { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 10px; }
.cta .actions { justify-content: center; margin-top: 10px; }

.site-footer { border-top: 1px solid var(--w18); padding: 28px 0 56px; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); text-decoration: none; }
.site-footer nav a:hover { color: var(--w100); }
.site-footer .fine { max-width: 88ch; font-size: 0.8125rem; line-height: 1.6; color: var(--w50); }

/* ---------- Manual + text pages ---------- */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding: 56px 0 120px; align-items: start; }
.toc { position: sticky; top: calc(var(--header) + 28px); max-height: calc(100vh - var(--header) - 48px); overflow-y: auto; padding-left: 2px; }
.toc .find { position: relative; margin-bottom: 18px; }
.toc input { width: 100%; height: 44px; padding: 0 0 0 2px; border: 0; border-bottom: 1px solid var(--w42); border-radius: 0; background: transparent; color: var(--w100); font: var(--w-text) 0.9375rem/1 var(--font); }
.toc input::placeholder { color: var(--w50); }
.toc input:focus { outline: 0; border-color: var(--accent); }
.toc input::-webkit-search-cancel-button { filter: invert(1); opacity: 0.6; }
.toc .count { display: block; min-height: 1.2em; margin-top: 8px; color: var(--w50); }
.toc ol { list-style: none; margin: 0; padding: 0; }
/* Desktop: a reading list, in sentence case, with the dial's notch marking where you are. */
@media (min-width: 900px) {
  .toc nav { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
  .toc ol { display: block; padding: 0; overflow: visible; }
  .toc a { position: relative; display: block; min-height: 0; padding: 7px 0 7px 14px; font: var(--w-text) 0.9375rem/1.35 var(--font); letter-spacing: 0; text-transform: none; color: var(--w65); }
  .toc a:hover { color: var(--w100); }
  .toc a.active { color: var(--accent); }
  .toc a.active::after { left: 0; right: auto; top: 50%; bottom: auto; width: 1.5px; height: 14px; margin-top: -7px; }
}
@media (max-width: 899px) {
  /* Narrow screens: the section list becomes the floating strip under the header. */
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; }
  .toc { display: contents; }
  .toc .find { margin-bottom: 6px; }
  .toc nav { margin: 0 calc(var(--gutter) * -1) 28px; }
  html { scroll-padding-top: calc(var(--header) + 64px); }
}
.page { padding: 64px 0 120px; }
.prose { max-width: 72ch; }
/* The manual: text keeps its 72-character measure, pictures (.wide) use the whole column. */
.doc .prose { max-width: none; }
.doc .prose > header, .doc .prose > .quick-title, .doc .prose section > :not(.wide) { max-width: 72ch; }
.prose .wide { margin: 28px 0 32px; }
.prose > header { margin-bottom: 48px; display: grid; gap: 20px; }
.prose > header h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.prose section { padding: 44px 0 12px; border-top: 1px solid var(--w18); }
.prose section[hidden] { display: none; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.02em; margin-bottom: 20px; }
.prose a.anchor { opacity: 0; margin-left: 12px; font-size: 0.5em; text-decoration: none; color: var(--w50); vertical-align: middle; }
.prose h2:hover a.anchor, .prose a.anchor:focus { opacity: 1; }
.prose h3 { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.005em; color: var(--w100); margin: 36px 0 10px; }
.prose p, .prose ul, .prose ol, .prose table, .prose .tip { margin: 0 0 16px; }
.prose p, .prose li { color: var(--w65); }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--w50); }
.prose b, .prose strong { color: var(--w100); font-weight: 500; }
/* A control's name, set the way the app sets it */
.prose .ui { font: var(--w-label) max(0.72em, 0.6875rem)/1 var(--font); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w100); white-space: nowrap; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; border-top: 1px solid var(--w18); }
.prose th, .prose td { text-align: left; padding: 12px 24px 12px 0; border-bottom: 1px solid var(--w18); vertical-align: top; color: var(--w65); }
.prose th { font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); white-space: nowrap; }
.prose td:first-child { color: var(--w100); white-space: nowrap; }
@media (max-width: 560px) { .prose td:first-child { white-space: normal; min-width: 7.5em; } }
.prose .tip { border-left: 1.5px solid var(--accent); padding: 2px 0 2px 18px; color: var(--w65); font-size: 1rem; }
.prose mark { background: none; color: var(--w100); text-decoration: underline 1.5px; text-underline-offset: 3px; }
.no-results { color: var(--w65); padding: 30px 0; }
.anchor-only { display: block; height: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Aperture series: one frame per stop, cross-faded */
[data-depth] img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.2s linear; }
[data-depth] img.on { opacity: 1; }

@media (max-width: 560px) {
  .options > .label { width: 100%; padding-top: 10px; }
  .options { gap: 0 20px; }
}

/* ---------- Interface screenshots ---------- */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 44px); }
.screen { margin: 0; }
.screen .phone { position: relative; aspect-ratio: 9 / 19.5; border-radius: 13% / 6%; border: 1px solid var(--w42); background: #0a0a0a; overflow: hidden; display: grid; place-items: center; }
.screen .phone span { font: var(--label); line-height: 1.7; letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); text-align: center; }
.screen .phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen figcaption { padding-top: 14px; text-align: center; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); }
@media (max-width: 760px) {
  .screens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .screens::-webkit-scrollbar { display: none; }
  .screen { flex: 0 0 62%; scroll-snap-align: center; }
}

/* A screenshot slot with no file shows its label while working locally and is hidden on the
   published site (html.local is set by site.js); a band whose slots are all empty goes too. */
.shots { display: flex; gap: 22px; margin: 26px 0 30px; overflow-x: auto; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots .screen { flex: 0 0 240px; } /* was 178 px: too small to read the app's labels */
html:not(.local) .screen:not(.ready) { display: none; }
html:not(.local) .shots:not(:has(.ready)), html:not(.local) [data-screens]:not(:has(.ready)) { display: none; }

/* ---------- Manual: quick start, figures, Settings jump row, Troubleshooting questions ---------- */
/* Narrow screens: `.toc ol { padding: 0 }` above cancelled the strip's own side padding. */
@media (max-width: 899px) { .toc nav.strip ol { padding: 0 var(--gutter); } }

/* Quick start: four steps, numbered because they are a sequence */
.prose .quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 56px; padding: 0; list-style: none; counter-reset: step; }
.quick li { counter-increment: step; background: var(--w08); border-radius: 14px; padding: 18px 18px 20px; margin: 0; }
.quick li::before { content: counter(step); display: block; margin-bottom: 14px; font: var(--w-dial) 1.5rem/1 var(--dial); color: var(--w100); }
.prose .quick h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.prose .quick p { margin: 0 0 12px; font-size: 0.9375rem; line-height: 1.45; color: var(--w65); }
.quick a { font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w85); text-decoration: none; }
.quick a:hover { color: var(--w100); }
.prose .quick-title { margin: 0 0 14px; }

/* One picture per idea: the aperture strip and the style, color filter and grain tiles */
.strip-fig { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 0; }
.strip-fig figure { margin: 0; }
.strip-fig .img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: #0a0a0a; }
.strip-fig .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 60%; }
.strip-fig figcaption { padding-top: 8px; text-align: center; font: var(--w-dial) 0.9375rem/1 var(--dial); color: var(--w85); }
.prose .fig-ends { display: flex; justify-content: space-between; margin: 14px 0 0; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.tiles figure { margin: 0; }
.tiles .img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: #0a0a0a; }
.tiles .img img, .tiles .img svg { width: 100%; height: 100%; object-fit: cover; }
.tiles figcaption { padding-top: 8px; font-size: 0.9375rem; color: var(--w85); }
.tiles figcaption small { display: block; margin-top: 3px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); }
.tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles.six .img, .tiles.three .img { aspect-ratio: 1; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }

/* Settings: jump to a group */
.prose .jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.prose .jump li { margin: 0; }
.jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; background: var(--w08); font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w85); text-decoration: none; }
.jump a:hover { background: var(--w18); color: var(--w100); }

/* Troubleshooting: questions that open one at a time (search opens the ones that match) */
.faq { border-top: 1px solid var(--w18); margin: 8px 0 16px; }
.faq details { border-bottom: 1px solid var(--w18); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; list-style: none; color: var(--w100); font-size: 1.0625rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--w65); border-bottom: 1.5px solid var(--w65); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.prose .faq details p { margin: 0 0 18px; }

@media (max-width: 899px) {
  .prose .quick { grid-template-columns: 1fr 1fr; }
  .strip-fig { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .strip-fig::-webkit-scrollbar { display: none; }
  .strip-fig figure { flex: 0 0 26%; }
  .prose .fig-ends { display: none; } /* the strip scrolls, so its two ends are never both in view */
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* An image slot: a picture still to be made. Drop the file at assets/examples/manual/<name> and it fills in.
   Like an empty screenshot slot, it shows its file name while working locally and is hidden on the published site. */
.slot { margin: 28px 0 32px; }
.slot .img { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 12px; background: var(--w08); display: grid; place-items: center; }
.slot .img span { font: var(--label); line-height: 1.7; letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); text-align: center; }
.slot .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot figcaption { padding-top: 10px; font-size: 0.875rem; color: var(--w50); }
html:not(.local) .slot:not(.ready) { display: none; }

/* ---------- Home: the opening photo, the acts (picture over a black deck, as on the camera screen), the spec, the closing photo ---------- */
  /* ---------- Act 1: the opening ---------- */
  .open { position: relative; height: calc(100svh - var(--header)); min-height: 560px; overflow: hidden; background: #000; }
  .open > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
  .open::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 30%, rgba(0,0,0,0) 58%); }
  .open .copy { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); z-index: 1; }
  .open .setup { margin: 0 0 10px; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); color: var(--w85); }
  .open h1 { margin: 0 0 18px; max-width: 14ch; font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1.02; }
  .open .lede { max-width: 36ch; margin: 0 0 28px; color: var(--w85); }
  .open .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
  .open .cap { position: absolute; left: 0; right: 0; top: 18px; z-index: 1; display: flex; justify-content: space-between;
    font: var(--label); letter-spacing: .11em; text-transform: uppercase; color: var(--w85); }
  .open .cap b { font-weight: inherit; color: #fff; }

  /* ---------- Act 2: the lens ---------- */
  .act { padding: clamp(96px, 14vw, 180px) 0 0; }
  .act .head { text-align: center; max-width: 34rem; margin: 0 auto clamp(40px, 6vw, 72px); }
  .act .head .lede { margin-inline: auto; }
  .act .head h2 { margin-inline: auto; }

  /* The camera screen: the picture, then the black deck with the instruments, as in the app */
  .viewfinder { width: min(1200px, 100%); margin: 0 auto; }
  /* picture + deck fit one screen, so the picture changes in view while the dial turns */
  .viewfinder { scroll-margin-top: calc(var(--header) + 12px); }
  .viewfinder .img { position: relative; height: clamp(320px, calc(100svh - var(--header) - 312px), 680px); overflow: hidden; background: #0a0a0a; }
  .viewfinder .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .viewfinder [data-depth] img { opacity: 0; transition: opacity .35s ease; }
  .viewfinder [data-depth] img.on { opacity: 1; }

  /* ---------- Act 3: styles ---------- */
  .viewfinder .tag.right { left: auto; right: 20px; }
  .deck .rolls { justify-content: center; gap: 6px 4px; }
  .deck .slide { max-width: 420px; margin: 14px auto 0; }
  .viewfinder .tag { position: absolute; left: 20px; top: 16px; z-index: 1; font: var(--label); letter-spacing: .11em; text-transform: uppercase; color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.6); }
  .viewfinder .tag b { font-weight: inherit; }
  .deck { background: #000; padding: 22px 0 6px; }
  .deck .lens-row { justify-content: center; margin: 0 auto 10px; min-height: 0; }
  .deck .dial { max-width: 640px; margin: 0 auto; }
  .fine-note { margin: 10px auto 0; padding: 0 16px; max-width: 640px; text-align: center; font-size: .8125rem; line-height: 1.5; color: var(--w50); }
  .fine-note a { white-space: nowrap; color: var(--w65); text-decoration: underline; text-underline-offset: 2px; }
  .points { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 72px); max-width: 860px; margin: clamp(40px, 6vw, 72px) auto 0; }
  .points div { border-top: 1px solid var(--w18); padding-top: 18px; }
  .points h3 { margin: 0 0 6px; }
  .points p { margin: 0; color: var(--w65); }
  .points.one { grid-template-columns: 1fr; max-width: 420px; text-align: center; }

  /* ---------- Act 4: filters. A break from the camera-screen layout: one scene, five filters side by side ---------- */
  .filter-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: min(1320px, 100%); margin: 0 auto; padding: 0 20px; list-style: none; }
  .filter-row figure { margin: 0; }
  .filter-row .img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #0a0a0a; }
  .filter-row .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
  /* hold a tile to see the scene without the filter */
  .filter-row .img .plain { opacity: 0; }
  .filter-row .img:hover .plain, .filter-row .img:active .plain { opacity: 1; }
  .filter-row figcaption { padding: 14px 4px 0; }
  .filter-row h3 { margin: 0 0 4px; }
  .filter-row p { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--w65); }

  /* ---------- Act 5: the editor. Three phone screenshots, one per tab ---------- */
  .edit-screens { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
  .edit-screens figcaption { text-transform: none; letter-spacing: 0; font: inherit; }
  .edit-screens figcaption h3 { margin: 0 0 4px; color: #fff; }
  .edit-screens figcaption p { margin: 0 auto; max-width: 26ch; font-size: .9375rem; line-height: 1.45; color: var(--w65); }

  /* ---------- Spec: everything else, as a short three-column list ---------- */
  .spec-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); max-width: 1040px; margin: 0 auto; }
  .spec-cols h3 { margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--w42); font: var(--label); letter-spacing: .11em; text-transform: uppercase; color: var(--w85); }
  .spec-cols dl { margin: 0; }
  .spec-cols dl div { padding: 14px 0; border-bottom: 1px solid var(--w18); }
  .spec-cols dt { margin-bottom: 2px; color: #fff; }
  .spec-cols dd { margin: 0; color: var(--w65); }

  /* ---------- Closing: a photo again, as the page opened ---------- */
  .close { position: relative; margin-top: clamp(96px, 14vw, 180px); height: min(88svh, 820px); min-height: 520px; overflow: hidden; background: #000; }
  .close > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .close::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 38%, rgba(0,0,0,0) 65%); }
  .close .copy { position: absolute; left: 0; right: 0; bottom: clamp(40px, 8vh, 88px); z-index: 1; text-align: center; }
  .close .copy img { display: block; margin: 0 auto 18px; border-radius: 22%; }
  .close h2 { margin: 0 0 10px; }
  .close .lede { margin: 0 auto 26px; color: var(--w85); }
  .close .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }


  @media (max-width: 640px) {
    .open .cap { display: none; }
    .viewfinder .img { height: clamp(300px, calc(100svh - var(--header) - 300px), 560px); }
    .deck .lens-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 16px; scrollbar-width: none; }
    .deck .lens-row::-webkit-scrollbar { display: none; }
    .points { grid-template-columns: 1fr; gap: 24px; padding: 0 16px; }
    .deck .slide { padding: 0 16px; }
    .deck .rolls { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 16px; scrollbar-width: none; }
    .deck .rolls::-webkit-scrollbar { display: none; }
    .deck .roll { flex: none; }
    .spec-cols { grid-template-columns: 1fr; gap: 40px; padding: 0 16px; }
  }
  /* five tiles get too narrow below 900 px: swipe through them instead */
  @media (max-width: 900px) {
    .filter-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scrollbar-width: none; }
    .filter-row::-webkit-scrollbar { display: none; }
    .filter-row > li { flex: 0 0 min(68%, 300px); scroll-snap-align: center; }
  }

/* Squircles, not pills: where the browser can draw a true squircle, it does. */
@supports (corner-shape: squircle) { .btn, .jump a, .tier, .skip { corner-shape: squircle; border-radius: 16px; } }

/* The app, early: one phone after the opening (after the narrow-screen .screens rule, so it wins) */
.first-look { padding-top: clamp(40px, 7vw, 88px); }
.screens.one-screen { display: block; max-width: 300px; margin: 0 auto; padding: 0; overflow: visible; }

/* Gallery: photographs made with Lumar, with how each was made */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(12px, 2vw, 24px); }
.gallery-grid figure { margin: 0; }
.gallery-grid img { display: block; width: 100%; height: auto; border-radius: 12px; background: #0a0a0a; }
.gallery-grid figcaption { padding-top: 10px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); }
.gallery-grid figcaption b { font-weight: inherit; color: var(--w100); }

/* Manual: a heading under a Settings group (Grids, Level, Steady Viewfinder) */
.prose h4 { font-size: 1rem; font-weight: 500; color: var(--w100); margin: 26px 0 8px; }
.prose table th[colspan] { padding-top: 18px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); }

/* Manual: Quick Start — the camera screen with numbered controls, and the key beside it */
.tour { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; margin: 0 0 32px; max-width: 72ch; }
.tour-phone { position: relative; margin: 0; aspect-ratio: 140 / 230; }
.tour-screen { position: absolute; top: 0; height: 94.5217%; left: 14.2857%; width: 71.4286%; border-radius: 13% / 6%; border: 1px solid var(--w42); overflow: hidden; background: #0a0a0a; }
.tour-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The callouts: a line from each control out to its number in the margin, in a color the app's controls never use */
.tour-calls { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tour-calls polyline { fill: none; stroke: var(--callout); stroke-width: 0.45; stroke-linejoin: round; }
.tour-calls circle { fill: var(--callout); }
.tour-calls text { fill: #000; font: 600 4.3px var(--font); text-anchor: middle; dominant-baseline: central; }
.tour-keys { margin: 0; padding: 0; list-style: none; counter-reset: key; display: grid; gap: 10px; }
.tour-keys li { counter-increment: key; position: relative; padding-left: 32px; font-size: 0.9375rem; line-height: 1.45; color: var(--w85); }
.tour-keys li::before { content: counter(key); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--callout); color: #000; font: 600 11px/20px var(--font); text-align: center; }
.tour-keys b { color: var(--w100); font-weight: 500; }
.tour-keys a { margin-left: 4px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); text-decoration: none; }
@media (max-width: 760px) { .tour { grid-template-columns: 1fr; } .tour-phone { max-width: 400px; width: 100%; margin: 0 auto; } }
