/* Theseus Themes: a plain studio site. White paper, black type, one gray; the themes' own
   pictures bring the color. Always on white, never switched to dark. */

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}
/* Until Inter arrives, Arial sized to Inter's proportions, so nothing moves when it does. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #5c5c5c;
  --soft: #f4f4f2;
  --line: #e4e4e1;
  --field: #8a8a86;
  --error: #b42318;
  --ok: #1f6f43;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1240px;
  --text: 70ch;
  --font: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* White paper always, whatever the visitor's system is set to (the user, 2026-11-30). */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--fg); color: var(--bg); }
h1, h2, h3, h4 { margin: 0; font-weight: 620; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { font: 0.88em/1.4 var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.35em; }
pre { overflow-x: auto; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 1em 1.2em; font: 0.88rem/1.55 var(--mono); }
pre code { background: none; border: 0; padding: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--fg); color: var(--bg); padding: 0.6em 1em; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

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

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -0.02em; font-size: 1.08rem; text-decoration: none; white-space: nowrap; padding-block: 8px; }
.wordmark .mark { width: 28px; height: 28px; flex: none; }
.site-nav ul { display: flex; gap: clamp(14px, 3vw, 32px); list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding-block: 10px; text-decoration: none; color: var(--muted); font-size: 0.97rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--fg); }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
/* On the narrowest phones, a little tighter, so the name and the menu keep to one row. */
@media (max-width: 399px) {
  .site-header .wrap { gap: 10px; }
  .wordmark { gap: 8px; font-size: 1rem; }
  .wordmark .mark { width: 24px; height: 24px; }
  .site-nav ul { gap: 12px; }
  .site-nav a { font-size: 0.92rem; }
}

.site-footer { border-top: 1px solid var(--line); margin-top: clamp(64px, 10vw, 128px); padding-block: 40px 56px; color: var(--muted); font-size: 0.93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }

