/* openfilm.dev: ink on paper, one accent (the playhead), monospace for what a machine reads. The colour is the films. */

/* The fonts come with the site (Google Fonts' latin files, one variable font each for the weights used): Google's
   own servers cannot be reached from mainland China, and a stylesheet there held the whole page blank. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-latin.c940764593.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin.2c32b9b3ee.woff2) format('woff2'); }

:root {
  --bg: #fbfbfa;
  --card: #ffffff;
  --panel: #f3f3f1;
  --line: #e6e5e2;
  --line-strong: #d6d4d0;
  --text: #17171a;
  --muted: #5d5d66;
  --faint: #9a9aa2;
  --ink: #0e0e10;
  --on-ink: #f4f4f2;
  --on-ink-muted: #a4a4ab;
  --accent: #ff5a1f;
  --accent-soft: #fff0e9;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --col: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --body: #3e3e46;
  --solid-bg: var(--ink);
  --solid-fg: var(--on-ink);
  --code-bg: var(--ink);
  --logo-filter: none;
  color-scheme: light;
}

/* dark: the system's, unless the person chose light; or chosen (site.js keeps the choice, the page's head applies it) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f11; --card: #17171a; --panel: #1d1d21; --line: #2a2a30; --line-strong: #3b3b42;
    --text: #ededef; --muted: #a3a3ad; --faint: #6e6e78; --body: #c8c8cf;
    --ink: #000; --accent-soft: #2b1810;
    --solid-bg: #ededef; --solid-fg: #0f0f11; --code-bg: #17171a; --logo-filter: invert(1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f11; --card: #17171a; --panel: #1d1d21; --line: #2a2a30; --line-strong: #3b3b42;
  --text: #ededef; --muted: #a3a3ad; --faint: #6e6e78; --body: #c8c8cf;
  --ink: #000; --accent-soft: #2b1810;
  --solid-bg: #ededef; --solid-fg: #0f0f11; --code-bg: #17171a; --logo-filter: invert(1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
code { font-family: var(--mono); font-size: .88em; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
::selection { background: var(--solid-bg); color: var(--solid-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -0.025em; text-decoration: none; }
.logo img { width: 24px; height: 24px; filter: var(--logo-filter); }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 6px 12px; border-radius: 8px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top .end a { text-decoration: none; font-size: 14.5px; }
.top .end .quiet { color: var(--muted); padding: 6px 12px; }
.top .end .quiet:hover { color: var(--text); }
.top .stars { display: inline-flex; align-items: center; gap: 7px; }
.top .stars svg { width: 17px; height: 17px; }

/* the header's language menu and theme switch */
.icon-btn { appearance: none; border: 0; background: none; height: 34px; min-width: 34px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; color: var(--muted); font: 400 14px/1 var(--sans); cursor: pointer; }
.icon-btn:hover, .lang.open > .icon-btn { color: var(--text); background: var(--panel); }
.icon-btn svg { width: 17px; height: 17px; flex: none; }
[data-theme-toggle] svg { display: none; }
/* the switch shows the theme it goes to: the moon on a light page, the sun on a dark one (by CSS alone, so it shows
   before site.js has loaded) */
[data-theme-toggle] [data-icon="dark"] { display: block; }
:root[data-theme="dark"] [data-theme-toggle] [data-icon="dark"] { display: none; }
:root[data-theme="dark"] [data-theme-toggle] [data-icon="light"] { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-theme-toggle] [data-icon="dark"] { display: none; }
  :root:not([data-theme="light"]) [data-theme-toggle] [data-icon="light"] { display: block; }
}

/* the download for this computer's system (the head's script says which); a Mac's when it is neither */
.btn.dl-win, :root[data-os="win"] .btn.dl-mac { display: none; }
:root[data-os="win"] .btn.dl-win { display: inline-flex; }
.lang { position: relative; }
.lang .pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 168px; padding: 6px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 16px 40px -12px rgba(0, 0, 0, .3); display: none; }
.lang.open .pop { display: grid; }
.lang .pop a { padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text); text-decoration: none; }
.lang .pop a:hover { background: var(--panel); }
.lang .pop a[aria-current]::after { content: '✓'; float: right; color: var(--accent); }
.lang .lang-name { font-size: 14px; }
@media (max-width: 760px) { .lang .lang-name { display: none; } }

/* on the English site, for a browser that prefers another language: one line offering it */

