/* zervantinger.de — RASTER, the look of the Fieper app.
   Colours and families mirror pocket-pets/theme.ts; change them there first.
   Pure white paper, near-black ink, one signal red, hairline rules instead of
   cards or shadows, radius 0. Fonts are served from this host (no third-party
   requests); licences sit next to them in assets/fonts/. */

@font-face {
  font-family: "Archivo";
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-900.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-800.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-400.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-600.woff2") format("woff2");
}
/* Plex reserves its font name, so it ships unmodified (not subset). */
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexMono_500Medium.ttf") format("truetype");
}

:root {
  --ink: #111111;
  --paper: #FFFFFF;
  --signal: #DC3120;
  --ash: #6B6B6B;
  --rule: #E2E2E2;
  --body: #222222;
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: 18px;
  --measure: 640px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.page {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Masthead: brand + nav, closed by a 2px ink rule ── */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 18px 0 9px;
  border-bottom: 2px solid var(--ink);
}
.brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.nav a {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--signal);
}

/* ── Title block ── */
.eyebrow {
  margin: 40px 0 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ash);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 9.5vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  hyphens: manual;
}
.accent {
  width: 38px;
  height: 3px;
  margin: 16px 0 0;
  border: 0;
  background: var(--signal);
}
.lead {
  margin: 18px 0 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}
.meta {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ash);
}
h2 + .meta {
  margin-top: 0;
}

/* ── Numbered section header: signal mono index + Archivo Black title ── */
section {
  margin-top: 44px;
}
h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 7px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  /* Archivo Black's word space is narrow; "In English" read as one word. */
  word-spacing: 0.08em;
  color: var(--ink);
}
h2 .index {
  flex: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--signal);
}
h3 {
  margin: 28px 0 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  word-spacing: 0.08em;
  color: var(--ink);
}

p {
  margin: 0 0 12px;
}
strong {
  font-weight: 600;
  color: var(--ink);
}
ul {
  margin: 0 0 12px;
  padding-left: 20px;
  list-style: square;
}
li {
  margin-bottom: 6px;
}
li::marker {
  color: var(--ink);
}
code,
.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.875em;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--signal);
}
a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* Feature rows — hairline-ruled list in place of cards */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rows li {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.rows li:last-child {
  border-bottom: 0;
}
.rows b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

/* Impressum provider block — kept to the text of pocket-pets/app/legal.tsx */
address {
  font-style: normal;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}
.provider p {
  margin: 0 0 6px;
}
.provider .provider-name {
  margin-bottom: 6px;
}

/* Language switch — two square chips, the active one filled ink */
.lang {
  display: flex;
  gap: 0;
  margin: 22px 0 0;
}
.lang a,
.lang span {
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
}
.lang a + span,
.lang span + a {
  border-left: 0;
}
.lang span {
  background: var(--ink);
  color: var(--paper);
}

/* Vet disclaimer — the one block that must not be missable (as in the app) */
.notice {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
}
.notice .label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--signal);
}

.footer {
  margin-top: 64px;
  padding: 12px 0 32px;
  border-top: 1.5px solid var(--ink);
  font-size: 13px;
  color: var(--ash);
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 4px;
}
.footer a {
  color: var(--ash);
}
.footer a:hover {
  color: var(--signal);
}
