/* Wynni's pages: the privacy policy, the terms of use and the support page (Legal.swift has their
   addresses). The Garden palette from design/tokens.json, Day and Night; the app's own fonts, served
   from here so no page loads anything from anyone else. */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/YoungSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --sage: #F4F6F0;
  --paper: #FFFFFF;
  --ink: #16241E;
  --ink-muted: #4A5A52;
  --pine: #24493D;
  --line: #DDE3D6;
  --apricot: #F2A65A;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sage: #0F1C24;
    --paper: #182A33;
    --ink: #F3EEDF;
    --ink-muted: #B7BDB1;
    --pine: #93C7B2;
    --line: #233540;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
}

main, header, footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  main, header, footer { padding: 0 16px; }
  body { font-size: 16px; }
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 32px;
}
header img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
header a {
  font-family: "Young Serif", Georgia, serif;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

h1, h2, h3 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: 40px; margin: 40px 0 8px; }
h2 { font-size: 26px; margin: 48px 0 12px; }
h3 { font-size: 20px; margin: 32px 0 8px; }
@media (max-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 23px; }
}

p, li { text-wrap: pretty; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
strong { font-weight: 600; }

a { color: var(--pine); text-underline-offset: 3px; }

.updated { color: var(--ink-muted); margin-top: 0; }

.lead {
  font-size: 19px;
  color: var(--ink);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 24px;
  margin: 24px 0;
}
.card ul { margin: 16px 0; }

.qa h3 { margin-bottom: 4px; }
.qa p { margin-top: 0; }

.path {
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 48px;
  color: var(--ink-muted);
  font-size: 15px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--ink-muted); }