/* Type */
.eyebrow { font-size: 0.8rem; font-weight: 560; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.display { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5.4rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 640; }
.display span { display: block; }
.title { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
.lede { font-size: clamp(1.12rem, 1rem + 0.45vw, 1.38rem); line-height: 1.5; color: var(--muted); max-width: 44ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0.7em 1.4em; border-radius: 999px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font: inherit; font-weight: 560; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.btn:hover { background: color-mix(in srgb, var(--fg) 82%, var(--bg)); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--soft); }
.chip { display: inline-flex; align-items: center; gap: 0.5em; min-height: 32px; padding: 0.2em 0.9em; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; color: var(--muted); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.arrow::after { content: " →"; }

/* Page blocks */
.intro { padding-block: clamp(56px, 9vw, 128px) clamp(40px, 6vw, 80px); }
.band { padding-block: clamp(48px, 7vw, 96px); }
.band + .band { border-top: 1px solid var(--line); }
.grid-2 { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.grid-3 { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.stack > * + * { margin-top: 16px; }

.shot { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.intro .lede { margin-top: 24px; }
.intro--tight { padding-bottom: 40px; }
.intro--flush { padding-bottom: 0; }
.intro__text { margin-top: 24px; }
.band--rule { border-top: 1px solid var(--line); }
.h2--spaced { margin-bottom: 36px; }
.points { margin-top: 32px; }
.shot img, .shot video { width: 100%; }
.shot--phone { border-radius: 28px; max-width: 340px; }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }

.feature-shot { margin-top: clamp(32px, 5vw, 56px); }
.preset-cards { margin-top: 28px; }
.preset-card { display: grid; gap: 14px; text-decoration: none; }
.preset-card .shot { border-radius: 24px; }
/* On phones the three presets' screens stand in a row that scrolls sideways. */
@media (max-width: 640px) {
  .preset-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .preset-card { scroll-snap-align: start; }
}
.preset-card h3 { font-size: 1.15rem; }
.preset-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.preset-card:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; }

.points h3 { font-size: 1.12rem; margin-bottom: 8px; }
.points p { color: var(--muted); margin: 0; }

/* Liane's page */
.video { position: relative; }
.video video { aspect-ratio: 16 / 9; background: #000; }
.preset { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.preset__head { display: grid; gap: 12px; max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.preset__shots { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); align-items: start; }
.preset__shots .shot--phone { justify-self: center; }
@media (max-width: 720px) { .preset__shots { grid-template-columns: 1fr; } }
.highlights { margin-top: clamp(32px, 5vw, 56px); }
.highlight h3 { font-size: 1.08rem; margin: 16px 0 6px; }
.highlight p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.features { columns: 2 340px; column-gap: clamp(32px, 5vw, 72px); }
.features > div { break-inside: avoid; margin-bottom: 28px; }
.features h3 { font-size: 1.08rem; margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); }

/* Prose (docs, privacy) */
.prose { max-width: var(--text); }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; letter-spacing: -0.025em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 0.5em; letter-spacing: -0.015em; }
.prose h4 { font-size: 1.02rem; margin: 1.5em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { font-weight: 620; }
.prose img { border-radius: 14px; border: 1px solid var(--line); }
/* Screenshots in the docs: one across the column, or a row of small ones. */
.doc-shot { margin: 1.4em 0 2em; }
.doc-shot .shot { border-radius: 14px; }
.doc-shot img { width: 100%; border: 0; border-radius: 0; }
.doc-shot--phone { max-width: 300px; }
.doc-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; align-items: end; margin: 1.4em 0 2em; }
.doc-shots .doc-shot { margin: 0; }
.doc-shots figcaption { font-size: 0.85rem; margin-top: 8px; }
.note { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 1em 1.2em; margin: 1.4em 0; }
.note p:last-child { margin-bottom: 0; }

/* Settings tables: rows become cards on phones */
.table { margin: 1.2em 0 2em; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.85em 0.9em; border-bottom: 1px solid var(--line); }
th { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
td:first-child { font-weight: 560; min-width: 11em; }
td .options { display: block; margin-top: 0.35em; color: var(--muted); font-size: 0.9rem; }
tr.group td { padding-top: 1.6em; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--fg); }
tr.para td { color: var(--muted); font-weight: 400; font-style: italic; }
@media (max-width: 640px) {
  table, thead, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { border-bottom: 1px solid var(--line); padding: 0.7em 0; }
  td { border: 0; padding: 0.2em 0; }
  td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
  td:empty { display: none; }
  tr.group { border-bottom: 1px solid var(--fg); }
  tr.group td { padding-top: 1.2em; }
}

/* Docs layout */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: 40px; align-items: start; }
.docs-nav { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 4px 8px 32px 2px; font-size: 0.94rem; overscroll-behavior: contain; }
.docs-nav details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 8px; }
.docs-nav details > summary::-webkit-details-marker { display: none; }
.docs-nav details > summary::after { content: "+"; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 4px 6px; margin-top: 14px; }
.docs-nav details[open] > summary::after { content: "−"; }
.docs-nav details > summary:hover h2 { color: var(--fg); }
.docs-nav h2 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 24px 0 8px; }
.docs-nav summary h2 { margin: 18px 0 6px; }
.docs-jump { display: none; margin: 0 0 12px; font-size: 0.92rem; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 5px 12px; margin-left: -12px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.docs-nav a:hover { color: var(--fg); background: var(--soft); }
.docs-nav a[aria-current] { color: var(--fg); background: var(--soft); font-weight: 600; }
.docs-main { min-width: 0; padding-bottom: 32px; }
.docs-main .crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.docs-main .crumbs a { text-decoration: none; }
.docs-main .crumbs a:hover { text-decoration: underline; }
.docs-main h1 { font-size: clamp(2rem, 1.6rem + 1.8vw, 2.9rem); letter-spacing: -0.035em; margin-bottom: 0.5em; }
.docs-main .where { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6em; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; display: grid; gap: 2px; max-width: 48%; }
.pager a span { font-size: 0.85rem; color: var(--muted); }
.pager a:last-child { text-align: right; margin-left: auto; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 1.5em 0 2em; }
.card { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.card:hover { background: var(--soft); }
.card strong { display: block; font-weight: 600; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 0.93rem; }

.search { position: relative; margin-bottom: 8px; }
.search input { width: 100%; }
.search-results { list-style: none; margin: 8px 0 0; padding: 0; }
.search-results a { border-radius: 12px; padding: 8px 12px; }
.search-results small { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.search:not(.is-ready) { visibility: hidden; } /* its room kept, so the list doesn't move when it shows */

/* On phones and tablets the page comes first and the list of docs pages after it, reached by a
   link at the top: no script, nothing to open before reading. */
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; padding-top: 20px; gap: 48px; }
  .docs-main { order: 1; }
  .docs-nav { order: 2; position: static; max-height: none; overflow: visible; padding: 24px 0 0; border-top: 1px solid var(--line); }
  .docs-jump { display: block; }
}

/* Forms */
.form { display: grid; gap: 22px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 560; }
.field .hint { color: var(--muted); font-size: 0.9rem; }
.field .optional { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.65em 0.9em; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--field); border-radius: 12px;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
input.short { max-width: 9rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6em; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-color: var(--fg); }
input[type="file"] { font: inherit; font-size: 0.95rem; max-width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 560; margin-right: 12px; min-height: 44px; padding: 0.5em 1.1em; border-radius: 999px; border: 1px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.error { color: var(--error); font-size: 0.92rem; }
.error:empty { display: none; }
.errors { border: 1px solid var(--error); border-radius: 14px; padding: 1em 1.2em; }
.errors h2 { font-size: 1.05rem; margin-bottom: 0.4em; color: var(--error); }
.errors ul { margin: 0; padding-left: 1.2em; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.previews { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 4px 0 0; padding: 0; }
.previews li { display: grid; gap: 4px; width: 104px; font-size: 0.78rem; color: var(--muted); overflow-wrap: anywhere; }
.previews img, .previews .file { width: 104px; height: 78px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); display: grid; place-items: center; }
.side { color: var(--muted); }
.side h2 { color: var(--fg); font-size: 1.1rem; margin-bottom: 8px; }
.side > div + div { margin-top: 28px; }

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