/* a page that stays in English, or a translation the English version governs */
.note { margin: 0 0 20px; padding: 10px 14px; border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .top nav { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font: 500 14.5px/1 var(--sans); color: var(--text); background: var(--card); white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s, opacity .15s; }
.btn:hover { border-color: var(--line-strong); }
.btn [hidden] { display: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.solid { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-fg); }
.btn.solid:hover { opacity: .86; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn.on-ink { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, .22); }
.btn.on-ink:hover { border-color: rgba(255, 255, 255, .5); }
.btn.light { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn.light:hover { opacity: .9; }
.arrow::after { content: '→'; font-family: var(--sans); transition: transform .15s; }
.arrow:hover::after { transform: translateX(2px); }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 12.5px/1 var(--mono); letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
h1 { margin: 0; font-size: clamp(38px, 6.2vw, 68px); line-height: 1.04; font-weight: 650; letter-spacing: -0.04em; text-wrap: balance; }
h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 650; letter-spacing: -0.032em; text-wrap: balance; }
h3 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -0.012em; }
.sub { margin: 20px 0 0; max-width: 36em; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; text-wrap: pretty; }
.lede { margin: 14px 0 0; max-width: 40em; color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }

/* sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head > div { max-width: 44em; }

/* hero: centered, the command and the download side by side, then the film */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); text-align: center; }
.hero h1 { max-width: 12em; margin-inline: auto; }
.hero .sub { margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; }
.hero .actions { justify-content: center; }
.actions .btn { height: 48px; }

/* the start command: pick one, copy it */
.cmd { position: relative; display: flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); width: 100%; max-width: 440px; box-shadow: 0 1px 2px rgba(16, 16, 20, .04); }
.pick { appearance: none; border: 0; background: none; height: 46px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 14px; border-right: 1px solid var(--line); font: 500 13px/1 var(--sans); color: var(--muted); cursor: pointer; border-radius: 10px 0 0 10px; }
.pick:hover { color: var(--text); background: var(--panel); }
.pick svg { width: 12px; height: 12px; transition: transform .15s; }
.cmd.open .pick svg { transform: rotate(180deg); }
.menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 300px; width: max-content; padding: 6px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 16px 40px -10px rgba(0,0,0,.22); display: none; }
.cmd.open .menu { display: block; }
.menu button { appearance: none; border: 0; background: none; width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 9px 10px; border-radius: 8px; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.menu button:hover { background: var(--panel); }
.menu b { font: 600 13px/1.3 var(--sans); }
.menu small { grid-column: 1; font: 400 12.5px/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.menu .ck { grid-row: 1 / span 2; grid-column: 2; color: var(--accent); visibility: hidden; }
.menu button[aria-checked="true"] .ck { visibility: visible; }
.cmd code { flex: 1; min-width: 0; padding: 0 8px 0 14px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 13.5px; color: var(--text); }
.cmd code::before { content: '$ '; color: var(--faint); }
.copy { appearance: none; border: 0; background: none; color: var(--faint); cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 8px; }
.copy:hover { color: var(--text); }
.copy svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .actions .btn { flex: 1 1 0; padding: 0 10px; font-size: 13.5px; } .hero .cmd { max-width: none; } }

.cmd { text-align: left; }

/* the film, in a window */
.screen { margin-top: clamp(44px, 6vw, 72px); border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px rgba(16, 16, 20, .08), 0 40px 80px -40px rgba(16, 16, 20, .45); }
.screen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* sections: a heading beside its content, or above it */
.section { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .side { position: sticky; top: 104px; }
.head { max-width: 40em; margin-bottom: clamp(32px, 4vw, 48px); }
.more { display: inline-flex; gap: 6px; margin-top: 22px; font-weight: 550; font-size: 15px; text-decoration: none; }
.more::after { content: '→'; transition: transform .15s; }
.more:hover::after { transform: translateX(2px); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split .side { position: static; } }

/* what it is: one line each, numbered */
.features { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.features li { counter-increment: f; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 0; padding: 20px 0; border-top: 1px solid var(--line); }
.features li:last-child { border-bottom: 1px solid var(--line); }
.features li::before { content: counter(f, decimal-leading-zero); grid-row: 1 / span 2; font: 500 12.5px/1.9 var(--mono); color: var(--accent); }
.features b { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.features span { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* what you can make: two sets (what it does to your footage, the films it makes), a page of six at a time; each plays under the pointer */
.showcase .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.showcase .tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.showcase .tabs button { appearance: none; border: 0; background: none; padding: 8px 16px; border-radius: 8px; font: 500 14.5px/1 var(--sans); color: var(--muted); cursor: pointer; }
.showcase .tabs button:hover { color: var(--text); }
.showcase .tabs button[aria-selected="true"] { color: var(--text); background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04); }
.pager { display: flex; align-items: center; gap: 6px; }
.pager span { margin-right: 6px; font: 500 13px/1 var(--mono); color: var(--faint); }
.pager button { appearance: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--text); cursor: pointer; transition: border-color .15s; }
.pager button:hover:not(:disabled) { border-color: var(--line-strong); }
.pager button:disabled { color: var(--line-strong); cursor: default; }
.pager svg { width: 16px; height: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.gallery[hidden], .gallery figure[hidden] { display: none; }
.gallery figure { animation: show .35s ease both; }
@keyframes show { from { opacity: 0; transform: translateY(6px); } }
.gallery figure { margin: 0; }
.gallery video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); border-radius: 10px; cursor: pointer; box-shadow: 0 0 0 1px rgba(16, 16, 20, .06); }
.gallery figcaption { margin-top: 12px; display: grid; gap: 2px; }
.gallery figcaption b { font-size: 15px; font-weight: 600; }
.gallery figcaption span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.yours { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; text-decoration: none; color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 16px 16px; }
.yours i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(0,0,0,.25); font: 300 24px/1 var(--sans); font-style: normal; transition: transform .2s; }
.yours:hover i { transform: scale(1.08); }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

/* questions */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 19px 0; font-weight: 550; font-size: 16.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; font: 300 22px/1 var(--sans); color: var(--faint); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -6px 0 20px; color: var(--muted); max-width: 62ch; }
details code { background: var(--panel); padding: 1px 5px; border-radius: 4px; }

