/* The 3 A.M. Rule - campaign site
   Plain CSS, no build step, no JS. */

:root {
  --ink: #14181d;
  --muted: #5a6470;
  --rule: #d7dde4;
  --accent: #a8341c;
  --band: #f4f6f8;
  --max: 46rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 14px; z-index: 10;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
header.site .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; justify-content: space-between; }
.brand { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
nav.site { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main { padding: 40px 0 56px; }

h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
h2 { font-size: 21px; line-height: 1.25; margin: 36px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }

.claim {
  border-left: 5px solid var(--accent);
  background: var(--band);
  padding: 14px 16px;
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 26px;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 20px;
  margin: 6px 0 10px;
}
.cta:hover { background: #8d2a16; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 22px 0 8px; }
.card { border: 1px solid var(--rule); padding: 16px; text-decoration: none; color: inherit; display: block; }
.card:hover { border-color: var(--ink); }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

figure { margin: 26px 0; }
figure img, figure svg { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

.panel { border: 1px solid var(--ink); padding: 18px; margin: 22px 0; }
.panel h2 { margin-top: 0; }

dl.qa { margin: 0; }
dl.qa dt { font-weight: 600; margin-top: 14px; }
dl.qa dd { margin: 2px 0 0; }

ol.steps, ul.plain { padding-left: 22px; }
ol.steps li, ul.plain li { margin-bottom: 8px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

blockquote {
  margin: 20px 0; padding: 12px 16px;
  border-left: 3px solid var(--rule);
  font-family: Georgia, "Times New Roman", serif;
  background: #fbfbfc;
}

.transcript { border: 1px solid var(--rule); padding: 16px 18px; background: #fbfbfc; }
.transcript p { margin: 0 0 10px; }

footer.site {
  border-top: 1px solid var(--rule);
  padding: 22px 0 40px;
  font-size: 13.5px;
  color: var(--muted);
}
footer.site a { color: var(--muted); }

@media print {
  header.site nav, .cta, .skip { display: none; }
  body { font-size: 11pt; }
}
