/* The Shared Standard. Web tokens per BRAND_KIT_TOKENS.md.
   Binding: zero radius, no shadows, no gradients, accent ~2% of surface,
   everything sets left ragged right, two families only. */

:root {
  --ground: #EFEBE4;
  --paper: #FAF7F1;
  --ink: #17150F;
  --accent: #2E4A3F;
  --accent-press: #22382F;
  --muted: #6E6759;
  --rule: #DFD8CB;
  --rule-strong: #D2C9B9;

  --serif: "Source Serif 4", Georgia, serif;
  --grotesque: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --s7: 144px;

  --col: 720px;
  --wide: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--grotesque);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-press); }

/* ---------- layout ---------- */

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--s3); }
.col { max-width: var(--col); }
.col-center { max-width: var(--col); margin-left: 0; }

section { padding: var(--s6) 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }
.section-tight { padding: var(--s5) 0; }

/* ---------- type scale ---------- */

.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s3);
}

h1, .h-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 var(--s3);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 var(--s3);
}

h3, .h-section {
  font-family: var(--grotesque);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: var(--s4) 0 var(--s2);
}

h4 {
  font-family: var(--grotesque);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  margin: var(--s3) 0 var(--s1);
}

p { margin: 0 0 var(--s3); max-width: var(--col); }

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.7;
  max-width: var(--col);
}

.read p, .read li { font-family: var(--serif); font-size: 19px; line-height: 1.7; }

.label {
  font-family: var(--grotesque);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s2);
  display: block;
}

.caption, .caption p { font-size: 13px; line-height: 1.5; color: var(--muted); }

strong { font-weight: 600; }

ul, ol { max-width: var(--col); padding-left: 1.2em; margin: 0 0 var(--s3); }
li { margin-bottom: var(--s1); }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s4) 0; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
}
.site-head .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.brand:hover { color: var(--ink); }
.brand .desc {
  display: block;
  font-family: var(--grotesque);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 3px;
}
.nav { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: baseline; }
.nav a {
  font-family: var(--grotesque);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }

/* ---------- buttons ---------- */

.btn-row { display: flex; gap: var(--s2); flex-wrap: wrap; margin: var(--s4) 0 var(--s2); }

.btn {
  display: inline-block;
  font-family: var(--grotesque);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  padding: 14px 22px;
  border-radius: 0;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #FAF7F1;
}
.btn:hover { background: var(--accent-press); border-color: var(--accent-press); color: #FAF7F1; }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-quiet:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.more {
  font-family: var(--grotesque);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  display: inline-block;
}
.more:hover { border-bottom-color: var(--accent); }

/* ---------- cards and grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); margin-top: var(--s4); }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: var(--s3);
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: var(--s2); }
.card .when { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 16px; display: block; margin-bottom: var(--s2); }
.card .title-line { font-size: 14px; color: var(--muted); margin-bottom: var(--s2); }

.stack { display: grid; gap: var(--s3); margin-top: var(--s4); }

.evidence { border-top: 1px solid var(--rule); padding-top: var(--s2); }
.evidence h4 { margin-top: 0; }
.evidence p { margin-bottom: 0; }

/* ---------- pull block ---------- */

.pull {
  border-left: 2px solid var(--accent);
  padding: var(--s1) 0 var(--s1) var(--s3);
  margin: var(--s4) 0;
  max-width: var(--col);
}
.pull p { font-family: var(--serif); font-size: 22px; line-height: 1.45; margin: 0; }

.inset {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: var(--s3);
  margin: var(--s4) 0;
  max-width: var(--col);
}
.inset > *:last-child { margin-bottom: 0; }

.source-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: var(--s2);
  margin-top: var(--s4);
  max-width: var(--col);
}

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: var(--s3) 0 var(--s4); }
table { border-collapse: collapse; width: 100%; font-size: 16px; background: var(--paper); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--grotesque); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* ---------- email capture ---------- */

.tool-block { background: var(--paper); border: 1px solid var(--rule); padding: var(--s4); }
.tool-block > *:last-child { margin-bottom: 0; }

form.signup { display: flex; gap: var(--s1); flex-wrap: wrap; margin-top: var(--s3); max-width: 520px; }
input[type="email"] {
  flex: 1 1 240px;
  font-family: var(--grotesque);
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: #FFFFFF;
  color: var(--ink);
}
input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
button[type="submit"] {
  font-family: var(--grotesque);
  font-weight: 500;
  font-size: 16px;
  padding: 13px 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #FAF7F1;
  border-radius: 0;
  cursor: pointer;
}
button[type="submit"]:hover { background: var(--accent-press); }
.form-hint { font-size: 13px; color: var(--muted); margin-top: var(--s1); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding: var(--s5) 0 var(--s4);
  margin-top: var(--s5);
}
.foot-nav { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.foot-nav a { font-family: var(--grotesque); font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; }
.foot-nav a:hover { border-bottom-color: var(--accent); }
.legal { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: var(--col); }
.legal p { margin: 0 0 var(--s2); font-size: 13px; }
.legal a { color: var(--muted); }

/* ---------- skip link ---------- */

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #FAF7F1; padding: 10px 16px; z-index: 10;
  font-family: var(--grotesque); font-size: 15px; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- mobile ---------- */

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .h-display { font-size: 36px; line-height: 1.1; }
  h1, h2, .h-title { font-size: 26px; line-height: 1.2; }
  h3, .h-section { font-size: 18px; }
  .lede { font-size: 18px; }
  .read p, .read li { font-size: 18px; }
  .pull p { font-size: 19px; }
  section { padding: var(--s5) 0; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .nav { gap: var(--s2) var(--s3); }
  .tool-block { padding: var(--s3); }
  .btn { display: block; text-align: center; }
  .btn-row { flex-direction: column; align-items: stretch; }
}

@media print {
  .site-head, .nav, .btn-row, .foot-nav, form.signup { display: none; }
  body { background: #fff; font-size: 11pt; }
}

/* card equal height, action pinned to bottom */
.grid-3 .card { display: flex; flex-direction: column; }
.grid-3 .card .more { margin-top: auto; align-self: flex-start; }
