/* Maxmed — Anchored v1.0 microsite (privacy · terms · support).
   Tokens mirror shared/tokens.json + the brand book. Hairlines only, radius 4, no shadows. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-Variable.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --paper-soft: #F7F6F1;
  --ink: #24462B;
  --accent: #F37A09;
  --muted: rgba(36, 70, 43, 0.60);
  --rule: rgba(36, 70, 43, 0.13);
  --rule-strong: rgba(36, 70, 43, 0.40);
  --radius: 4px;
  --gutter: 16px;
  --breath: 24px;
  --block: 32px;
  --section: 48px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1A12;
    --paper-soft: #141E16;
    --ink: #F3EFE4;
    --accent: #F59542;
    --muted: rgba(243, 239, 228, 0.60);
    --rule: rgba(243, 239, 228, 0.13);
    --rule-strong: rgba(243, 239, 228, 0.40);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--section) var(--breath) 96px;
}

/* Masthead */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--gutter);
  border-bottom: 1px solid var(--ink);
  margin-bottom: var(--block);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  text-decoration: none;
  border-bottom: none;
  color: var(--ink);
}
/* Rounded-hump M mark, recolored to the theme's ink via a CSS mask so it flips in dark mode. */
.wordmark::before {
  content: "";
  width: 30px;
  height: 16px;
  flex: none;
  background: var(--ink);
  -webkit-mask: url(/assets/mark.png) center/contain no-repeat;
  mask: url(/assets/mark.png) center/contain no-repeat;
}
.wordmark .dot { color: var(--accent); }
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Headings */
h1 {
  font-weight: 200;
  font-size: 40px;
  letter-spacing: -1.6px;
  line-height: 1.05;
  margin: 0 0 8px;
}
h1 strong { font-weight: 700; }
h2 {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: var(--block) 0 8px;
}
h3 {
  font-weight: 700;
  font-size: 15px;
  margin: var(--breath) 0 4px;
}

.updated {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--block);
}

p, li { color: var(--ink); }
p { margin: 0 0 14px; }
.lede { color: var(--muted); font-size: 17px; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
a:hover { border-bottom-color: var(--accent); }

ul { padding-left: 20px; margin: 0 0 14px; }
li { margin-bottom: 6px; }

strong { font-weight: 700; }

/* Callout card — hairline rectangle, radius 4, no shadow */
.card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: var(--breath);
  margin: var(--breath) 0;
}
.card p:last-child { margin-bottom: 0; }

/* Index link rows */
.rows { margin-top: var(--block); }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gutter) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  border-bottom-color: var(--rule);
  color: var(--ink);
}
.row:hover { border-bottom-color: var(--accent); }
.row .label { font-weight: 600; font-size: 16px; }
.row .arrow { color: var(--accent); }

/* Footer */
.foot {
  margin-top: var(--section);
  padding-top: var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.foot a { border-bottom: none; color: var(--muted); }
.foot a:hover { color: var(--accent); }

code { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 0.9em; }
