/* Generated by scripts/deploy_site.py from app/src/tokens.ts. */
:root {
  color-scheme: light dark;
  --color-primary: #b84a2b;
  --color-primary-strong: #9e3e24;
  --color-primary-subtle: #f6e3db;
  --color-secondary: #3f5a44;
  --color-secondary-subtle: #e4ebe2;
  --color-success: #3f5a44;
  --color-success-subtle: #e4ebe2;
  --color-bg: #faf5ee;
  --color-surface: #ffffff;
  --color-surface-sunken: #f3ece2;
  --color-ink: #2b2420;
  --color-ink-soft: #6b615a;
  --color-ink-faint: #9a8f86;
  --color-border: #e6dcd0;
  --color-border-strong: #cdbfb0;
  --color-warn: #c98a2d;
  --color-warn-subtle: #f7ecd9;
  --color-danger: #a4433b;
  --color-danger-subtle: #f5e2e0;
  --color-info: #52708c;
  --color-info-subtle: #e5ebf1;
}
@media (prefers-color-scheme: dark) {
:root {
  --color-primary: #d97a56;
  --color-primary-strong: #e79374;
  --color-primary-subtle: #45281d;
  --color-secondary: #8fac91;
  --color-secondary-subtle: #27312a;
  --color-success: #8fac91;
  --color-success-subtle: #27312a;
  --color-bg: #211b16;
  --color-surface: #2c251f;
  --color-surface-sunken: #191410;
  --color-ink: #f2ebe2;
  --color-ink-soft: #b4a89c;
  --color-ink-faint: #90847a;
  --color-border: #3e352c;
  --color-border-strong: #57493c;
  --color-warn: #dfa24f;
  --color-warn-subtle: #3b2d16;
  --color-danger: #dd8579;
  --color-danger-subtle: #43231f;
  --color-info: #8fadc9;
  --color-info-subtle: #242f3a;
}
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_400Regular_Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/*
 * The site's stylesheet: the privacy policy, the terms and the page that
 * links them (scripts/deploy_site.py). The build prepends the palette, read
 * from app/src/tokens.ts as `--color-*` custom properties (light, and dark
 * when the phone asks), and the @font-face rules for the app's own bundled
 * Fraunces and Inter -- so no colour and no font is restated here.
 *
 * The voice is the app's: Fraunces for titles, Inter for reading, terracotta
 * for every link (action), herb green and terracotta for the wordmark, ink
 * on warm cream, and nothing that shouts.
 */

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

header,
main,
footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.wordmark {
  display: block;
  width: 7.5rem;
  height: auto;
}

.wordmark-word {
  fill: var(--color-secondary);
}

.wordmark-leaf {
  fill: var(--color-primary);
}

/* On the dark ground the mark takes its one-ink reduction (brand.md, *A marca*). */
@media (prefers-color-scheme: dark) {
  .wordmark-leaf {
    fill: var(--color-secondary);
  }
}

h1,
h2,
h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-ink);
}

h1 {
  font-size: 1.75rem;
  margin: 1rem 0 0.5rem;
}

h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.375rem;
}

strong {
  font-weight: 600;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-primary-strong);
}

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

a.home {
  display: inline-block;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  background: var(--color-surface-sunken);
  border-radius: 4px;
  padding: 0.1em 0.3em;
}

/*
 * The one blockquote is the policy's §3, the consent to process health and
 * belief data: the "destacado" art. 11, I asks for rests on it being seen.
 */
blockquote {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.25rem 0.25rem;
  background: var(--color-primary-subtle);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
}

.table {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  font-weight: 600;
  background: var(--color-surface-sunken);
}

.tagline {
  font-size: 1.125rem;
  color: var(--color-ink-soft);
}

nav ul {
  list-style: none;
  padding: 0;
}

nav li {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.375rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

footer li + li {
  margin-top: 0;
}

/*
 * A phone has no room for four columns: each row becomes a card, and each
 * cell carries its column's name above it (the build writes `data-label`).
 */
@media (max-width: 40rem) {
  .table {
    border: 0;
    background: none;
    overflow: visible;
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tr {
    display: block;
    margin: 0 0 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
  }

  td {
    display: block;
    padding: 0.5rem 0.875rem;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-ink-soft);
  }

  tr:last-child td {
    border-bottom: 1px solid var(--color-border);
  }

  td:last-child,
  tr:last-child td:last-child {
    border-bottom: 0;
  }
}
