/*
 * donsy.kodeworks.be: calm like the app. Neutral background, colour only as small accents (the tab
 * pastels), system fonts, no external resources. Always light, like the app's look.
 */
:root {
  --bg: #fbfafd;
  --surface: #ffffff;
  --band: #ecebf2;
  --text: #1b1b21;
  --muted: #4b4b55;
  --line: #d6d4de;
  --accent: #2f6b5f;
  --link: #2f5f8c;
  --mint: #cdeedd;
  --lavender: #e4dcfa;
  --peach: #ffe1d1;
  --sky: #d3e8f8;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.lang {
  font-size: 0.95rem;
}

.lang [aria-current="page"] {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

h1 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.2;
  margin: 1.5rem 0 0.75rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--band);
  border-radius: 8px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.availability {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.features li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.features h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.features p {
  margin: 0;
  color: var(--muted);
}

/* A pastel circle behind each icon, as next to each tab's title in the app. */
.dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
}

.dot svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mint { background: var(--mint); }
.lavender { background: var(--lavender); }
.peach { background: var(--peach); }
.sky { background: var(--sky); }

.checks {
  padding-left: 1.25rem;
  margin: 0;
}

.checks li + li {
  margin-top: 0.4rem;
}

.policy h2 {
  margin-top: 2rem;
}

.policy .updated {
  color: var(--muted);
}

footer.site {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Three app screenshots below the intro. On a narrow screen the row scrolls sideways on its own,
 * with the next screenshot peeking in so it is clear there is more. */
.screens {
  list-style: none;
  padding: 0 0 0.5rem;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(min(60vw, 13rem), 1fr));
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.screens:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.screens li {
  scroll-snap-align: center;
}

.screens figure {
  margin: 0;
}

.screens img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.screens figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}
