/* blog template 4: the blog in the site's design (apps/site/assets/css/site.css). The Blog
   module writes this file on every publish: change modules/blog/src/lib/site-css.ts, not this file. */
:root {
  --white: #ffffff;
  --ink: #040303;
  --cyan: #39C7D8;
  --on-cyan: #040303;
  --graphite: #343333;
  --grey: #686868;
  --grey-light: #8c8b8b;
  --paper-2: #f5f5f5;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --serif-style: italic;
  --wrap: 1240px;
  --read: 720px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
}

/* tones: each band says whether it is white, soft grey or dark */
.tone-light,
.tone-soft {
  --bg: var(--white);
  --fg: var(--ink);
  --fg-2: var(--graphite);
  --fg-3: var(--grey);
  --line: rgba(4, 3, 3, 0.1);
  --line-2: rgba(4, 3, 3, 0.2);
  --card: var(--white);
}
.tone-soft { --bg: var(--paper-2); }
.tone-dark {
  --bg: var(--ink);
  --fg: var(--white);
  --fg-2: rgba(255, 255, 255, 0.78);
  --fg-3: var(--grey-light);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.22);
  --card: rgba(255, 255, 255, 0.035);
}
.tone-light, .tone-soft, .tone-dark { background: var(--bg); color: var(--fg); }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--on-cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--cyan); color: var(--on-cyan); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* type: the pair of the sans and the serif in italics */
.kicker { margin: 0; font-family: var(--serif); font-style: var(--serif-style); font-size: 22px; line-height: 1.2; color: var(--fg-3); }
.h-mid, .h-display { margin: 0; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.h-mid { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; }
.h-display { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.04; }
.h-mid em, .h-display em, .post-title em, .foot-sign em {
  font-family: var(--serif); font-style: var(--serif-style); font-weight: 400; letter-spacing: -0.01em;
}
.h-mid em, .h-display em { font-size: 1.12em; }
.lede { margin: 0; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; color: var(--fg-2); max-width: 48ch; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 28px; border: 1px solid transparent; border-radius: 999px;
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.3s ease, transform 0.35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--cyan); color: var(--on-cyan); }
.btn-primary:hover { background: var(--white); color: var(--ink); box-shadow: 0 12px 44px -10px rgba(57, 199, 216, 0.6); }
.tone-light .btn-primary:hover, .tone-soft .btn-primary:hover { background: var(--ink); color: var(--white); box-shadow: 0 12px 40px -12px rgba(4, 3, 3, 0.5); }
.btn-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0;
  font-size: 15.5px; font-weight: 700; text-decoration: none; color: var(--fg);
  border-bottom: 1px solid var(--line-2); transition: border-color 0.25s ease;
}
.btn-link:hover { border-color: var(--cyan); }

/* the menu: clear over the dark top, white once the page scrolls (the site's script) */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h); padding: 0 28px;
  display: flex; align-items: center; gap: 24px;
  color: var(--white); background: transparent; border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
