/* BCE Media LLC: neutral newsroom theme. Rules live in DESIGN_SYSTEM.md. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
:root {
  --ink: #111111;
  --ink-2: #333333;
  --muted: #666666;
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --rule: #d9d9d6;
  --black: #111111;
  --accent: #b4232a;
  --accent-dark: #e0454c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--serif); text-rendering: optimizeLegibility; }
/* film grain: barely there, gives the page a printed/filmic texture */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 200; }
.muted { color: var(--muted); }
.ph { background: #fff3cd; color: #6b4e00; padding: 1px 6px; border-radius: 3px; font: 600 .85em var(--sans); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* dateline + masthead */
.dateline { background: var(--black); color: #cfcfcf; font: 500 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.dateline-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); margin-right: 9px; vertical-align: 1px; animation: rec 2.4s ease-in-out infinite; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.masthead { background: var(--paper); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.masthead::after { content: ""; display: block; height: 3px; border-bottom: 1px solid var(--ink); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.wordmark { display: inline-flex; text-decoration: none; }
.logo-img { height: 46px; width: auto; }
.footer-logo { height: 40px; margin-bottom: 12px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font: 500 15px var(--sans); }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle { display: none; font: 600 14px var(--sans); background: none; border: 1px solid var(--ink); padding: 8px 14px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .dl-date { display: none; }
}

/* type */
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(36px, 5.4vw, 60px); margin: 0 0 18px; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 21px; margin: 0 0 6px; }
.kicker { font: 700 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.dek { font-size: clamp(19px, 2vw, 22px); color: var(--ink-2); margin: 0 0 8px; max-width: 46ch; }
.lede { font-size: 20px; color: var(--ink-2); }
.page-head { padding: 64px 0 30px; border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.page-head .dek { max-width: 60ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 48px; font-size: 28px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.laws li { font-family: var(--sans); font-size: 16px; }
.updated { font: 13px var(--sans); color: var(--muted); margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); }
.more { font: 600 15px var(--sans); text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }

/* buttons */
.btn { display: inline-block; font: 600 15px var(--sans); padding: 13px 22px; text-decoration: none; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(180, 35, 42, .25); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* hero: left-aligned, framed by the logo's viewfinder corners */
.hero { position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, .8fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.hero-copy { position: relative; padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px) clamp(28px, 4vw, 44px) clamp(28px, 4vw, 52px); }
.hero-frame { position: absolute; inset: 0 -8px -28px 0; pointer-events: none; }
.hero-frame i { position: absolute; width: 56px; height: 56px; border-color: var(--ink); border-style: solid; border-width: 0; opacity: .9; }
.hero-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; }
.hero-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; }
.hero-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; }
.hero-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; }
.hero-frame::after { content: ""; position: absolute; top: 22px; left: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: rec 2.4s ease-in-out infinite; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); max-width: 15ch; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.split.in .w > span { transform: none; }
.stats { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 36px); display: grid; gap: 22px; }
.stat { display: flex; flex-direction: column; }
.stat-n { font: 700 clamp(34px, 4vw, 46px)/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-l { font: 500 14px var(--sans); color: var(--muted); margin-top: 6px; }
.stats-note { font: 12px var(--sans); color: var(--muted); margin: 0; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-frame i { width: 36px; height: 36px; }
  .hero-copy { padding: 26px 20px 30px 26px; }
  .stats { border-left: 0; border-top: 1px solid var(--rule); padding: 24px 0 0; grid-template-columns: repeat(3, 1fr); }
  .stats-note { grid-column: 1 / -1; }
}

.trustbar { background: var(--paper-2); border-bottom: 1px solid var(--rule); font: 500 13px/1.4 var(--sans); color: var(--ink-2); }
.trustbar-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.tb-label { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--accent); }
.tipline { font: 16px/1.6 var(--sans); color: var(--ink-2); border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin-top: 28px; }
.footer-notice { font-size: 13px; color: #cfcfcf; margin-top: 32px; padding-top: 16px; border-top: 1px solid #2a2a2a; }
.footer-notice + .legal { border-top: 0; margin-top: 8px; padding-top: 0; }

/* policy page */
.policy-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 26px 0 0; font-family: var(--sans); }
.policy-meta dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.policy-meta dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.toc { border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 18px 22px; margin-bottom: 8px; background: var(--paper-2); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font: 15px/1.9 var(--sans); }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.policy h2 { display: flex; gap: 14px; align-items: baseline; scroll-margin-top: 100px; }
.policy h2 span { font: 700 14px var(--sans); color: var(--accent); min-width: 22px; }
.notice { margin-top: 44px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); padding: 16px 20px; background: var(--paper-2); }
.notice p { margin: 6px 0; font-size: 16px; }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.split-2 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 820px) { .split-2 { grid-template-columns: 1fr; } }
.band { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.center-ish { text-align: left; }

/* story cards + horizontal rail */
.rail-section { padding-bottom: 40px; }
.rail-wrap { position: relative; }
.rail-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 80px; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), var(--paper)); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))) 24px; scrollbar-width: thin; }
.rail .story { scroll-snap-align: start; }
.story { display: flex; flex-direction: column; }
.story-media { position: relative; display: block; overflow: hidden; background: #000; aspect-ratio: 16 / 9; margin-bottom: 14px; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.story-media:hover img { transform: scale(1.04); opacity: .9; }
.play { position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; background: rgba(17,17,17,.85); }
.play::after { content: ""; position: absolute; left: 15px; top: 12px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.story-kicker { font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.story-head { font-size: 20px; line-height: 1.22; margin: 0 0 8px; }
.story-head a { text-decoration: none; }
.story-head a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.story-dek { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 0 0 8px; }
.story-src { font: 500 12px var(--sans); color: var(--muted); margin: auto 0 0; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.story-lg { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 32px; border-bottom: 1px solid var(--rule); padding-bottom: 40px; }
.story-lg .story-media { grid-row: 1 / span 5; margin: 0; }
.story-lg .story-kicker { align-self: end; }
.story-lg .story-head { font-size: clamp(26px, 3vw, 36px); }
.story-lg .story-dek { font-size: 18px; }
.story-lg .story-src { margin: 0; align-self: start; }
@media (max-width: 900px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .story-grid { grid-template-columns: 1fr; } .story-lg { grid-template-columns: 1fr; } .story-lg .story-media { grid-row: auto; margin-bottom: 14px; } }
.archive-note { font: 15px/1.6 var(--sans); color: var(--muted); border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 20px; }

/* beats list (instead of three generic cards) */
.beats { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.beats li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.beats span { font: 700 14px var(--sans); color: var(--accent); padding-top: 4px; letter-spacing: .05em; }
.beats p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* process timeline: progress line fills as you scroll */
.process { border-top: 1px solid var(--rule); }
.timeline { --p: 0; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 2px; background: var(--rule); }
.timeline::after { background: var(--accent); right: auto; width: calc((100% - 40px) * var(--p)); transition: width .2s linear; }
.timeline li { position: relative; z-index: 1; }
.step { display: grid; place-items: center; width: 40px; height: 40px; background: var(--paper); border: 2px solid var(--ink); font: 700 15px var(--sans); margin-bottom: 16px; }
.timeline p { font-size: 16px; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; padding-left: 60px; }
  .timeline::before, .timeline::after { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; }
  .timeline::after { height: calc((100% - 40px) * var(--p)); width: 2px; bottom: auto; }
  .step { position: absolute; left: -60px; top: 0; }
}

/* standards + transparency */
.principles { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; }
.principles li { padding-left: 18px; border-left: 2px solid var(--accent); color: var(--ink-2); }
.transparency { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.transparency > div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); }
.transparency > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.transparency > div:nth-child(even) { padding-left: 20px; }
.transparency h3 { font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.transparency p { margin: 0; font-size: 16px; color: var(--ink-2); }
@media (max-width: 560px) { .transparency { grid-template-columns: 1fr; } .transparency > div { border-right: 0 !important; padding-left: 0 !important; } }

/* corrections log */
.log { list-style: none; padding: 0; }
.log li { border-top: 1px solid var(--rule); padding: 16px 0; }
.log time { font: 600 13px var(--sans); color: var(--muted); display: block; }
.log-empty { font: 600 17px var(--sans); border: 1px solid var(--rule); border-left: 3px solid var(--ink); padding: 18px 20px; background: var(--paper-2); }

/* channels */
.channel { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center; background: var(--paper-2); border: 1px solid var(--rule); padding: 28px; margin: 32px 0; }
.channel img { width: 140px; }
.channel h2 { margin: 0 0 6px; }
.channel p { color: var(--ink-2); margin: 0 0 6px; }
.channel .handle { font: 600 14px var(--sans); color: var(--muted); }
@media (max-width: 560px) { .channel { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 32px 0; }
.contact-grid > div { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 20px 22px; }

/* footer */
.footer { background: var(--black); color: #cfcfcf; padding: 52px 0 26px; font: 15px/1.6 var(--sans); }
.footer a { color: #fff; text-decoration-color: var(--accent-dark); }
.footer .muted { color: #9a9a9a; }
.footer .kicker { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid #2a2a2a; font-size: 13px; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
}
