/* The English blog: the homepage's street identity (Albert Sans, navy, blue, yellow, paper) for long reading. */
@font-face { font-family: "Albert Sans"; src: url("assets/fonts/albert-sans-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("assets/fonts/albert-sans-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("assets/fonts/albert-sans-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("assets/fonts/albert-sans-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("assets/fonts/albert-sans-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
:root {
  --navy: #080e3d;
  --blue: #12399a;
  --yellow: #ffce26;
  --paper: #faf7ef;
  --ink: #263960;
  --muted: #56617d;
  --line: #d9d9ce;
  --card: #fffefa;
  --soft: #f0eede;
  --on-blue: #e0e8ff;
  --focus: #087e94;
  color: var(--navy);
  font-family: "Albert Sans", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scrollbar-color: var(--blue) var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; -webkit-tap-highlight-color: transparent; }
::selection { color: var(--navy); background: var(--yellow); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 96px)); }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px; background: var(--paper); z-index: 20; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Header and hero share the homepage's blue street sky. */
.blog-header, .blog-hero { background: var(--blue); color: #f7f7f8; }
.header-row { display: flex; align-items: center; gap: 40px; padding-block: 26px 10px; }
.blog-wordmark, .footer-wordmark { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; text-decoration: none; }
.blog-header nav { display: flex; gap: 28px; font-size: 18px; font-weight: 500; }
.blog-header nav a { text-decoration: none; padding-block: 10px; white-space: nowrap; }
.blog-header nav a:hover, .blog-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.header-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: #ffdb50; }
.header-cta:focus-visible, .post-kicker a:focus-visible { outline-color: var(--yellow); }
.blog-hero { padding-block: 56px 88px; }
.post-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 16px; font-weight: 600; margin-bottom: 26px; }
.post-kicker a { text-decoration-thickness: 1px; }
/* Category tags borrow the yellow street signs from the homepage artwork. */
.tag { display: inline-block; padding: 7px 15px 8px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 15px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.blog-hero h1 { font-size: clamp(40px, 5.2vw, 70px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; max-width: 17ch; text-wrap: balance; }
.hero-lead { margin-top: 26px; max-width: 46ch; font-size: 22px; font-weight: 500; line-height: 1.45; color: var(--on-blue); }
.post-meta { font-size: 15px; font-weight: 500; color: var(--muted); }
.blog-hero .post-meta { margin-top: 30px; color: #c4d1f3; }

/* Article */
.article-layout { padding-block: 64px 96px; }
.article-body { font-size: 19px; line-height: 1.65; color: var(--ink); overflow-wrap: break-word; }
.article-body > * + * { margin-top: 22px; }
.article-body h2 { margin-top: 60px; font-size: 32px; font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; color: var(--navy); text-wrap: balance; scroll-margin-top: 24px; }
.article-body h2 + * { margin-top: 18px; }
.article-body a { color: var(--blue); text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--navy); text-decoration-thickness: 2px; }
.article-body ul, .article-body ol { padding-left: 1.25em; }
.article-body li { padding-left: 0.2em; }
.article-body li + li { margin-top: 12px; }
.article-body li::marker { color: var(--blue); font-weight: 700; }
.article-body h2#sources ~ ol { font-size: 16px; line-height: 1.55; }
.article-body h2#sources ~ ol li + li { margin-top: 10px; }
/* Tables fit the column at phone width and scroll inside their own box if they ever cannot. */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.article-body .table-wrap { margin-block: 30px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; color: var(--navy); }
.table-wrap th, .table-wrap td { padding: 13px 18px; text-align: left; vertical-align: top; }
.table-wrap th { background: #eeece3; font-weight: 700; white-space: nowrap; }
.table-wrap td { border-top: 1px solid #e4e4d9; }
.table-wrap tr > :last-child { width: 1%; text-align: right; white-space: nowrap; font-weight: 600; }
.article-note { margin-top: 56px; padding: 22px 26px; border-radius: 20px; background: var(--soft); font-size: 16px; line-height: 1.6; color: var(--ink); }

/* Index */
.post-section { padding-block: 64px 96px; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.post-card { position: relative; display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); transition: border-color 0.2s; }
.post-card:hover { border-color: var(--navy); }
.post-card .post-kicker { margin-bottom: 4px; }
.post-card h2 { font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card h2 a:focus-visible { outline: none; }
.post-card:has(h2 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.post-card > p:not([class]) { font-size: 18px; line-height: 1.6; color: var(--ink); }
.read-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.read-more svg, .header-cta svg, .closing-cta svg { flex: none; transition: translate 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
.post-card:hover .read-more svg, .header-cta:hover svg, .closing-cta:hover svg { translate: 4px 0; }
.post-empty { font-size: 19px; color: var(--ink); }

/* Closing call to action and footer, as on the homepage. */
.closing-section { background: var(--yellow); padding-block: 64px; }
.closing-layout { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.closing-section h2 { font-size: 52px; font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; }
.closing-section p { margin-top: 16px; max-width: 46ch; font-size: 19px; line-height: 1.55; color: var(--ink); }
.closing-cta { display: inline-flex; align-items: center; gap: 24px; padding: 24px 32px; border-radius: 999px; background: var(--navy); color: var(--paper); font-size: 20px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.closing-cta:hover { background: var(--blue); }
.closing-cta:focus-visible { outline-color: var(--navy); }
.site-footer { background: var(--navy); color: var(--paper); padding: 56px 0 28px; }
.footer-main, .footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-wordmark { font-size: 38px; }
.site-footer nav { display: flex; gap: 30px; flex-wrap: wrap; font-size: 16px; }
.footer-meta { margin-top: 46px; font-size: 13px; color: #c4d1f3; }
.site-footer a:hover { color: var(--yellow); }

@media (max-width: 900px) {
  .wrap, .narrow { width: calc(100% - 48px); }
  .header-row { flex-wrap: wrap; gap: 12px 20px; padding-block: 20px 6px; }
  .blog-wordmark { font-size: 28px; }
  .header-cta { font-size: 15px; padding: 11px 17px; gap: 8px; }
  .header-cta svg { width: 17px; height: 17px; }
  .blog-header nav { order: 3; width: 100%; gap: 22px; font-size: 15px; }
  .blog-hero { padding-block: 30px 56px; }
  .post-kicker { margin-bottom: 20px; font-size: 15px; }
  .tag { font-size: 14px; }
  .blog-hero h1 { font-size: clamp(34px, 9.6vw, 56px); line-height: 1.04; }
  .hero-lead { margin-top: 20px; font-size: 18px; line-height: 1.5; }
  .blog-hero .post-meta { margin-top: 24px; font-size: 14px; }
  .article-layout { padding-block: 44px 64px; }
  .article-body { font-size: 18px; line-height: 1.65; }
  .article-body > * + * { margin-top: 20px; }
  .article-body h2 { margin-top: 48px; font-size: 26px; }
  .table-wrap table { font-size: 15px; }
  .table-wrap th, .table-wrap td { padding: 11px 12px; }
  .table-wrap th, .table-wrap tr > th:last-child { white-space: normal; }
  .article-note { margin-top: 44px; padding: 20px; font-size: 15px; }
  .post-section { padding-block: 40px 64px; }
  .post-list { grid-template-columns: 1fr; gap: 20px; }
  .post-card { padding: 26px 24px; gap: 14px; border-radius: 24px; }
  .post-card h2 { font-size: 25px; }
  .post-card > p:not([class]) { font-size: 17px; }
  .closing-section { padding-block: 48px; }
  .closing-layout { flex-direction: column; align-items: flex-start; gap: 28px; }
  .closing-section h2 { font-size: 38px; }
  .closing-section p { font-size: 17px; }
  .closing-cta { font-size: 18px; padding: 20px 24px; gap: 16px; }
  .site-footer { padding-top: 38px; }
  .footer-main, .footer-meta { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-footer nav { gap: 20px; font-size: 15px; }
  .footer-meta { margin-top: 36px; }
}
@media (max-width: 360px) {
  .wrap, .narrow { width: calc(100% - 40px); }
  .blog-wordmark { font-size: 25px; }
  .header-cta { font-size: 14px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .read-more svg, .header-cta svg, .closing-cta svg { transition: none; }
}
