/* Mosaic's site: one reading column, the loop as the opening picture, the
   colours of the icon (a dusk gradient) on the download button and the
   request for donations.
   System fonts only, so a visit fetches nothing from anyone but GitHub. */
:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --fg: #1d1b26;
  --muted: #5d5a68;
  --line: #e4ded6;
  --accent: #b0412c;
  --dusk: linear-gradient(100deg, #24408f 0%, #6a4cb3 35%, #c2508f 65%, #f08a3c 100%);
  --warn-bg: #fff4e2;
  --warn-line: #e6b763;
  --display: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12111a; --surface: #1b1a25; --fg: #ece9f2; --muted: #a29fae; --line: #2e2c3b;
    --accent: #f2967a; --warn-bg: #2a2214; --warn-line: #8a6a2a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12111a; --surface: #1b1a25; --fg: #ece9f2; --muted: #a29fae; --line: #2e2c3b;
  --accent: #f2967a; --warn-bg: #2a2214; --warn-line: #8a6a2a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--body);
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, video { max-width: 100%; display: block; }

.page {
  max-width: 980px;
  margin: 0 auto;
  padding-block: 40px 56px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.column { max-width: 680px; margin: 0 auto; width: 100%; min-width: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: 1.75rem; margin-bottom: 16px; }
h3 { font-size: 1.12rem; font-family: var(--body); font-weight: 650; }
p { margin: 0 0 14px; }

/* Opening: icon, name, line, download. */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero img.icon { width: 112px; height: 112px; }
.hero .line { font-family: var(--display); font-size: clamp(1.15rem, 2.6vw, 1.4rem); color: var(--muted); max-width: 34em; margin: 0; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font: 600 16px var(--body); text-decoration: none;
  border: 1px solid var(--line); color: var(--fg); background: var(--surface);
}
.button.primary { background: var(--dusk); color: #ffffff; border-color: transparent; }
.facts { font-size: 14px; color: var(--muted); margin: 0; }

.loop { border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 18px 50px rgba(20, 16, 40, 0.18); }
.loop video { width: 100%; height: 100%; object-fit: cover; }
.caption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }

/* Six features, two columns where they fit. */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; margin-top: 8px; }
.features div { min-width: 0; }
.features h3 { margin-bottom: 6px; }
.features p { color: var(--muted); margin: 0; font-size: 16px; }

ol.steps { padding-left: 1.3em; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.warning { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 16px 20px; }
.warning p:last-child { margin-bottom: 0; }

.small { font-size: 15px; color: var(--muted); }

/* The request for donations: the dusk again, without its orange end, so white text keeps its contrast. */
.support {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px; border-radius: 14px; color: #ffffff;
  background: linear-gradient(120deg, #24408f 0%, #6a4cb3 55%, #a3437f 100%);
  box-shadow: 0 18px 50px rgba(20, 16, 40, 0.18);
}
.support img { width: 88px; height: 88px; flex: none; }
.support h2 { margin-bottom: 10px; }
.support p { margin-bottom: 18px; }
.support .button { background: #ffffff; color: #24408f; border-color: transparent; }
.support .button:focus-visible { outline-color: #ffffff; }
@media (max-width: 560px) {
  .support { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
  .support img { width: 72px; height: 72px; }
}

footer { border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* The two short legal pages. */
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.legal .back { font-size: 15px; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: 6px 0; }

@media (prefers-reduced-motion: reduce) {
  .loop video { display: none; }
  .loop { background: center / cover no-repeat url("media/poster.jpg"); }
}
