/* ==========================================================================
   The Grind - press kit
   A utility document, not a landing page: everything a journalist needs is
   selectable text, one download and one form.

   TYPE. The site's two webfonts are subsetted to Latin (verified: Manrope and
   Oswald carry Latin-1 accents and NOTHING else - no Cyrillic, no CJK, no
   Devanagari). The press kit ships in ten languages, so pages whose script is
   not Latin declare `body.press--sys` and fall back to the reader's own system
   fonts. Do not "fix" this by setting Manrope globally: five of the ten pages
   would render as tofu boxes.
   ========================================================================== */

body.press--sys,
body.press--sys .press h1,
body.press--sys .press h2,
body.press--sys .press h3,
body.press--sys .press .press-kicker,
body.press--sys .press th,
body.press--sys .press label {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
               "Noto Sans CJK JP", "Noto Sans CJK KR", "Noto Sans CJK SC",
               "Noto Sans Devanagari", sans-serif;
}

.press {
  max-width: 74rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

.press a { color: var(--gold); }
.press a:hover { color: #ffd94a; }

/* --- head ------------------------------------------------------------------ */

.press-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}

.press h1 {
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.press-lede {
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: var(--text-2);
  max-width: 46em;
  margin-bottom: 1.4rem;
}

.press-status {
  display: inline-block;
  border: 1px solid var(--gold-d);
  color: var(--gold);
  border-radius: 2px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1.6rem;
}

.press-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.press-jump a {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  font-size: 0.9rem;
}
.press-jump a:hover { border-color: var(--gold-d); }
.press-jump a.is-primary { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }
.press-jump a.is-primary:hover { background: #ffd94a; color: #0a0a0a; }

/* --- language switcher ------------------------------------------------------ */

.press-langs {
  /* The switcher names every language in its own script, so it always uses system
     fonts - the site's Latin-only subsets would render half of them as tofu. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
               "Noto Sans CJK JP", "Noto Sans CJK KR", "Noto Sans CJK SC",
               "Noto Sans Devanagari", sans-serif;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.2rem;
  font-size: 0.85rem;
}
.press-langs span { color: var(--text-3); }
.press-langs a { text-decoration: none; }
.press-langs [aria-current="true"] { color: var(--text); text-decoration: underline; }

/* --- sections --------------------------------------------------------------- */

.press section { margin-bottom: 3rem; scroll-margin-top: 80px; }

.press h2 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
}

.press h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.press p { margin-bottom: 0.9rem; max-width: 46em; }
.press ul { margin: 0 0 1rem 1.1rem; }
.press li { margin-bottom: 0.4rem; max-width: 44em; }

/* --- facts ------------------------------------------------------------------ */

.press-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}
.press-facts > div {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #1c1c1c;
}
.press-facts dt { color: var(--text-3); font-size: 0.85rem; }
.press-facts dd { margin: 0; }
/* The package name is the one value that can be longer than a phone is wide. */
.press-facts dd code { word-break: break-all; font-size: 0.92em; }

/* --- copy blocks ------------------------------------------------------------ */

.press-copy {
  background: var(--s1);
  border: 1px solid #1c1c1c;
  border-radius: 3px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.4rem;
  white-space: pre-wrap;
  line-height: 1.6;
  max-width: none;
}
.press-meta { font-size: 0.78rem; color: var(--text-3); margin-bottom: 0.4rem; }

/* --- screenshots ------------------------------------------------------------ */

.press-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.press-shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #1c1c1c;
  border-radius: 3px;
  background: var(--s2);
}
.press-shots a:hover img { border-color: var(--gold-d); }

/* --- form ------------------------------------------------------------------- */

.press-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 44rem;
}
@media (min-width: 640px) {
  .press-form { grid-template-columns: 1fr 1fr; }
  .press-form .wide { grid-column: 1 / -1; }
}
.press-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}
.press-form input,
.press-form textarea,
.press-form select {
  width: 100%;
  background: var(--s2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  font: inherit;
  padding: 0.7rem 0.75rem;
}
.press-form input:focus,
.press-form textarea:focus,
.press-form select:focus { outline: 2px solid var(--gold-d); outline-offset: 1px; }
.press-form textarea { min-height: 6.5rem; resize: vertical; }
.press-form button {
  justify-self: start;
  background: var(--gold);
  color: #0a0a0a;
  border: 1px solid var(--gold);
  border-radius: 3px;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}
.press-form button:hover { background: #ffd94a; }

/* The honeypot. Never shown, never focusable, never announced - a human cannot
   fill it in, and a bot that does is discarded silently. */
.press-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.press-note { font-size: 0.85rem; color: var(--text-3); max-width: 44em; }

/* --- thanks page ------------------------------------------------------------ */

.press-thanks { min-height: 42vh; }
