/* The app's own look: Gallery greys, graphite ink, one red dot. Each colour is the app's (Besti/Theme.swift). */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #EDEEEE;
  --surface: #FFFFFF;
  --ink: #1B1F23;
  --muted: #555C63;
  --line: #D3D6D8;
  --hunt: #D8392B;
  /* Besti's body: white in the light, and in the dark the page itself with a pale line round it. */
  --besti: #FFFFFF;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141719;
    --surface: #1E2326;
    --ink: #ECEEEE;
    --muted: #A3ABB1;
    --line: #30363B;
    --besti: #141719;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.page { max-width: 720px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* The line across the top: who this is, and the three pages. */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.top .who { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.top .who svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 7vw, 46px); letter-spacing: -0.01em; }
h2 { font-size: 23px; margin-top: 44px; }
h3 { font-size: 17px; font-weight: 600; margin: 26px 0 0; }
p, ul { margin: 12px 0 0; }
ul { padding-left: 22px; }
li + li { margin-top: 6px; }
.quiet { color: var(--muted); }
.small { font-size: 15px; }

/* The home page's opening: Besti, its name, and what it is. */
.hello { padding: 56px 0 8px; text-align: center; }
.hello svg { width: 132px; height: 132px; }
.hello h1 { margin-top: 10px; font-size: clamp(46px, 11vw, 64px); }
.hello .under { font-family: "Fraunces", Georgia, serif; font-size: 21px; color: var(--muted); margin-top: 4px; }
.hello .what { max-width: 520px; margin: 22px auto 0; }
.soon {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px;
}
.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--hunt); }

/* What the app does, a row for each part of it. */
.rows { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 116px 1fr; gap: 16px; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--line); }
.rows b { font-weight: 600; }
@media (max-width: 480px) { .rows li { grid-template-columns: 1fr; gap: 2px; } }

/* A page of words: the privacy policy, support. */
.words { padding: 44px 0 0; }
.words .dated { margin-top: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-top: 24px; }
.card p:first-child, .card ul:first-child { margin-top: 0; }

.foot { margin-top: 64px; padding: 22px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.55; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.foot p { margin-top: 8px; }
