/* Ledger of One — replace this token when the brand is chosen */
:root {
  --paper: #f3efe6;
  --paper-2: #eae4d8;
  --ink: #1b1714;
  --ink-soft: #4a433c;
  --muted: #6f675e;
  --line: #d5cdbf;
  --teal: #0e5c57;
  --teal-dark: #0a4541;
  --teal-soft: #dcecea;
  --rust: #b85c38;
  --white: #fffcf7;
  --shadow: 0 10px 30px rgba(27, 23, 20, 0.06);
  --max: 70rem;
  --text: 42rem;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--teal-dark); }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: 0.5rem 1rem; z-index: 20;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.wrap-text { width: min(var(--text), calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.logo {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--teal); }
nav ul {
  display: flex; gap: 1.15rem; list-style: none; margin: 0; padding: 0;
  align-items: center;
}
nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--teal-dark); }
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 0.35rem 0.55rem; font: inherit; cursor: pointer;
}

.hero { padding: 3.4rem 0 2.6rem; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--teal);
  margin: 0 0 0.7rem;
}
h1, h2, h3, .serif { font-family: var(--serif); letter-spacing: -0.025em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.15; margin: 0 0 1rem; font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; margin: 2.4rem 0 0.8rem; font-weight: 600; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; font-weight: 600; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; margin: 0 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
}
.btn:hover { background: var(--teal-dark); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.grid-2, .grid-3 {
  display: grid;
  gap: 1.15rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.price { font-family: var(--serif); font-size: 1.35rem; color: var(--teal-dark); margin: 0.2rem 0 0.7rem; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.section { padding: 0.5rem 0 3rem; }
.note, .disclosure, .callout {
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  padding: 0.85rem 1rem;
  margin: 1.2rem 0;
  font-size: 0.98rem;
}
.disclosure { background: #f7efe8; border-left-color: var(--rust); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--white);
  margin: 1.2rem 0 1.6rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid var(--line);
}
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; }
.table-wrap table { margin: 0; min-width: 36rem; }

.prose p, .prose li { max-width: 42rem; }
.prose ul { padding-left: 1.2rem; }
.sources { font-size: 0.92rem; }
.sources li { margin: 0.35rem 0; }
.meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.4rem; }
.placeholder-link {
  border-bottom: 1px dashed var(--teal);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0 1rem 1rem;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .header-inner { position: relative; }
}

.newsletter-cta { margin-top: 1.6rem; }