html:not(.js) .nav { position: absolute; }
.nav.is-solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: rgba(4, 3, 3, 0.08);
}
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 26px; width: auto; }
.nav .logo-dark, .nav.is-solid .logo-light { display: none; }
.nav.is-solid .logo-dark { display: block; }
.nav-links {
  position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  position: relative; padding: 8px 15px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; opacity: 0.78; transition: opacity 0.25s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left center; transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-cta {
  padding: 10px 19px; border-radius: 999px; background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav.is-solid .nav-cta { background: var(--ink); color: var(--white); }
.nav-cta:hover, .nav.is-solid .nav-cta:hover { background: var(--cyan); color: var(--on-cyan); }
.nav-menu {
  display: none; width: 38px; height: 38px; padding: 0;
  border: 1px solid currentColor; border-radius: 50%; background: transparent;
  place-items: center; cursor: pointer; opacity: 0.8;
}
.nav-menu svg { width: 17px; height: 17px; }
html:not(.js) .nav-menu { visibility: hidden; }
.menu-sheet {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 59;
  display: flex; flex-direction: column; padding: 8px 20px 24px;
  background: var(--white); border-bottom: 1px solid rgba(4, 3, 3, 0.1);
  box-shadow: 0 24px 40px -20px rgba(4, 3, 3, 0.25);
}
.menu-sheet[hidden] { display: none; }
.menu-sheet a {
  padding: 15px 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid rgba(4, 3, 3, 0.08);
}
.menu-sheet a:last-child { border-bottom: 0; }
/* the blog beside the call: the serif voice, quieter than the menu, a hairline before the button */
.nav-aside {
  display: inline-flex; align-items: center; gap: 14px; margin-right: 4px; padding: 6px 0 6px 4px;
  font-family: var(--serif); font-style: var(--serif-style); font-size: 18px; line-height: 1;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 5px;
  opacity: 0.6; transition: opacity 0.25s ease, text-decoration-color 0.25s ease;
}
.nav-aside::after { content: ""; width: 1px; height: 18px; background: currentColor; opacity: 0.4; }
.nav-aside:hover, .nav-aside[aria-current="page"] { opacity: 1; text-decoration-color: var(--cyan); }
.menu-sheet a.menu-aside {
  padding-top: 18px; font-family: var(--serif); font-style: var(--serif-style); font-weight: 400; letter-spacing: 0; color: var(--grey);
}

/* the article's top: dark, with the site's dot grid */
.post-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 104px)) 0 clamp(64px, 8vw, 112px);
}
.post-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 75% 35%, #000 20%, transparent 75%);
}
.post-hero .wrap > * { max-width: 940px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; font-size: 13.5px; color: var(--fg-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.post-hero .kicker { margin-bottom: 18px; }
.post-title {
  margin: 0; font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.04em; text-wrap: balance;
}
.post-title em { font-size: 1.08em; line-height: 1.02; }
.post-hero .lede { margin-top: 26px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; font-size: 14.5px; color: var(--fg-3); }
.author-link { color: var(--fg); font-weight: 700; text-decoration: none; }
a.author-link:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; }

/* the text, on white */
.post { padding: 0 0 clamp(72px, 9vw, 128px); }
.cover {
  width: 100%; max-width: 1040px; margin: clamp(40px, 5vw, 64px) auto 0;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(4, 3, 3, 0.45);
}
.post-grid {
  display: grid; grid-template-columns: minmax(0, var(--read)); justify-content: center;
  padding-top: clamp(44px, 6vw, 80px);
}
.post-body { min-width: 0; }
.toc { margin: 0 0 40px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; }
.toc-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.toc a { display: block; font-size: 14.5px; line-height: 1.4; color: var(--fg-2); text-decoration: none; }
.toc a:hover { color: var(--fg); }
.toc li.level-3 { padding-left: 14px; }
.toc li.level-3 a { font-size: 13.5px; color: var(--fg-3); }
@media (min-width: 1180px) {
  .post-grid { grid-template-columns: 230px minmax(0, var(--read)); column-gap: 72px; }
  .toc { position: sticky; top: calc(var(--nav-h) + 36px); align-self: start; margin: 0; padding: 0 0 0 20px; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
}
.post-lede {
  margin: 0 0 40px; padding-left: 22px; border-left: 3px solid var(--cyan);
  font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; color: var(--fg);
}
.post-lede p { margin: 0; }
.body { font-size: 17.5px; line-height: 1.72; color: var(--fg-2); }
.body h2 { margin: 60px 0 16px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: var(--fg); text-wrap: balance; }
.body h3 { margin: 38px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: var(--fg); }
.body p, .body ul, .body ol, .body table, .body pre { margin: 0 0 22px; }
.body strong { color: var(--fg); }
.body a, .post-lede a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.body a:hover, .post-lede a:hover { text-decoration-color: var(--fg); }
.body ul { list-style: none; padding: 0; }
.body ul > li { position: relative; padding-left: 24px; margin: 8px 0; }
.body ul > li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 7px; height: 7px; background: var(--cyan); }
.body ol { padding-left: 24px; }
.body ol > li { margin: 8px 0; padding-left: 4px; }
.body ol > li::marker { color: var(--fg-3); font-weight: 700; }
.body blockquote {
  margin: 36px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--cyan);
  font-family: var(--serif); font-style: var(--serif-style); font-size: 25px; line-height: 1.35; color: var(--fg);
}
.body blockquote p { margin: 0; }
.body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.body th, .body td { padding: 12px 18px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.body th { font-weight: 700; color: var(--fg); border-bottom-color: var(--line-2); }
.body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: var(--paper-2); color: var(--fg); }
.body pre { padding: 16px 18px; border-radius: 12px; overflow: auto; background: var(--paper-2); font-size: 14px; }
.body pre code { padding: 0; background: none; }
.body hr { margin: 44px 0; border: 0; border-top: 1px solid var(--line); }
.body figure { margin: 32px 0; }
.body img { border-radius: 14px; }

.takeaways { margin: 56px 0; padding: clamp(28px, 4vw, 40px); border-radius: var(--radius); }
.takeaways h2 { margin: 0 0 18px; font-family: var(--serif); font-style: var(--serif-style); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; }
.takeaways ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.takeaways li { position: relative; padding-left: 26px; color: var(--fg-2); line-height: 1.6; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--cyan); }

