/* Voice Heritage website: the "Keepsake" look (DECISIONS D24).
   No JavaScript, no cookies, no requests to other websites.
   Fonts are served from this site (SIL Open Font License, see fonts/). */

@font-face {
  font-family: 'Lora';
  src: url('fonts/Lora_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/SourceSans3_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/SourceSans3_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F7F1E8;
  --card: #FFFDF9;
  --text: #2A211C;
  --muted: #665850;
  --border: #E6DACB;
  --accent: #A6461F;
  --on-accent: #FFFFFF;
  --chip: #EFE6DA;
  --chip-text: #4F433B;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1C1714;
    --card: #27201C;
    --text: #F4EDE6;
    --muted: #C9BBB0;
    --border: #3A302A;
    --accent: #E8956B;
    --on-accent: #1C1714;
    --chip: #342A24;
    --chip-text: #E3D6CB;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1.25rem; /* 20 px, as in the app: large, for older eyes */
  line-height: 1.55;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

h1, h2 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-weight: 600; /* medium, never heavy bold */
  line-height: 1.2;
  margin: 0 0 1rem;
}
h1 { font-size: 2.4rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin-top: 0; }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; }

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  text-decoration: none;
  color: var(--text);
}
.brand svg { flex-shrink: 0; }
.brand span {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.4rem;
}

.lead {
  font-size: 1.4rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.chip {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--chip-text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.9rem 1.4rem;
  min-height: 3.75rem;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

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

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1.1rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--muted);
}
footer a { margin-right: 1.25rem; }

@media (max-width: 30rem) {
  h1 { font-size: 2rem; }
  .page { padding-top: 2rem; }
}
