/* Shared look for every page (same colours and type as the home page). */
:root { color-scheme: light dark; --bg: #ffffff; --text: #1a1a1a; --muted: #5f6368; --rule: #e3e3e3; --brand: #001238; }
@media (prefers-color-scheme: dark) { :root { --bg: #121212; --text: #ececec; --muted: #a0a0a0; --rule: #2e2e2e; --brand: #FFFFFF; } }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 0 16px;
}
main { max-width: 38rem; margin: 0 auto; }
h1 { font-size: 2rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin: 0 0 .35rem; }
a { color: inherit; }
.muted { color: var(--muted); font-size: .95rem; }
.home { color: inherit; text-decoration: none; font-weight: 600; }

/* Centred on the screen (404 page). */
body.centered { min-height: 100vh; display: flex; flex-direction: column; }
body.centered main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 34rem; }

/* Home page (index.html). The page never scrolls sideways: only the
   screenshot strip does. */
html, body.home { overflow-x: clip; }
body.home main { max-width: 34rem; padding-top: 4vh; }
@font-face { font-family: "Nunito Wordmark"; font-weight: 800; font-display: swap; src: url(/nunito-wordmark.woff2) format("woff2"); }
/* The logo at the top centre, the app's name as text under it. */
.brand { direction: ltr; text-align: center; margin: 0 0 1.25rem; color: var(--brand); }
.brand .logo { display: block; height: 84px; width: auto; margin: 0 auto .5rem; }
.app-name { margin: 0; font: 800 2.6rem/1.1 "Nunito Wordmark", system-ui, sans-serif; letter-spacing: -.01em; }

/* The screenshot strip (generated block, store/make_screenshots.sh). */
.shots {
  max-width: 76rem; margin: 1.5rem auto 0; padding: 4px 0 12px;
  display: flex; gap: 20px; justify-content: safe center;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
}
.shots figure { flex: 0 0 auto; width: 200px; margin: 0; scroll-snap-align: center; }
.shots img { display: block; width: 100%; height: auto; }
.shots figcaption { color: var(--muted); font-size: .85rem; line-height: 1.35; text-align: center; margin-top: .6rem; }
@media (min-width: 700px) { .shots figure { width: 220px; } }
.shots-credit { text-align: center; font-size: .8rem; margin: .25rem auto 0; max-width: 38rem; }


/* Long pages (privacy, terms, delete account). */
.page header { max-width: 38rem; margin: 0 auto; padding: 1.5rem 0 1rem; }
.page main { padding-bottom: 1rem; }

footer {
  max-width: 38rem; margin: 2rem auto 0; padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem;
}
footer a { color: var(--muted); margin-right: 1rem; }

/* Home page: the language dropdown (website/site.js). */
.topbar { max-width: 76rem; margin: 0 auto; padding: 12px 0 0; display: flex; justify-content: flex-end; }
.topbar select {
  font: inherit; font-size: .9rem; color: var(--text); background-color: var(--bg);
  border: 1px solid var(--rule); border-radius: 8px; max-width: 100%;
  /* Our own arrow, with the same gap to the border on either side. */
  -webkit-appearance: none; appearance: none;
  padding: 6px 10px; padding-inline-end: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235f6368' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px 8px; background-position: right 10px center;
}
/* The dropdown stays at the top right in every language, so switching back is quick. */
[dir="rtl"] .topbar { justify-content: flex-start; }
[dir="rtl"] .topbar select { background-position: left 10px center; }
@media (prefers-color-scheme: dark) {
  .topbar select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a0a0a0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] footer a { margin-right: 0; margin-left: 1rem; }

/* Home page: the tagline under the name. */
.headline { font-size: 1.3rem; font-weight: 600; margin: 0 0 1rem; }

/* Contact form (contact.html, contact.js): opens the visitor's email app. */
.contact-form { margin: 1.5rem 0 1rem; display: flex; flex-direction: column; gap: .4rem; }
.contact-form label { font-weight: 600; font-size: .95rem; margin-top: .5rem; }
.contact-form select, .contact-form textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px;
  width: 100%; box-sizing: border-box;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form button {
  align-self: flex-start; margin-top: .75rem; font: inherit; font-weight: 600;
  color: var(--bg); background: var(--brand); border: 0; border-radius: 8px;
  padding: 10px 18px; cursor: pointer;
}
.contact-form .form-error { color: #b3261e; margin: 0; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .contact-form .form-error { color: #f2b8b5; } }

