/* Parallel North — site styles. Colours match the video brand kit. */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/fonts/source-serif.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/fonts/source-serif-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --navy: #080D17;
  --ink: #0E1626;
  --line: #1D2940;
  --text: #F3F5F9;
  --muted: #8C96AA;
  --ca: #FF4D52;
  --us: #4C8DFF;
  --eu: #1FC7A8;
  --oil: #FFB224;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--us); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--navy); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header / footer ---------- */
header.site, footer.site, main > section, main > ul, .post { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; text-decoration: none; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; }
.mark { width: 26px; height: 26px; color: var(--text); flex: none; }
header nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 15px; font-weight: 500; }
header nav a { text-decoration: none; color: var(--muted); padding-block: 4px; border-bottom: 2px solid transparent; }
header nav a:hover, header nav a[aria-current] { color: var(--text); border-bottom-color: var(--ca); }

footer.site { margin-top: 120px; padding-block: 48px 64px; border-top: 1px solid var(--line); display: grid; gap: 20px 48px; grid-template-columns: 1fr auto; color: var(--muted); font-size: 14px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand p { margin: 0; color: var(--text); font-size: 15px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-self: start; }
.social a, .contact a, .legal a { color: var(--text); text-decoration-color: var(--line); text-underline-offset: 3px; }
.social a:hover, .contact a:hover, .legal a:hover { text-decoration-color: var(--ca); }
.contact, .legal { grid-column: 1 / -1; margin: 0; max-width: 72ch; }

/* ---------- hero: the rate chart is the memorable element ---------- */
.hero { padding-top: clamp(32px, 7vw, 88px); }
.hero h1 { font-size: clamp(44px, 8.4vw, 112px); line-height: .95; letter-spacing: -.035em; font-weight: 850; margin: 0; max-width: 10ch; }
.lede { font-size: clamp(18px, 2vw, 21px); color: #C9D0DD; max-width: 46ch; margin: 28px 0 0; }
.hero-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin: 32px 0 0; }
.btn { background: var(--ca); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 6px; }
.btn:hover { background: #ff6569; }
.link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ca); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-chart { margin: clamp(40px, 6vw, 72px) 0 0; position: relative; }
.chart-box { position: relative; height: clamp(220px, 32vw, 400px); margin-bottom: 26px; }
.chart-box svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rate .grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rate .line { fill: none; stroke: #5B6880; stroke-width: 2.5; }
.rate .tail { fill: none; stroke: var(--ca); stroke-width: 4; }
.chart-box .now { position: absolute; right: -6px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--ca); box-shadow: 0 0 0 6px rgba(255, 77, 82, .18); }
.chart-box .yl, .chart-box .xl { position: absolute; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1; }
.chart-box .yl { left: 0; transform: translateY(-140%); }
.chart-box .xl { bottom: -22px; padding-left: 6px; border-left: 1px solid var(--line); }
.hero-chart figcaption { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 70ch; }
.hero-chart figcaption strong { color: var(--text); font-weight: 600; }

/* ---------- meta line + region tags ---------- */
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 500; }
.region { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.region::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: currentColor; }
.r-canada.region::before { background: var(--ca); }
.r-us.region::before { background: var(--us); }
.r-global.region::before { background: var(--eu); }

/* ---------- this week's episode ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(72px, 10vw, 128px); }
.feature-img img { border-radius: 10px; border: 1px solid var(--line); }
.feature h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 800; }
.feature h2 a { text-decoration: none; }
.feature h2 a:hover { text-decoration: underline; text-decoration-color: var(--ca); text-underline-offset: 6px; }
.feature-text > p:not(.meta) { color: #C9D0DD; margin: 0 0 18px; }

/* ---------- lists of entries ---------- */
.latest, .method, .more { margin-top: clamp(72px, 10vw, 120px); }
section > h2 { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0 0 8px; letter-spacing: .01em; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 40px; }
main > ul.entries { padding-inline: var(--gutter); }
.entry a { display: block; text-decoration: none; padding: 22px 0 26px; border-top: 1px solid var(--line); height: 100%; }
.entry h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 10px; font-weight: 700; }
.entry .sum { margin: 0; color: var(--muted); font-size: 16px; }
.entry a:hover h3 { text-decoration: underline; text-decoration-color: var(--ca); text-underline-offset: 4px; }
.entries.list { grid-template-columns: 1fr; max-width: 820px; }

