:root {
  --ink: #1a1714;
  --ink-soft: #4a443d;
  --muted: #8a8178;
  --line: #e7e1d8;
  --paper: #fbf9f5;
  --card: #ffffff;
  --accent: #b4451f;
  --accent-soft: #fbeee7;
  --warn: #9a6b00;
  --warn-soft: #fdf6e3;
  --green: #2f6b4f;
  --shadow: 0 1px 3px rgba(26, 23, 20, 0.06), 0 8px 24px rgba(26, 23, 20, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Progress bar */
#progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 100;
}
#progress-fill { display: block; height: 100%; width: 0%; background: var(--accent); transition: width 0.1s linear; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 245, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 14px;
  letter-spacing: 0.5px; color: #fff; background: var(--accent);
  padding: 4px 8px; border-radius: 6px;
}
.brand-name { font-family: "Fraunces", serif; font-weight: 500; font-size: 17px; }
.header-tag { font-size: 13px; color: var(--muted); font-weight: 500; }

/* Document */
#doc { padding: 56px 24px 80px; }
.doc-meta { margin-bottom: 40px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px;
  font-weight: 600; color: var(--accent); margin: 0 0 12px;
}
h1 {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: clamp(30px, 5vw, 44px); line-height: 1.1;
  margin: 0 0 20px; letter-spacing: -0.5px;
}
.lede { font-size: 18px; color: var(--ink-soft); margin: 0 0 28px; max-width: 60ch; }

.facts {
  display: grid; gap: 0; margin: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--card);
}
.facts > div { display: flex; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: none; }
.facts dt { margin: 0; min-width: 150px; font-weight: 600; font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 32px; margin-bottom: 24px; box-shadow: var(--shadow);
}
.card h2 {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 24px;
  margin: 0 0 16px; letter-spacing: -0.3px;
}
.card h3 {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 18px;
  margin: 32px 0 6px;
}
.card p { margin: 0 0 14px; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--ink); font-weight: 600; }

.card--warn { background: var(--warn-soft); border-color: #f0e2bf; }

.disclaimers { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.disclaimers li {
  position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 15.5px;
}
.disclaimers li::before {
  content: "!"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--warn); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.d-title { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

.check-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 7px; height: 12px; border: solid var(--green);
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.exclude {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 12px 16px; border-radius: 0 8px 8px 0;
}

/* Tables */
.table-scroll { overflow-x: auto; margin: 8px 0 4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.data-table thead th {
  background: var(--paper); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted); font-weight: 600;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; white-space: nowrap; }
.tbd {
  color: var(--muted); font-style: italic;
}

/* Acknowledgment */
.ack-card { border-color: var(--accent); border-width: 1.5px; }
.ack-check {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; margin: 16px 0 20px; user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.ack-check:hover { border-color: var(--accent); }
.ack-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.ack-check span { font-size: 15.5px; color: var(--ink); font-weight: 500; }

.btn {
  appearance: none; border: none; cursor: pointer;
  background: var(--accent); color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 600; padding: 14px 28px; border-radius: 10px;
  transition: background 0.15s, transform 0.05s, opacity 0.15s; width: 100%;
}
.btn:hover:not(:disabled) { background: #9a3a18; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ack-hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.ack-hint.ready { color: var(--green); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; background: var(--card); }
.site-footer p { margin: 0 0 4px; font-size: 14px; color: var(--ink-soft); }

.muted { color: var(--muted); }
.small { font-size: 13px; }

@media (max-width: 600px) {
  .card { padding: 24px 20px; }
  .facts > div { flex-direction: column; gap: 2px; }
  .header-tag { display: none; }
}
