/* The app's own look: paper, ink outlines with a hard offset shadow, the
   yellow, Bricolage Grotesque for headings. Self-hosted, no external hosts. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: #f2f0ea;
  --card: #ffffff;
  --ink: #17130f;
  --muted: #5a5650;
  --rule: #d9d5cc;
  --accent: #ffd23f;
  --on-accent: #17130f;
  --shadow: 5px 5px 0 var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130f;
    --card: #201c17;
    --ink: #f2eee6;
    --muted: #b9b2a7;
    --rule: #3b352e;
    --shadow: 5px 5px 0 #000;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
h1, h2, .sticker, .button {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

/* header */
.top {
  max-width: 62rem;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand img { display: block; height: 30px; width: auto; }
.top nav { display: flex; gap: 18px; align-items: center; font-size: 0.95rem; font-weight: 600; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.top nav .lang {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 12px;
}

main { max-width: 62rem; margin: 0 auto; padding: 0 20px 48px; }

/* landing */
.hero { padding: 36px 0 28px; max-width: 46rem; }
.sticker {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.3rem, 8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero mark {
  background: var(--accent);
  color: var(--on-accent);
  padding: 0 0.12em;
  border-radius: 0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.cards {
  list-style: none;
  margin: 8px 0 40px;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(13.4rem, 1fr));
}
.cards li {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
}
.cards .n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--ink);
  font: 800 1rem "Bricolage Grotesque", system-ui, sans-serif;
  margin-bottom: 10px;
}
.cards h2 { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.2; }
.cards p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.status {
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px 24px 26px;
  max-width: 46rem;
}
.status h2 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; }
.status p { margin: 0 0 16px; }
.button {
  display: inline-block;
  background: #17130f;
  color: #f2eee6;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.button:hover { text-decoration: underline; }

/* app screenshots */
.shots { margin: 0 0 40px; }
.shots h2 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; margin: 0 0 16px; }
.shots ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.shots figure { margin: 0; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: var(--card);
}
.shots figcaption {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 14px;
}

/* legal pages */
.doc {
  max-width: 44rem;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 8px 24px 24px;
  margin-top: 16px;
}
.doc h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 800; line-height: 1.1; margin: 22px 0 10px; }
.doc h2 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 6px; }
.doc p { margin: 0 0 12px; overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: 0.9rem; }

footer {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .doc { padding: 4px 18px 20px; }
  .cards li, .status { box-shadow: 4px 4px 0 var(--ink); }
}