.faq { margin: 64px 0; }
.faq h2 { margin: 0 0 18px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0;
  list-style: none; font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: background 0.3s ease, border-color 0.3s ease; }
.faq-item summary i::before, .faq-item summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px;
  background: currentColor; transform: translate(-50%, -50%);
}
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease-out); }
.faq-item summary:hover i { border-color: var(--fg); }
.faq-item[open] summary i { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); }
.faq-item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { margin: 0; max-width: 60ch; padding-bottom: 24px; font-size: 16.5px; line-height: 1.65; color: var(--fg-2); }

.sources { margin: 56px 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-3); }
.sources h2 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.sources ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.sources a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sources a:hover { color: var(--fg); text-decoration-color: var(--cyan); }

.author-card { display: flex; gap: 18px; align-items: center; margin: 56px 0 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.author-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.author-card .mark { flex: none; }
.author-card .mark img { border-radius: 14px; }
.author-card .initials { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.author-card strong { display: block; font-size: 16px; color: var(--fg); }
.author-card .role { font-size: 13.5px; color: var(--fg-3); }
.author-card p { margin: 6px 0 0; font-size: 15px; color: var(--fg-2); }
.author-card a { text-decoration-color: var(--cyan); text-underline-offset: 3px; }

/* more from the series: the site's cards */
.related { padding: clamp(80px, 9vw, 128px) 0; }
.related .h-mid { margin: 10px 0 40px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.card a {
  display: flex; flex-direction: column; height: 100%; padding: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card a:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 48px -32px rgba(4, 3, 3, 0.4); }
.card h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--fg); }
.card p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.card-more { margin-top: auto; padding-top: 24px; color: var(--fg); }
.card-more svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.card a:hover .card-more svg { transform: translateX(4px); }

/* the closing call, as on every page of the site */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(110px, 14vw, 200px) 0; text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 35%, #000 80%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 35%, #000 80%);
}
.cta-inner { position: relative; display: grid; justify-items: center; gap: 26px; }
.cta .h-display { max-width: 16ch; }
.cta .lede { margin: 0 auto; max-width: 46ch; text-align: center; }
.cta .btn { margin-top: 10px; }

/* the blog's index */
.index { padding: clamp(56px, 7vw, 96px) 0 clamp(88px, 10vw, 140px); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.post-card a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}
.post-card a:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 28px 56px -36px rgba(4, 3, 3, 0.45); }
.post-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--line); }
.post-card-text { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.post-card .kicker { font-size: 19px; }
.post-card h2 { margin: 8px 0 10px; font-size: clamp(21px, 1.9vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; color: var(--fg); text-wrap: balance; }
.post-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--fg-2); }
.post-card time { display: block; margin-top: auto; padding-top: 20px; font-size: 13.5px; color: var(--fg-3); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 48px; font-size: 14.5px; color: var(--fg-3); }
.empty { color: var(--fg-3); }

/* the page of an article that left the blog */
.gone main { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 22px; padding-top: 48px; padding-bottom: 48px; }
.gone .post-title { max-width: 18ch; }
.gone p { margin: 0; }

/* footer */
.footer { padding: clamp(80px, 9vw, 128px) 0 36px; border-top: 1px solid var(--line); }
.foot-sign { margin: 0; font-size: clamp(34px, 5.4vw, 80px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
.foot-sign em { display: block; font-size: 1.1em; color: var(--fg-2); }
.foot-row { margin-top: clamp(56px, 7vw, 96px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; }
.foot-logo { height: 28px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { font-size: 15px; text-decoration: none; color: var(--fg-2); }
.foot-links a:hover { color: var(--fg); }
.foot-small {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13.5px; color: var(--fg-3);
}
.foot-small p, .foot-legal p { margin: 0; }
.foot-legal {
  margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 10px 32px; font-size: 12.5px; line-height: 1.6; color: var(--fg-3);
}
.foot-legal a, .foot-legal button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.foot-legal a:hover, .foot-legal button:hover { color: var(--fg); }
.foot-legal p a { text-decoration: underline; text-underline-offset: 3px; }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

@media (max-width: 1100px) {
  .nav-links a { padding: 8px 11px; }
  .nav-links a::after { left: 11px; right: 11px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .nav { padding: 0 14px; gap: 10px; }
  .nav-logo img { height: 22px; }
  .nav-links { display: none; }
  .nav-aside { display: none; }
  .nav-menu { display: grid; }
  .nav-cta { font-size: 13px; padding: 8px 15px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .body { font-size: 17px; }
  .post-meta { gap: 6px 16px; font-size: 13.5px; }
  .takeaways h2 { font-size: 28px; }
  .author-card { align-items: flex-start; }
  .foot-links { gap: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
