/* BordeauxGo public site: privacy policy, support and beta landing page only.
 *
 * Hand-authored and deployed as-is (no build step). Shares the design tokens of
 * data/scripts/web_assets/app.css and docs/design-system.md: Baskervville, deep
 * Bordeaux red #5C0A1F, warm off-white #F5EFE6, muted gold #B8915A.
 */

@font-face {
  font-family: "Baskervville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/baskervville.ttf") format("truetype");
}

@font-face {
  font-family: "Baskervville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/baskervville-italic.ttf") format("truetype");
}

:root {
  color-scheme: light dark;
  --bg: #f5efe6;
  --surface: #fffbf7;
  --text: #2a2023;
  --text-muted: #6b5c5f;
  --brand: #5c0a1f;
  --gold: #b8915a;
  --border: rgba(92, 10, 31, 0.16);
  --focus: #5c0a1f;
  --font-body: "Baskervville", Baskerville, "Libre Baskerville", Georgia,
    "Times New Roman", serif;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171214;
    --surface: #211a1c;
    --text: #f7eee7;
    --text-muted: #d8c8c0;
    --brand: #e198a8;
    --gold: #d7b478;
    --border: rgba(247, 238, 231, 0.16);
    --focus: #d7b478;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.5vw + 14.6px, 18px);
  line-height: 1.6;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--surface);
}

.skip-link:focus {
  left: 1rem;
}

.shell {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem;
}

.site-header__brand {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.site-header__brand a {
  color: var(--brand);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a[aria-current="page"] {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--gold);
}

main {
  padding-block: 2.25rem 3rem;
}

main p,
main li {
  max-width: var(--measure);
}

h1 {
  margin: 0 0 0.25rem;
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  margin: 2.25rem 0 0.5rem;
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 400;
}

.lede {
  color: var(--text-muted);
  font-size: 1.15rem;
  font-style: italic;
}

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

.summary {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--surface);
}

.summary p {
  margin: 0;
}

dt {
  margin-top: 1rem;
  font-style: italic;
}

dd {
  margin: 0.25rem 0 0;
  max-width: var(--measure);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem 2rem;
}

.site-footer a {
  color: inherit;
}
