/*
 * WhistKit's public pages: privacy policy and account deletion (11.1).
 *
 * The colours are the app's own (§3.1 of the implementation plan) so the pages read as part of the
 * same product. The heading font is served from here rather than from Google Fonts: a privacy page
 * that sends every visitor's address to a third party before they have read a word would be an odd
 * way to start.
 */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif.ttf") format("truetype");
  font-display: swap;
}

:root {
  --primary: #006a6d;
  --on-primary: #ffffff;
  --primary-container: #9cf1f4;
  --on-primary-container: #002021;
  --tertiary-container: #ffdadb;
  --on-tertiary-container: #400012;
  --surface: #f4fafa;
  --surface-container: #e9efee;
  --on-surface: #161d1d;
  --on-surface-variant: #3f4949;
  --outline-variant: #bec9c9;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #80d4d8;
    --on-primary: #003739;
    --primary-container: #004f52;
    --on-primary-container: #9cf1f4;
    --tertiary-container: #7d2b31;
    --on-tertiary-container: #ffdadb;
    --surface: #0e1414;
    --surface-container: #1a2121;
    --on-surface: #dde4e3;
    --on-surface-variant: #bec9c9;
    --outline-variant: #3f4949;
  }
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main,
.site-header,
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-surface);
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

h1,
h2 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  margin: 32px 0 4px;
  font-size: 2rem;
}

h2 {
  margin: 40px 0 8px;
  font-size: 1.4rem;
}

h3 {
  margin: 24px 0 4px;
  font-size: 1.05rem;
}

.meta {
  margin: 0 0 24px;
  color: var(--on-surface-variant);
  font-size: 0.9rem;
}

a {
  color: var(--primary);
  text-underline-offset: 2px;
}

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

li + li {
  margin-top: 6px;
}

.card {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface-container);
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card.highlight {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.card.highlight a {
  color: inherit;
}

.card.warning {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}

.card.highlight .button {
  color: var(--on-primary);
}

dl {
  margin: 0;
}

dt {
  margin-top: 16px;
  font-weight: 600;
}

dd {
  margin: 2px 0 0;
}

code {
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: 56px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
  font-size: 0.9rem;
}

.site-footer a {
  color: inherit;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}
