/*
 * Zeiller website: jobs given in one sentence, and what Zeiller did with them.
 * No framework, no third-party requests. Palette and type follow the app
 * (app/src/renderer/src/styles/tokens.css): warm paper and Zeiller gold, "Abendblau" at night.
 */

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  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;
}

:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --surface: #fdfdfc;
  --fg: #1b1e23;
  --fg-secondary: #42464e;
  --fg-muted: #6a6e76;
  --fg-subtle: #9a9da4;
  --line: rgba(27, 30, 35, 0.09);
  --gold: #9a7428;
  --gold-strong: #7a561a;
  --gold-soft: rgba(196, 154, 69, 0.14);
  --ink: #8a6623;
  --ink-fg: #fffdf8;
  --selection: rgba(196, 154, 69, 0.24);
  --focus: rgba(154, 116, 40, 0.55);
  /* The band with the claim: the night palette by day. */
  --band: #171b22;
  --band-fg: #f0ebe1;
  --band-muted: #a7a296;
  --card-shadow: 0 1px 2px rgba(27, 30, 35, 0.06), 0 8px 24px -10px rgba(27, 30, 35, 0.16);
  --ink-hover: #7a561a;
  /* By day the palace fades into the paper behind the greeting, so the type stands on calm ground. */
  --painting-opacity: 0.75;
  --painting-mask: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.35) 62%, transparent 82%);
  --painting-filter: none;
  /* The app's translucent composer (styles/glass.css). */
  --composer: rgba(255, 255, 255, 0.72);
  --composer-border: rgba(255, 255, 255, 0.7);
  --composer-shadow:
    0 6px 20px rgba(27, 30, 35, 0.08),
    0 1px 3px rgba(27, 30, 35, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -6px 14px rgba(255, 255, 255, 0.18);
  --mic: rgba(27, 30, 35, 0.05);
  --line-strong: rgba(27, 30, 35, 0.16);
  --float: #fefefe;
  --float-border: rgba(255, 255, 255, 0.75);
  --float-shadow: 0 -1px 6px rgba(27, 30, 35, 0.03), 0 6px 18px rgba(27, 30, 35, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --hover: rgba(27, 30, 35, 0.045);
  --selected: rgba(27, 30, 35, 0.075);
  --fill: #ecebe7;
  --info: #1f6fd1;
  --danger: #b3261e;
  --success: #2f7d5b;
  --info-half: rgba(31, 111, 209, 0.5);
  --word-page: #ffffff;
  --page-edge: rgba(27, 30, 35, 0.08);
  --veil: rgba(247, 247, 245, 0.72);

  --serif: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --page: min(1120px, 100% - 2 * var(--gutter));
}

/* Dark: chosen with the switch, or the system's when nothing is chosen. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171b22;
  --surface: #20252e;
  --fg: #f0ebe1;
  --fg-secondary: #d5cfc3;
  --fg-muted: #a7a296;
  --fg-subtle: #7f7b72;
  --line: rgba(240, 232, 214, 0.1);
  --gold: #d6b26a;
  --gold-strong: #e6c886;
  --gold-soft: rgba(214, 178, 106, 0.14);
  --ink: #d6b26a;
  --ink-fg: #1a1d23;
  --selection: rgba(214, 178, 106, 0.28);
  --focus: rgba(214, 178, 106, 0.6);
  /* At night the band turns to paper. */
  --band: #f0ebe1;
  --band-fg: #1b1e23;
  --band-muted: #5d5a52;
  --card-shadow: 0 0 0 1px rgba(240, 232, 214, 0.08), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --ink-hover: #e6c886;
  /* As in the app at night: the watercolour as a faint wash. */
  --painting-opacity: 0.2;
  --painting-mask: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  --painting-filter: saturate(0.6) brightness(1.1);
  --composer: rgba(29, 34, 42, 0.84);
  --composer-border: rgba(240, 232, 214, 0.12);
  --composer-shadow:
    0 8px 24px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -6px 14px rgba(0, 0, 0, 0.16);
  --mic: rgba(240, 232, 214, 0.07);
  --line-strong: rgba(240, 232, 214, 0.2);
  --float: #20252e;
  --float-border: rgba(240, 232, 214, 0.12);
  --float-shadow: 0 -1px 6px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --hover: rgba(240, 232, 214, 0.06);
  --selected: rgba(240, 232, 214, 0.1);
  --fill: #272d37;
  --info: #8ab6ea;
  --danger: #ef8b7c;
  --success: #79c99d;
  --info-half: rgba(138, 182, 234, 0.5);
  /* Word pages stay paper at night, as in the app. */
  --word-page: #fbfaf6;
  --page-edge: rgba(0, 0, 0, 0.3);
  --veil: rgba(23, 27, 34, 0.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #171b22;
    --surface: #20252e;
    --fg: #f0ebe1;
    --fg-secondary: #d5cfc3;
    --fg-muted: #a7a296;
    --fg-subtle: #7f7b72;
    --line: rgba(240, 232, 214, 0.1);
    --gold: #d6b26a;
    --gold-strong: #e6c886;
    --gold-soft: rgba(214, 178, 106, 0.14);
    --ink: #d6b26a;
    --ink-fg: #1a1d23;
    --selection: rgba(214, 178, 106, 0.28);
    --focus: rgba(214, 178, 106, 0.6);
    /* At night the band turns to paper. */
    --band: #f0ebe1;
    --band-fg: #1b1e23;
    --band-muted: #5d5a52;
    --card-shadow: 0 0 0 1px rgba(240, 232, 214, 0.08), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --ink-hover: #e6c886;
    /* As in the app at night: the watercolour as a faint wash. */
    --painting-opacity: 0.2;
    --painting-mask: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
    --painting-filter: saturate(0.6) brightness(1.1);
    --composer: rgba(29, 34, 42, 0.84);
    --composer-border: rgba(240, 232, 214, 0.12);
    --composer-shadow:
      0 8px 24px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 -6px 14px rgba(0, 0, 0, 0.16);
    --mic: rgba(240, 232, 214, 0.07);
    --line-strong: rgba(240, 232, 214, 0.2);
    --float: #20252e;
    --float-border: rgba(240, 232, 214, 0.12);
    --float-shadow: 0 -1px 6px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --hover: rgba(240, 232, 214, 0.06);
    --selected: rgba(240, 232, 214, 0.1);
    --fill: #272d37;
    --info: #8ab6ea;
    --danger: #ef8b7c;
    --success: #79c99d;
    --info-half: rgba(138, 182, 234, 0.5);
    /* Word pages stay paper at night, as in the app. */
    --word-page: #fbfaf6;
    --page-edge: rgba(0, 0, 0, 0.3);
    --veil: rgba(23, 27, 34, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "onum", "pnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--selection); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2 { margin: 0; font-weight: 400; text-wrap: balance; }
blockquote { margin: 0; }

.top,
.job,
.more,
.why,
.contact,
.colophon { width: var(--page); margin-inline: auto; }

/* ── Top ──────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(22px, 3.4vw, 40px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  line-height: 1;
}
.wordmark img { width: 22px; height: 22px; }

.top-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg-secondary);
  text-decoration: none;
}
.top-link:hover { color: var(--fg); }

/* ── Hero: Zeiller's start screen ─────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  /* The painting is never narrower than this; narrow screens crop its sides (as in the app). */
  --painting-w: max(100vw, 1180px);
  --hero-h: clamp(440px, 68vh, 640px);
}

.hero .top { position: relative; z-index: 2; }

/* Rudolf von Alt's Belvedere, faded into the page like on the app's start screen. */
.painting {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: var(--hero-h);
  /* The roofline (51 % of the 1920 x 1246 image, 0.331 x its width from the top) sits about
     130 px above the greeting, as on the app's start screen. */
  background: url("assets/img/belvedere-1872.jpg") center calc(var(--hero-h) - 366px - 0.331 * var(--painting-w)) / var(--painting-w) auto no-repeat;
  opacity: var(--painting-opacity);
  filter: var(--painting-filter);
  -webkit-mask-image: var(--painting-mask);
  mask-image: var(--painting-mask);
  pointer-events: none;
}

.start {
  position: relative;
  z-index: 1;
  width: min(820px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: calc(var(--hero-h) - 300px);
}

.greeting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: clamp(34px, 1rem + 2.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.greeting img { width: 0.8em; height: 0.8em; flex: none; }
.greeting { position: relative; white-space: nowrap; }
/* A paper veil under the greeting, so it reads over the façade. */
.greeting::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -6%;
  background: radial-gradient(closest-side, var(--veil), transparent);
}

/* The composer, drawn after the app's (features/composer/Composer.tsx): translucent glass,
   22 px corners, a 15/24 text field, a bar of 32 px controls with lucide icons. */
.composer {
  position: relative;
  margin-top: 30px;
  border-radius: 22px;
  border: 1px solid var(--composer-border);
  background: var(--composer);
  box-shadow: var(--composer-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--sans);
}

/* A fixed height, scrolled to the end while typing, like the real text field. */
.composer-text {
  height: calc(4 * 24px + 14px);
  padding: 14px 16px 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 24px;
  color: var(--fg);
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 18px;
  margin-left: 1px;
  vertical-align: -4px;
  background: var(--gold);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 8px 8px;
  font-size: 13px;
}
.bar-left { display: flex; align-items: center; gap: 2px; min-width: 0; }
.bar-right { display: flex; flex: none; align-items: center; gap: 4px; }

.lucide {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The app's ghost icon button (ui/IconButton, size md). */
.ibtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--fg-muted);
}

/* The matter picker: muted without a matter, gold folder once one is chosen. */
.matter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 320px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--fg-muted);
  transition: color 200ms ease;
}
.matter.has-matter { color: var(--fg); }
.matter.has-matter .lucide { color: var(--gold); }
.matter-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink-fg);
  background: linear-gradient(to bottom, var(--ink), var(--ink-hover));
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.12), inset 1px 1px 0 rgba(255, 255, 255, 0.2), inset -3px -3px 8px rgba(15, 23, 42, 0.2);
}

