/* The Vow Kit — one stylesheet, no build step, no framework.
   Mobile-first. Designed at 375px, widened at 40em / 62em. */

:root {
  --paper:      #fbfaf7;
  --paper-sunk: #f4f1ea;
  --ink:        #1b1a17;
  --ink-soft:   #3d3a34;
  --muted:      #6d6860;
  --rule:       #e0dad0;
  --rule-soft:  #ede9e0;
  --accent:     #7a2f2a;
  --accent-dk:  #5c221e;
  --official:   #1f4d3d;
  --official-bg:#edf3f0;
  --industry:   #6b5a2e;
  --industry-bg:#f6f2e6;
  --flag:       #8a5313;
  --flag-bg:    #fdf5e8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: 52rem; }

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

section { margin: 2.75rem 0; }
section + section { margin-top: 3.25rem; }

hr.div {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.1rem;
  padding-top: 1rem;
  padding-bottom: 0.9rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--accent); }
.masthead nav {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  margin-left: auto;
}
.masthead nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.masthead nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.masthead nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- headings ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.6rem;
  letter-spacing: -0.006em;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.14;
  margin-top: 2.25rem;
  letter-spacing: -0.014em;
}
h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
h2.plain { border-top: 0; padding-top: 0; }
h3 { font-size: 1.1rem; margin-top: 1.9rem; }
h4 {
  font-size: 0.78rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin: 0 0 0.55rem;
  font-weight: 600;
}

.standfirst {
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.dateline {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

/* ---------- text ---------- */

p { margin: 0 0 1.05rem; }

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

strong { font-weight: 600; }

ul, ol { margin: 0 0 1.15rem; padding-left: 1.15rem; }
li { margin-bottom: 0.5rem; }
li > ul, li > ol { margin-top: 0.5rem; }

.lede-list { list-style: none; padding-left: 0; }
.lede-list li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.7rem;
}
.lede-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.small { font-size: 0.92rem; }
.muted { color: var(--muted); }

/* ---------- citations ---------- */

.cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0.3rem 0 1.05rem;
  word-break: break-word;
}
.cite a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule); }
.cite a:hover { color: var(--ink); text-decoration-color: var(--muted); }
li > .cite, dd > .cite { margin-bottom: 0.2rem; }

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.12em 0.42em;
  border-radius: 2px;
  vertical-align: 0.08em;
  margin-right: 0.25rem;
}
.tag-official { color: var(--official); background: var(--official-bg); }
.tag-industry { color: var(--industry); background: var(--industry-bg); }

/* ---------- callouts ---------- */

.callout {
  margin: 1.75rem 0;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--muted);
  background: #fff;
}
.callout > :last-child { margin-bottom: 0; }
.callout h3 {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.callout p, .callout li { font-size: 0.97rem; }

.callout-conflict { border-left-color: var(--flag); background: var(--flag-bg); border-color: #eadcc2; }
.callout-conflict h3 { color: var(--flag); }
.callout-warn { border-left-color: var(--accent); background: #fbf2f1; border-color: #eed7d4; }
.callout-warn h3 { color: var(--accent); }
.callout-note { border-left-color: var(--official); background: var(--official-bg); border-color: #d8e3dd; }
.callout-note h3 { color: var(--official); }

/* ---------- key box / contents ---------- */

.panel {
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.2rem;
  margin: 1.75rem 0;
}
.panel > :last-child { margin-bottom: 0; }
.panel h2, .panel h3 { border-top: 0; padding-top: 0; margin-top: 0; }

.toc { font-family: var(--sans); font-size: 0.9rem; }
.toc ol { list-style: none; padding-left: 0; margin: 0; counter-reset: toc; }
.toc li {
  margin-bottom: 0.55rem;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.4;
}
.toc li::before {
  counter-increment: toc;
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.toc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.toc a:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* ---------- spec lists (state requirements) ---------- */

.spec { margin: 1.25rem 0 1.5rem; }
.spec .row {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule-soft);
}
.spec .row:last-child { border-bottom: 1px solid var(--rule-soft); }
.spec dt {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.spec dd { margin: 0; }
.spec dd > p:last-child { margin-bottom: 0; }

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

.tablescroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 0.4rem;
  border: 1px solid var(--rule);
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.86rem;
  font-family: var(--sans);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
}
th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tablenote {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* ---------- checklist ---------- */

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.65rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid var(--muted);
  border-radius: 1px;
}

/* ---------- cards / product ---------- */

.card {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 1.3rem 1.2rem;
  margin: 1.75rem 0;
}
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { border-top: 0; padding-top: 0; margin-top: 0; }
.price {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.62rem 1.1rem;
  text-decoration: none;
  border-radius: 2px;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--paper-sunk); color: var(--ink); border-color: var(--muted); }
.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0.4rem;
}
.btnnote {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.notfor {
  border-top: 1px solid var(--rule);
  margin-top: 1.4rem;
  padding-top: 1.1rem;
}
.notfor h4 { margin-top: 0; }

/* ---------- product shots ---------- */

figure.shot {
  margin: 1.5rem 0;
  padding: 0;
}
figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: #fff;
}
figure.shot figcaption {
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0.55rem;
}

/* ---------- source ledger ---------- */

.sources { font-size: 0.88rem; }
.sources li { margin-bottom: 0.85rem; word-break: break-word; }
.sources a { word-break: break-all; }

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

.sitefoot {
  border-top: 1px solid var(--rule);
  background: var(--paper-sunk);
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
  padding: 2rem 0 2.5rem;
  margin-top: 3.5rem;
}
.sitefoot a { color: var(--muted); }
.sitefoot a:hover { color: var(--ink); }
.sitefoot p { margin: 0 0 0.75rem; }
.sitefoot ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
}
.sitefoot li { margin: 0; }

/* ---------- misc ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.backlink {
  font-family: var(--sans);
  font-size: 0.8rem;
  margin: 2.5rem 0 0;
}

/* ---------- wider screens ---------- */

@media (min-width: 40em) {
  body { font-size: 1.09375rem; }
  .wrap { padding: 0 2rem; }
  h1 { font-size: 2.55rem; margin-top: 3rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
  .standfirst { font-size: 1.28rem; }
  .callout, .panel, .card { padding: 1.35rem 1.5rem; }
  .spec .row {
    display: grid;
    grid-template-columns: 10.5rem 1fr;
    gap: 1.25rem;
    padding: 0.95rem 0;
  }
  .spec dt { margin-bottom: 0; padding-top: 0.18em; }
  table { min-width: 0; }
}

@media (min-width: 62em) {
  h1 { font-size: 2.9rem; }
  .standfirst { font-size: 1.34rem; }
}

@media print {
  .masthead nav, .btnrow, .skip { display: none; }
  body { background: #fff; font-size: 11pt; }
  a { color: #000; }
}
