/* The app's own palette (lib/theme.dart). The screenshots are the colour;
   vermilion only ever marks what a search found. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --panel: #f6f6f4;
  --tile: #e7e6e2;
  --track: #dad9d4;
  --text: #18181a;
  --muted: #6d6c68;
  --shu: #e0531f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --panel: #141416;
    --tile: #222226;
    --track: #3a3a3f;
    --text: #ecebe7;
    --muted: #9b9a95;
    --shu: #ff7438;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--panel);
  color: var(--text);
  font: 400 17px/1.6 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 680px; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Top bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.bar nav { display: flex; gap: 20px; font-size: 15px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--text); }

/* Home */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 56px;
  align-items: center;
  padding: 56px 0 72px;
}
h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 20px;
  text-wrap: balance;
}
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.button {
  display: inline-block;
  background: var(--text);
  color: var(--panel);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
}
.button:hover { opacity: 0.86; }
.fine { font-size: 15px; color: var(--muted); margin: 18px 0 0; }

/* A search and what it finds, drawn the way the app shows it: the lines
   that matched stay lit and carry the mark, the rest are dimmed. */
.found {
  background: var(--tile);
  border-radius: 20px;
  padding: 20px;
}
.query {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 16px;
}
.query svg { flex: none; color: var(--muted); }
.lines { list-style: none; margin: 16px 0 0; padding: 0; font-size: 15px; }
.lines li {
  padding: 7px 0 7px 14px;
  border-left: 3px solid transparent;
  color: var(--muted);
  opacity: 0.6;
}
.lines li.hit { border-left-color: var(--shu); color: var(--text); opacity: 1; }
.lines mark { background: none; color: var(--shu); font-weight: 600; }
.found figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}
.shots img { width: 100%; height: auto; display: block; border-radius: 14px; }

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 56px 0;
  border-top: 1px solid var(--track);
}
h2 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 12px; }
.columns p, .columns ul { margin: 0; color: var(--muted); }
.columns ul { padding-left: 18px; }
.columns li + li { margin-top: 6px; }

.notice {
  border-top: 1px solid var(--track);
  padding: 40px 0;
  color: var(--muted);
}
.notice p { margin: 0; max-width: 46em; }
.notice strong { color: var(--text); font-weight: 600; }

/* Policy and support pages */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 40px); margin-bottom: 8px; }
.doc .dated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { margin: 36px 0 8px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc strong { font-weight: 600; }

footer {
  border-top: 1px solid var(--track);
  padding: 28px 0 48px;
  font-size: 15px;
  color: var(--muted);
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
footer p { margin: 0; max-width: 46em; }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 32px 0 56px; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 56px; }
}
@media (max-width: 420px) {
  .page { padding: 0 16px; }
  .bar nav { gap: 14px; }
}
