/* bricolage-grotesque-vietnamese-wght-normal */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-vietnamese-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* bricolage-grotesque-latin-ext-wght-normal */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* bricolage-grotesque-latin-wght-normal */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* newsreader-vietnamese-opsz-normal */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/newsreader-vietnamese-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-opsz-normal */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/newsreader-latin-ext-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-opsz-normal */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/newsreader-latin-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* newsreader-vietnamese-opsz-italic */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/newsreader-vietnamese-opsz-italic.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-opsz-italic */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/newsreader-latin-ext-opsz-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-opsz-italic */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/newsreader-latin-opsz-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ImageStoria, the public site. The same family as the app (src/web/css/app.css), a little more expressive.
   Two typefaces with two jobs: Bricolage Grotesque is the interface speaking, Newsreader is a person speaking.
   Two accents with two jobs: amber is yours, blue is the machine's.
   The one rule: a picture is never cropped. No cover-fit, no fixed-shape tiles, no rounded corners on pictures.
   ":root[data-theme=dark]{ }
@media (prefers-color-scheme: dark){:root:not([data-theme]){ }}" is expanded by scripts/build-site.mjs into the chosen dark theme and the system preference. */
:root {
  --amber: #ffb224; --blue: #4d7dff; --green: #57a55a; --red: #d6453d;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  --bg: #eeede9; --surface: #f6f5f2; --raised: #ffffff; --field: #e3e2dd; --line: #d0cec7; --line-soft: #dedcd6; --text: #1c1d1f; --muted: #5a5e64;
  --amber-text: #8a5800; --amber-soft: rgba(255, 178, 36, .26); --blue-text: #2450c8; --blue-soft: rgba(77, 125, 255, .13); --green-text: #2f6f33; --red-text: #b3322b; --red-soft: rgba(214, 69, 61, .1); --green-soft: rgba(87, 165, 90, .14);
  --shadow: 0 14px 44px rgba(30, 28, 20, .14); --shadow-sm: 0 2px 10px rgba(30, 28, 20, .08);
  --wrap: 1280px; --gut: clamp(16px, 4vw, 48px); --top-h: 64px;
  color-scheme: light;
}
:root[data-theme=dark]{
  --bg: #1a1b1d; --surface: #212325; --raised: #2b2d30; --field: #141516; --line: #383b3f; --line-soft: #2c2e31; --text: #eceae6; --muted: #a3a6ac;
  --amber-text: #ffc457; --amber-soft: rgba(255, 178, 36, .16); --blue-text: #94b3ff; --blue-soft: rgba(77, 125, 255, .2); --green-text: #86cf89; --red-text: #ff8d85; --red-soft: rgba(214, 69, 61, .16); --green-soft: rgba(87, 165, 90, .16);
  --shadow: 0 14px 48px rgba(0, 0, 0, .55); --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark){:root:not([data-theme]){
  --bg: #1a1b1d; --surface: #212325; --raised: #2b2d30; --field: #141516; --line: #383b3f; --line-soft: #2c2e31; --text: #eceae6; --muted: #a3a6ac;
  --amber-text: #ffc457; --amber-soft: rgba(255, 178, 36, .16); --blue-text: #94b3ff; --blue-soft: rgba(77, 125, 255, .2); --green-text: #86cf89; --red-text: #ff8d85; --red-soft: rgba(214, 69, 61, .16); --green-soft: rgba(87, 165, 90, .16);
  --shadow: 0 14px 48px rgba(0, 0, 0, .55); --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  color-scheme: dark;
}}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; font: 400 16.5px/1.55 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; display: block; }
/* the backstop for the one rule: whatever box a picture ends up in, it is shown whole */
img, video, canvas { max-width: 100%; height: auto; object-fit: contain; }
picture { display: block; } picture img { display: block; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--amber); color: #1f1600; }
.ic { width: 20px; height: 20px; display: block; flex: none; }
.muted { color: var(--muted); } .small { font-size: 14px; } .grow { flex: 1; } .nowrap { white-space: nowrap; } .center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: #1f1600; padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.wrap.narrow { --wrap: 820px; }
.stack > * + * { margin-top: 14px; }
kbd { font: 500 12.5px var(--sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--muted); white-space: nowrap; }
code { font: 0.86em var(--mono); background: var(--field); padding: .12em .38em; border-radius: 5px; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- type ---------- */
.display { font: 380 clamp(3.2rem, 10.4vw, 9.4rem)/.92 var(--serif); letter-spacing: -.04em; font-optical-sizing: auto; text-wrap: balance; }
.display em, h2 em, .h2 em { font-style: italic; font-weight: 340; letter-spacing: -.03em; }
h2, .h2 { font: 400 clamp(2.1rem, 4.6vw, 3.9rem)/1.02 var(--serif); letter-spacing: -.028em; text-wrap: balance; }
h3, .h3 { font: 650 1.22rem/1.25 var(--sans); letter-spacing: -.015em; }
.h1 { font: 400 clamp(2.5rem, 6.4vw, 5.2rem)/.98 var(--serif); letter-spacing: -.034em; text-wrap: balance; }
.lead { font: 400 clamp(1.18rem, 1.55vw, 1.42rem)/1.42 var(--serif); color: var(--text); text-wrap: pretty; }
.lead.soft { color: var(--muted); }
.eyebrow { font: 600 13.5px/1.3 var(--sans); color: var(--amber-text); letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--amber); flex: none; }
.eyebrow.ai { color: var(--blue-text); } .eyebrow.ai::before { background: var(--blue); }
.fine { font-size: 14.5px; color: var(--muted); } .fine a { color: var(--text); }
.serif { font-family: var(--serif); }
/* crop handles drawn round a word. The word itself stays whole. */
.cropmark { --c: var(--amber); --l: .2em; --t: max(2px, .028em); position: relative; display: inline-block; padding: 0 .09em .04em; margin: 0 -.04em;
  background: linear-gradient(var(--c), var(--c)) left top / var(--l) var(--t), linear-gradient(var(--c), var(--c)) left top / var(--t) var(--l), linear-gradient(var(--c), var(--c)) right top / var(--l) var(--t), linear-gradient(var(--c), var(--c)) right top / var(--t) var(--l), linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--t), linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--l), linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--t), linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--l); background-repeat: no-repeat; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--text); font-weight: 550; font-size: 15.5px; white-space: nowrap; text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #1f1600; font-weight: 650; }
