/* Upfront Sales Packs — site stylesheet
   Palette: ink navy on white, with a form-grey panel tone, a verified green
   and a pending amber. Type: Fraunces for headings, Public Sans for text. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations"), url("/assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/public-sans-latin-400-italic.woff2") format("woff2"); }

:root {
  --ink: #14213d;
  --text: #1f2a44;
  --text-soft: #56637a;
  --paper: #ffffff;
  --form: #f2f4f7;
  --form-deep: #e6eaf0;
  --line: #d9dee7;
  --line-strong: #b9c2d0;
  --green: #0e7c66;
  --green-soft: #e3f2ee;
  --amber: #a86a12;
  --amber-soft: #fbf3e3;
  --focus: #1d4ed8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 66ch;
  --wrap: 1120px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 4px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--green); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); font-variation-settings: "opsz" 144; margin-bottom: 0.4em; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.8em; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin-top: 1.4em; }

p, ul, ol, dl, table, blockquote, figure { margin: 0 0 1.1em; }
main p, main ul, main ol, main dl { max-width: var(--measure); }
main ul, main ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
li > ul, li > ol { margin-top: 0.35em; }
strong { font-weight: 600; color: var(--ink); }
small, .small { font-size: 0.9rem; color: var(--text-soft); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.16em; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--form); padding: 0.05em 0.3em; border-radius: 3px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--text); padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); font-weight: 600; }

/* Breadcrumb */
.crumbs { font-size: 0.9rem; color: var(--text-soft); margin: 18px 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 6px; max-width: none; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); margin-right: 6px; }
.crumbs a { color: var(--text-soft); }

/* Hero (home) */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; padding: 56px 0 40px; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy .lede { font-size: 1.2rem; line-height: 1.55; color: var(--text); max-width: 34em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 1.4em; }
.hero-links a { font-weight: 600; }
.hero-note { margin-top: 2.2em; font-size: 0.92rem; color: var(--text-soft); max-width: 40em; }