/* The icon sprite: defines symbols, takes no room. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── The model picker, as in the app (ui/ModelPicker) ─────── */

.picker { position: relative; flex: none; }

/* A quiet text trigger, like the app's. */
.model {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.model:hover,
.model[aria-expanded="true"] { background: var(--hover); color: var(--fg); }
.model .effort { margin-left: 2px; color: var(--fg-subtle); }
.model-name { transition: opacity 200ms ease; }
.model-name.is-changing { opacity: 0; }
.chevron {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: var(--fg-subtle);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease;
}
.model[aria-expanded="true"] .chevron,
.fold[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* The menu: the app's floating glass, opening upwards from the composer. */
.menu {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: max-content;
  min-width: 224px;
  max-width: 320px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--float-border);
  background: var(--float);
  box-shadow: var(--float-shadow);
  text-align: left;
  animation: menu-in 140ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(4px) scale(0.98); } }

.menu-label {
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-subtle);
}

.item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  color: var(--fg-secondary);
  cursor: default;
}
.item:hover,
.item:focus-visible { background: var(--hover); color: var(--fg); outline: none; }
.item[aria-checked="true"] { background: var(--selected); color: var(--fg); }
.item.inset { padding-left: 20px; }
.item-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.item-name { display: flex; align-items: center; gap: 6px; }
.item-desc { font-size: 11px; color: var(--fg-subtle); }
.rec { font-size: 11px; color: var(--gold); }
.factor {
  margin-left: 16px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--fg-subtle);
}
.check {
  width: 14px;
  height: 14px;
  flex: none;
  margin-left: 6px;
  fill: none;
  stroke: var(--fg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  visibility: hidden;
}
.item[aria-checked="true"] .check { visibility: visible; }
.fold .item-text { flex-direction: row; }
.fold-chosen { font-size: 11.5px; color: var(--fg-subtle); }
.open-list[hidden] { display: none; }
.open-list { display: flex; flex-direction: column; gap: 1px; }

.sep {
  height: 1px;
  margin: 4px 6px;
  border: 0;
  background: var(--line);
}

/* Denktiefe: the app's slider. */
.depth[hidden] { display: none; }
.depth-inner { padding: 8px 10px; }
.depth-head { display: flex; align-items: center; margin-bottom: 8px; font-size: 12px; }
.depth-head span:first-child { font-weight: 500; color: var(--fg-secondary); }
.depth-value { margin-left: auto; font-size: 11px; color: var(--fg-muted); }
.track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: var(--fill);
}
.track:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--focus); }
.track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p) * 1% + (1 - var(--p) / 100) * 1rem);
  border-radius: 999px;
  background: linear-gradient(to right, var(--info-half), var(--info));
  transition: width 150ms ease;
}
.track-knob {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 1% + (0.125 - var(--p) / 100) * 1rem);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(27, 30, 35, 0.25);
  transform: translateY(-50%);
  transition: left 150ms ease;
}
.track input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.depth-ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--fg-subtle); }