/* the star */
.star { text-align: center; }
.star .lede { margin-inline: auto; }
.star .actions { justify-content: center; }
.btn svg + span .n, .stars .n { margin-left: 2px; padding-left: 9px; border-left: 1px solid currentColor; opacity: .7; font-variant-numeric: tabular-nums; }

/* footer: one line */
footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot .logo { font-size: 16px; }
.foot .logo img { width: 20px; height: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .fine { margin-left: auto; color: var(--faint); font-size: 13px; }
@media (max-width: 720px) { .foot .fine { margin-left: 0; width: 100%; } }

/* docs and legal pages */
.doc { max-width: var(--col); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 0 clamp(24px, 3vw, 48px); padding: 0 var(--pad); }
.doc .side, .doc .toc { align-self: start; position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 40px 0; }
.doc .side p, .doc .toc p { margin: 0 0 10px; padding: 0 10px; font: 500 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.doc .side ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 1px; }
.doc .side a { display: block; padding: 6px 10px; border-radius: 7px; font-size: 14px; color: var(--muted); text-decoration: none; }
.doc .side a:hover { color: var(--text); background: var(--panel); }
.doc .side a[aria-current] { color: var(--text); font-weight: 550; background: var(--panel); }
.doc .toc { font-size: 13px; }
.doc .toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; display: grid; gap: 9px; border-left: 1px solid var(--line); }
.doc .toc a { color: var(--muted); text-decoration: none; }
.doc .toc a:hover { color: var(--text); }
.doc article { padding: 44px 0 96px; min-width: 0; max-width: 760px; }
.doc .crumb { margin: 0 0 14px; font: 500 12.5px/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .03em; }
.doc article h1 { font-size: clamp(32px, 4vw, 42px); letter-spacing: -0.035em; margin-bottom: 10px; }
.doc .lead { color: var(--muted); margin: 0 0 24px; font-size: 17px; }
.doc article h2 { font-size: 22px; letter-spacing: -0.02em; margin: 52px 0 12px; scroll-margin-top: 88px; }
.doc article h3 { font-size: 16.5px; margin: 32px 0 8px; scroll-margin-top: 88px; }
.doc article p, .doc article li { color: var(--body); }
.doc article strong, .doc article b { color: var(--text); font-weight: 600; }
.doc article a { color: var(--text); text-decoration-color: var(--line-strong); }
.doc article a:hover { text-decoration-color: var(--text); }
.doc article ul, .doc article ol { padding-left: 22px; }
.doc article li { margin: 5px 0; }
.doc article :not(pre) > code { color: var(--text); background: var(--panel); padding: 1px 5px; border-radius: 4px; }
.doc article pre { background: var(--code-bg); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.65; }
.doc article blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.doc article blockquote p { margin: 0; }
.doc article .table, .doc article .lg-table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.doc article table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.doc article th, .doc article td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc article th { color: var(--text); font-weight: 600; background: var(--panel); white-space: nowrap; }
.doc article tr:last-child td { border-bottom: 0; }
.doc .turn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; }
.doc .turn a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 550; background: var(--card); }
.doc .turn a:hover { border-color: var(--line-strong); }
.doc .turn a small { font-size: 12px; font-weight: 400; color: var(--faint); }
.doc .turn a.next { text-align: right; grid-column: 2; }
.doc.legal-doc { grid-template-columns: 220px minmax(0, 1fr); }
.doc.legal-doc > aside { align-self: start; position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 44px 0; font-size: 13px; }
.doc.legal-doc > aside ol { list-style: none; margin: 0; padding: 0 0 0 12px; display: grid; gap: 9px; border-left: 1px solid var(--line); }
.doc.legal-doc > aside a { color: var(--muted); text-decoration: none; }
.doc.legal-doc > aside a:hover { color: var(--text); }
.doc .tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--panel); margin-bottom: 36px; font-size: 14px; }
.doc .tabs a { color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 8px; }
.doc .tabs a[aria-current] { color: var(--text); background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04); }
.doc .lg-short { border: 1px solid var(--line); background: var(--card); padding: 4px 22px 14px; border-radius: 10px; }
.doc .lg-short h2 { margin-top: 18px; }
.doc .fine { font-size: 13px; color: var(--faint); margin-top: 0; }
@media (max-width: 1120px) { .doc { grid-template-columns: 200px minmax(0, 1fr); } .doc .toc { display: none; } }
@media (max-width: 820px) { .doc, .doc.legal-doc { grid-template-columns: minmax(0, 1fr); } .doc.legal-doc > aside { display: none; }
  .doc .side { position: static; max-height: none; display: flex; gap: 4px; overflow-x: auto; padding: 12px 0; margin: 0 calc(-1 * var(--pad)); padding-inline: var(--pad); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .doc .side p { display: none; } .doc .side ul { display: contents; } .doc .side a { white-space: nowrap; }
  .doc article { padding-top: 28px; } }

.notfound { padding: clamp(96px, 14vw, 180px) 0; text-align: center; }
.notfound .lede { margin-inline: auto; }
.notfound .actions { justify-content: center; }

/* the launch film, over the page: the hero's button opens it */
.screen { position: relative; }
.screen .watch { position: absolute; left: 16px; bottom: 16px; appearance: none; border: 0; display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 15px 0 12px; border-radius: 19px;
  background: rgba(14, 14, 16, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); color: #fff; font: 500 14px/1 var(--sans); cursor: pointer; transition: background .15s; }
.screen .watch:hover { background: rgba(14, 14, 16, .88); }
.screen .watch svg { width: 20px; height: 20px; color: rgba(255, 255, 255, .62); }
.screen .watch small { font: 400 12.5px/1 var(--mono); color: rgba(255, 255, 255, .5); }
@media (max-width: 520px) { .screen .watch { left: 10px; bottom: 10px; height: 32px; padding: 0 12px 0 10px; font-size: 13px; gap: 7px; } .screen .watch svg { width: 17px; height: 17px; } }
dialog.film { width: min(1120px, calc(100vw - 32px), calc((100vh - 120px) * 16 / 9)); max-width: none; max-height: none; padding: 0; border: 0; background: none; overflow: visible; }
dialog.film::backdrop { background: rgba(6, 6, 8, .86); }
dialog.film .frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
dialog.film iframe, dialog.film video { display: block; width: 100%; height: 100%; border: 0; }
dialog.film .close { position: absolute; right: -6px; bottom: calc(100% + 8px); appearance: none; border: 0; background: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: #fff; cursor: pointer; }
dialog.film .close:hover { background: rgba(255, 255, 255, .12); }
dialog.film .close svg { width: 20px; height: 20px; }

/* the community: what people make for OpenFilm, as cards (a picture, its name, what it is for, its kind and maker);
   a page for all of it, for each kind, each maker and each one */
.cm-hero { padding-bottom: clamp(48px, 6vw, 72px); }
.cm-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)); gap: 10px; }
.cm-kind { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .15s; }
.cm-kind:hover { border-color: var(--line-strong); }
.cm-kind svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.cm-kind span { display: grid; flex: 1; min-width: 0; }
.cm-kind b { font-size: 15px; font-weight: 500; line-height: 1.35; overflow-wrap: break-word; hyphens: auto; }
.cm-kind small { font-size: 12.5px; line-height: 1.4; color: var(--faint); }
.cm-kind em { flex: none; font: normal 500 12.5px/1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.cm-kind.soon b { color: var(--muted); }
.cm-shelf + .cm-shelf { margin-top: clamp(56px, 7vw, 88px); }
.cm-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cm-shelf-head h2 { font-size: clamp(22px, 2.4vw, 26px); letter-spacing: -0.025em; }
.cm-shelf-head .more { margin-top: 0; flex: none; }
.cm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.cm-card { display: grid; align-content: start; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.cm-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--ink); box-shadow: 0 0 0 1px rgba(16, 16, 20, .06); }
.cm-thumb img, .cm-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-thumb img.cover { transition: transform .3s; }
.cm-card:hover .cm-thumb img.cover { transform: scale(1.02); }
/* one with no picture: a color of its own, its sound's wave or its kind's mark on it */
.cm-thumb.tint { color: #fff; background: linear-gradient(135deg, hsl(var(--h) 58% 56%), hsl(calc(var(--h) + 40) 52% 36%)); }
.cm-thumb.tint svg { width: 22%; max-width: 72px; height: auto; opacity: .92; }
.cm-thumb img.wave { inset: 32% 8%; width: 84%; height: 36%; object-fit: fill; opacity: .9; }
.cm-text { display: grid; gap: 2px; min-width: 0; }
.cm-text b { font-size: 15px; font-weight: 600; }
.cm-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.cm-text small { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--faint); }
.cm-text small svg { width: 14px; height: 14px; flex: none; }
.cm-card:hover .cm-text b { text-decoration: underline; text-decoration-color: var(--line-strong); }
@media (max-width: 720px) { .cm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }
@media (max-width: 460px) { .cm-grid { grid-template-columns: minmax(0, 1fr); } }
/* where a list has nothing yet: said kindly, with the way to publish one */
.cm-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.cm-empty p { flex: 1; min-width: min(100%, 18em); margin: 0; color: var(--muted); font-size: 15px; }
.cm-calls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cm-call { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cm-call h2 { font-size: clamp(24px, 2.8vw, 32px); }
.cm-call .lede { flex: 1; font-size: 16px; }
.cm-call .actions { margin-top: 28px; }
@media (max-width: 760px) { .cm-calls { grid-template-columns: minmax(0, 1fr); } }

/* a kind's, a maker's and one thing's page */
.cm-top { padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 4vw, 56px); }
.cm-top h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.035em; }
.cm-top > .wrap > .more { margin-top: 18px; }
.cm-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font: 500 12.5px/1 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--faint); }
.cm-crumb a { color: var(--muted); text-decoration: none; }
.cm-crumb a:hover { color: var(--text); }
.cm-body { padding: 0 0 clamp(72px, 9vw, 120px); }
.cm-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.cm-media .cm-thumb { border-radius: 12px; box-shadow: 0 0 0 1px rgba(16, 16, 20, .08), 0 30px 60px -36px rgba(16, 16, 20, .45); }
.cm-media audio { display: block; width: 100%; margin-top: 14px; }
.cm-kindline { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 500 12.5px/1 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.cm-kindline svg { width: 16px; height: 16px; }
.cm-by { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.cm-by a { color: var(--text); }
.cm-users::before { content: '·'; margin: 0 8px; }
.cm-head .actions { margin-top: 28px; }
.cm-get { margin: 14px 0 0; font-size: 13.5px; color: var(--faint); }
.cm-get a { color: var(--muted); }
.cm-get a:hover { color: var(--text); }
.cm-get .dl-win, :root[data-os="win"] .cm-get .dl-mac { display: none; }
:root[data-os="win"] .cm-get .dl-win { display: inline; }
.cm-detail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.cm-main h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.cm-main h2 ~ h2 { margin-top: 44px; }
.cm-main p { max-width: 62ch; margin: 0 0 12px; color: var(--body); }
.cm-main .cm-why { color: var(--muted); font-size: 14.5px; }
.cm-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.cm-metrics div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.cm-metrics dt { font-size: 12.5px; color: var(--faint); }
.cm-metrics dd { margin: 4px 0 0; font-size: 15px; font-weight: 550; }
.cm-dots { display: flex; gap: 4px; margin-top: 10px; }
.cm-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.cm-dots i.on { background: var(--accent); }
.cm-domains { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.cm-domains code { padding: 3px 8px; border-radius: 6px; background: var(--panel); color: var(--text); }
.cm-facts { position: sticky; top: 104px; }
.cm-facts dl { margin: 0; border-top: 1px solid var(--line); }
.cm-facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cm-facts dt { color: var(--muted); }
.cm-facts dd { min-width: 0; margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.cm-facts dd a { color: var(--text); text-decoration-color: var(--line-strong); }
.cm-report { margin: 18px 0 0; font-size: 13.5px; color: var(--faint); }
.cm-report a { color: var(--muted); }
.cm-report small { display: block; margin-top: 4px; font-size: 12.5px; }
@media (max-width: 860px) { .cm-item, .cm-detail { grid-template-columns: minmax(0, 1fr); } .cm-facts { position: static; } }
