/* Westward Collective: shared styles for the legal pages (privacy.html, terms.html).
   Tokens mirror the <style> block in index.html; keep the two in step. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --inkwell: #293438;
  --night: #0f1517;
  --night-deep: #090c0e;
  --harbor: #4f6f82;
  --sandstone: #b48868;
  --sandstone-ink: #7f5a3d;
  --sandstone-light: #c9a283;
  --seashell: #ece2d0;
  --seashell-soft: #f5efe4;

  --bg: var(--seashell-soft);
  --fg: var(--inkwell);
  --muted: #5a666b;
  --rule: rgba(41, 52, 56, 0.16);
  --on-dark: var(--seashell);
  --on-dark-muted: #b9c3c6;
  --rule-dark: rgba(236, 226, 208, 0.18);

  --font-serif: "Newsreader", "Freight Text Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Freight Sans Pro", "Helvetica Neue", Arial, sans-serif;

  --t-xs: 0.78rem;
  --t-sm: 0.9rem;
  --t-md: 1.0625rem;
  --t-lg: 1.3rem;
  --t-xl: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
  --t-2xl: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);

  --max: 1200px;
  --measure: 46rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--t-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sandstone); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

.logo {
  display: block;
  background: currentColor;
  -webkit-mask: var(--src) no-repeat left center / contain;
  mask: var(--src) no-repeat left center / contain;
}
.logo--horizontal { --src: url("logo-horizontal.svg"); aspect-ratio: 396.8 / 75.8; }
.logo--mark { --src: url("logo-mark.svg"); aspect-ratio: 272.8 / 140.5; }

/* Header band */
.masthead { background: var(--night); color: var(--on-dark); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-block: 22px; }
.bar .home { display: block; text-decoration: none; color: var(--seashell); }
.bar .logo { width: clamp(170px, 22vw, 230px); }
.bar nav { display: flex; align-items: center; gap: 24px; }
.bar nav a { font-size: var(--t-sm); letter-spacing: 0.04em; text-decoration: none; color: var(--on-dark-muted); }
.bar nav a:hover { color: var(--seashell); }

.title .wrap { padding-block: clamp(28px, 5vw, 64px) clamp(36px, 6vw, 80px); display: grid; gap: 14px; }
.eyebrow {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sandstone-light);
}
.title h1 {
  font-family: var(--font-serif); font-weight: 300; font-size: var(--t-2xl);
  line-height: 1.05; letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
.title .dates { color: var(--on-dark-muted); font-size: var(--t-sm); margin: 0; }

/* Document body */
.doc { max-width: var(--measure); padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.doc h2 {
  font-family: var(--font-serif); font-weight: 400; font-size: var(--t-xl);
  line-height: 1.15; letter-spacing: -0.01em;
  margin: 2.4em 0 0.6em; padding-top: 1.1em; border-top: 1px solid var(--rule);
  scroll-margin-top: 16px; text-wrap: balance;
}
.doc h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--t-md); margin: 1.6em 0 0.4em; }
.doc p { margin: 0 0 1em; }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.3em; }
.doc li { margin-bottom: 0.45em; }
.doc li::marker { color: var(--sandstone-ink); }
.doc a { color: var(--harbor); text-underline-offset: 3px; }
.doc a:hover { color: var(--inkwell); }
.doc strong { font-weight: 600; }
.doc .caps { font-size: var(--t-sm); letter-spacing: 0.01em; }

.callout {
  background: var(--seashell); border-left: 3px solid var(--sandstone);
  padding: 18px 20px; margin: 0 0 1.4em;
}
.callout p:last-child { margin-bottom: 0; }

.toc { margin: 0 0 1em; padding: 0; list-style: none; columns: 2; column-gap: 32px; font-size: var(--t-sm); }
.toc li { margin-bottom: 0.4em; break-inside: avoid; }
@media (max-width: 560px) { .toc { columns: 1; } }

.contact-block { font-style: normal; display: grid; gap: 4px; margin: 0 0 1em; }

/* Wide tables scroll inside their own box so the page never does */
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--rule); }
.doc table { border-collapse: collapse; width: 100%; min-width: 820px; font-size: var(--t-sm); line-height: 1.45; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.doc th { background: var(--seashell); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer { background: var(--night-deep); color: var(--on-dark-muted); font-size: var(--t-sm); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding-block: 28px; }
.site-footer .logo { width: 44px; color: var(--seashell); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--seashell); text-decoration: underline; text-underline-offset: 3px; }

@media print {
  .masthead { background: none; color: #000; }
  .bar nav, .site-footer nav { display: none; }
  .title .dates, .eyebrow { color: #333; }
  body { background: #fff; }
}
