/* Textomatic page overrides */

/* Lead paragraph after kicker */
.textomatic__lead {
  font: 400 18px/1.65 'IBM Plex Sans';
  color: #e4dfd4;
  text-wrap: pretty;
}

/* Project download card */
.textomatic__card {
  background: #232424;
  display: flex;
  flex-direction: column;
}

/* Cover image with drop-shadow, eager-loaded */
.textomatic__cover {
  filter: drop-shadow(0 28px 22px rgba(0,0,0,.6));
}
.textomatic__cover img {
  width: 100%;
  display: block;
}

/* Download row inside card */
.textomatic__download {
  display: flex;
  /* The button is `flex: none` at 230px and never shrinks, so on a phone it took the whole row:
     icon 44 + gap 18 + button 230 + gap 18 = 310 against a 306px content box, and the body — the
     only flexible item — was left with 0. Its text then wrapped one letter per line and the block
     grew to 2700px tall. Wrapping lets the button drop to its own line instead.
     A basis on the body rather than a breakpoint: with `flex-basis: 0` its hypothetical size is
     zero, so the row always "fits" and never wraps, which is how it collapsed in the first place. */
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-top: 1px solid var(--line-muted);
  color: var(--text);
}
.textomatic__download:hover {
  color: var(--text);
}
.textomatic__download-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-scene);
  font: 400 20px 'Peace Sans';
  color: var(--accent);
}
.textomatic__download-body {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.textomatic__download-title {
  font: 400 18px 'Peace Sans';
  text-transform: uppercase;
}
.textomatic__download-desc {
  font: 400 13.5px/1.5 'IBM Plex Sans';
  color: var(--text-2);
}
.textomatic__download-meta {
  font: 400 11px 'IBM Plex Mono';
  letter-spacing: .06em;
  color: var(--text-muted);
}
.textomatic__download-btn {
  flex: none;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font: 400 14px 'Peace Sans';
  text-transform: uppercase;
  white-space: nowrap;
}
.textomatic__download-btn:hover {
  color: var(--on-accent);
}

/* Two-accent-card grid */
.textomatic__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.textomatic__accent-card {
  padding: 22px 26px;
  background: #232424;
  border-left: 3px solid var(--stage-3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.textomatic__accent-card-title {
  font: 400 18px 'Peace Sans';
  text-transform: uppercase;
  color: var(--text);
}
.textomatic__accent-card-note {
  font: 400 12px 'IBM Plex Mono';
  color: var(--text-muted);
}
/* The mock groups the kicker, lead, cards and thesis at 16px, not the page's 28px. */
.textomatic__about {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.textomatic__accent-card .list {
  gap: 7px;
}
.textomatic__accent-card .list__item {
  font: 400 15px/1.55 'IBM Plex Sans';
}
