/* Brand colours from docs/brand.md. System fonts only: the site loads nothing from third parties.
   The dark theme is our own: every page also declares <meta name="color-scheme"> and <meta name="darkreader-lock">. */
:root {
  color-scheme: light dark;
  --paper: #F6EFE3;
  --ink: #1F1B24;
  --vermilion: #E0432B;
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5C5560;
  --accent: #B8331F;
  --line: #E4D6BF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --fg: var(--paper);
    --muted: #B7AFA6;
    --accent: #F07A63;
    --line: #342E38;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans SC", sans-serif;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1, h2, .brand {
  font-family: "Iowan Old Style", Georgia, "Noto Serif", "Noto Serif SC", serif;
  line-height: 1.25;
}

h1 { font-size: 2.25rem; margin: 1.5rem 0 0.25rem; }
h2 { font-size: 1.375rem; margin: 2.25rem 0 0.5rem; }

/* Hanzi are Kai (brush) where the system has a Kai font, like in the app. */
:lang(zh-Hans) {
  font-family: "LXGW WenKai", "LXGW WenKai SC", "Kaiti SC", STKaiti, KaiTi, "AR PL UKai CN", "Noto Serif SC", serif;
}

a { color: var(--accent); }
.brand { margin: 0; font-weight: 700; font-size: 1.25rem; }
.brand a { color: var(--fg); text-decoration: none; }
.meta { color: var(--muted); margin-top: 0; }
.lead { font-size: 1.125rem; }
.address { padding-left: 1rem; border-left: 3px solid var(--vermilion); }
li + li { margin-top: 0.5rem; }
code { font-size: 0.95em; }

/* The seal: vermilion on paper, inner frame, pressed by hand (tilted). */
.seal {
  display: inline-grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.25rem;
  background: var(--vermilion);
  color: var(--paper);
  outline: 2px solid var(--paper);
  outline-offset: -0.5rem;
  font: 900 3.25rem/1 "Noto Serif SC", "Songti SC", STSong, serif;
  transform: rotate(-7deg);
}

/* Landing page: stacked on phones, text beside the screenshot on wider screens. */
.home {
  max-width: 60rem;
  padding-top: 12vh;
  text-align: center;
  display: grid;
  gap: 2.5rem;
  justify-items: center;
}
.home h1 { font-size: 3rem; margin: 1.5rem 0 0; }
.tagline { color: var(--muted); font-size: 1.25rem; margin: 0.25rem 0 0; }
.home .lead { font-size: 1.25rem; margin: 1.5rem auto 0; max-width: 26rem; text-wrap: balance; }
.nowrap { white-space: nowrap; }

.cta {
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
/* Google's official badge, unmodified; clear space of at least a quarter of its height. */
.badge { display: inline-block; padding: 0.875rem; margin: -0.875rem; border-radius: 1rem; }
.badge img { display: block; height: 3.5rem; width: auto; }
.badge:focus-visible { outline: 2px solid var(--fg); outline-offset: -0.5rem; }
.note { color: var(--muted); font-size: 0.9375rem; }

.shot img {
  display: block;
  width: 100%;
  max-width: 17rem;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
}

.about { max-width: 34rem; text-align: left; }
.points { margin: 0; padding-left: 1.25rem; }
.points li::marker { color: var(--vermilion); }

footer {
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer .legal {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
}

@media (min-width: 52rem) {
  .home {
    grid-template-columns: 1fr auto;
    grid-template-areas: "intro shot" "about shot";
    align-items: start;
    column-gap: 4rem;
    row-gap: 2rem;
    justify-items: start;
    text-align: left;
    padding-top: 10vh;
  }
  .intro { grid-area: intro; }
  .about { grid-area: about; }
  .shot { grid-area: shot; }
  .shot img { max-width: 19rem; }
  .home .lead { margin-left: 0; }
  .cta { align-items: flex-start; }
}