/* ---------- coverage mix ---------- */
.mix { display: flex; height: 52px; border-radius: 6px; overflow: hidden; margin: 18px 0 40px; font-size: 14px; font-weight: 600; }
.mix span { display: flex; align-items: center; gap: 6px; padding-inline: 14px; color: var(--navy); white-space: nowrap; }
.mix .r-canada { background: var(--ca); } .mix .r-us { background: var(--us); } .mix .r-global { background: var(--eu); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.principles p { margin: 0; color: var(--muted); font-size: 16px; }
.principles strong { display: block; color: var(--text); font-size: 19px; margin-bottom: 6px; }

/* ---------- article ---------- */
.list-head { padding-top: clamp(32px, 6vw, 72px); margin-bottom: 24px; }
.list-head h1, .post-head h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -.03em; font-weight: 850; margin: 0; max-width: 18ch; }
.post { padding-top: clamp(32px, 6vw, 72px); }
.post-head { max-width: 860px; }
.dek { font-size: clamp(19px, 2.2vw, 23px); color: #C9D0DD; margin: 20px 0 0; max-width: 52ch; line-height: 1.45; }
.video { margin: 40px 0 0; max-width: 980px; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.video img { border-radius: 10px; border: 1px solid var(--line); }
.video figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }
.prose { font-family: var(--serif); font-size: 20px; line-height: 1.65; max-width: 66ch; margin-top: 48px; font-optical-sizing: auto; }
.prose h2 { font-family: var(--sans); font-size: 27px; line-height: 1.2; letter-spacing: -.015em; font-weight: 800; margin: 56px 0 14px; }
.prose p, .prose ul, .prose table, .prose blockquote { margin: 0 0 22px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ca); }
.prose a { color: var(--text); text-decoration-color: #4A5872; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ca); }
.prose blockquote { border-left: 3px solid var(--ca); padding: 4px 0 4px 22px; margin-left: 0; font-style: italic; font-size: 23px; line-height: 1.45; }
.prose blockquote p { margin: 0; }
.prose img { width: calc(100% + 0px); border-radius: 8px; border: 1px solid var(--line); margin: 34px 0; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.4; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.prose td:first-child { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.post-foot { max-width: 66ch; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.post-foot p { margin: 0 0 10px; }

/* ---------- small screens ---------- */
@media (max-width: 800px) {
  .feature, .principles { grid-template-columns: 1fr; }
  footer.site { grid-template-columns: 1fr; }
  .mix span { padding-inline: 10px; font-size: 13px; }
  .mix .r-us b, .mix .r-global b { display: none; }
  .prose { font-size: 18.5px; }
  .brand span { font-size: 12px; letter-spacing: .1em; }
  header nav { gap: 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rate .tail { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.1s .4s ease-out forwards; }
  .chart-box .now { opacity: 0; animation: pop .3s 1.4s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { opacity: 1; } }
}

/* ---------- reading pages: one centred column ---------- */
.post, .list-head, .more, main > ul.entries.list { max-width: calc(760px + 2 * var(--gutter)); }
main > ul.entries.list { margin-inline: auto; }
.post-head, .dek, .video, .prose, .post-foot { max-width: none; }
.list-head h1, .post-head h1 { font-size: clamp(34px, 4.8vw, 54px); max-width: none; text-wrap: balance; }
.dek { text-wrap: pretty; }
.more .entries { grid-template-columns: 1fr; }
footer.site { border-top: 0; background: linear-gradient(var(--line), var(--line)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px; }
