
/* Layout: Sarfaraz's site structure (nav, hero, card grid) on a calm solid ground; tiles jump to full reports in a ~760px reading column below. */
:root {
  --ground: #15110E;
  --ground-2: #1A1511;
  --surface: #1E1915;
  --rule: #3A2F27;
  --ink: #F3ECE4;
  --ink-soft: #CFC3B6;
  --ink-quiet: #ADA092;
  --accent: #E9B48C;
  --accent-hover: #F5D2B6;
  --accent-ink: #1A140F;
  --bar-muted: #5A4B3F;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.reading { max-width: 760px; margin: 0 auto; }

/* Site header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(21,17,14,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; gap: 1px; text-decoration: none; color: var(--ink); }
.brand b { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; }
.brand b span { color: var(--accent); }
.brand small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-quiet); }
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { box-shadow: 0 2px 0 var(--accent); }
.site-nav .outline { color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; padding: 9px 16px; }
.site-nav .outline:hover { border-color: var(--accent); }

/* Hero */
.hero { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 16px; }
.crumbs { font-size: 13.5px; color: var(--ink-quiet); }
.crumbs a { color: var(--ink-quiet); text-decoration: none; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6.5vw, 72px); line-height: 1.0; letter-spacing: -0.04em; margin: 0; max-width: 14ch; text-wrap: balance; }
.hero p { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; margin: 0; }

/* Tiles */
.tiles-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-block: 8px 16px; }
.tiles-head span { font-size: 14px; color: var(--ink-quiet); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-bottom: 72px; }
.tile.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 48px; row-gap: 16px; align-items: start; }
.tile.featured .f-main { display: flex; flex-direction: column; gap: 16px; }
.tile.featured h2 { font-size: 34px; }
.tile.featured .stats { margin-top: 0; border-top: 0; padding-top: 0; border-left: 1px solid var(--rule); padding-left: 32px; grid-template-columns: minmax(0, 1fr); gap: 22px; align-self: center; }
.tile.featured .stat { flex-direction: row; align-items: baseline; gap: 14px; }
.tile.featured .stat b { min-width: 3.2ch; }
@media (max-width: 860px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile.featured { display: flex; }
  .tile.featured .stats { align-self: stretch; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 18px; }
  .tile.featured .stat { flex-direction: column; gap: 4px; }
}
.tile { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; min-width: 0; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
@media (prefers-reduced-motion: reduce) { .tile, .tile:hover { transition: none; transform: none; } }
.tile-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-quiet); }
.tile-top b { color: var(--accent); font-weight: 500; }
.tile h2 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.12; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--rule); padding-top: 18px; margin-top: auto; }
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat b { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; line-height: 1.35; color: var(--ink-quiet); }
.tile .go { font-weight: 600; font-size: 15px; color: var(--accent); }

/* Reports */
.report { border-top: 1px solid var(--rule); padding-block: 72px 24px; }
.report:nth-of-type(even) { background: var(--ground-2); }
.report-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.report-head h1, .report-head h2 { max-width: none; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.report-head .lead { font-size: 19px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--ink-quiet); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.toc a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; }
.toc a:hover { color: var(--ink); border-color: var(--accent); }
.report section { padding-block: 36px 4px; border-top: 1px solid var(--rule); margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.report h3 { font-family: var(--display); font-weight: 700; font-size: 29px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.report h4 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; margin: 16px 0 0; text-wrap: balance; }
.report p { margin: 0; max-width: 68ch; color: var(--ink-soft); }
.report strong { color: var(--ink); font-weight: 600; }
.report ol, .facts { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 12px; color: var(--ink-soft); max-width: 68ch; }
.report ol li::marker { font-family: var(--mono); color: var(--accent); font-size: 0.85em; }
.facts li::marker { color: var(--accent); }
.back { display: inline-block; margin-top: 36px; font-size: 14px; text-decoration: none; }

figure { margin: 10px 0 6px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 22px 16px; }
.chart-scroll { overflow-x: auto; }
figure svg { display: block; width: 100%; min-width: 560px; height: auto; }
figure svg text { font-family: var(--body); }
.c-title { fill: var(--ink); font-family: var(--display) !important; font-weight: 700; font-size: 18px; }
.c-sub { fill: var(--ink-quiet); font-size: 14px; }
.c-label { fill: var(--ink-soft); font-size: 14.5px; }
.c-val { fill: var(--ink); font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.c-note { fill: var(--ink-quiet); font-size: 14px; }
.bar-hi { fill: var(--accent); }
.bar-lo { fill: var(--bar-muted); }
.caption { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-quiet); margin-top: 10px; }
.callout { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; }
.callout p { color: var(--ink); }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14.5px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-quiet); font-weight: 500; background: var(--surface); }
td { color: var(--ink-soft); }
td:first-child { color: var(--ink); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.questions li { color: var(--ink); }
.sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 68ch; }
.sources li { font-size: 14.5px; color: var(--ink-soft); padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.sources li span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-quiet); margin-left: 6px; }

