/* Oddly Profitable: warm off-white, dark ink, burnt orange; strong editorial headlines. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces/fraunces-latin-full-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans/instrument-sans-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans/instrument-sans-latin-wght-italic.woff2') format('woff2-variations'); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --bg: #FAF6EE; --card: #FFFDF8; --ink: #1B1A17; --ink-2: #3D3A33; --muted: #6E675B; --rule: #E2D8C4; --tint: #F2EADB;
  --accent: #C4561B; --accent-ink: #A2430F;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif; --text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --ui: var(--text);
  --wrap: 1180px; --radius: 2px; --measure: 66ch;
}
.theme-oddly .headline { font-variation-settings: 'SOFT' 30, 'WONK' 1; font-weight: 650; }
.eyebrow { font: 700 12px/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px; }
.kicker { color: var(--accent-ink); }

/* Header */
.site-header { border-bottom: 3px solid var(--ink); background: var(--bg); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.wordmark { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variation-settings: 'SOFT' 60, 'WONK' 1; }
.wordmark .w1 { font-style: italic; font-weight: 500; color: var(--accent); }
.bar .search-form { width: min(300px, 40vw); }
.topics ul { list-style: none; margin: 0; padding: 0 0 2px; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.topics ul::-webkit-scrollbar { display: none; }
.topics a { display: block; padding: 10px 0 12px; font: 600 14.5px var(--ui); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.topics a:hover, .topics a[aria-current='page'] { border-bottom-color: var(--accent); color: var(--ink); }

/* Home: hero */
.op-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(28px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.op-hero h1.headline { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.op-hero .dek { font-size: clamp(1.05rem, 1.8vw, 1.3rem); margin-top: 18px; max-width: 46ch; }
.op-hero .meta { font-size: 14px; }
.op-hero-img img { aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 10px 10px 0 var(--accent); }
.band { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 36px 0 12px; }
.band h2 { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0; letter-spacing: -0.02em; font-variation-settings: 'SOFT' 50, 'WONK' 1; }
.band p { margin: 0; color: var(--muted); font-size: 15px; }

/* The oddities: numbered list */
.odd-list { list-style: none; margin: 0; padding: 0; counter-reset: odd; }
.odd-list li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 200px; gap: 22px; padding: 22px 0; border-top: 1px solid var(--rule); align-items: start; }
.odd-list li:first-child { border-top: 2px solid var(--ink); }
.odd-list .num { font: 300 3rem/0.9 var(--display); color: var(--accent); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.odd-list .headline { font-size: clamp(1.25rem, 2.4vw, 1.65rem); margin-top: 2px; }
.odd-list .dek { font-size: 15.5px; }
.odd-list .thumb img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Desks: dark band for "Does it add up?" */
.op-desk { padding: 8px 0 36px; }
.op-desk-analysis { background: var(--ink); color: var(--bg); margin-top: 36px; }
.op-desk-analysis .band p, .op-desk-analysis .meta { color: #CFC6B5; }
.op-desk-analysis .headline a:hover { color: #F1A574; }
.op-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.op-card img { aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 12px; }
.op-card .headline { font-size: 1.25rem; }

/* Sections list */
.op-section-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.op-section-list a { display: block; padding: 16px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.op-section-list .name { font: 650 1.3rem var(--display); margin-right: 10px; }
.op-section-list .count { font: 13px var(--ui); color: var(--muted); }
.op-section-list .desc { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.op-section-list a:hover .name { color: var(--accent); }
.op-empty { padding: clamp(40px, 8vw, 96px) var(--gutter); }
.op-empty .headline { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 18ch; }

/* Article */
.op-article-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 24px; max-width: 980px; margin-left: auto; margin-right: auto; }
.op-article-head h1.headline { font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; }
.op-article-head .dek { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-top: 16px; max-width: 58ch; }
.hero img { width: 100%; border-radius: var(--radius); }
.hero { margin-bottom: 8px; }
.op-article-body { display: grid; grid-template-columns: 290px minmax(0, var(--measure)); gap: clamp(28px, 5vw, 64px); justify-content: center; padding-top: 28px; }
.op-figures { position: sticky; top: 16px; align-self: start; display: grid; gap: 24px; }
.op-figures .key-points { border-top: 4px solid var(--accent); padding-top: 12px; }
.op-figures .key-points h2 { color: var(--accent-ink); }
.op-figures .key-points ol { list-style: none; margin: 0; padding: 0; counter-reset: kp; }
.op-figures .key-points li { counter-increment: kp; padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed var(--rule); font-size: 15px; line-height: 1.5; }
.op-figures .key-points li::before { content: counter(kp); position: absolute; left: 0; top: 8px; font: 700 1.3rem/1 var(--display); color: var(--accent); }
.prose > p:first-child::first-letter { font: 700 3.6em/0.8 var(--display); float: left; margin: 0.08em 0.1em 0 0; color: var(--accent); }
.prose blockquote { font: italic 1.35rem/1.4 var(--display); border-left: 0; padding: 0; color: var(--ink); }
.prose blockquote::before { content: '“'; display: block; font-size: 3rem; line-height: 0.6; color: var(--accent); }
.prose h2 { letter-spacing: -0.015em; font-variation-settings: 'SOFT' 40, 'WONK' 1; }
.sources { border-top-color: var(--accent); }
.op-related { padding-top: 24px; }
.op-related h2 { font-family: var(--display); font-size: 1.8rem; border-top: 3px solid var(--ink); padding-top: 18px; }
.op-cat-head h1 { letter-spacing: -0.03em; }

/* Footer */
.site-footer { background: var(--ink); color: #E8E0D0; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { font: 800 1.6rem var(--display); margin: 0; color: #fff; }
.foot-tag { margin: 4px 0 0; color: #BDB3A1; max-width: 34ch; }
.site-footer a:hover { color: #F1A574; }

@media (max-width: 900px) {
  .op-hero { grid-template-columns: minmax(0, 1fr); }
  .op-hero-img { order: -1; }
  .op-hero-img img { box-shadow: 6px 6px 0 var(--accent); }
  .op-cards { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .op-article-body { grid-template-columns: minmax(0, 1fr); }
  .op-figures { position: static; }
  .op-figures .toc { display: none; }
  .op-section-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bar { flex-wrap: wrap; }
  .bar .search-form { width: 100%; }
  .odd-list li { grid-template-columns: 44px minmax(0, 1fr) 88px; gap: 12px; }
  .odd-list .num { font-size: 2rem; }
  .odd-list .dek { display: none; }
  .topics ul { gap: 20px; }
}