.btn.primary:hover { background: #ffc24f; border-color: #ffc24f; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.quiet { background: transparent; }
.btn.small { min-height: 32px; padding: 0 11px; font-size: 14px; border-radius: 8px; }
.btn.big { min-height: 54px; padding: 0 24px; font-size: 17.5px; border-radius: 13px; }
.btn.block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.busy { position: relative; color: transparent !important; opacity: 1; }
.btn.busy > * { visibility: hidden; }
.btn.busy::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.primary.busy::after { border-color: #1f1600; border-right-color: transparent; } .btn.danger.busy::after { border-color: #fff; border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--text); flex: none; }
.iconbtn:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 9%, transparent); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--amber-text); font-weight: 550; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.link { color: var(--amber-text); font-weight: 550; } .link:hover, .linkbtn:hover { text-decoration-thickness: 2px; }
.arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .15s, gap .15s; }
.arrow:hover { border-color: var(--amber); gap: 10px; } .arrow .ic { width: 17px; height: 17px; }
.inp, select.inp { width: 100%; min-height: 44px; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; min-width: 0; color: var(--text); }
textarea.inp { padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.45; }
.inp:hover { border-color: color-mix(in srgb, var(--muted) 60%, var(--line)); }
.inp:focus-visible { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber); border-radius: 10px; }
.inp.mono { font: 14px var(--mono); }
.inp[aria-invalid=true] { border-color: var(--red); }
.field { display: grid; gap: 6px; } .field > span, .field > label, .label { font-weight: 600; font-size: 14.5px; }
.field .hint, .hint { font-size: 13.5px; color: var(--muted); font-weight: 400; line-height: 1.4; }
.field .hint.ok { color: var(--green-text); } .field .hint.bad { color: var(--red-text); }
.form { display: grid; gap: 16px; }
.form-error { color: var(--red-text); font-weight: 550; font-size: 15px; background: var(--red-soft); padding: 10px 12px; border-radius: 9px; }
.form-ok { color: var(--green-text); font-weight: 550; font-size: 15px; background: var(--green-soft); padding: 10px 12px; border-radius: 9px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; } .check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--amber); flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13.5px; line-height: 1.55; white-space: nowrap; color: var(--text); }
.chip.on, .chip.you { background: var(--amber-soft); border-color: var(--amber); }
.chip.ai { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); background: var(--blue-soft); }
.chip .ic { width: 14px; height: 14px; }
button.chip:hover { border-color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--field); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: var(--green-text); } .pill.warn { background: var(--amber-soft); color: var(--amber-text); } .pill.bad { background: var(--red-soft); color: var(--red-text); } .pill.ai { background: var(--blue-soft); color: var(--blue-text); }
.sl { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; }
.sl::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line); }
.sl::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.sl::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--text); margin-top: -6px; border: 0; }
.sl::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 0; }
.sl.temp::-webkit-slider-runnable-track { background: linear-gradient(90deg, #4d7dff, #8d9096, #ffb224); } .sl.temp::-moz-range-track { background: linear-gradient(90deg, #4d7dff, #8d9096, #ffb224); }

/* ---------- header ---------- */
.announce { background: var(--amber); color: #1f1600; text-align: center; padding: 8px var(--gut); font-weight: 550; font-size: 14.5px; }
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: var(--top-h); max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand .mark { height: 27px; width: auto; display: block; }
.brand span { font-size: 20px; font-weight: 650; letter-spacing: -.028em; }
.brand em { font: 500 13px var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a { padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15.5px; transition: color .15s; }
.nav > a:hover { color: var(--text); }
.nav > a[aria-current=page] { color: var(--text); font-weight: 600; }
.nav-acct { display: none; }
.top-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.toplink { text-decoration: none; font-weight: 550; font-size: 15.5px; padding: 8px 8px; color: var(--text); } .toplink:hover { text-decoration: underline; }
.t-sun, .m-close { display: none; }
[data-theme=dark] .t-sun { display: block; } [data-theme=dark] .t-moon { display: none; }
.menu { display: none; }
.top-bare .top-in { justify-content: space-between; }
@media (max-width: 960px) {
  .menu { display: inline-grid; }
  .top-act > .toplink[data-out], .top:not(.top-bare) .top-act > .btn { display: none; }
  .top-in { gap: 12px; }
  .nav { position: fixed; inset: var(--top-h) 0 0 0; height: calc(100dvh - var(--top-h)); background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gut) 32px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
  .nav > a { font: 400 2rem/1.1 var(--serif); letter-spacing: -.02em; color: var(--text); padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-acct { display: grid; gap: 10px; margin-top: 24px; } .nav-acct .btn { min-height: 52px; font-size: 17px; }
  .nav-open .m-open { display: none; } .nav-open .m-close { display: block; }
  .nav-open { overflow: hidden; }
  .top-bare .toplink[data-keep] { display: inline; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: clamp(64px, 9vw, 128px); }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px 32px; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding: 56px var(--gut) 40px; }
.foot-line { font: 400 1.25rem/1.3 var(--serif); margin: 16px 0 8px; max-width: 18em; }
.foot-col { display: grid; gap: 9px; align-content: start; }
.foot-col h2 { font: 600 13.5px var(--sans); letter-spacing: 0; color: var(--muted); margin-bottom: 4px; }
.foot-col a { text-decoration: none; font-size: 15.5px; width: fit-content; } .foot-col a:hover { text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding: 18px var(--gut) 28px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
.foot-bare { margin-top: 48px; background: transparent; border-top: 0; } .foot-bare .foot-base { border-top: 1px solid var(--line); }
@media (max-width: 820px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- the justified grid, in plain CSS ----------
   Every figure grows in proportion to its picture's shape, so all the pictures in a row come out the same height
   and each one keeps its whole shape. The last row is not stretched. */
.jgrid { --gap: 5px; --h: calc(var(--h0, 180) * 1px * var(--scale, 1)); display: flex; flex-wrap: wrap; gap: var(--gap); }
.jgrid::after { content: ''; flex: 1000000 0 0; }
.jt { flex: var(--ar) 1 calc(var(--ar) * var(--h)); position: relative; min-width: 0; overflow: hidden; }
.jt picture, .jt img { display: block; width: 100%; height: auto; }
.jt figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font: 400 15.5px/1.2 var(--serif); opacity: 0; transition: opacity .18s; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jt:hover figcaption, .jt:focus-within figcaption { opacity: 1; }
.jgrid.flip .jt { transition: transform .9s cubic-bezier(.2, .8, .2, 1); transform-origin: 0 0; will-change: transform; }
@media (max-width: 720px) { .jgrid { --scale: .6; --gap: 3px; } }
@media (min-width: 1700px) { .jgrid { --scale: 1.22; } }

/* ---------- screenshots in a quiet frame ---------- */
.shot { margin: 0; }
.shot-browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #1a1b1d; box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot-bar span { margin: 0 auto; font: 12.5px var(--sans); color: var(--muted); background: var(--field); border-radius: 6px; padding: 1px 14px; transform: translateX(-24px); }
.shot img { display: block; width: 100%; height: auto; }
.shot-phone { width: min(300px, 62vw); border: 1px solid var(--line); border-radius: 38px; padding: 9px; background: var(--surface); box-shadow: var(--shadow); }
.shot-screen { border-radius: 29px; overflow: hidden; background: #1a1b1d; }
.shot figcaption, .cap { font: italic 400 15.5px/1.35 var(--serif); color: var(--muted); margin-top: 10px; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 132px); }
.sec.tight { padding-block: clamp(40px, 6vw, 80px); }
.sec.rule { border-top: 1px solid var(--line); }
.sec.band { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 18px; max-width: 880px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { max-width: 34em; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.prose-block { display: grid; gap: 16px; align-content: start; } .prose-block p { max-width: 34em; } .prose-block .lead { max-width: 30em; }
.ticks { display: grid; gap: 10px; } .ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; } .ticks .ic { color: var(--amber-text); margin-top: 3px; width: 19px; height: 19px; }
.ticks.no .ic { color: var(--muted); }

/* ---------- landing: hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 72px); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 24px clamp(24px, 5vw, 72px); align-items: end; }
.hero-head .eyebrow { grid-column: 1 / -1; }
/* The hero's messages lie on top of each other in one cell, so the tallest sets the height and nothing below moves as they change. */
.hero-rot, .hero-leads { display: grid; align-items: end; }
.hero-rot > .hs, .hero-leads > .hs { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .8s ease, transform .8s ease, visibility 0s linear .8s; }
.hero-rot > .hs.on, .hero-leads > .hs.on { opacity: 1; visibility: visible; transform: none; transition: opacity .8s ease, transform .8s ease; }
.hero-leads { align-items: start; }
.hero-dots { display: flex; gap: 4px; margin: -6px 0 -4px -8px; }
.hero-dots button { width: 34px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-dots button::before { content: ''; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--line); transition: background .3s; }
.hero-dots button[aria-pressed=true]::before { background: var(--amber); }
.hero-dots button:hover::before { background: var(--muted); } .hero-dots button[aria-pressed=true]:hover::before { background: var(--amber); }
.hero-dots button:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .hero-rot > .hs, .hero-leads > .hs { transition: none; transform: none; } }
.hero-side { display: grid; gap: 22px; padding-bottom: clamp(4px, 1vw, 16px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-bar { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; justify-content: space-between; margin-top: clamp(32px, 5vw, 64px); padding: 0 var(--gut) 12px; font-size: 14.5px; color: var(--muted); max-width: none; }
.hero-bar b { color: var(--text); font-weight: 600; }
.rowsize { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; } .rowsize .sl { width: 150px; }
.hero-grid { padding-inline: 5px; --h: clamp(118px, 13.2vw, 330px); }
@media (max-width: 720px) { .hero-grid { padding-inline: 3px; --h: 30vw; } }
@media (max-width: 900px) { .hero-head { grid-template-columns: minmax(0, 1fr); } .rowsize { display: none; } }

/* ---------- landing: the index of rules ---------- */
.idx { border-top: 1px solid var(--line); counter-reset: idx; }
.idx-row { display: grid; grid-template-columns: 56px minmax(180px, 1fr) minmax(0, 1.5fr) minmax(0, 340px); gap: 20px clamp(20px, 3vw, 48px); padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.idx-row::before { counter-increment: idx; content: counter(idx, decimal-leading-zero); font: 500 14px var(--sans); color: var(--amber-text); font-variant-numeric: tabular-nums; padding-top: .55em; }
.idx-row h3 { font: 400 clamp(1.6rem, 2.5vw, 2.2rem)/1.05 var(--serif); letter-spacing: -.022em; }
.idx-row p { color: var(--muted); max-width: 32em; } .idx-row p b, .idx-row p strong { color: var(--text); font-weight: 600; }
.idx-row p + p { margin-top: 10px; }
.idx-fig { min-width: 0; }
@media (max-width: 1040px) { .idx-row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 300px); } .idx-row h3 { grid-column: 2; } .idx-row > div.idx-text { grid-column: 2; } .idx-fig { grid-column: 3; grid-row: 1 / span 2; } }
@media (max-width: 720px) { .idx-row { grid-template-columns: 34px minmax(0, 1fr); } .idx-fig { grid-column: 2; grid-row: auto; max-width: 420px; } }

/* small figures used in the index and on the features page */
.cropfig { position: relative; overflow: hidden; width: fit-content; max-width: 100%; }
.cropfig img { display: block; max-height: 300px; width: auto; }
.cropbox { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1.5px dashed #fff; box-shadow: 0 0 0 2000px rgba(12, 12, 13, .66); pointer-events: none; transition: opacity .35s, box-shadow .35s; }
.cropfig.wide .cropbox { height: 100%; width: auto; }
.cropfig:hover .cropbox, .cropfig.whole .cropbox { opacity: 0; box-shadow: 0 0 0 2000px rgba(12, 12, 13, 0); }
.pair { display: flex; gap: 8px; align-items: flex-end; } .pair figure { min-width: 0; flex: var(--ar, 1) 1 0; } .pair img { width: 100%; display: block; }
.pair figcaption, .tagline { font: 500 12.5px var(--sans); color: var(--muted); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.tree { font: 13px/1.75 var(--mono); background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; white-space: pre; color: var(--text); }
.tree i { font-style: normal; color: var(--muted); } .tree b { color: var(--amber-text); font-weight: 500; }
.readout { display: grid; gap: 10px; } .readout .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.readout .said { font: 400 15.5px/1.35 var(--serif); color: var(--blue-text); border-left: 2px solid var(--blue); padding-left: 10px; }
.reel { position: relative; aspect-ratio: 9 / 16; width: min(100%, 190px); overflow: hidden; background: #0e0f10; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center; }
/* The one place a picture may be cut: a blurred backdrop behind the whole picture. The picture on top is always whole. */
.reel .backdrop { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(22px) brightness(.62) saturate(1.2); }
.reel picture, .reel > img { position: relative; width: 100%; } .reel img { width: 100%; }
.reel .reel-t { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; font: 400 15px/1.2 var(--serif); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.roles { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14.5px; }
.roles li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--raised); } .roles li:first-child { border-top: 0; }
.roles b { font-weight: 600; } .roles span { color: var(--muted); }

/* ---------- the magnifier ---------- */
.loupe-stage { position: relative; cursor: crosshair; touch-action: pan-y; width: fit-content; max-width: 100%; margin-inline: auto; }
.loupe-stage img { display: block; max-height: min(78vh, 760px); width: auto; }
.loupe { position: absolute; left: 0; top: 0; width: clamp(150px, 19vw, 236px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .92); box-shadow: 0 10px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .4); background-repeat: no-repeat; background-color: #0e0f10; pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
.loupe.show { opacity: 1; }
.darkband { background: #131415; color: #eceae6; --text: #eceae6; --muted: #a3a6ac; --line: #383b3f; --amber-text: #ffc457; --raised: #2b2d30; --field: #0e0f10; --surface: #1a1b1d; }

/* ---------- looks ---------- */
.lookfig { display: grid; gap: 14px; }
.lookfig .frame { position: relative; display: grid; } .lookfig .frame > * { grid-area: 1 / 1; } .lookfig .frame img { display: block; width: 100%; height: auto; }
.lookfig .frame picture { opacity: 0; transition: opacity .35s; } .lookfig .frame picture.on { opacity: 1; }
.lookbar { display: flex; gap: 6px; flex-wrap: wrap; }
.lookbar .chip { cursor: pointer; background: var(--raised); } .lookbar .chip[aria-pressed=true] { background: var(--amber-soft); border-color: var(--amber); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { min-width: 0; padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px) 8px 0; display: grid; gap: 14px; align-content: start; border-right: 1px solid var(--line); }
.step + .step { padding-left: clamp(20px, 3vw, 40px); } .step:last-child { border-right: 0; padding-right: 0; }
.step-n { font: 340 clamp(3.2rem, 6vw, 5.4rem)/.8 var(--serif); color: var(--amber-text); letter-spacing: -.04em; font-style: italic; }
.step h3 { font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.08 var(--serif); letter-spacing: -.02em; }
.step p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } .step, .step + .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; } .step:last-child { border-bottom: 0; } }
.namebox { display: flex; align-items: center; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 0 6px 0 14px; min-height: 52px; font-size: 17px; max-width: 460px; }
.namebox:focus-within { outline: 2px solid var(--amber); border-color: var(--amber); }
.namebox input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; height: 50px; text-align: left; font-weight: 600; padding: 0 10px 0 0; }
/* once the line below says "<address> is free", the address is not said twice */
.name-addr:has(~ .ok), .slug-addr:has(~ .ok) { display: none; }
.name-addr { margin-top: 10px; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; } .name-addr b { color: var(--amber); font-weight: 600; }
.namebox input::placeholder { color: var(--muted); font-weight: 400; }
.namebox .sfx { color: var(--muted); white-space: nowrap; padding-right: 8px; }
.namebox .btn { min-height: 40px; }
.name-say { min-height: 1.5em; font-size: 14.5px; margin-top: 8px; color: var(--muted); } .name-say.ok { color: var(--green-text); } .name-say.bad { color: var(--red-text); }
.minicard { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); padding: 14px; display: grid; gap: 8px; font-size: 13.5px; max-width: 460px; }
.minicard .mf { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; } .minicard .mf span { color: var(--muted); } .minicard .mf code { background: var(--field); padding: 5px 8px; border-radius: 6px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minicard .okline { display: flex; gap: 6px; align-items: center; color: var(--green-text); font-weight: 600; } .minicard .okline .ic { width: 16px; height: 16px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 16px; background: var(--raised); padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 16px; align-content: start; position: relative; }
.plan.featured { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.plan-flag { position: absolute; top: -12px; left: 22px; background: var(--amber); color: #1f1600; font-weight: 650; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; }
.plan h3 { font: 600 1.05rem var(--sans); color: var(--muted); }
.plan .amount { font: 380 clamp(3rem, 5vw, 4.2rem)/.9 var(--serif); letter-spacing: -.04em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .amount small { font: 500 15.5px var(--sans); letter-spacing: 0; color: var(--muted); }
.plan .per { font-size: 14px; color: var(--muted); margin-top: -8px; }
.plan .ways { display: flex; gap: 6px; flex-wrap: wrap; }
.skel { background: linear-gradient(90deg, var(--field), var(--line-soft), var(--field)); background-size: 200% 100%; animation: skel 1.4s linear infinite; border-radius: 8px; color: transparent !important; min-height: 1em; }
@keyframes skel { to { background-position: -200% 0; } }
.priceband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.bigprice { font: 380 clamp(4rem, 10vw, 8.4rem)/.86 var(--serif); letter-spacing: -.045em; } .bigprice small { display: block; font: 500 1.05rem/1.4 var(--sans); letter-spacing: 0; color: var(--muted); margin-top: 16px; }
@media (max-width: 860px) { .priceband { grid-template-columns: minmax(0, 1fr); } }
.ledger { border-top: 1px solid var(--line); } .ledger > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger dt, .ledger .k { font-weight: 600; } .ledger .k small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; } .ledger .v { font: 400 1.25rem var(--serif); white-space: nowrap; text-align: right; } .ledger .v small { font: 400 13.5px var(--sans); color: var(--muted); display: block; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.cmp th, .cmp td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; } .cmp thead th { border-top: 0; font-weight: 650; background: var(--surface); } .cmp tbody th { font-weight: 600; width: 30%; } .cmp td { color: var(--muted); } .cmp td b { color: var(--text); font-weight: 600; }

/* ---------- code ---------- */
pre.code { position: relative; font: 13.5px/1.7 var(--mono); background: #131415; color: #e6e3dc; border-radius: 12px; padding: 16px 52px 16px 18px; overflow-x: auto; border: 1px solid #2c2e31; }
pre.code code { background: none; padding: 0; font: inherit; color: inherit; word-break: normal; white-space: pre; }
pre.code .c { color: #8d9096; } pre.code .p { color: #ffc457; user-select: none; }
.code-copy { position: absolute; top: 6px; right: 6px; color: #a3a6ac; } .code-copy:hover { color: #fff; background: rgba(255, 255, 255, .1) !important; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: center; padding: 22px 0; font: 400 clamp(1.3rem, 2vw, 1.65rem)/1.2 var(--serif); letter-spacing: -.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 14px; height: 14px; justify-self: center; background: linear-gradient(var(--text), var(--text)) center / 100% 1.5px no-repeat, linear-gradient(var(--text), var(--text)) center / 1.5px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--amber-text); }
.faq .a { padding: 0 44px 26px 0; color: var(--muted); max-width: 46em; display: grid; gap: 12px; } .faq .a b, .faq .a strong { color: var(--text); font-weight: 600; } .faq .a a { color: var(--text); }
.faq-cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; } .faq-cols .sec-head { position: sticky; top: calc(var(--top-h) + 32px); margin: 0; }
@media (max-width: 900px) { .faq-cols { grid-template-columns: minmax(0, 1fr); } .faq-cols .sec-head { position: static; } }

/* ---------- closing call ---------- */
.closing { text-align: left; display: grid; gap: 28px; }
.closing .display { font-size: clamp(2.8rem, 8vw, 7rem); }

/* ---------- page headers for inner pages ---------- */
.pagehead { padding-block: clamp(40px, 7vw, 104px) clamp(28px, 4vw, 56px); display: grid; gap: 20px; }
.pagehead .lead { max-width: 36em; }

/* ---------- features page ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(48px, 7vw, 104px); border-top: 1px solid var(--line); align-items: start; }
.feat-text { display: grid; gap: 16px; position: sticky; top: calc(var(--top-h) + 28px); } .feat-text h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); } .feat-text p { color: var(--muted); max-width: 30em; } .feat-text p b { color: var(--text); font-weight: 600; }
.feat-show { display: grid; gap: 24px; min-width: 0; }
@media (max-width: 900px) { .feat { grid-template-columns: minmax(0, 1fr); } .feat-text { position: static; } }
.featnav { display: flex; gap: 8px; flex-wrap: wrap; }
.featnav a { text-decoration: none; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } @media (max-width: 560px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.note { border-left: 2px solid var(--amber); padding: 2px 0 2px 16px; color: var(--muted); font-size: 15px; max-width: 44em; } .note.ai { border-color: var(--blue); } .note b { color: var(--text); }
.callout { border: 1px solid var(--line); background: var(--raised); border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; } .callout .ic { color: var(--amber-text); margin-top: 2px; } .callout.warn { border-color: var(--amber); background: var(--amber-soft); } .callout p + p { margin-top: 8px; }
.storypage { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 4vw, 44px); display: grid; gap: 18px; }
.storypage h3, .story-title { font: 400 clamp(1.9rem, 3.4vw, 2.8rem)/1.05 var(--serif); letter-spacing: -.025em; }
.storypage p:not(.eyebrow) { font: 400 1.14rem/1.5 var(--serif); max-width: 34em; }
.diagram { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; font-size: 14px; }
.diagram .node { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); padding: 14px; display: grid; gap: 4px; text-align: center; justify-items: center; } .diagram .node b { font-weight: 650; } .diagram .node span { color: var(--muted); font-size: 13px; line-height: 1.35; } .diagram .node .ic { width: 24px; height: 24px; color: var(--amber-text); } .diagram .node.ai .ic { color: var(--blue-text); }
.diagram .wire { color: var(--muted); font-size: 12px; text-align: center; display: grid; justify-items: center; gap: 2px; max-width: 90px; line-height: 1.25; } .diagram .wire .ic { width: 18px; height: 18px; }
@media (max-width: 640px) { .diagram { grid-template-columns: minmax(0, 1fr); } .diagram .wire { max-width: none; } .diagram .wire .ic { transform: rotate(90deg); } }

/* ---------- help centre and long text ---------- */
.docs > * { min-width: 0; }
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-top: clamp(28px, 4vw, 56px); align-items: start; }
.docs-nav { position: sticky; top: calc(var(--top-h) + 24px); display: grid; gap: 2px; font-size: 15.5px; }
.docs-nav h2 { font: 600 13.5px var(--sans); color: var(--muted); letter-spacing: 0; margin: 0 0 8px 12px; }
.docs-nav a { text-decoration: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); border-left: 2px solid transparent; } .docs-nav a:hover { color: var(--text); }
.docs-nav a[aria-current=page] { color: var(--text); font-weight: 600; background: var(--surface); border-left-color: var(--amber); border-radius: 0 8px 8px 0; }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 16px; } .docs-nav h2 { display: none; } .docs-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14.5px; } .docs-nav a[aria-current=page] { border-color: var(--amber); background: var(--amber-soft); border-radius: 999px; } }
.prose { max-width: 720px; font-size: 17px; line-height: 1.62; }
.prose > * + * { margin-top: 1.05em; }
.prose h1 { font: 400 clamp(2.3rem, 5vw, 3.6rem)/1.02 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.prose h1 + .lead { margin-top: 18px; color: var(--muted); }
.prose h2 { font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.12 var(--serif); letter-spacing: -.02em; margin-top: 2em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.prose h3 { font: 650 1.12rem/1.3 var(--sans); margin-top: 1.7em; }
.prose a { color: var(--amber-text); font-weight: 500; } .prose a:hover { text-decoration-thickness: 2px; }
.prose ul { list-style: disc; padding-left: 1.2em; } .prose ol { list-style: decimal; padding-left: 1.3em; } .prose li + li { margin-top: .45em; } .prose li::marker { color: var(--muted); }
.prose ol.big { list-style: none; padding: 0; counter-reset: st; } .prose ol.big > li { counter-increment: st; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--line); margin: 0; } .prose ol.big > li::before { content: counter(st); font: italic 340 2rem/1 var(--serif); color: var(--amber-text); } .prose ol.big > li > * { grid-column: 2; } .prose ol.big > li > * + * { margin-top: .6em; }
.prose b, .prose strong { font-weight: 650; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; } .prose th, .prose td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; } .prose th { font-weight: 650; }
.prose .ui { font-weight: 650; white-space: nowrap; }
.prose .draft { border: 1px solid var(--amber); background: var(--amber-soft); border-radius: 12px; padding: 14px 16px; font-size: 15.5px; }
.doc-next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 32px; }
.doc-card { display: grid; gap: 8px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; align-content: start; transition: background .15s; } .doc-card:hover { background: var(--surface); }
.doc-card .ic { color: var(--amber-text); width: 24px; height: 24px; } .doc-card h2 { font: 400 1.5rem/1.1 var(--serif); letter-spacing: -.015em; } .doc-card p { color: var(--muted); font-size: 15px; }

/* ---------- sign-in pages ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100dvh - var(--top-h) - 120px); }
.auth-form { padding: clamp(24px, 6vw, 80px) var(--gut); display: grid; align-content: center; justify-items: center; }
.auth-box { width: 100%; max-width: 440px; display: grid; gap: 22px; }
.auth-box h1 { font: 400 clamp(2.2rem, 4.4vw, 3.2rem)/1.02 var(--serif); letter-spacing: -.03em; }
.auth-side { display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); background: var(--surface); border-left: 1px solid var(--line); }
.auth-side figure { max-width: min(100%, 560px); } .auth-side img { max-height: 66vh; width: auto; display: block; margin-inline: auto; }
.auth-alt { font-size: 15px; color: var(--muted); } .auth-alt a { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } }
.pw { position: relative; } .pw .inp { padding-right: 64px; } .pw button { position: absolute; right: 6px; top: 6px; height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; border-radius: 6px; padding: 0 8px; }
.slugfield { display: flex; align-items: stretch; background: var(--field); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; } .slugfield:focus-within { outline: 2px solid var(--amber); border-color: var(--amber); }
.slugfield input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; height: 44px; outline: 0; text-align: left; font-weight: 600; }
.slug-addr { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; } .slug-addr b { color: var(--amber); font-weight: 600; }
.bigstate { display: grid; gap: 16px; justify-items: start; } .bigstate .ic { width: 40px; height: 40px; color: var(--amber-text); } .bigstate.bad .ic { color: var(--red-text); } .bigstate.ok .ic { color: var(--green-text); }

/* ---------- dialogs and toasts ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 11, .62); display: grid; justify-items: center; align-items: start; padding: 16px; overflow-y: auto; animation: fade .15s; }
.modal { margin-block: auto; width: 100%; max-width: 480px; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); animation: rise .2s cubic-bezier(.2, .8, .2, 1); } .modal.wide { max-width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 6px 22px; } .modal-head h2 { font: 400 1.6rem/1.1 var(--serif); letter-spacing: -.02em; }
.modal-body { padding: 8px 22px 20px; display: grid; gap: 14px; } .modal-body p { color: var(--muted); } .modal-body p b { color: var(--text); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; } .modal-foot.inline { padding: 6px 0 0; border: 0; }
.modal-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100vw - 24px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: #2b2d30; color: #eceae6; border: 1px solid #44474c; border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow); font-size: 15px; animation: rise .2s; transition: opacity .3s, transform .3s; max-width: 100%; }
.toast.ok .ic { color: #86cf89; } .toast.bad .ic { color: #ff8d85; } .toast.out { opacity: 0; transform: translateY(6px); }

/* ---------- small pages ---------- */
.mockpage, .lost { max-width: 720px; margin: 0 auto; padding: clamp(48px, 10vw, 120px) var(--gut); display: grid; gap: 20px; justify-items: start; }
.mockpage h1 { font: 400 clamp(2rem, 5vw, 3.2rem)/1.05 var(--serif); letter-spacing: -.03em; }
.lost-grid { opacity: .9; }
.credits { columns: 3 240px; column-gap: 32px; font-size: 15px; } .credits li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; } .credits span { color: var(--muted); text-align: right; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print { .top, .foot, .toasts, .announce { display: none !important; } body { background: #fff; color: #000; } }
@media (max-width: 480px) { .namebox { padding: 0 6px 0 12px; } .minicard .mf { grid-template-columns: 78px minmax(0, 1fr); } }
.credits .cr-who { color: var(--text); text-align: left; font-weight: 550; } .credits a { color: inherit; }
/* the hero pictures arrive one after another. Only opacity and a small rise: the layout never moves. */
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } }
.hero-grid:not(.arrived) .jt { animation: arrive .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-grid .jt:nth-child(2) { animation-delay: .05s; } .hero-grid .jt:nth-child(3) { animation-delay: .1s; } .hero-grid .jt:nth-child(4) { animation-delay: .15s; } .hero-grid .jt:nth-child(5) { animation-delay: .2s; } .hero-grid .jt:nth-child(6) { animation-delay: .25s; } .hero-grid .jt:nth-child(7) { animation-delay: .3s; } .hero-grid .jt:nth-child(n+8) { animation-delay: .35s; }
