/* snowtrail.app. Always light: the page is fresh snow, like the app's setup screen.
   Layout depends on width only. The trail art sits in the flow, never behind text. */
:root {
  --snow: #cbd0e4;      /* the plain snow in the download page art */
  --ink: #15212b;
  --muted: #46525e;
  --rule: rgba(21, 33, 43, 0.14);
  --link: #0a55b5;
  --button: #0a66d8;
  --button-hover: #0858bb;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 var(--gutter);
  background: var(--snow);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--link); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

.top { padding: 24px 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}
.brand img { display: block; width: 32px; height: 32px; }

/* Home */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(32px, 6vw, 96px);
  padding: clamp(24px, 6vw, 72px) 0;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  margin: 1rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
}

.download {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 0.6rem;
  background: var(--button);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.download:hover { background: var(--button-hover); }
.download:focus-visible { outline-offset: 3px; border-radius: 0.6rem; }

.facts {
  margin: 3rem 0 0;
  padding: 0;
  max-width: 32rem;
  list-style: none;
  color: var(--muted);
}
.facts li { padding: 0.75rem 0; border-top: 1px solid var(--rule); }

.intro { max-width: 38rem; }
.trail { justify-self: center; }
.trail img {
  display: block;
  width: clamp(150px, 18vw, 250px);
  height: auto;
}

/* Narrow: one column, the trail walks across under the words. */
@media (max-width: 699px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .trail { justify-self: stretch; margin-top: 2.5rem; }
  .trail img { width: 100%; max-width: 30rem; margin: 0 auto; }
}

/* Privacy, Security, 404: one readable column for the whole page. */

body.legal { max-width: calc(42rem + 2 * var(--gutter)); }

main.legal {
  padding: clamp(8px, 3vw, 32px) 0 48px;
  line-height: 1.6;
}
main.legal h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); margin-bottom: 0.5rem; }
main.legal h2 { margin: 2.5rem 0 0.5rem; font-size: 1.3rem; line-height: 1.3; }
main.legal h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1rem; }
main.legal :is(p, ul, ol) { margin: 0 0 1rem; }
main.legal :is(ul, ol) { padding-left: 1.25rem; }
main.legal li + li { margin-top: 0.35rem; }

/* Footer */

.bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}
.bottom a { color: var(--muted); text-decoration: none; }
.bottom a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .download { transition: background-color 120ms ease-out; }
}
