/* Colors from the app's tokens (src/theme/tokens.ts). System fonts only: nothing is fetched. */
:root {
  color-scheme: light dark;
  --bg: #fff7f0;
  --surface: #ffffff;
  --surface2: #fcede2;
  --text: #2b1e17;
  --text2: #7a675b;
  --border: #f0e4da;
  --primary: #1f6f6b;
  --primary-tint: #e3f1ef;
  --care: #6b4e0e;
  --care-bg: #fff1d6;
  --blob: #fce3d3;
  --mascot-ink: #3a2a22;
  --mascot-blush: #e98aa0;
  --milk: #5a51c7;
  --milk-tint: #efedff;
  --food: #8f620f;
  --food-tint: #fff1d6;
  --move: #2a7d4f;
  --move-tint: #e3f5ea;
  --base: #86695a;
  --base-tint: #f4ece6;
  --todo-bg: #ffd84d;
  --todo-text: #2b1e17;
  --shadow: 0 2px 10px rgba(43, 30, 23, 0.07);
  --display: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --body: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1411;
    --surface: #251d18;
    --surface2: #30261f;
    --text: #fbefe6;
    --text2: #c2afa2;
    --border: #3d3129;
    --primary: #5fc4b8;
    --primary-tint: #1f3a37;
    --care: #f6e3b8;
    --care-bg: #3a2e17;
    --blob: #2a1f1a;
    --mascot-ink: #fbefe6;
    --mascot-blush: #f4a5b8;
    --milk: #b3aeff;
    --milk-tint: #2c2550;
    --food: #f2c060;
    --food-tint: #3a2e17;
    --move: #7adba3;
    --move-tint: #1e3326;
    --base: #c2afa2;
    --base-tint: #3d2a22;
    --todo-bg: #f2c060;
    --shadow: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-wrap: break-word;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}
p,
ul,
ol {
  margin: 0;
}
a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999rem;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  border-radius: 11px;
}

/* Header and footer */
.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font: 700 1.375rem/1 var(--display);
}
.brand .mascot {
  width: 2.25rem;
  height: 2.25rem;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.mascot .ink {
  stroke: var(--mascot-ink);
}
.mascot .blush {
  stroke: var(--mascot-blush);
}

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text2);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-bottom: 0.75rem;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}
.site-footer address {
  font-style: normal;
  margin-top: 0.5rem;
}

/* Reading pages: support, delete account, legal */
main.page {
  max-width: 44rem;
  padding-top: 1.5rem;
}
main.page h1 {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.375rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.prose,
.legal {
  max-width: 70ch;
}
.prose > * + *,
.legal > * + * {
  margin-top: 1rem;
}
.prose h2,
.legal h2 {
  font-size: 1.4375rem;
  margin-top: 2.5rem;
}
.prose h3 {
  font: 800 1.0625rem/1.3 var(--body);
  margin-top: 1.5rem;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}
.prose li + li {
  margin-top: 0.4rem;
}

.legal {
  line-height: 1.7;
}
.legal a {
  overflow-wrap: anywhere;
}
.legal :target {
  background: var(--primary-tint);
  box-shadow: 0 0 0 0.4rem var(--primary-tint);
  border-radius: 2px;
}
.legal ol.sub {
  list-style: none;
  padding-left: 1rem;
}
.legal ol.sub li {
  display: flex;
  gap: 0.6rem;
}
.legal ol.sub li + li {
  margin-top: 0.75rem;
}
.legal ol.sub .marker {
  flex: none;
  min-width: 1.6rem;
  color: var(--text2);
}
.legal ol.sub li > span:last-child {
  min-width: 0;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  line-height: 1.4;
}
.legal .toc h2 {
  font: 800 0.8125rem/1.2 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
  margin: 0 0 0.25rem;
}
.toc ol {
  list-style: none;
  padding: 0;
}
.toc a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
}
.toc li + li {
  border-top: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.85rem;
}
th {
  background: var(--surface2);
  font-weight: 800;
}
tbody tr + tr td {
  border-top: 1px solid var(--border);
}

mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0.05em 0.25em;
  border-radius: 4px;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.draft-banner {
  background: var(--care-bg);
  color: var(--care);
  border: 2px dashed currentColor;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

.notfound {
  text-align: center;
  margin: 2rem auto 0;
}
.notfound .mascot {
  width: 7rem;
  height: 7rem;
}

/* Landing page */
main.home > * + * {
  margin-top: 3rem;
}
main.home h2 {
  font-size: 1.625rem;
  margin-bottom: 1rem;
}
.hero {
  display: grid;
  gap: 1.25rem;
  padding-top: 1rem;
  /* On a phone the picture, the title and the lines under it sit in the middle. */
  justify-items: center;
  text-align: center;
}
.hero-art {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  background: var(--blob);
  display: grid;
  place-items: center;
}
.hero-art .mascot {
  width: 7.5rem;
  height: 7.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 1.35rem + 3.2vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  margin-top: 1rem;
  max-width: 36rem;
}
.stores {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.6rem 1rem;
  border-radius: 16px;
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.35;
}
@media (min-width: 48rem) {
  .hero {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
    text-align: left;
    gap: 3rem;
    padding-top: 2.5rem;
  }
  .hero-art {
    order: 2;
    width: 17rem;
    height: 17rem;
  }
  .hero-art .mascot {
    width: 13.5rem;
    height: 13.5rem;
  }
}

.care {
  background: var(--care-bg);
  color: var(--care);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 46rem;
}
main.home > .care {
  margin-top: 2rem;
}
.care p + p {
  margin-top: 0.6rem;
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 44rem) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.features h3 {
  font-size: 1.25rem;
  margin: 0.75rem 0 0.5rem;
}
.features p + p {
  margin-top: 0.6rem;
}
.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.5;
}
.tag-milk {
  background: var(--milk-tint);
  color: var(--milk);
}
.tag-food {
  background: var(--food-tint);
  color: var(--food);
}
.tag-base {
  background: var(--base-tint);
  color: var(--base);
}
.tag-move {
  background: var(--move-tint);
  color: var(--move);
}

.plans {
  display: grid;
  gap: 0.75rem;
  max-width: 30rem;
  margin-bottom: 1rem;
}
@media (min-width: 30rem) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow);
}
.plan span {
  display: block;
  color: var(--text2);
  font-size: 0.875rem;
  font-weight: 700;
}
.plan strong {
  font: 700 1.375rem/1.3 var(--display);
}

@media print {
  .site-header nav,
  .skip {
    display: none;
  }
}

/* Short lists on the landing page, in place of paragraphs. */
.points {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 46rem;
  display: grid;
  gap: 0.6rem;
}
.points li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.5;
}
.points li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--primary);
}
.points + p,
.points + .points-label,
p + .points {
  margin-top: 1rem;
}
.points-label {
  font-weight: 700;
}
.features .note {
  font-size: 0.9375rem;
  opacity: 0.85;
}