.cta { margin-block: 64px 32px; background: var(--accent); color: var(--accent-ink); border-radius: 22px; padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; margin: 0; }
.cta p { margin: 0; max-width: 56ch; }
.cta a { align-self: flex-start; background: var(--accent-ink); color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 999px; }
footer { border-top: 1px solid var(--rule); padding-block: 24px 40px; font-size: 13px; color: var(--ink-quiet); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: 16px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.outline) { font-size: 14px; }
  .tile { padding: 22px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  figure { padding: 16px 14px 12px; }
}

.hero p + p { margin-top: -4px; }
.tiles-head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.page-head { padding-block: 48px 24px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.page-head p { font-size: 18px; color: var(--ink-soft); max-width: 62ch; margin: 0; }
.soon { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 72px; }
.soon p { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.report { border-top: 0; padding-top: 24px; }
.site-nav a { white-space: nowrap; }

/* Overview: one card per section under the hero intro */
.sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.section-card { display: flex; flex-direction: column; gap: 8px; background: var(--ground-2); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.section-card:hover { border-color: var(--accent); color: var(--ink); }
.sc-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.sc-line { font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.sc-go { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: auto; }
@media (max-width: 860px) { .sections { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .section-card { transition: none; } }

/* Jump-to links at the top of list pages */
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jump span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-quiet); margin-right: 4px; }
.jump a { display: inline-flex; align-items: center; min-height: 38px; font-size: 14px; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; }
.jump a:hover { border-color: var(--accent); color: var(--ink); }
@media (max-width: 640px) {
  .jump span { flex-basis: 100%; }
}

/* Room for the taller sticky header on phones when jumping to a spot on the page */
@media (max-width: 640px) { html { scroll-padding-top: 190px; } }

/* Compact featured guide on the Overview */
.tile.compact { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
.tile.compact .c-main { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.tile.compact h2 { font-size: 24px; }
.tile.compact .go { flex: none; }
@media (max-width: 860px) { .tile.compact { flex-direction: column; align-items: flex-start; gap: 16px; } }
.featured-guide { margin-top: -40px; }
.tile.compact .tile-top { justify-content: flex-start; gap: 18px; }

/* Open-book icon marking guide books */
.kind { display: inline-flex; align-items: center; gap: 8px; }
.book { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

/* Author box at the end of every report, guide book and comparison */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 8px 0 72px; padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box b { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); }
.author-box p { margin: 6px 0 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.author-box a { font-size: 15px; font-weight: 600; text-decoration: none; }
@media (max-width: 520px) { .author-box { flex-direction: column; } }

/* Short author strip near the bottom of the Overview */
.about-strip { display: flex; gap: 16px; align-items: center; padding: 22px 0 56px; border-top: 1px solid var(--rule); }
.about-strip img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.about-strip p { margin: 0; font-size: 15.5px; color: var(--ink-soft); max-width: 70ch; }
.about-strip a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* About page photo beside the name */
.about-intro { display: flex; align-items: center; gap: 22px; }
.about-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 520px) { .about-intro { flex-direction: column; align-items: flex-start; } .about-photo { width: 96px; height: 96px; } }

/* How we judge evidence: short block lower on the Overview, above the author strip */
.evidence { padding-block: 48px 56px; }
.evidence-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; }
.evidence-card p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 70ch; }
@media (max-width: 640px) { .evidence { padding-block: 40px 44px; } .evidence-card { padding: 22px; } }
