/* Viabasis static site — one shared stylesheet. Mobile first. Light theme. */

:root {
  /* Base palette (docs/brand-kit.md section 3) */
  --ink: #123A3F;
  --teal: #0E7C66;
  --sand: #F5EFE4;
  --paper: #FCFAF5;
  --gold: #D97A1A;
  --rust: #B3402E;
  --muted: #5B6B6D;

  /* Role tokens (design bite 2026-08-24) */
  --card: #ffffff;
  --inset: #fbf7f0;
  --line-strong: #d5c8b2;
  --text-body: #3f524b;
  --text-quiet: #7a6a54;
  --green-hover: #0b6350;
  --green-tint: #ddeae1;
  --amber-text: #8a4f06;
  --amber-tint: #fbeedd;
  --amber-border: #efd8b8;
  --track: #f1ebdf;
  --on-dark: #f5efe4;

  --measure: 68ch;
  --page: 62rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border: 2px solid var(--teal);
  z-index: 10;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  display: block;
  padding-bottom: 3rem;
}

section {
  margin: 0 0 2.5rem;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  color: var(--on-dark);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wordmark {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--on-dark);
  text-decoration: none;
}

.wordmark:hover,
.wordmark:focus {
  text-decoration: underline;
}

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

.site-nav a {
  color: var(--on-dark);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav a:hover,
.site-nav a:focus {
  text-decoration-thickness: 2px;
}

@media (min-width: 44rem) {
  .header-inner {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--sand);
  border-bottom: 1px solid var(--line-strong);
  padding: 2.5rem 0 2.75rem;
  margin-bottom: 2.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
}

.tagline {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--teal);
  margin: 0 0 1.25rem;
  max-width: var(--measure);
}

.lede {
  font-size: 1.0625rem;
  max-width: var(--measure);
  margin: 0;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
}

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

h2 {
  font-size: 1.5rem;
  margin: 0 0 0.875rem;
}

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

@media (min-width: 44rem) {
  h1 {
    font-size: 2.375rem;
  }
  .tagline {
    font-size: 1.625rem;
  }
}

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

p {
  margin: 0 0 1rem;
}

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

li {
  margin-bottom: 0.5rem;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin: 0 0 0.5rem;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- Links ---------- */

a {
  color: var(--teal);
}

a:hover,
a:focus {
  color: var(--green-hover);
}

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

/* ---------- Cards and grids ---------- */

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 46rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1.25rem;
}

.card p:last-child,
.panel p:last-child,
.panel ul:last-child {
  margin-bottom: 0;
}

.panel {
  background: var(--inset);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1.25rem;
}

.panel-trust {
  background: var(--green-tint);
  border-color: var(--line-strong);
}

/* Teal on --green-tint is 4.14:1 — below AA. Darken links on this surface. */
.panel-trust a {
  color: var(--green-hover);
}

.panel-price {
  background: var(--amber-tint);
  border-color: var(--amber-border);
}

.trust-line {
  font-size: 1.0625rem;
  color: var(--ink);
}

.clauses {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.clauses li {
  margin-bottom: 0.75rem;
}

.price-lead {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: var(--amber-text);
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.5rem;
}

/* ---------- Policy pages ---------- */

.policy h2 {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.policy h2:first-of-type {
  margin-top: 1.5rem;
}

.note {
  background: var(--track);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink);
  max-width: var(--measure);
}

.retention {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
  text-align: left;
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: 1rem;
}

.retention th,
.retention td {
  border: 1px solid var(--line-strong);
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

.retention th {
  background: var(--track);
  color: var(--ink);
  font-weight: 600;
}

.retention td:last-child {
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: 2rem 0;
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer p {
  max-width: var(--measure);
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer li {
  margin: 0;
}

.footer-note {
  color: var(--sand);
}
