/* Mobile-first. The 375px column is the design; every media query widens it.
   Tokens are the sales page's tokens, which are the PDF design system's tokens,
   so the site, the page and the artefact are visibly one product. */

:root {
  --field: #14263f;
  --field-ink: #e9e5dd;
  --field-muted: #a9b6c8;
  --paper: #f4efe6;
  --ink: #23262b;
  --ink-muted: #5b626c;
  --rule: #d8d1c4;
  --signal: #35705a;
  --measure: 34rem;

  /* Fallback metrics matched to the webfonts, so the swap does not reflow the
     first screen. Every page must be correctly laid out with zero webfonts. */
  --serif: "OM Serif", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  --sans: "OM Sans", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "OM Serif"; src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}
@font-face {
  font-family: "OM Sans"; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4 Fallback"; src: local("Georgia"), local("Times New Roman");
  size-adjust: 98%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback"; src: local("Helvetica Neue"), local("Arial");
  size-adjust: 108%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--serif);
  color: var(--ink);
  background: var(--paper);
}

.skip { position: absolute; left: -9999px; background: var(--paper); color: var(--ink); padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

main { padding: 3rem 20px 1rem; }
main > * { max-width: var(--measure); margin-inline: auto; }
/* Element rules below MUST use margin-block, never the margin shorthand: the
   shorthand resets margin-inline to 0 and un-centres the column. */

h1 { font: 700 30px/1.15 var(--sans); letter-spacing: -0.01em; margin-block: 0 1.25rem; }
h2 { font: 700 22px/1.25 var(--sans); margin-block: 2.5rem .6rem; }
h3 { font: 700 18px/1.3 var(--sans); margin-block: 1.75rem .5rem; }
p { margin-block: 0 1.1rem; }
ul, ol { margin-block: 0 1.2rem; padding-left: 1.2rem; }
li { margin-block: 0 .55rem; }
strong { font-weight: 700; }

a { color: #1d4a76; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* -------------------------------------------------------------- callout CTA */
/* A paragraph whose entire content is one link becomes a button. Inline links
   inside a sentence stay inline - WCAG 2.2 exempts those from the target-size
   minimum, and padding them to 44px would wreck the text block. */
.cta { margin-block: 1.75rem 2rem; }
.btn {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--field);
  color: var(--paper);
  font: 700 17px/1.3 var(--sans);
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
  min-height: 48px;
}
.btn:hover { opacity: .92; }
.btn:focus-visible { outline: 3px solid var(--field); outline-offset: 3px; }

/* ------------------------------------------------------------------ tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font: 400 15px/1.45 var(--sans); }
th, td { padding: .7rem .75rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-weight: 700; }
tbody th { font-weight: 600; }

/* ------------------------------------------------------------ signup form */
.signup {
  border: 1px solid var(--rule);
  background: #fbf8f2;
  padding: 1.5rem 1.25rem;
  margin-block: 2rem;
}
.signup label { display: block; font: 600 15px/1.4 var(--sans); margin-block: 0 .4rem; }
.signup input {
  display: block; width: 100%; min-height: 48px;
  padding: .75rem;
  font: 400 17px/1.3 var(--sans);
  color: var(--ink); background: #fff;
  border: 1px solid #8a8378; border-radius: 3px;
}
.signup input:focus-visible { outline: 3px solid var(--field); outline-offset: 2px; }
.signup button {
  display: block; width: 100%; min-height: 48px;
  margin-block: .9rem 0;
  padding: 1rem 1.25rem;
  background: var(--field); color: var(--paper);
  font: 700 17px/1.3 var(--sans);
  border: 0; border-radius: 3px;
  cursor: pointer;
}
.signup button:hover:not([disabled]) { opacity: .92; }
.signup button:focus-visible { outline: 3px solid var(--field); outline-offset: 3px; }
/* Disabled while the endpoint is unwired. #6b6259 on #fbf8f2 is 5.29:1 - a
   disabled control that cannot be read is a worse failure than an enabled one. */
.signup button[disabled] { background: #6b6259; cursor: not-allowed; }
.form-note { font: 400 14px/1.5 var(--sans); color: var(--ink-muted); margin-block: .9rem 0; }

/* ------------------------------------------------------- signature: cadence */
/* The one place boldness is spent. Everything around it stays quiet. */
figure.cadence { margin-block: 2rem; margin-inline: 0; }
figure.cadence img { display: block; width: 100%; height: auto;
                     border-block: 1px solid var(--rule); padding-block: 1rem; }

/* ---------------------------------------------------------------- articles */
.article-list { list-style: none; padding-left: 0; }
.article-list li { margin-block: 0 1.5rem; }
.article-list a { display: inline-block; min-height: 44px; padding-block: .5rem;
                  font: 700 18px/1.3 var(--sans); text-decoration-thickness: 1px; }
/* The rule above is (0,1,1) and beat the global a:hover at (0,1,0), so hovering
   an article link changed nothing. WEB-013 caught it once an article was
   published. This is the selector-specificity trap the design skill warns about
   and the same shape as the .ps bug on the sales page. */
.article-list a:hover { text-decoration-thickness: 3px; }
.article-title { margin-block: 0; }
.article-list p { margin-block: .1rem 0; font-size: 16px; }
.article-meta { font: 400 14px/1.5 var(--sans); color: var(--ink-muted); margin-block: 0 1.75rem; }
.empty { font-style: italic; color: var(--ink-muted); }

.draft-banner {
  background: var(--field); color: #fff;
  font: 700 14px/1.4 var(--sans);
  padding: .75rem 1rem; border-radius: 3px;
  margin-block: 0 2rem;
}

.sources { font-size: 15px; }
.sources li { margin-block: 0 .8rem; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-block: 3rem 0;
  padding: 2rem 20px 3rem;
}
.site-footer > * { max-width: var(--measure); margin-inline: auto; }
.site-footer ul { list-style: none; padding-left: 0; margin-block: 0 1rem;
                  display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-footer li { margin-block: 0; }
/* 44px touch target without turning the footer into a stack of buttons. */
.site-footer a { display: inline-block; min-height: 44px; min-width: 44px; padding-block: .65rem;
                 font: 400 15px/1.45 var(--sans); }
.site-footer .home { margin-block: 0 .75rem; }
.site-footer .home a { font: 700 16px/1.4 var(--sans); text-decoration: none; }
.site-footer .home a:hover { text-decoration: underline; }
.site-footer .entity,
.site-footer .copyright {
  font: 400 14px/1.55 var(--sans);
  color: var(--ink-muted);
  margin-block: 0 .35rem;
}

/* -------------------------------------------------------------- breakpoints */
@media (min-width: 768px) {
  main { padding: 4.5rem 2rem 1rem; }
  .site-footer { padding: 2.5rem 2rem 4rem; }
  h1 { font-size: 40px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .btn { display: inline-block; min-width: 20rem; }
}
@media (min-width: 1440px) {
  main { padding: 5.5rem 2rem 1rem; }
}
