/* Tools for People: Markenportal
   Plain CSS, no build step. The tokens are the website's own
   (public/assets/site.css); fonts come from the website via /site/. */

@font-face {
  font-family: "Host Grotesk";
  src: url("/site/assets/fonts/host-grotesk.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/site/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --ink: #0c1210;
  --ink-2: #171e1b;
  --paper: #ffffff;
  --accent: #d7eaac;
  --muted: #59615c;
  --muted-inv: rgba(255, 255, 255, 0.64);
  --line: rgba(12, 18, 16, 0.16);
  --line-soft: rgba(12, 18, 16, 0.09);
  --line-inv: rgba(255, 255, 255, 0.18);

  --sans: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 3.4vw, 3rem);
  --max: 92rem;
  --side: 15rem;
  --top: 4rem;
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top) + 1.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table, blockquote {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: 400;
}

ul, ol {
  list-style: none;
}

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

img, svg, canvas, video {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius);
}

.skip:focus {
  top: 0.75rem;
}

/* ---------- Type ---------- */

.label {
  font: 400 0.75rem/1.35 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.dim {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
}

.arrow,
.ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
}

/* ---------- Buttons, chips, toggles ---------- */

.chip,
.btn,
.seg button,
.dl {
  font-family: var(--mono);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 0.8rem;
  border: 0;
  background: rgba(255, 255, 255, 0.13);
  color: var(--paper);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.chip:hover,
.chip[aria-current] {
  background: var(--paper);
  color: var(--ink);
}

.chip--accent {
  background: var(--accent);
  color: var(--ink);
}

.chip--accent:hover {
  background: var(--paper);
}

.chip kbd {
  padding: 0.2rem 0.3rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.13);
  font: inherit;
  font-size: 0.6875rem;
}