/* ── A job: when, the sentence, what Zeiller did, what came out ── */

.job { margin-top: clamp(130px, 15vw, 210px); }
.hero + main > .job:first-child { margin-top: clamp(150px, 15vw, 210px); }

.when {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.prompt { margin-top: 16px; }
.prompt p {
  max-width: 22em;
  font-size: clamp(26px, 0.9rem + 1.9vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-indent: -0.38em;
  hyphens: manual;
  text-wrap: balance;
}

/* The steps: when, where (the program Zeiller worked in), what. */
.trace {
  --time-col: 58px;
  --sys-col: 132px;
  list-style: none;
  margin: clamp(36px, 4vw, 52px) 0 0;
  padding: 0;
  max-width: 54rem;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-secondary);
}

.trace li {
  position: relative;
  display: grid;
  grid-template-columns: var(--time-col) var(--sys-col) minmax(0, 1fr);
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.trace li:last-child { border-bottom: 1px solid var(--line); }

.trace time {
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
}

.sys {
  display: block;
  font-size: 13.5px;
  color: var(--fg);
}
.file svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Revealed step by step once in view (only with script, never with reduced motion). */
.js .trace.is-waiting li:not(.is-shown, .is-next) { visibility: hidden; }
.js .job.is-waiting .result { visibility: hidden; }
.trace li.is-next,
.result.is-shown { animation: arrive 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }

/* The step Zeiller is working on, as in the app: the turning rosette where its time will
   stand, its text shimmering until it is done. */
.js .trace li.is-next time { visibility: hidden; }
.js .trace li.is-next::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 15px;
  height: 15px;
  background: url("assets/img/zeiller-mark.svg") center / contain no-repeat;
  animation: turn 2.4s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }
.js .trace li.is-next .sys,
.js .trace li.is-next .step {
  color: var(--fg-muted);
  background-image: linear-gradient(100deg, var(--fg-muted) 0%, var(--fg-muted) 40%, var(--fg) 50%, var(--fg-muted) 60%, var(--fg-muted) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* ── Results ──────────────────────────────────────────────── */

.result {
  max-width: 54rem;
  margin-top: 24px;
  padding: 18px 20px 20px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-secondary);
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.result-head > span:first-child { color: var(--fg); font-weight: 500; }

.file { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.result-head .file { font-weight: 400; color: var(--fg-secondary); }

/* Two passages side by side, as they stand in the files. */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.excerpt {
  margin: 0;
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--word-page);
  box-shadow: 0 0 0 1px var(--page-edge), 0 2px 8px rgba(27, 30, 35, 0.06);
  color: #1f2228;
}
.excerpt figcaption { font-size: 12.5px; color: #6a6e76; }
.excerpt blockquote { margin: 8px 0 0; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.excerpt mark { background: rgba(214, 178, 106, 0.42); color: inherit; padding: 0 2px; border-radius: 2px; }

/* Files as they came, and where Zeiller put them. */
.renames { margin: 0; padding: 0; list-style: none; }
.renames li {
  display: grid;
  grid-template-columns: 12.5rem 18px minmax(0, 1fr);
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.renames li:first-child { border-top: 0; padding-top: 0; }
.renames li::after { content: none; }
.renames .from { color: var(--fg-muted); overflow-wrap: anywhere; }
.renames .from s { text-decoration-color: var(--fg-subtle); }
.renames .from em { font-style: normal; font-size: 12px; color: var(--fg-subtle); }
.renames .to { grid-column: 3; color: var(--fg); overflow-wrap: anywhere; }
.renames .to::before { content: "→"; position: absolute; margin-left: -18px; color: var(--gold); }
.renames .to { position: relative; }
.result-foot { margin-top: 10px; font-size: 13.5px; color: var(--fg-muted); }

/* Changes the counterparty made without tracking them. */
.silent { margin: 0; padding: 0; list-style: none; }
.silent li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.silent li:first-child { border-top: 0; padding-top: 0; }
.silent li:last-child { padding-bottom: 0; }
.clause { font-size: 13.5px; color: var(--fg-muted); }
.edit { font-family: var(--serif); font-size: 19px; line-height: 1.4; color: var(--fg); }
.edit del { color: var(--danger); text-decoration-thickness: 1px; }
.edit ins { color: var(--success); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Appointments without a time entry. */
.missed { width: 100%; border-collapse: collapse; }
.missed td { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; color: var(--fg); }
.missed td:first-child { width: 4.5rem; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.missed td:nth-child(3) { color: var(--fg-secondary); }
.missed td:last-child { padding-right: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.missed tr.rest td { color: var(--fg-muted); }
.result-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  color: var(--fg-muted);
}
.result-sum strong { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--fg); font-variant-numeric: lining-nums tabular-nums; }

/* ── The claim ────────────────────────────────────────────── */

.claim {
  margin-top: clamp(130px, 15vw, 210px);
  background: var(--band);
  color: var(--band-fg);
}
.claim-inner {
  width: var(--page);
  margin: 0 auto;
  padding-block: clamp(96px, 12vw, 170px);
}
.claim h2 {
  max-width: 14em;
  font-size: clamp(38px, 1rem + 4.6vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.016em;
}
.claim p {
  margin-top: clamp(28px, 3vw, 44px);
  max-width: 34em;
  font-size: clamp(19px, 1rem + 0.35vw, 22px);
  color: var(--band-muted);
}

/* ── Who works for whom ───────────────────────────────────── */

.turn { width: var(--page); margin: clamp(130px, 15vw, 210px) auto 0; }
.turn-old,
.turn-new {
  margin: 0;
  font-size: clamp(34px, 1rem + 3.6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
/* The old sentence is struck through in gold once it is seen; line by line where it wraps. */
.turn-old { color: var(--fg-subtle); }
.turn-old span {
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 56% / var(--strike, 100%) 3px;
  transition: background-size 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .turn-old span { --strike: 0%; }
.js .turn.is-seen .turn-old span { --strike: 100%; }
.turn-new { margin-top: 18px; font-weight: 400; color: var(--fg); }
.turn-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px clamp(20px, 3vw, 40px);
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}
.turn-list li {
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg-muted);
}
.turn-list s {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  color: var(--fg-secondary);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
}

/* ── More jobs ────────────────────────────────────────────── */

.more { margin-top: clamp(130px, 15vw, 210px); }
.more h2,
.why h2,
.contact h2 {
  font-size: clamp(32px, 1rem + 2.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.wall {
  list-style: none;
  margin: clamp(36px, 4vw, 56px) 0 0;
  padding: 0;
  columns: 2;
  column-gap: clamp(32px, 5vw, 80px);
}
.wall li {
  break-inside: avoid;
  margin-bottom: 26px;
  font-size: clamp(21px, 1rem + 0.55vw, 26px);
  line-height: 1.3;
  color: var(--fg-secondary);
  text-indent: -0.38em;
  padding-left: 0.38em;
}

/* ── Why ──────────────────────────────────────────────────── */

.why { margin-top: clamp(130px, 15vw, 200px); }
.why h2 { max-width: 15em; }
.why p {
  margin-top: 22px;
  max-width: 33em;
  color: var(--fg-secondary);
}
.why h2 + p { margin-top: clamp(28px, 3vw, 40px); }
.why strong { color: var(--fg); font-weight: 500; }

/* ── Contact ──────────────────────────────────────────────── */

.contact { margin-top: clamp(130px, 15vw, 200px); }
.contact p { margin-top: 16px; color: var(--fg-secondary); }
.contact-mail { font-size: clamp(26px, 1rem + 1.5vw, 38px); }
.contact-mail a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.contact-mail a:hover { color: var(--gold-strong); }

/* ── Colophon ─────────────────────────────────────────────── */

.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(120px, 14vw, 200px);
  padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--fg-muted);
}
.wordmark--small { font-family: var(--serif); font-size: 18px; gap: 7px; color: var(--fg); }
.wordmark--small img { width: 16px; height: 16px; }
.colophon nav { display: flex; gap: 22px; }
.colophon a { color: var(--fg-secondary); text-decoration: none; }
.colophon a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ── Small screens ────────────────────────────────────────── */

@media (max-width: 700px) {
  body { font-size: 18px; }
  .hero { --painting-w: max(100vw, 720px); --hero-h: 380px; }
  /* The greeting on the façade, roofline just above it. */
  .painting { background-position: center calc(96px - 0.331 * var(--painting-w)); }
  .start { padding-top: 100px; }
  .greeting {
    display: block;
    white-space: normal;
    text-align: center;
    font-size: clamp(30px, 8.6vw, 38px);
    line-height: 1.12;
  }
  .greeting img { display: inline-block; margin-right: 10px; vertical-align: -0.08em; }
  .greeting .keep { white-space: nowrap; }
  .composer-text { height: calc(6 * 24px + 14px); }
  .composer-bar { padding: 8px 6px 6px; }
  .bar-left .ibtn, .model .effort { display: none; }
  .model { padding: 0 6px; }
  /* The menu spans the composer above its bar, so it never leaves the screen. */
  .picker { position: static; }
  .menu { left: 8px; right: 8px; bottom: 60px; max-width: none; width: auto; }
  .trace { --time-col: 48px; font-size: 14.5px; }
  .trace li { grid-template-columns: var(--time-col) minmax(0, 1fr); }
  .trace .sys { grid-column: 2; }
  .trace .step { grid-column: 2; }
  .trace time { font-size: 13px; }
  .result { padding: 16px 16px 18px; }
  .versus { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .result-head { flex-direction: column; gap: 4px; }
  .renames li { grid-template-columns: 18px minmax(0, 1fr); }
  .renames .from { grid-column: 1 / -1; }
  .renames .to { grid-column: 2; }
  .silent li { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .missed td:nth-child(3) { display: none; }
  .result-sum { flex-direction: column; gap: 2px; }
  .wall { columns: 1; }
  .turn-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .colophon { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace li.is-shown, .result.is-shown { animation: none; }
  .turn-old span { transition: none; }
}

/* At night the send button's gradient runs the other way, as in the app. */
:root[data-theme="dark"] .send {
  background: linear-gradient(to bottom, var(--ink-hover), var(--ink));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .send {
    background: linear-gradient(to bottom, var(--ink-hover), var(--ink));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  }
}

/* The light/dark switch: a quiet icon next to "Kontakt". */
.top-right { display: flex; align-items: center; gap: 14px; }
.theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.theme:hover { background: var(--hover); color: var(--fg); }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}

/* ── Legal pages ──────────────────────────────────────────── */

a.wordmark { color: inherit; text-decoration: none; }

/* Left-aligned with the logo, the text in a readable measure. */
.legal {
  width: var(--page);
  margin: clamp(64px, 10vh, 112px) auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-secondary);
}
.legal h1 {
  font-size: clamp(36px, 1rem + 2.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.legal h2 {
  margin-top: 44px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--fg);
}
.legal p,
.legal ul,
.legal dl { margin: 14px 0 0; }
.legal > * { max-width: 40rem; }
.legal h1 + p { margin-top: 28px; }
.legal .lead { font-size: 20px; color: var(--fg-secondary); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal li::marker { color: var(--gold); }
.legal a { color: var(--fg); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-strong); }
.facts { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 6px 16px; }
.facts dt { color: var(--fg-muted); }
.facts dd { margin: 0; color: var(--fg); }
.colophon a[aria-current="page"] { color: var(--fg); }

@media (max-width: 700px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd + dt { margin-top: 10px; }
}
