/* Cake O’Clock — shared styles for the support and privacy pages.
   No web fonts, no images, nothing loaded from anywhere else. */

:root {
  color-scheme: light dark;
  --bg: #fbf8f6;
  --text: #1c1a19;
  --muted: #5d5652;
  --accent: #c42b45;      /* the app’s accent color (light) */
  --on-accent: #ffffff;
  --accent-soft: #fcecee;
  --line: #e8e0db;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141213;
    --text: #f3eeeb;
    --muted: #b8afaa;
    --accent: #ff7a85;    /* the app’s accent color (dark) */
    --on-accent: #141213;
    --accent-soft: #2e1d20;
    --line: #3a3334;
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Header: name and language switcher */

.site {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.5rem;
}

.brand {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand a { color: inherit; text-decoration: none; }

.langs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.langs li { margin: 0; }

.langs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}

.langs a:hover { background: var(--accent-soft); }

@media (min-width: 40rem) {
  .site { position: sticky; top: 0; z-index: 1; }
  main > section { scroll-margin-top: 4rem; }
}

/* Content */

main > section { padding-block: 2.5rem 3rem; }
main > section + section { border-top: 1px solid var(--line); }

.kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 1.35rem + 2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.25;
}

h4 {
  margin: 1.75rem 0 0.35rem;
  font-size: 1.0625rem;
  line-height: 1.35;
}

p { margin: 0 0 0.85rem; }

.lede { font-size: 1.1875rem; }

.meta { color: var(--muted); font-size: 0.9375rem; }

ul, ol { margin: 0 0 0.85rem; padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }
li::marker { color: var(--accent); }

b { font-weight: 600; }

.arr { color: var(--muted); }

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* The four promises */

.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.promises li {
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.promises h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.promises p { margin: 0; }

.promises h4::before {
  content: "✓";
  content: "✓" / "";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.875rem;
}

.summary {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary h3 { margin-top: 0; }
.summary .promises { margin-bottom: 0.75rem; }

.more { margin-top: 2.5rem; font-weight: 600; }

/* Footer */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-foot p { margin: 0; }

@media print {
  .site { position: static; }
  .langs { display: none; }
  main > section { break-before: page; }
  main > section:first-child { break-before: auto; }
}