.chip:hover kbd {
  background: rgba(12, 18, 16, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.btn .arrow,
.btn .ic {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover {
  background: var(--accent);
  color: var(--ink);
}

.btn--accent {
  background: var(--accent);
  color: var(--ink);
}

.btn--accent:hover {
  background: var(--paper);
}

.btn--line {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn--line:hover {
  border-color: var(--ink);
}

.btn--line-inv {
  border-color: var(--line-inv);
  background: transparent;
  color: var(--paper);
}

.btn--line-inv:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--small {
  padding: 0.6rem 0.7rem;
  font-size: 0.75rem;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

/* A segmented toggle: one of a few options. */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}

.seg button {
  padding: 0.5rem 0.6rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.6875rem;
}

.seg button:hover {
  color: var(--ink);
}

.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.is-dark .seg {
  border-color: var(--line-inv);
  background: transparent;
}

.is-dark .seg button {
  color: var(--muted-inv);
}

.is-dark .seg button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

/* Download links: SVG, PNG ... */
.dl {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid var(--line);
  font-size: 0.6875rem;
  color: var(--ink);
}

.dl:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.dl .ic {
  width: 0.9em;
  height: 0.9em;
}

.is-dark .dl {
  border-color: var(--line-inv);
  color: var(--paper);
}

.is-dark .dl:hover {
  background: var(--paper);
  color: var(--ink);
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  font: 400 0.625rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--ink {
  background: var(--ink);
  color: var(--paper);
}

.tag--line {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.link {
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.link .ic {
  display: inline-block;
  margin-left: 0.15em;
  vertical-align: -0.12em;
}

.link:hover {
  color: var(--muted);
}

/* ---------- The wordmark (with the turning square) ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.wordmark::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  background: var(--accent);
  animation: mark-flip 4.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.wordmark--still::before {
  animation: none;
}

@keyframes mark-flip {
  0% {
    transform: perspective(3em) rotateY(0deg) rotateX(0deg);
  }
  14% {
    transform: perspective(3em) rotateY(180deg) rotateX(0deg);
  }
  18% {
    transform: perspective(3em) rotateY(180deg) rotateX(0deg);
  }
  32%,
  100% {
    transform: perspective(3em) rotateY(180deg) rotateX(180deg);
  }
}

/* ---------- Top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--top);
  padding-inline: var(--gutter);
}

.top__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.top__nav {
  display: flex;
  gap: 0.375rem;
  margin-inline: auto;
}

.top__end {
  display: flex;
  gap: 0.375rem;
}

.top__menu {
  display: none;
}

@media (max-width: 980px) {
  .top__nav {
    display: none;
  }

  .top__end {
    margin-left: auto;
  }

  .top__site {
    display: none;
  }

  .top__menu {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .top__search span:not(.sr-only),
  .top__search kbd {
    display: none;
  }

  .top__brand .tag {
    display: none;
  }
}

/* The menu drawer (phones): main links and chapters. */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: min(22rem, 88vw);
  padding: 1rem 1.25rem 2rem;
  overflow-y: auto;
  background: var(--ink);
  color: var(--paper);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease), visibility 0s 0.35s;
  visibility: hidden;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.35s var(--ease);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__links {
  display: grid;
  gap: 0.375rem;
}

.drawer__links .chip {
  justify-content: space-between;
  padding: 1rem 0.9rem;
  background: var(--ink-2);
}

.drawer__links .chip--accent {
  background: var(--accent);
  color: var(--ink);
}

.drawer .side__list a {
  color: var(--muted-inv);
}

.drawer .side__list a:hover,
.drawer .side__list a[aria-current] {
  color: var(--paper);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 18, 16, 0.5);
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
  visibility: hidden;
}

.scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease);
}

/* ---------- Cover ---------- */

.cover {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.cover__in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem var(--gutter);
  align-items: center;
  min-height: min(calc(100svh - var(--top)), 54rem);
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
}

.cover__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.75rem;
}

.cover h1 {
  font-size: clamp(3.4rem, 8.4vw, 8.75rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  hyphens: manual;
}

.cover__lead {
  max-width: 28em;
  margin-top: 1.75rem;
  font-size: clamp(1.125rem, 1vw + 0.85rem, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--paper);
}

.cover__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-top: 2.5rem;
}

.cover__meta dt {
  color: var(--muted-inv);
}

.cover__meta dd {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
}

.cover__go {
  margin-top: 2.5rem;
}

.cover .tag--line {
  border-color: var(--line-inv);
  color: var(--muted-inv);
}

.cover__go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.cover__art {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 34rem;
  justify-self: end;
}

.cover__art canvas {
  width: 100%;
  height: 100%;
}

.cover__flip {
  width: 100%;
  height: 100%;
  animation: cover-flip 19.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Like the square in the logo: across, then up, then rest. Two rounds per
   cycle, so the motif ends where it started and never jumps. */
@keyframes cover-flip {
  0%,
  20% {
    transform: perspective(90rem) rotateY(0deg) rotateX(0deg);
  }
  26%,
  28% {
    transform: perspective(90rem) rotateY(180deg) rotateX(0deg);
  }
  34%,
  70% {
    transform: perspective(90rem) rotateY(180deg) rotateX(180deg);
  }
  76%,
  78% {
    transform: perspective(90rem) rotateY(360deg) rotateX(180deg);
  }
  84%,
  100% {
    transform: perspective(90rem) rotateY(360deg) rotateX(360deg);
  }
}

.cover__hint {
  position: absolute;
  right: 0;
  bottom: -1.75rem;
  color: var(--muted-inv);
}

@media (max-width: 860px) {
  .cover__in {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .cover__art {
    order: -1;
    max-width: 15rem;
    justify-self: start;
  }

  .cover__hint {
    display: none;
  }
}

/* ---------- Chapter index ---------- */

.toc {
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.toc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.toc__head h2 {
  font-size: clamp(2rem, 3vw + 0.6rem, 3.5rem);
  letter-spacing: -0.03em;
}

.toc__head > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.toc__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.toc__grid a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 10.5rem;
  padding: 1.1rem 1.2rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s var(--ease);
}

.toc__grid a:hover,
.toc__grid a:focus-visible {
  background: var(--accent);
}

.toc__grid .label {
  color: var(--muted);
}

.toc__name,
.toc__line {
  display: block;
}

.toc__name {
  font-size: clamp(1.375rem, 1vw + 1rem, 1.875rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.toc__line {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .toc__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .toc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc__grid a {
    min-height: 8.5rem;
    padding: 0.9rem;
  }
}

/* ---------- Book layout: side navigation and chapters ---------- */

.book {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  gap: var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.side {
  position: sticky;
  top: calc(var(--top) + 1.5rem);
  align-self: start;
  max-height: calc(100vh - var(--top) - 3rem);
  overflow-y: auto;
  padding: 0.5rem 0 2rem;
  scrollbar-width: thin;
}

.side__list li {
  margin: 0;
}

.side__list > li > a {
  display: flex;
  gap: 0.7rem;
  padding: 0.32rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.side__list > li > a .label {
  min-width: 1.4rem;
  padding-top: 0.15rem;
}

.side__list a:hover,
.side__list a[aria-current] {
  color: var(--ink);
}

.side__list > li > a[aria-current] .label {
  color: var(--ink);
}

.side__subs {
  display: none;
  margin: 0.1rem 0 0.5rem 2.1rem;
  border-left: 1px solid var(--line);
}

.side__list > li.is-open .side__subs {
  display: block;
}

.side__subs a {
  display: block;
  padding: 0.22rem 0 0.22rem 0.8rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 0.8125rem;
  color: var(--muted);
}

.side__subs a[aria-current] {
  border-left-color: var(--ink);
  color: var(--ink);
}

.side__foot {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.side__foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.chapters {
  min-width: 0;
}

@media (max-width: 1100px) {
  .book {
    grid-template-columns: minmax(0, 1fr);
  }

  .book > .side {
    display: none;
  }
}

/* ---------- Chapter ---------- */

.ch {
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(1rem, 2vw, 2rem);
  border-top: 1px solid var(--line);
}

.ch:first-child {
  border-top: 0;
}

.ch__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem var(--gutter);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.ch__num {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.ch__title {
  font-size: clamp(3rem, 6.4vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.ch__line {
  font-size: clamp(1.25rem, 1vw + 0.9rem, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ch__intro {
  margin-top: 0.75rem;
  max-width: 30em;
  color: var(--muted);
}

@media (max-width: 760px) {
  .ch__head {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Sub-section ---------- */

.sub {
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.sub__head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 0.75rem var(--gutter);
  align-items: baseline;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.sub__title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sub__anchor {
  display: inline-flex;
  padding: 0.3rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}

.sub__head:hover .sub__anchor,
.sub__anchor:focus-visible {
  opacity: 1;
}

.sub__anchor:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.sub__text {
  max-width: 38em;
  color: var(--muted);
}

.sub__text strong {
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 760px) {
  .sub__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .sub__anchor {
    opacity: 1;
  }
}

/* A short reason under a rule. */
.why {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9375rem;
}

.why .tag {
  flex: none;
}

/* A stage: where a specimen sits. A faint dot grid marks the ground. */
.stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(12, 18, 16, 0.16) 1px, transparent 1.4px);
  background-size: 17px 17px;
  background-position: 8px 8px;
}

.stage--plain {
  background-image: none;
}

.stage--ink {
  border-color: var(--ink);
  background-color: var(--ink);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  color: var(--paper);
}

.stage--green {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: radial-gradient(circle at 1px 1px, rgba(12, 18, 16, 0.14) 1px, transparent 1.4px);
}

.stage__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
}

.stage__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--line);
}

.stage--ink .stage__foot {
  border-top-color: var(--line-inv);
}

.stage--ink .label,
.is-dark .label {
  color: var(--muted-inv);
}

.dls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* Lists of rules: do / don't, with a mark. */
.mark-ok,
.mark-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
}

.mark-ok {
  background: var(--accent);
  color: var(--ink);
}

.mark-no {
  background: var(--ink);
  color: var(--paper);
}

.mark-ok .ic,
.mark-no .ic {
  width: 0.7rem;
  height: 0.7rem;
  stroke-width: 2;
}

/* Generic grids */
.cols-2,
.cols-3,
.cols-4 {
  display: grid;
  gap: 0.75rem;
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cols-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .cols-2,
  .cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card--ink {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.card--green {
  border-color: var(--accent);
  background: var(--accent);
}

/* ---------- 01 Fundament ---------- */

.whw li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 7fr) minmax(0, 4fr);
  gap: 0.75rem var(--gutter);
  align-items: start;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}

.whw li:last-child {
  border-bottom: 1px solid var(--line);
}

.whw__sym {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.2rem;
}

.whw__text {
  font-size: clamp(1.25rem, 1.2vw + 0.85rem, 1.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.whw__note {
  padding-top: 0.45rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .whw li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .whw__note {
    grid-column: 2;
    padding-top: 0;
  }
}

/* Symbols of the system: open square, agent, person, result. */
.sym {
  display: inline-block;
  flex: none;
}

.sym--work {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink);
}

.sym--agent {
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 11px var(--ink);
}

.sym--person {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.sym--result {
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  background: var(--accent);
}

.is-dark .sym--work,
.stage--ink .sym--work,
.card--ink .sym--work {
  border-color: var(--paper);
}

.is-dark .sym--result,
.stage--ink .sym--result,
.card--ink .sym--result {
  border-color: var(--accent);
}

.name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
}

.name__part {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  min-height: 18rem;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  border-radius: 10px;
}

.name__part--tools {
  background: var(--ink);
  color: var(--paper);
}

.name__part--people {
  background: var(--accent);
}

.name__word {
  font-size: clamp(3.25rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.name__for {
  align-self: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.name__part p {
  max-width: 22em;
}

.name__part--tools p:not(.name__word) {
  color: var(--muted-inv);
}

.name__word + p {
  margin-top: 1.25rem;
  max-width: 26em;
}

@media (max-width: 760px) {
  .name {
    grid-template-columns: minmax(0, 1fr);
  }

  .name__for {
    justify-self: center;
  }

  .name__part {
    min-height: 12rem;
  }
}

.statement {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
}

.statement .label {
  color: var(--muted-inv);
}

.statement p:not(.label) {
  margin-top: 1rem;
  max-width: 34em;
  font-size: clamp(1.25rem, 1.3vw + 0.85rem, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pairs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.pairs li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pairs b {
  display: block;
  font-weight: 500;
}

.pairs s {
  color: var(--muted);
  text-decoration-thickness: 1px;
}

@media (max-width: 700px) {
  .pairs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.value h4 {
  margin-top: 1.75rem;
  font-size: clamp(1.75rem, 1.4vw + 1.2rem, 2.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.value__one {
  margin-top: 0.5rem;
  color: var(--muted);
}

.value dl {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.value dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value dd {
  margin-top: 0.3rem;
  font-size: 0.9375rem;
}

.who li {
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}

.who h4 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.who p {
  color: var(--muted);
}

/* ---------- 02 Logo ---------- */

.logo-stage {
  display: grid;
  place-items: center;
  min-height: clamp(16rem, 34vw, 26rem);
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.logo-stage svg {
  width: min(100%, 52rem);
  height: auto;
}

.annot {
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

[data-annot="on"] .annot {
  opacity: 1;
}

.annot line,
.annot rect.box {
  stroke: var(--ink);
  stroke-width: 18;
  fill: none;
  vector-effect: none;
}

.annot text {
  font: 400 150px var(--mono);
  fill: var(--ink);
  letter-spacing: 0.06em;
}

.annot .zone {
  fill: rgba(215, 234, 172, 0.55);
  stroke: none;
}

.family {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.family__view {
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 2rem 1.25rem;
}

.family__view img {
  max-height: 2.4rem;
  width: auto;
}

.family__view img.is-mark {
  max-height: 4.5rem;
}

.family[data-ground="tinte"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.family[data-ground="gruen"] {
  background: var(--accent);
  border-color: var(--accent);
}

.family[data-ground="tinte"] .stage__foot {
  border-top-color: var(--line-inv);
}

.family[data-ground="tinte"] .label {
  color: var(--muted-inv);
}

.family[data-ground="tinte"] .dl {
  border-color: var(--line-inv);
  color: var(--paper);
}

.family[data-ground="tinte"] .dl:hover {
  background: var(--paper);
  color: var(--ink);
}

.family[data-ground="tinte"] .seg {
  border-color: var(--line-inv);
  background: transparent;
}

.family[data-ground="tinte"] .seg button {
  color: var(--muted-inv);
}

.family[data-ground="tinte"] .seg button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.family[data-ground="gruen"] .stage__foot {
  border-top-color: rgba(12, 18, 16, 0.2);
}

.family[data-ground="gruen"] .label {
  color: var(--ink);
}

.family[data-ground="gruen"] .dl {
  border-color: rgba(12, 18, 16, 0.3);
}

.clear {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) 1rem;
}

.clear svg {
  width: min(100%, 46rem);
  height: auto;
}

.sizes {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.sizes__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2rem 2.5rem;
  padding: 2.25rem 1.5rem 1.5rem;
}

.sizes__row figure {
  display: grid;
  gap: 0.7rem;
}

.sizes__row img {
  height: auto;
}

@media (max-width: 760px) {
  .sizes {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rows {
  margin-top: 1rem;
}

.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 0.75rem var(--gutter);
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.rows > div:last-child {
  border-bottom: 1px solid var(--line);
}

.rows dt,
.rows .rows__k {
  color: var(--muted);
}

.is-dark .rows > div {
  border-color: var(--line-inv);
}

.is-dark .rows dt,
.is-dark .rows .rows__k {
  color: var(--muted-inv);
}

@media (max-width: 600px) {
  .rows > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
}

.ground {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.ground__view {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1.25rem;
  overflow: hidden;
}

.ground__view img.logo {
  position: relative;
  max-width: 72%;
  height: auto;
}

.ground__view canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ground figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.g-ink {
  background: var(--ink);
}

.g-ink-2 {
  background: var(--ink-2);
}

.g-white {
  background: var(--paper);
}

.g-green {
  background: var(--accent);
}

.dont {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.dont__view {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  overflow: hidden;
}

/* The line across a "don't" example. */
.dont__view::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 0.75px), rgba(12, 18, 16, 0.45) calc(50% - 0.75px), rgba(12, 18, 16, 0.45) calc(50% + 0.75px), transparent calc(50% + 0.75px));
  pointer-events: none;
}

.dont__view.g-ink::after {
  background: linear-gradient(to top right, transparent calc(50% - 0.75px), rgba(255, 255, 255, 0.5) calc(50% - 0.75px), rgba(255, 255, 255, 0.5) calc(50% + 0.75px), transparent calc(50% + 0.75px));
}

.dont__view img {
  max-width: 82%;
  height: auto;
}

.dont figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.dont .x-stretch {
  max-width: 58%;
  transform: scaleX(1.45);
}

.dont .x-rotate {
  transform: rotate(-12deg);
}

.dont .x-shadow {
  filter: drop-shadow(0 6px 6px rgba(12, 18, 16, 0.55)) drop-shadow(0 0 12px rgba(215, 234, 172, 0.9));
}

.dont .x-busy {
  background-image: repeating-linear-gradient(115deg, #2c4a7a 0 14px, #c7552b 14px 28px, #e8c547 28px 42px, #2f8f6b 42px 56px);
}

.dont .x-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
}

.dont .x-caps {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dont .x-caps::before,
.dont .x-round::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  background: var(--accent);
  border: 1px solid var(--ink);
}

.dont .x-round {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: clamp(0.95rem, 2.1vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.dont .x-round::before {
  border-radius: 50%;
}

.dont .x-colors {
  filter: hue-rotate(160deg) saturate(3);
}

.dont .x-serif,
.dont .x-noedge {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}

.dont .x-serif::before,
.dont .x-noedge::before {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  background: var(--accent);
  border: 1px solid var(--ink);
}

.dont .x-noedge {
  font-size: clamp(0.95rem, 2.1vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.dont .x-noedge::before {
  border: 0;
}

/* ---------- 03 Das Quadrat ---------- */

.states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.state {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border-right: 1px solid var(--line);
}

.state:last-child {
  border-right: 0;
}

.state__view {
  display: grid;
  place-items: center;
  height: 9rem;
}

.state__view span {
  display: block;
}

.big-work {
  width: 5.5rem;
  height: 5.5rem;
  border: 5px solid var(--ink);
}

.big-agent {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  border: 2px solid var(--line);
}

.big-agent::before {
  content: "";
  position: absolute;
  inset: 1.75rem;
  border: 4px solid var(--ink);
}

.big-agent i {
  position: absolute;
  inset: -2px;
  border: 4px solid transparent;
  border-top-color: var(--ink);
  border-right-color: var(--ink);
}

.big-result {
  width: 5.5rem;
  height: 5.5rem;
  border: 3px solid var(--ink);
  background: var(--accent);
}

.state h4 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.state p {
  margin-top: 0.35rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .states {
    grid-template-columns: minmax(0, 1fr);
  }

  .state {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .state:last-child {
    border-bottom: 0;
  }
}

.flip-demo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gutter);
  align-items: center;
}

.flip-demo__view {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

/* Sized in em, like the square in the wordmark: the perspective of the
   flip is set in em too, so the turn looks the same at every size. */
.flip-demo__sq {
  width: 0.62em;
  height: 0.62em;
  font-size: clamp(9rem, 17vw, 15rem);
  background: var(--accent);
}

.flip-demo__sq.is-on {
  animation: mark-flip 4.8s cubic-bezier(0.65, 0, 0.35, 1) 1 both;
}

.flip-demo__sq.is-loop {
  animation: mark-flip 4.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.timeline {
  position: relative;
  margin-top: 1.5rem;
}

.timeline__bar {
  display: grid;
  grid-template-columns: 14fr 4fr 14fr 68fr;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline__bar span {
  display: flex;
  align-items: center;
  padding-inline: 0.45rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
  font: 400 0.625rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.timeline__bar span:nth-child(1),
.timeline__bar span:nth-child(3) {
  background: var(--accent);
  color: var(--ink);
}

.is-dark .timeline__bar,
.is-dark .timeline__bar span {
  border-color: var(--line-inv);
}

.is-dark .timeline__bar span:last-child {
  color: var(--muted-inv);
}

.is-dark .timeline__head {
  background: var(--paper);
}

.timeline__bar span:last-child {
  border-right: 0;
  color: var(--muted);
}

.timeline__head {
  position: absolute;
  top: -0.35rem;
  bottom: -0.35rem;
  left: 0;
  width: 2px;
  background: var(--ink);
  opacity: 0;
}

.timeline__head.is-on {
  opacity: 1;
  animation: timeline-run 4.8s linear 1 both;
}

@keyframes timeline-run {
  to {
    left: calc(100% - 2px);
  }
}

@media (max-width: 760px) {
  .flip-demo {
    grid-template-columns: minmax(0, 1fr);
  }

  .flip-demo__view {
    max-width: 16rem;
  }
}

.icons {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.75rem;
  padding: 2rem 1.5rem 1.5rem;
}

.icons figure {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
}

.icon-tile {
  border-radius: 22%;
  overflow: hidden;
}

.tabmock {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
}

.tabmock__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 20rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  border-bottom: 0;
  background: var(--paper);
  font-size: 0.8125rem;
}

.tabmock__bar img {
  width: 16px;
  height: 16px;
}

.tabmock__url {
  max-width: 24rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 8px;
  background: var(--paper);
  font: 400 0.8125rem var(--mono);
  color: var(--muted);
}

.graphic {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
}

.graphic canvas {
  width: 100%;
  height: 100%;
}

/* ---------- 04 Das System ---------- */

.figure-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
}

.figure-box canvas {
  width: 100%;
  height: clamp(17rem, 36vw, 26rem);
}

.figure-box .stage__foot {
  border-top: 1px solid var(--line-inv);
  color: var(--paper);
}

.figure-box[data-theme="weiss"] {
  border: 1px solid var(--line);
  background: var(--paper);
}

.figure-box[data-theme="weiss"] .stage__foot {
  border-top-color: var(--line);
  color: var(--ink);
}

.figure-box[data-theme="gruen"] {
  background: var(--accent);
}

.figure-box[data-theme="gruen"] .stage__foot {
  border-top-color: rgba(12, 18, 16, 0.18);
  color: var(--ink);
}

.figure-box[data-theme="tinte"] .seg {
  border-color: var(--line-inv);
  background: transparent;
}

.figure-box[data-theme="tinte"] .seg button {
  color: var(--muted-inv);
}

.figure-box[data-theme="tinte"] .seg button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.figure-box[data-theme="tinte"] .label {
  color: var(--muted-inv);
}

.figure-box[data-theme="tinte"] .btn--line {
  border-color: var(--line-inv);
  color: var(--paper);
}

.figure-box[data-theme="gruen"] .label {
  color: var(--ink);
}

.legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.legend li {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem;
  border-right: 1px solid var(--line);
}

.legend li:last-child {
  border-right: 0;
}

.legend__sym {
  display: flex;
  align-items: center;
  height: 2rem;
}

.legend h4 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.legend p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.rail-sym {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--ink);
  opacity: 0.4;
}

@media (max-width: 900px) {
  .legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legend li {
    border-bottom: 1px solid var(--line);
  }
}

.zones {
  display: grid;
  grid-template-columns: 2fr 5fr 3fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.zones > div {
  padding: 1.1rem;
  border-right: 1px solid var(--line);
}

.zones > div:last-child {
  border-right: 0;
  background: var(--accent);
}

.zones h4 {
  margin: 1.25rem 0 0.3rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.zones p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.zones > div:last-child p {
  color: var(--ink);
}

@media (max-width: 700px) {
  .zones {
    grid-template-columns: minmax(0, 1fr);
  }

  .zones > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- 05 Farbe ---------- */

.palette {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 15rem 8rem;
  gap: 0.5rem;
}

.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  transition: transform 0.25s var(--ease);
}

.swatch:hover {
  transform: translateY(-2px);
}

.swatch--main {
  grid-column: span 2;
}

.swatch__name {
  font-size: clamp(1.25rem, 1vw + 0.9rem, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.swatch__hex {
  font: 400 0.75rem var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.swatch__copy {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.swatch:hover .swatch__copy,
.swatch:focus-visible .swatch__copy {
  opacity: 1;
}

.sw-ink {
  background: var(--ink);
  color: var(--paper);
}

.sw-white {
  border-color: var(--line);
  background: var(--paper);
}

.sw-green {
  background: var(--accent);
}

.sw-ink2 {
  background: var(--ink-2);
  color: var(--paper);
}

.sw-grey {
  background: #59615c;
  color: var(--paper);
}

.sw-light {
  background: #a8aaa9;
}

@media (max-width: 760px) {
  .palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .swatch {
    min-height: 7.5rem;
  }

  .swatch--main {
    grid-column: span 2;
    min-height: 9rem;
  }
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table th,
.table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  font: 400 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.table tbody tr:last-child > * {
  border-bottom: 0;
}

.table .mono {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.table .dot {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.55rem;
  vertical-align: -0.1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.table s {
  color: var(--muted);
}

.ratio {
  display: flex;
  height: 5.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.ratio span {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.6rem 0.7rem;
  font: 400 0.6875rem/1.2 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ratio b {
  font: 400 1.5rem/1 var(--sans);
  letter-spacing: -0.02em;
}

.combo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 11rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.combo__aa {
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.combo__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.combo__score {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 400 0.75rem var(--mono);
}

.table .dot.g-grey {
  background: var(--muted);
}

.table .dot.g-light {
  background: #a8aaa9;
}

.ratio .g-ink {
  color: var(--paper);
}

.ratio [data-w="50"] {
  flex: 50 1 0;
}

.ratio [data-w="40"] {
  flex: 40 1 0;
}

.ratio [data-w="10"] {
  flex: 10 1 0;
  min-width: 4.5rem;
}

.ratio .g-white + .g-ink {
  border-left: 1px solid var(--line);
}

/* Each pair shows its own ground and text colour. */
.combo[data-bg="#FFFFFF"] { background: var(--paper); }
.combo[data-bg="#0C1210"] { background: var(--ink); border-color: var(--ink); }
.combo[data-bg="#D7EAAC"] { background: var(--accent); border-color: var(--accent); }
.combo[data-bg="#171E1B"] { background: var(--ink-2); border-color: var(--ink-2); }
.combo[data-fg="#0C1210"] { color: var(--ink); }
.combo[data-fg="#FFFFFF"] { color: var(--paper); }
.combo[data-fg="#D7EAAC"] { color: var(--accent); }
.combo[data-fg="#59615C"] { color: var(--muted); }
.combo[data-fg="#A8AAA9"] { color: #a8aaa9; }

.combo[data-bg="#0C1210"] .tag--ink,
.combo[data-bg="#171E1B"] .tag--ink {
  background: var(--paper);
  color: var(--ink);
}

.dont .x-greentext {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--accent);
}

/* A warm, beige ground: shown only as the mistake it is. */
.dont__view.x-beige {
  background: #efe6d6;
}

.dont .x-beige-text {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
  color: #6b5b45;
}

.dont__view.x-gradient {
  background: linear-gradient(120deg, var(--ink) 0%, #4c6b3c 45%, var(--accent) 100%);
}

.dont__view.x-tint {
  background: rgba(215, 234, 172, 0.42);
}

.dont__view.x-tint span {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
}

/* ---------- 06 Typografie ---------- */

.face {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.face__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 0.5rem;
}

.face__aa {
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.face__name {
  padding: 0 1.25rem;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.face__chars {
  padding: 0.75rem 1.25rem 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--muted);
  word-break: break-all;
}

.face .rows {
  margin: auto 1.25rem 1.25rem;
}

.face .rows > div {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.weights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.weights > div {
  padding: 1.25rem;
  border-right: 1px solid var(--line);
}

.weights > div:last-child {
  border-right: 0;
}

.weights b {
  display: block;
  font-size: 3.25rem;
  font-weight: inherit;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.weights .w500 b {
  font-weight: 500;
}

@media (max-width: 700px) {
  .weights {
    grid-template-columns: minmax(0, 1fr);
  }

  .weights > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.scale-list li {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 0.75rem var(--gutter);
  align-items: baseline;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
}

.scale-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.scale-list h4 {
  font-size: 1.0625rem;
  font-weight: 500;
}

.scale-list .label {
  display: block;
  margin-top: 0.3rem;
}

.ts-display {
  font-size: clamp(2.75rem, 5.6vw + 0.5rem, 5.75rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
}

.ts-h2 {
  font-size: clamp(2rem, 3.6vw + 0.5rem, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.ts-statement {
  font-size: clamp(1.625rem, 2.6vw + 0.6rem, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.027em;
}

.ts-lead {
  font-size: clamp(1.125rem, 1vw + 0.85rem, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.ts-text {
  font-size: 1.0625rem;
  line-height: 1.5;
}

.ts-button {
  font: 400 0.875rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ts-label {
  font: 400 0.75rem/1.35 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tester {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.tester__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.tester__size {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.tester__size input {
  width: 9rem;
}

.tester__text {
  min-height: 12rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  outline: 0;
  overflow-wrap: anywhere;
}

.tester__text:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ink);
}

input[type="range"] {
  height: 1.5rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--ink);
}

input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--ink);
}

input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--accent);
  appearance: none;
  -webkit-appearance: none;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--accent);
}

.rules {
  border-top: 1px solid var(--line);
}

.rules li {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: 0.5rem var(--gutter);
  align-items: center;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.rules__k {
  color: var(--muted);
}

.rules__ok,
.rules__no {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rules__no span:last-child {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

@media (max-width: 600px) {
  .rules li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .rules__k {
    grid-column: 1 / -1;
  }
}

/* ---------- 07 Sprache ---------- */

.principles li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 0.5rem var(--gutter);
  align-items: baseline;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}

.principles li:last-child {
  border-bottom: 1px solid var(--line);
}

.principles h4 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.principles p {
  color: var(--muted);
}

.principles q {
  quotes: "„" "“";
  font-size: 1.0625rem;
}

@media (max-width: 860px) {
  .principles li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .principles li > :nth-child(n + 3) {
    grid-column: 2;
  }
}

.claims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.claim {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 19rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.claim__text {
  font-size: clamp(1.75rem, 1.8vw + 1rem, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.claim ul {
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.claim li {
  display: flex;
  gap: 0.5rem;
}

.claim li::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  background: currentColor;
}

.claim--green {
  border-color: var(--accent);
  background: var(--accent);
}

.claim--ink {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.claim--ink .label {
  color: var(--muted-inv);
}

@media (max-width: 900px) {
  .claims {
    grid-template-columns: minmax(0, 1fr);
  }

  .claim {
    min-height: 13rem;
  }
}

.do-dont {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.do-dont ul {
  display: grid;
}

.do-dont li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
}

.do-dont li > :first-child {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.do-dont li > :last-child {
  font-size: 0.875rem;
  color: var(--muted);
}

.do-dont .is-no li > :first-child {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.do-dont__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 760px) {
  .do-dont {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ba {
  display: grid;
  gap: 0.75rem;
}

.ba__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

.ba__before,
.ba__after {
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
}

.ba__before {
  border: 1px solid var(--line);
}

.ba__before p:not(.label) {
  margin-top: 0.6rem;
  color: var(--muted);
}

.ba__after {
  background: var(--ink);
  color: var(--paper);
}

.ba__after .label {
  color: var(--accent);
}

.ba__after p:not(.label) {
  margin-top: 0.6rem;
  font-size: clamp(1.125rem, 0.8vw + 0.9rem, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.ba__arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
}

@media (max-width: 760px) {
  .ba__pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .ba__arrow {
    transform: rotate(90deg);
  }
}

/* ---------- 08 Bildsprache ---------- */

.portraits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.portrait {
  display: grid;
  gap: 0.6rem;
}

.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--ink);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.2) 1px, transparent 1.6px);
  background-size: 26px 26px;
}

.portrait__frame canvas,
.portrait__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portrait__frame img {
  object-fit: contain;
}

.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

@media (max-width: 760px) {
  .portraits {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait:nth-child(n + 2) {
    display: none;
  }
}

.glyphs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.glyphs li {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.glyphs .label {
  font-size: 0.6875rem;
}

.glyph {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  fill: currentColor;
}

.glyph .o {
  opacity: 0.18;
}

.glyph--big {
  width: 4rem;
  height: 4rem;
}

@media (max-width: 1000px) {
  .glyphs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .glyphs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .glyphs li {
    padding: 0.8rem;
  }
}

.glyph-anatomy {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gutter);
  align-items: center;
}

.glyph-anatomy svg {
  width: 100%;
  max-width: 22rem;
  height: auto;
}

@media (max-width: 760px) {
  .glyph-anatomy {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nogo {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.nogo li {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .nogo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 09 Gestaltung ---------- */

.layout-demo {
  padding: 1.25rem;
}

.layout-demo__page {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.layout-demo__label {
  padding-top: 0.35rem;
}

.layout-demo__label span,
.layout-demo__body span {
  display: block;
  height: 0.7rem;
  border-radius: 2px;
  background: rgba(12, 18, 16, 0.14);
}

.layout-demo__label span {
  width: 60%;
}

.layout-demo__body {
  display: grid;
  gap: 0.55rem;
}

.layout-demo__body .h {
  width: 70%;
  height: 2rem;
  background: var(--ink);
}

.layout-demo__body .h2 {
  width: 45%;
  height: 2rem;
  background: var(--ink);
}

.layout-demo__cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
  height: 2rem;
}

.layout-demo__cols i {
  border-radius: 2px;
  background: rgba(215, 234, 172, 0.8);
}

.layout-demo__cols i:nth-child(-n + 3) {
  background: rgba(12, 18, 16, 0.1);
}

.space li {
  display: grid;
  grid-template-columns: 4rem 3.5rem minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.75rem;
  align-items: center;
  padding-block: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.space li:last-child {
  border-bottom: 1px solid var(--line);
}

.space__bar {
  max-width: 100%;
  height: 0.75rem;
  border: 1px solid var(--ink);
  background: var(--accent);
}

.space__bar[data-px="6"] { width: 6px; }
.space__bar[data-px="8"] { width: 8px; }
.space__bar[data-px="12"] { width: 12px; }
.space__bar[data-px="16"] { width: 16px; }
.space__bar[data-px="24"] { width: 24px; }
.space__bar[data-px="40"] { width: 40px; }
.space__bar[data-px="48"] { width: 48px; }
.space__bar[data-px="72"] { width: 72px; }
.space__bar[data-px="144"] { width: 144px; }

.space .dim {
  font-size: 0.8125rem;
}

@media (max-width: 600px) {
  .space li {
    grid-template-columns: 3rem 3rem minmax(0, 1fr);
  }

  .space li > :last-child {
    grid-column: 1 / -1;
  }
}

.surface {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 14rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.surface h4 {
  margin-top: 0.4rem;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.surface p {
  font-size: 0.9375rem;
}

.surface.g-ink,
.surface.g-ink-2 {
  border-color: transparent;
  color: var(--paper);
}

.surface.g-ink .label,
.surface.g-ink-2 .label {
  color: var(--muted-inv);
}

.surface.g-green {
  border-color: transparent;
}

.elements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.element {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.element__view {
  display: grid;
  place-items: center;
  min-height: 9.5rem;
  padding: 1.5rem 1rem;
}

.element figcaption {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.element figcaption .label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
}

.element .demo-input {
  width: 100%;
  max-width: 16rem;
}

.element .demo-input span {
  display: block;
}

.element .demo-input div {
  padding: 0.6rem 0 0.7rem;
  border-bottom: 1px solid var(--ink);
  font-size: 1.125rem;
}

.demo-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 9rem;
  height: 9rem;
  padding: 0.75rem;
  border-radius: 6px;
  background: var(--ink-2);
  color: var(--paper);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.demo-tile:hover {
  background: var(--accent);
  color: var(--ink);
}

.demo-tile .glyph {
  align-self: flex-end;
  width: 1.8rem;
  height: 1.8rem;
}

.demo-badge {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 6rem;
  height: 6rem;
  padding: 0.6rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.demo-badge .glyph {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--accent);
}

.demo-badge span {
  font: 400 0.625rem/1.2 var(--mono);
  letter-spacing: 0.06em;
}

.demo-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
  font: 400 0.8125rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.element .demo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
}

.elements + .stage {
  margin-top: 0.75rem;
}

.radii {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
}

.radii span {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--ink);
  background: var(--accent);
  font: 400 0.6875rem var(--mono);
}

.radii .r3 { border-radius: 3px; }
.radii .r6 { border-radius: 6px; }
.radii .r8 { border-radius: 8px; }
.radii .r10 { border-radius: 10px; }

@media (max-width: 900px) {
  .elements {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .elements {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 10 Bewegung ---------- */

.curve {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gutter);
  align-items: start;
}

.curve__graph {
  padding: 1.25rem;
}

.curve__graph svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.curve__run {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.track {
  position: relative;
  height: 2.75rem;
  border-bottom: 1px solid var(--line);
}

.track i {
  position: absolute;
  bottom: 0.4rem;
  left: 0;
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid var(--ink);
  background: var(--accent);
}

.track--linear i {
  background: var(--paper);
}

.track.is-on i {
  animation: track-ease 1.2s var(--ease) both;
}

.track--linear.is-on i {
  animation-timing-function: linear;
}

@keyframes track-ease {
  to {
    left: calc(100% - 0.9rem);
  }
}

.track span {
  position: absolute;
  top: 0;
  left: 0;
}

.track i {
  bottom: 0;
}

@media (max-width: 760px) {
  .curve {
    grid-template-columns: minmax(0, 1fr);
  }
}

.durations li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 5rem minmax(0, 5fr) minmax(0, 4fr);
  gap: 0.75rem;
  align-items: center;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.durations li:last-child {
  border-bottom: 1px solid var(--line);
}

/* Each bar is as long as its duration, measured against the longest. */
.durations__bar {
  position: relative;
  height: 0.5rem;
  background: var(--line-soft);
}

[data-dur="200"] .durations__bar { width: 4.17%; }
[data-dur="250"] .durations__bar { width: 5.21%; }
[data-dur="700"] .durations__bar { width: 14.58%; }
[data-dur="800"] .durations__bar { width: 16.67%; }
[data-dur="3000"] .durations__bar { width: 62.5%; }
[data-dur="4800"] .durations__bar { width: 100%; }

.durations__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--ink);
}

.durations.is-on .durations__bar i {
  width: 100%;
  transition: width var(--dur, 0.3s) linear;
}

@media (max-width: 700px) {
  .durations li {
    grid-template-columns: minmax(0, 1fr) 4.5rem;
  }

  .durations li > :nth-child(n + 3) {
    grid-column: 1 / -1;
  }
}

.patterns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pattern {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.pattern__view {
  position: relative;
  display: grid;
  place-items: center;
  height: 15rem;
  overflow: hidden;
}

.pattern__view canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pattern .stage__foot {
  align-items: flex-start;
}

.pattern h4 {
  font-size: 1.125rem;
  font-weight: 500;
}

.pattern p {
  font-size: 0.875rem;
  color: var(--muted);
}

.pt-flip span {
  width: 0.62em;
  height: 0.62em;
  font-size: 7.25rem;
  background: var(--accent);
}

.pt-flip.is-on span {
  animation: mark-flip 4.8s cubic-bezier(0.65, 0, 0.35, 1) 1 both;
}

.pt-reveal {
  align-content: center;
  justify-items: start;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
}

.pt-reveal span {
  display: block;
  height: 1rem;
  border-radius: 2px;
  background: var(--ink);
}

.pt-reveal span:nth-child(1) {
  width: 14rem;
  height: 1.75rem;
}

.pt-reveal span:nth-child(2) {
  width: 18rem;
  background: rgba(12, 18, 16, 0.25);
}

.pt-reveal span:nth-child(3) {
  width: 12rem;
  background: rgba(12, 18, 16, 0.25);
}

.pt-reveal.is-on span {
  animation: pt-rise 0.7s var(--ease) both;
}

.pt-reveal.is-on span:nth-child(2) {
  animation-delay: 70ms;
}

.pt-reveal.is-on span:nth-child(3) {
  animation-delay: 140ms;
}

@keyframes pt-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.pt-chain {
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 2rem;
}

.pt-chain span {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.pt-chain span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 14px;
  width: 0;
  height: 1px;
  background: var(--ink);
}

.pt-chain span:last-child::after {
  display: none;
}

.pt-chain.is-on span {
  animation: pt-node 0.3s var(--ease) both;
}

.pt-chain.is-on span::after {
  animation: pt-wire 0.65s linear both;
}

.pt-chain.is-on span:nth-child(1) { animation-delay: 0s; }
.pt-chain.is-on span:nth-child(2) { animation-delay: 0.8s; }
.pt-chain.is-on span:nth-child(3) { animation-delay: 1.6s; }
.pt-chain.is-on span:nth-child(4) { animation-delay: 2.4s; }
.pt-chain.is-on span:nth-child(1)::after { animation-delay: 0.1s; }
.pt-chain.is-on span:nth-child(2)::after { animation-delay: 0.9s; }
.pt-chain.is-on span:nth-child(3)::after { animation-delay: 1.7s; }

@keyframes pt-node {
  to {
    background: var(--accent);
  }
}

@keyframes pt-wire {
  to {
    width: var(--wire, 8rem);
  }
}

@media (max-width: 760px) {
  .patterns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 11 Anwendungen ---------- */

.shots {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: end;
}

.shot {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: auto;
}

.shot--phone {
  border-radius: 18px;
}

@media (max-width: 700px) {
  .shots {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot--phone {
    max-width: 14rem;
  }
}

.slides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.slide {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.slide__in {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5cqw 5.5cqw;
}

.slide__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 400 1.6cqw/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.slide__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font: 500 2.2cqw/1 var(--sans);
  letter-spacing: -0.015em;
  text-transform: none;
}

.slide__mark::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  background: var(--accent);
  border: 1px solid var(--ink);
}

.slide.g-ink .slide__mark::before {
  border: 0;
}

.slide.g-green .slide__mark::before {
  background: var(--ink);
}

.slide h3,
.slide p.big {
  font-size: 6.2cqw;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.slide p.mid {
  max-width: 70%;
  font-size: 3.8cqw;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.slide .small {
  margin-top: 1.6cqw;
  font-size: 1.9cqw;
  opacity: 0.7;
}

.slide canvas {
  position: absolute;
  top: 16%;
  left: 0;
  width: 100%;
  height: 46%;
}

.slide.g-ink {
  border-color: var(--ink);
  color: var(--paper);
}

.slide.g-green {
  border-color: var(--accent);
}

.slide__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3cqw;
}

.slide__kpis b {
  display: block;
  font-size: 7cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.slide__kpis span {
  display: block;
  margin-top: 1cqw;
  padding-top: 1cqw;
  border-top: 1px solid var(--line-inv);
  font: 400 1.4cqw/1.3 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-inv);
}

@media (max-width: 700px) {
  .slides {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
}

.bcard {
  container-type: inline-size;
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 85 / 55;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12, 18, 16, 0.08), 0 12px 32px rgba(12, 18, 16, 0.12);
}

.bcard__in {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7cqw;
}

.bcard__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font: 500 5cqw/1 var(--sans);
  letter-spacing: -0.015em;
}

.bcard__mark::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  border: 1px solid var(--ink);
  background: var(--accent);
}

.bcard b {
  display: block;
  font-size: 6cqw;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.bcard__in > div span {
  display: block;
  font-size: 4cqw;
  color: var(--muted);
}

.bcard .mono {
  margin-top: 3cqw;
  font-size: 3.4cqw;
  color: var(--ink);
}

.bcard--back {
  background: var(--ink);
  color: var(--paper);
}

.bcard--back .bcard__in {
  align-items: center;
  justify-content: center;
}

.bcard--back i {
  width: 16cqw;
  height: 16cqw;
  background: var(--accent);
}

.bcard--back p {
  position: absolute;
  left: 7cqw;
  bottom: 6cqw;
  font-size: 3.8cqw;
  color: var(--muted-inv);
}

.mail {
  max-width: 40rem;
  padding: 1.5rem 1.5rem 1.75rem;
  font: 400 14px/1.5 Arial, Helvetica, sans-serif;
  color: #222;
}

.mail p + p {
  margin-top: 0.75rem;
}

.doc {
  container-type: inline-size;
  position: relative;
  width: min(100%, 17rem);
  aspect-ratio: 210 / 297;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12, 18, 16, 0.08), 0 12px 32px rgba(12, 18, 16, 0.12);
  background: var(--paper);
}

.doc__band {
  height: 42%;
  background: var(--ink);
}

.doc__band canvas {
  width: 100%;
  height: 100%;
}

.doc__in {
  padding: 8cqw;
}

.doc__in b {
  display: block;
  font-size: 9cqw;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.doc__in dl {
  display: grid;
  gap: 2cqw;
  margin-top: 7cqw;
  font-size: 3.6cqw;
}

.doc__in dt {
  font: 400 2.8cqw var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc__mark {
  position: absolute;
  left: 8cqw;
  top: 7cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: var(--paper);
  font: 500 4.4cqw/1 var(--sans);
  letter-spacing: -0.015em;
}

.doc__mark::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  background: var(--accent);
}

.linkedin {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.linkedin__banner {
  aspect-ratio: 1584 / 396;
}

.linkedin__banner canvas {
  width: 100%;
  height: 100%;
}

.linkedin__body {
  position: relative;
  padding: 3.5rem 1.25rem 1.25rem;
}

.linkedin__icon {
  position: absolute;
  top: -2.75rem;
  left: 1.25rem;
  width: 5.5rem;
  height: 5.5rem;
  border: 3px solid var(--paper);
  border-radius: 50%;
  overflow: hidden;
}

.linkedin__body b {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
}

.linkedin__body span {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- 12 Downloads ---------- */

.pack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
}

.pack h4 {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  letter-spacing: -0.025em;
}

.pack .label {
  color: var(--muted-inv);
}

.files {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.file {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.file__view {
  display: grid;
  place-items: center;
  height: 8.5rem;
  padding: 1.25rem;
}

.file__view img {
  max-height: 2rem;
  width: auto;
}

.file__view img.is-mark {
  max-height: 3.25rem;
}

.file__view img.is-icon {
  max-height: 4.5rem;
  border-radius: 22%;
}

.file__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

@media (max-width: 900px) {
  .files {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.list {
  border-top: 1px solid var(--line);
}

.list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.list b {
  display: block;
  font-weight: 500;
}

.list span.dim {
  font-size: 0.9375rem;
}

.versions li {
  display: grid;
  grid-template-columns: 4rem 11rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.versions li:last-child {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 600px) {
  .versions li {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .versions li > :last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Footer ---------- */

.foot {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1.5rem;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 2.5rem var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
}

.foot__claim {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.foot h2.label {
  margin-bottom: 0.75rem;
  color: var(--muted-inv);
}

.foot ul a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--muted-inv);
  transition: color 0.2s var(--ease);
}

.foot ul a:hover {
  color: var(--paper);
}

.foot__mark {
  max-width: var(--max);
  margin: clamp(3rem, 7vw, 6rem) auto 0;
}

.foot__mark img {
  width: 100%;
  height: auto;
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-inv);
}

.foot__base .label {
  color: var(--muted-inv);
}

@media (max-width: 860px) {
  .foot__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot__claim {
    grid-column: 1 / -1;
  }
}

/* ---------- Search ---------- */

.finder {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(1rem, 10vh, 7rem) 1rem 1rem;
  background: rgba(12, 18, 16, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0s 0.2s;
}

.finder.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s var(--ease);
}

.finder__box {
  display: flex;
  flex-direction: column;
  width: min(100%, 40rem);
  max-height: min(34rem, 80vh);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 24px 64px rgba(12, 18, 16, 0.35);
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform 0.25s var(--ease);
}

.finder.is-open .finder__box {
  transform: none;
}

.finder__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.finder__field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.finder__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1.125rem;
}

.finder__field kbd {
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 400 0.6875rem var(--mono);
  color: var(--muted);
}

.finder__list {
  overflow-y: auto;
  padding: 0.4rem;
}

.finder__item a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.65rem 0.7rem;
  border-radius: 6px;
}

.finder__item[aria-selected="true"] a {
  background: var(--accent);
}

.finder__item .label {
  padding-top: 0.15rem;
}

.finder__item b {
  display: block;
  font-weight: 500;
}

.finder__item small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.finder__item mark {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 -0.45em 0 rgba(215, 234, 172, 0.9);
}

.finder__item[aria-selected="true"] mark {
  box-shadow: inset 0 -0.45em 0 rgba(12, 18, 16, 0.12);
}

.finder__empty {
  padding: 1.5rem 1rem;
  color: var(--muted);
}

.finder__foot {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast i {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
}

.toast .mono {
  color: var(--accent);
  font-size: 0.8125rem;
}

/* ---------- Page heads (Werkzeuge) ---------- */

.page-head {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  max-width: var(--max);
  margin-inline: auto;
}

.page-head h1 {
  margin-top: 1rem;
  font-size: clamp(3.25rem, 7.4vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.page-head p:not(.label) {
  max-width: 34em;
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 0.8vw + 0.9rem, 1.375rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--muted);
}

.page-head .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1.75rem;
}

.page-head .chips a {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-head .chips a:hover {
  border-color: var(--ink);
}

.tool {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 0;
}

.tool__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem var(--gutter);
  align-items: baseline;
  padding-top: 1.5rem;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--line);
}

.tool__head h2 {
  font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem);
  letter-spacing: -0.035em;
}

.tool__head p {
  max-width: 36em;
  color: var(--muted);
}

.tool__body {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel .label {
  display: block;
  margin-bottom: 0.5rem;
}

.panel .seg {
  display: flex;
}

.panel .seg button {
  flex: 1 1 auto;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  font-size: 0.9375rem;
}

.field textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.35;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 0;
  border-color: var(--ink);
}

.field__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.field__top output {
  font: 400 0.75rem var(--mono);
}

.panel .btn {
  width: 100%;
}

.preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 28rem;
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(12, 18, 16, 0.16) 1px, transparent 1.4px);
  background-size: 17px 17px;
}

.preview canvas {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  box-shadow: 0 1px 2px rgba(12, 18, 16, 0.08), 0 18px 42px rgba(12, 18, 16, 0.16);
}

.preview__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
}

@media (max-width: 900px) {
  .tool__head,
  .tool__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview {
    min-height: 18rem;
  }
}

.sig {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.sig__mail {
  font: 400 14px/1.5 Arial, Helvetica, sans-serif;
  color: #222;
}

.sig__mail p + p {
  margin-top: 10px;
}

.sig__out {
  margin-top: 14px;
}

/* ---------- Tool controls ---------- */

[hidden] {
  display: none !important;
}

.panel__row .seg {
  display: flex;
  width: 100%;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  cursor: pointer;
}

.check input::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.15s var(--ease);
}

.check input:checked {
  background: var(--accent);
}

.check input:checked::after {
  transform: scale(1);
}

.check input:disabled,
.check input:disabled + span {
  opacity: 0.4;
  cursor: not-allowed;
}

.hint {
  padding: 0.7rem 0.8rem;
  border-left: 2px solid var(--accent);
  background: rgba(215, 234, 172, 0.28);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.panel__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0.5rem;
}

.panel .panel__actions .btn {
  width: auto;
  padding-inline: 0.6rem;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1rem) 55%, calc(100% - 0.7rem) 55%;
  background-size: 0.3rem 0.3rem;
  background-repeat: no-repeat;
}

/* The artboard: the motif as it will be saved. */
.preview--board {
  min-height: 0;
  padding: clamp(1rem, 2.4vw, 2rem);
}

.artboard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12, 18, 16, 0.08), 0 18px 42px rgba(12, 18, 16, 0.16);
  background: var(--ink);
}

.artboard[data-theme="weiss"] {
  background: var(--paper);
  outline: 1px solid var(--line);
}

.artboard[data-theme="gruen"] {
  background: var(--accent);
}

.artboard canvas {
  display: block;
  flex: none;
  max-width: none;
  max-height: none;
  box-shadow: none;
}

.artboard__band {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.artboard__band img {
  height: auto;
}

.artboard__band span {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.64);
}

.artboard[data-theme="weiss"] .artboard__band span {
  color: var(--muted);
}

.artboard[data-theme="gruen"] .artboard__band span {
  color: rgba(12, 18, 16, 0.7);
}

/* The signature */
.sig__mail .dim {
  color: #777;
}

.sig__logo {
  display: block;
  margin-bottom: 10px;
}

.sig__out p {
  font-size: 13px;
  line-height: 1.5;
}

.sig__out a {
  color: #0c1210;
}

.sig__out a.sig__web {
  color: #59615c;
}

.sig__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
}

/* The way to the Social Studio */
.teaser {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.teaser:hover {
  border-color: var(--ink);
}

.teaser__art {
  position: relative;
  min-height: 12rem;
  background: var(--ink);
}

.teaser__art canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.teaser__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.teaser__title {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.teaser__go {
  display: grid;
  place-items: center;
  padding: 0 clamp(1.25rem, 3vw, 2.25rem);
  font-size: 1.5rem;
}

.teaser__go .arrow {
  width: 1em;
  height: 1em;
  transition: transform 0.25s var(--ease);
}

.teaser:hover .teaser__go .arrow {
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .teaser {
    grid-template-columns: minmax(0, 1fr);
  }

  .teaser__go {
    display: none;
  }
}

/* Social Studio */
.tool--wide {
  padding-top: 0;
}

.tool--wide .tool__body {
  grid-template-columns: 22rem minmax(0, 1fr);
}

.preview--social {
  min-height: 0;
  padding: clamp(1rem, 2.4vw, 2rem);
}

.social-canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(74vh, 52rem);
}

@media (min-width: 901px) {
  .tool__body > div:last-child {
    position: sticky;
    top: calc(var(--top) + 1rem);
  }
}

@media (max-width: 900px) {
  .tool--wide .tool__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Motion off ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wordmark::before,
  .cover__flip,
  .flip-demo__sq.is-loop {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
