/* aes.mixxystudios.com — one stylesheet for every page. Monochrome, like the
   app icon: warm off-white and near-black, with links told apart by their
   underline rather than a colour. */

:root {
  --bg: #fbfbf8;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --rule: #e4e4df;
  --underline: #b9b9b2;
  --icon-shadow: 0 8px 24px rgb(0 0 0 / 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --text: #f2f2ee;
    --muted: #9a9a9f;
    --rule: #2c2c2c;
    --underline: #5d5d5a;
    --icon-shadow: 0 8px 24px rgb(0 0 0 / 0.5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

header.site,
main,
footer.site {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header and footer */

header.site {
  padding-top: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

footer.site {
  margin-top: 64px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

footer.site a {
  color: inherit;
}

footer.site p {
  margin: 8px 0 0;
}

/* Text */

main {
  padding-top: 40px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.02em;
}

/* "Last updated", straight under the policy's title. */
h1 + p {
  margin-top: 0;
  color: var(--muted);
  font-size: 15px;
}

h2 {
  margin: 48px 0 12px;
  font-size: 22px;
}

h3 {
  margin: 32px 0 8px;
  font-size: 18px;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 6px;
}

li > ul {
  margin-top: 6px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

strong {
  font-weight: 600;
}

/* Section links land with a little room above them. */
[id] {
  scroll-margin-top: 24px;
}

/* Home */

.hero {
  padding: 24px 0 16px;
  text-align: center;
}

.app-icon {
  display: block;
  margin: 0 auto 20px;
  border-radius: 25px;
  box-shadow: var(--icon-shadow);
}

.hero h1 {
  font-size: 40px;
}

.hero .lede {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.hero + section {
  margin-top: 32px;
}

main > section h2 {
  margin-top: 40px;
}

@media (max-width: 480px) {
  main {
    padding-top: 28px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    margin-top: 40px;
    font-size: 20px;
  }
}
