@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=IBM+Plex+Mono:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --ink: #0e0d0b;
  --paper: #f5f0e8;
  --rust: #c0390e;
  --steel: #3b4a5a;
  --gold: #b8943f;
  --cream: #ede7d5;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  overflow-x: hidden;
}

/* Grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ─── Layout ─── */
.page {
  max-width: 760px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Top rule ─── */
.top-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.top-rule .line { flex: 1; height: 2px; background: var(--ink); }
.top-rule .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  white-space: nowrap;
}

/* ─── Kicker ─── */
.kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}

/* ─── Headline ─── */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
h1 em {
  font-style: italic;
  color: var(--rust);
}

/* ─── Subhead ─── */
.subhead {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 400;
  font-style: italic;
  color: var(--steel);
  margin-bottom: 40px;
  line-height: 1.45;
}

/* ─── Hook box ─── */
.hook-box {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 36px;
  margin-bottom: 40px;
  position: relative;
}
.hook-box::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  line-height: 0.6;
  color: var(--rust);
  position: absolute;
  top: 20px;
  left: 16px;
  opacity: 0.9;
}
.hook-box .quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(17px, 2.4vw, 21px);
  font-style: italic;
  line-height: 1.55;
  padding-left: 28px;
  position: relative;
  z-index: 1;
}
.hook-box .quote-attr {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
  padding-left: 28px;
  display: block;
}

/* ─── Mid rule ─── */
.mid-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}
.mid-rule .dot { width: 6px; height: 6px; background: var(--rust); border-radius: 50%; flex-shrink: 0; }
.mid-rule .dline { flex: 1; height: 1px; background: var(--steel); opacity: 0.3; }

/* ─── Body copy ─── */
.body-copy p {
  font-size: clamp(15px, 2vw, 17.5px);
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 300;
}
.body-copy p strong { font-weight: 500; }
.body-copy p em { font-style: italic; }

.body-copy p.punchy {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--steel);
  border-left: 3px solid var(--rust);
  padding-left: 20px;
  margin: 36px 0;
}

/* ─── Section heading ─── */
.section-head {
  margin: 52px 0 24px;
  position: relative;
}
.section-head .section-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 8px;
  display: block;
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section-head h2 em {
  color: var(--rust);
  font-style: italic;
}
.section-head::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--rust);
  margin-top: 14px;
}

/* ─── Stat bar ─── */
.stat-bar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 24px 28px;
  margin: 36px 0;
}
.stat-bar .big-num {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--rust);
  line-height: 1;
  flex-shrink: 0;
}
.stat-bar .stat-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--steel);
  padding-top: 6px;
}
.stat-bar .stat-desc span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ─── Warning box ─── */
.warning-box {
  border: 1.5px solid var(--rust);
  padding: 24px 28px;
  margin: 36px 0;
  position: relative;
}
.warning-box .w-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  background: var(--paper);
  padding: 0 8px;
  position: absolute;
  top: -8px;
  left: 20px;
}
.warning-box p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--steel) !important;
  margin-bottom: 0 !important;
}

/* ─── Pull quote ─── */
.pull-quote {
  background: var(--steel);
  color: var(--paper);
  padding: 32px 36px;
  margin: 40px 0;
}
.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.6vw, 23px) !important;
  font-style: italic;
  line-height: 1.5 !important;
  color: var(--paper) !important;
  font-weight: 400;
  margin: 0 !important;
}
.pull-quote p strong {
  color: var(--gold) !important;
  font-weight: 700;
}

/* ─── Risk list ─── */
.risk-list {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.risk-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--cream);
  border-left: 3px solid var(--rust);
}
.risk-item .risk-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--rust);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.4;
}
.risk-item .risk-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.risk-item .risk-content p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--steel) !important;
  margin: 0 !important;
  font-weight: 300 !important;
}

/* ─── Progress bar ─── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--rust);
  width: 0%;
  z-index: 100;
  transition: width 0.1s linear;
}

/* ─── Bottom rule ─── */
.bottom-rule {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.bottom-rule .end-mark {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  opacity: 0.6;
}
.bottom-rule .end-line {
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.15;
}
.bottom-rule .end-logo {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--rust);
  opacity: 0.7;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  body { padding: 40px 16px; }
  .hook-box { padding: 22px 20px 22px 28px; }
  .stat-bar { flex-direction: column; gap: 10px; }
  .stat-bar .big-num { font-size: 40px; }
  .top-rule .label { font-size: 9px; letter-spacing: 0.12em; }
}
