:root {
  color-scheme: light;
  --ink: #2b251b;
  --paper: #f3ebda;
  --rust: #994b32;
  --line: #d5c7b0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box }
body { margin: 0 }
a { color: inherit; text-underline-offset: 4px }
:focus-visible { outline: 3px solid #b45833; outline-offset: 4px }
header, footer {
  max-width: 1480px; margin: auto; display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(18px, 5vw, 76px); gap: 12px;
}
header { border-bottom: 1px solid var(--line) }
.brand { display: flex; gap: 8px; align-items: center; font: bold 23px Georgia, serif; text-decoration: none }
.brand img { width: 26px }
nav, .controls { display: flex; align-items: center; gap: 16px; font-size: 14px }
main { max-width: 1480px; margin: auto }
article {
  min-height: calc(100svh - 130px); border-bottom: 1px solid var(--line);
  padding: clamp(32px, 5vw, 72px) clamp(24px, 9vw, 145px);
  display: grid; align-content: center; gap: clamp(18px, 2.6vh, 32px);
}
article[hidden] { display: none }
.eyebrow, .edition { color: var(--rust); font: 600 11px/1.45 Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 22px }
.eyebrow::after { content: ''; height: 1px; background: var(--line); width: 70px }
h1, h2 { font: 500 clamp(42px, 5.8vw, 83px)/1 Georgia, serif; letter-spacing: -.055em; margin: 0; text-wrap: balance }
h1 { font-size: clamp(66px, 8vw, 110px) }
h1 em, h2 em { display: block; color: var(--rust); font-weight: 400 }
h1 em { font-size: .49em; margin-top: .24em; letter-spacing: -.04em }
.intro { font-size: clamp(16px, 1.65vw, 23px); line-height: 1.42; max-width: 750px; margin: 17px 0 0 }
.stats { display: grid; grid-template-columns: repeat(var(--count),1fr); gap: 20px; margin: 8px 0 0 }
.stat { border-top: 1px solid var(--line); padding-top: 12px }
.stat dt { font: 500 clamp(34px, 4.6vw, 67px)/1.1 Georgia, serif; letter-spacing: -.05em }
.stat dd { font-size: clamp(14px, 1.35vw, 20px); line-height: 1.4; margin: 6px 0 0 }
table { border-collapse: collapse; width: 100%; max-width: 900px; font-size: clamp(16px, 1.65vw, 23px) }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 0 }
thead th { color: var(--rust); font-size: 12px; font-weight: 500 }
tbody th, td:last-child { font-family: Georgia,serif }
td:last-child, th:last-child { text-align: right }
td:last-child { font-size: 1.3em }
.note, .source, .byline { font-size: 13px; line-height: 1.4; margin: 0 }
.source, .contact { justify-self: start }
.visual { grid-template-columns: 1fr 1fr; align-items: center }
figure { min-width: 0; margin: 0 }
figure img { display: block; width: 100%; border-radius: 10px }
.close { color: #fff5e5; background: #2e261b; --rust: #f1b492; --line: #70614b }
.contact { border-radius: 20px; padding: 10px 18px; color: #30261c; background: var(--paper); text-decoration: none; font-weight: 600 }
footer { min-height: 67px }
button { width: 42px; height: 38px; font-size: 19px; border: 1px solid var(--line); border-radius: 24px; background: transparent; color: var(--ink); cursor: pointer }
button:disabled { opacity: .35; cursor: default }
#counter { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums }
@media(max-width: 700px) {
  header,footer { padding: 13px 16px } .edition { font-size: 9px; letter-spacing: .08em }
  article { min-height: calc(100svh - 121px); padding: 32px 20px; gap: 20px }
  .visual { grid-template-columns: 1fr; gap: 24px } .stats { gap: 10px }
  .stat dt { font-size: clamp(27px,7vw,42px) } .stat dd { font-size: 14px }
  .eyebrow { margin-bottom: 19px } nav,.controls { gap: 9px }
}
@page { size: 12in 7.5in; margin: 0 }
@media print {
  header,footer { display: none }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact }
  article, article[hidden] { display: grid; position: relative; width: 12in; height: 7.5in; min-height: 0; padding: .72in .92in; break-after: page; border: 0 }
  article:last-child { break-after: auto }
  article::after { content: 'Levites   /   ' attr(data-page); position: absolute; right: .92in; bottom: .32in; font-size: 12px }
  h1 { font-size: 88px } h2 { font-size: 62px } .intro { font-size: 21px } .stat dt { font-size: 52px }
}

.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.market-card { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; align-items: start }
.market-card h3 { margin: 0; color: var(--rust); font-size: 17px }
.market-card strong { font: 500 clamp(35px, 4.7vw, 67px)/1.1 Georgia, serif; letter-spacing: -.05em; margin-top: 9px }
.market-card p { margin: 8px 0 18px; line-height: 1.4; font-size: clamp(15px, 1.35vw, 20px) }
.market-card a { font-size: 12px; margin-top: auto }
.founder figure { max-width: 360px; justify-self: center }
.founder .source { grid-column: 1 }
@media screen and (max-width: 700px) {
  .market-grid { grid-template-columns: 1fr; gap: 12px }
  .market-card { display: grid; grid-template-columns: minmax(105px, .85fr) 1.4fr; align-items: start; gap: 4px 14px; padding-top: 9px }
  .market-card h3 { grid-column: 1; font-size: 14px }
  .market-card strong { grid-column: 1; grid-row: 2; margin: 0 }
  .market-card p { grid-column: 2; grid-row: 1 / span 2; margin: 0 }
  .market-card a { grid-column: 2 }
  .founder figure { max-width: 200px }
}