/* The pack sheet: the one memorable element */
.sheet { border: 1px solid var(--line-strong); background: var(--paper); }
.sheet-head { background: var(--ink); color: #fff; padding: 12px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sheet-head .t { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.sheet-head .n { font-size: 0.82rem; opacity: 0.85; white-space: nowrap; }
.sheet ol { list-style: none; counter-reset: item; margin: 0; padding: 6px 18px 10px; max-width: none; }
.sheet li { counter-increment: item; display: grid; grid-template-columns: 2ch 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); margin: 0; font-size: 0.97rem; }
.sheet li:last-child { border-bottom: 0; }
.sheet li::before { content: counter(item); font-family: var(--serif); color: var(--text-soft); font-size: 0.95rem; text-align: right; }
.sheet li a { text-decoration: none; color: var(--ink); }
.sheet li a:hover { text-decoration: underline; }
.src { font-size: 0.78rem; color: var(--text-soft); white-space: nowrap; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--form); }
.src.reg { border-color: #bfe0d6; background: var(--green-soft); color: var(--green); }
.src.pro { border-color: #ecd7ad; background: var(--amber-soft); color: var(--amber); }
.sheet-foot { padding: 10px 18px 14px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-soft); background: var(--form); }
.sheet-foot a { color: var(--text-soft); }

/* Figures */
.fig { margin: 0 0 1.8em; max-width: 46em; }
.fig img { display: block; width: 100%; height: auto; background: var(--form); }
.fig.r16x9 img { aspect-ratio: 16 / 9; object-fit: cover; }
.fig.r3x2 img { aspect-ratio: 3 / 2; object-fit: cover; }
.fig.r4x3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.fig.r21x9 img { aspect-ratio: 21 / 9; object-fit: cover; }
.fig figcaption { font-size: 0.85rem; color: var(--text-soft); margin-top: 8px; line-height: 1.45; max-width: 60ch; }
.fig-wide { max-width: none; }
.fig-col { max-width: none; margin: 0 0 14px; }
.answer + .fig { margin-top: -0.4em; }
.lede-fig { margin-top: 1.4em; }

/* Direct answer block at the top of guides */
.answer { border-left: 4px solid var(--green); background: var(--form); padding: 16px 20px; margin: 1.6rem 0 2rem; max-width: 46em; }
.answer p { margin: 0 0 0.6em; max-width: none; }
.answer p:last-child { margin-bottom: 0; }
.meta { font-size: 0.9rem; color: var(--text-soft); margin: 0 0 1.4em; }
.answer + h2, .page-grid > div > h2:first-child { margin-top: 1.2em; }
.meta time { font-variant-numeric: tabular-nums; }

/* Page body */
.page { padding: 8px 0 56px; }
.page > h1 { margin-top: 18px; max-width: 20ch; }
.lead { font-size: 1.15rem; line-height: 1.55; max-width: 36em; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: start; }
.toc { position: sticky; top: 24px; font-size: 0.9rem; border-left: 1px solid var(--line); padding-left: 16px; }
.toc p { font-weight: 600; color: var(--ink); margin-bottom: 0.5em; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 0.4em; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }

/* Section with a ruled heading, used on the home page */
.band { padding: 40px 0 8px; border-top: 1px solid var(--line); }
.band h2 { margin-top: 0; }
.band .intro { font-size: 1.08rem; max-width: 40em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.three-col h3 { margin-top: 0.4em; }
.three-col .fig-col img { aspect-ratio: 3 / 2; object-fit: cover; }
.three-col p { max-width: none; }

/* Figures as a definition list, not stat tiles */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: none; border-top: 1px solid var(--line); }
.figures div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.figures dt { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1.1; font-variation-settings: "opsz" 72; }
.figures dd { margin: 4px 0 0; font-size: 0.95rem; color: var(--text-soft); max-width: 30em; }

/* Timeline: date column plus text */
.timeline { list-style: none; padding: 0; margin: 0 0 1.5em; max-width: none; }
.timeline > li { display: grid; grid-template-columns: 11rem 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); margin: 0; }
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.timeline .what ul { padding-left: 1.2em; max-width: 60ch; list-style: disc; }
.timeline .what li { margin-bottom: 0.4em; }
.timeline .when { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.3; }
.timeline .when small { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--text-soft); margin-top: 2px; }
.timeline .what { max-width: 60ch; }
.timeline .what p { margin-bottom: 0.5em; }
.timeline .what ul { margin: 0.4em 0 0; }
.timeline .state { display: inline-block; font-size: 0.78rem; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--form); color: var(--text-soft); margin-left: 6px; vertical-align: middle; font-family: var(--sans); }
.timeline .state.done { background: var(--green-soft); border-color: #bfe0d6; color: var(--green); }
.timeline .state.soon { background: var(--amber-soft); border-color: #ecd7ad; color: var(--amber); }

/* Guide index list */
.guide-list { list-style: none; padding: 0; margin: 0; max-width: none; }
.guide-list li { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 8px 32px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.guide-list li:last-child { border-bottom: 1px solid var(--line); }
.guide-list a { font-family: var(--serif); font-size: 1.15rem; text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }
.guide-list p { margin: 0; color: var(--text-soft); max-width: 48em; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--line-strong); }
td:last-child, th:last-child { padding-right: 0; }
tbody tr:hover { background: #fafbfc; }
caption { caption-side: bottom; text-align: left; font-size: 0.85rem; color: var(--text-soft); padding: 8px 0 0; }
table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Definition lists in guides */
dl.defs { max-width: var(--measure); }
dl.defs dt { font-weight: 600; color: var(--ink); margin-top: 1em; }
dl.defs dd { margin: 0.2em 0 0; }

/* Q and A */
.qa { max-width: var(--measure); padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.qa h3 { margin-top: 1.1em; font-size: 1.18rem; }
.qa:last-of-type { border-bottom: 0; }

/* Notices */
.notice { background: var(--form); border: 1px solid var(--line); padding: 14px 18px; max-width: 46em; margin: 1.6em 0; font-size: 0.95rem; }
.notice p { max-width: none; margin-bottom: 0.4em; }
.notice p:last-child { margin-bottom: 0; }
.notice.pending { background: var(--amber-soft); border-color: #ecd7ad; }

/* Checklist with ticks */
ul.ticks { list-style: none; padding: 0; }
ul.ticks li { padding-left: 1.7em; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.8em; height: 0.45em; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Related and sources */
.related, .sources { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.related h2, .sources h2 { margin-top: 0; font-size: 1.3rem; }
.sources ol { font-size: 0.92rem; color: var(--text-soft); }
.sources a { overflow-wrap: anywhere; }

/* Form (notify) */
.notify { background: var(--form); border: 1px solid var(--line); padding: 20px 22px; max-width: 34em; margin: 1.5em 0; }
.notify p { max-width: none; }
.notify label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.notify .row { display: flex; gap: 10px; flex-wrap: wrap; }
.notify input[type="email"] { flex: 1 1 14em; font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; min-width: 0; }
.notify button { font: inherit; font-weight: 600; background: var(--ink); color: #fff; border: 0; border-radius: 4px; padding: 10px 18px; cursor: pointer; }
.notify button:hover { background: var(--green); }
.notify .hp { position: absolute; left: -9999px; }
.notify small { display: block; margin-top: 8px; }

/* Contact form */
.form { background: var(--form); border: 1px solid var(--line); padding: 22px 24px; max-width: 40em; margin: 1.2em 0 2em; }
.form .field { margin-bottom: 16px; }
.form label, .form legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form .hint { display: block; font-weight: 400; font-size: 0.88rem; color: var(--text-soft); margin-top: 2px; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--text); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; }
.form textarea { min-height: 9em; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.form .check input { margin-top: 0.3em; width: 1.05em; height: 1.05em; flex: none; accent-color: var(--green); }
.form button { font: inherit; font-weight: 600; background: var(--ink); color: #fff; border: 0; border-radius: 4px; padding: 11px 22px; cursor: pointer; }
.form button:hover { background: var(--green); }
.form .hp { position: absolute; left: -9999px; }
.form .small { margin: 14px 0 0; max-width: none; }
.legal-box { border: 1px solid var(--line); padding: 14px 18px; max-width: 46em; margin: 0 0 1.6em; }
.legal-box p { margin-bottom: 0.4em; max-width: none; }

/* Footer */
.site-foot { margin-top: 24px; border-top: 1px solid var(--line); background: var(--form); color: var(--text-soft); font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 20px; }
.foot-grid p { max-width: 36em; margin-bottom: 0.6em; }
.foot-brand, .foot-h { font-family: var(--serif); color: var(--ink); font-size: 1.1rem; font-weight: 500; }
.foot-grid nav a { display: block; color: var(--text); text-decoration: none; padding: 3px 0; }
.foot-grid nav a:hover { color: var(--green); text-decoration: underline; }
.foot-legal { border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 28px; font-size: 0.85rem; }
.foot-legal p { margin: 0; }

/* 404 */
.notfound { padding: 72px 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  .page-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .toc ol { columns: 2; column-gap: 24px; }
  .three-col { grid-template-columns: 1fr; gap: 8px; }
  .two-col { grid-template-columns: 1fr; gap: 8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .head-row { padding-top: 12px; padding-bottom: 10px; }
  .site-nav { gap: 2px 14px; font-size: 0.9rem; }
  .hero { padding-top: 28px; }
  .hero-copy .lede { font-size: 1.08rem; }
  .figures { grid-template-columns: 1fr; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; }
  .guide-list li { grid-template-columns: 1fr; gap: 4px; }
  .toc ol { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .sheet li { font-size: 0.92rem; gap: 10px; }
  .sheet ol { padding: 4px 14px 8px; }
  .sheet-head, .sheet-foot { padding-left: 14px; padding-right: 14px; }
  th, td { padding: 8px 10px 8px 0; font-size: 0.92rem; }
}

@media print {
  .site-head, .site-foot, .toc, .notify, .hero-links { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
  .answer { border-left-color: #000; background: #fff; }
}
