:root {
  color-scheme: light;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --surface-2: #f6f7ff;
  --ink: #11131c;
  --muted: #565e6f;
  --subtle: #6f7480;
  --line: #e4e7f2;
  --line-strong: #d5daec;
  --brand: #6047f5;
  --brand-2: #3443f5;
  --brand-3: #25c6f7;
  --brand-soft: #f0efff;
  --code-bg: #111728;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 70px rgba(47, 55, 122, 0.12), 0 2px 8px rgba(31, 36, 76, 0.05);
  --soft-shadow: 0 12px 34px rgba(47, 55, 122, 0.08), 0 1px 3px rgba(31, 36, 76, 0.04);
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -5%, rgba(137, 78, 255, 0.09), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(37, 198, 247, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 38%, #f8f9fc 72%, #f3f6f9 100%);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -10;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 75, 158, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 75, 158, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 58%);
  mask-image: linear-gradient(to bottom, #000, transparent 58%);
}

img,
svg,
video {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a,
button,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid rgba(96, 71, 245, 0.38);
  outline-offset: 4px;
  border-radius: 7px;
}

::selection {
  color: #171348;
  background: #dcd8ff;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: var(--soft-shadow);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 229, 241, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 30px rgba(41, 45, 94, 0.035);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.nav-inner {
  display: flex;
  width: min(1240px, calc(100% - 72px));
  min-height: 86px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
  color: #0d0f17;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brand-logo-image {
  display: block;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(83, 75, 203, 0.20), 0 2px 5px rgba(24, 28, 70, 0.08);
}

.logo-mark {
  display: none !important;
}

.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 30px;
  color: #343844;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:not(.nav-cta) {
  position: relative;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-links a:not(.nav-cta)::after {
  position: absolute;
  right: 50%;
  bottom: -24px;
  left: 50%;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, #9a48fa, var(--brand-2));
  transition: right 160ms ease, left 160ms ease;
}

.nav-links a[aria-current="page"] {
  color: var(--brand);
}

.nav-links a[aria-current="page"]::after {
  right: 18%;
  left: 18%;
}

.nav-cta,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.nav-cta {
  padding: 10px 17px;
  color: #242631;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
  box-shadow: 0 7px 20px rgba(25, 31, 63, 0.055);
  white-space: nowrap;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 68px;
  border-bottom: 1px solid rgba(232, 234, 245, 0.9);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 32%, rgba(37, 198, 247, 0.11), transparent 29%),
    radial-gradient(ellipse at 22% 16%, rgba(130, 69, 255, 0.10), transparent 31%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(239, 241, 255, 0.74) 70%, rgba(222, 226, 255, 0.44));
}

.hero::after {
  position: absolute;
  bottom: -72px;
  left: 50%;
  z-index: -1;
  content: "Medux";
  color: rgba(81, 66, 219, 0.075);
  font-size: min(23vw, 300px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.115em;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

.breadcrumb {
  display: flex;
  margin-bottom: 19px;
  align-items: baseline;
  gap: 7px;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
}

.breadcrumb a {
  color: #5846cd;
  font-weight: 600;
}

.breadcrumb [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 13px;
  align-items: center;
  gap: 9px;
  color: #5940e7;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(96, 71, 245, 0.19);
  border-radius: 999px;
  box-shadow: 0 7px 22px rgba(66, 70, 140, 0.06), inset 0 1px 0 #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(145deg, #8d2eff, var(--brand-3));
  border-radius: 99px;
  box-shadow: 0 0 0 4px rgba(96, 71, 245, 0.10);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #10121a;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  max-width: 1040px;
  margin-bottom: 20px;
  font-size: clamp(40px, 5.55vw, 67px);
  line-height: 1.065;
  letter-spacing: -0.048em;
}

.eyebrow + h1 {
  margin-top: 18px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.05vw, 41px);
  line-height: 1.12;
  letter-spacing: -0.044em;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.028em;
}

p {
  margin: 0 0 14px;
  text-wrap: pretty;
}

.lead {
  max-width: 880px;
  margin: 0 0 10px;
  color: #414858;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.muted {
  color: var(--muted);
}

.post-meta {
  display: flex;
  margin-top: 19px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 13px;
  color: var(--subtle);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.post-meta span,
.post-meta time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seo-summary {
  max-width: 880px;
  margin-top: 20px;
  padding: 17px 19px;
  color: #3f4657;
  background: linear-gradient(135deg, rgba(242, 239, 255, 0.95), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(96, 71, 245, 0.16);
  border-radius: 15px;
  box-shadow: inset 3px 0 0 rgba(96, 71, 245, 0.70);
}

.seo-summary strong {
  color: #191b27;
}

.hero-grid {
  display: grid;
  margin-top: 40px;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
  gap: 24px;
}

.hero-card,
.toc,
.block,
figure {
  background: var(--surface-glass);
  border: 1px solid rgba(222, 225, 239, 0.95);
  box-shadow: var(--shadow);
}

.hero-card,
.toc {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-card {
  position: relative;
  background: #ffffff;
}

.hero-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 -70px 110px rgba(77, 83, 202, 0.045);
}

.hero-card img,
figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.caption,
figcaption {
  padding: 13px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}

.toc {
  padding: 27px;
  align-self: stretch;
  background:
    radial-gradient(circle at 100% 0, rgba(37, 198, 247, 0.07), transparent 32%),
    linear-gradient(180deg, #ffffff, #fbfbff);
}

.toc h2 {
  margin-bottom: 12px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.toc p {
  margin-bottom: 18px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  padding: 7px 11px;
  color: #4a5060;
  background: #ffffff;
  border: 1px solid rgba(96, 71, 245, 0.14);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(58, 65, 133, 0.045);
  font-size: 13px;
  font-weight: 600;
}

main p a:not(.cta),
main li a:not(.cta) {
  color: #5140cc;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(81, 64, 204, 0.34);
  text-decoration-thickness: 1px;
}

section {
  padding: 28px 0;
  scroll-margin-top: 108px;
}

.block {
  max-width: 100%;
  margin: 24px 0;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 255, 0.94));
  border-radius: var(--radius-lg);
}

.block > p,
.block > h2,
.block > h3 {
  max-width: 76ch;
}

.block > p:last-child {
  margin-bottom: 0;
}

.grid-2,
.grid-3,
.stat-row,
.seo-related-grid {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.stat-row,
.seo-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prep,
.stat {
  min-width: 0;
  padding: 19px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(55, 63, 129, 0.055);
}

.prep strong {
  display: block;
  margin-bottom: 6px;
  color: #171925;
}

.stat-row {
  margin-top: 18px;
}

.stat b {
  display: block;
  margin-bottom: 2px;
  color: #151722;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

pre {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 17px 0 0;
  padding: 19px;
  overflow-x: auto;
  color: #edf3ff;
  background:
    radial-gradient(circle at 0 0, rgba(124, 60, 255, 0.36), transparent 36%),
    radial-gradient(circle at 100% 0, rgba(53, 199, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--code-bg);
  border: 1px solid rgba(127, 146, 255, 0.21);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 38px rgba(22, 32, 70, 0.16);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
  tab-size: 2;
}

pre::-webkit-scrollbar {
  height: 8px;
}

pre::-webkit-scrollbar-thumb {
  background: rgba(164, 177, 222, 0.40);
  border: 2px solid var(--code-bg);
  border-radius: 999px;
}

code,
kbd {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

:not(pre) > code {
  padding: 2px 6px;
  color: #513bd4;
  background: #f2f3ff;
  border: 1px solid rgba(93, 78, 220, 0.13);
  border-radius: 7px;
  overflow-wrap: anywhere;
}

.callout {
  max-width: 100%;
  margin: 18px 0;
  padding: 18px 20px;
  color: #404759;
  background: linear-gradient(135deg, #f5f3ff, #ffffff 72%);
  border: 1px solid rgba(96, 71, 245, 0.16);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(56, 63, 132, 0.045);
}

blockquote {
  max-width: 76ch;
  margin: 22px 0;
  padding: 17px 20px;
  color: #414858;
  background: #f7f6ff;
  border-left: 4px solid var(--brand);
  border-radius: 0 14px 14px 0;
}

.table-wrap {
  width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  background: #ffffff;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: #2d3140;
  background: #f2f1ff;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.seo-related {
  margin: 30px 0;
}

.seo-related > p {
  max-width: 72ch;
}

.seo-related-grid a {
  display: flex;
  min-height: 96px;
  padding: 18px;
  align-items: flex-end;
  color: #252938;
  background:
    radial-gradient(circle at 100% 0, rgba(37, 198, 247, 0.08), transparent 38%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--soft-shadow);
  font-weight: 700;
  line-height: 1.35;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.publish-note {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 0, rgba(37, 211, 255, 0.30), transparent 36%),
    linear-gradient(112deg, #8a43ef 0%, #5945f4 45%, #2d42eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 75px rgba(42, 56, 150, 0.22);
}

.publish-note::before {
  position: absolute;
  right: -26px;
  bottom: -42px;
  z-index: -1;
  content: "Medux";
  color: rgba(255, 255, 255, 0.065);
  font-size: 145px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.115em;
  pointer-events: none;
}

.publish-note h2 {
  color: #ffffff;
}

.publish-note p {
  max-width: 76ch;
  color: #eef0ff;
}

.cta-row {
  display: flex;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 11px;
}

.cta {
  padding: 11px 21px;
  color: #242054;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(10, 16, 60, 0.27);
}

.cta.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: none;
}

.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 54px 0 90px;
  color: #505665;
  text-align: center;
}

.footer::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(216, 222, 255, 0.34));
}

.footer::after {
  position: absolute;
  bottom: -94px;
  left: 50%;
  z-index: -1;
  content: "Medux";
  color: rgba(81, 66, 219, 0.075);
  font-size: min(22vw, 270px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.115em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.footer .wrap {
  padding-top: 26px;
  border-top: 1px solid rgba(226, 229, 241, 0.95);
}

/* Blog index cards */
.post-grid {
  display: grid;
  margin-top: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-card > a {
  overflow: hidden;
  background: #151735;
}

.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 180ms ease;
}

.post-body {
  display: flex;
  padding: 22px 24px 24px;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.post-tag {
  align-self: flex-start;
  padding: 5px 10px;
  color: #5741d8;
  background: var(--brand-soft);
  border: 1px solid rgba(96, 71, 245, 0.15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.post-card h2,
.post-card h3 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -0.031em;
}

.post-card h2 a,
.post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.post-foot {
  display: flex;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.read-link {
  margin-left: auto;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 160ms ease;
}

.series-note {
  margin-top: 26px;
}

.mt-18 {
  margin-top: 18px !important;
}

.mt-26 {
  margin-top: 26px !important;
}

.section-compact {
  padding-top: 10px;
}

/* Generated article and 100-post index enhancements */
.article-body {
  font-size: 17px;
}

.article-body > :where(p, ul, ol, blockquote) {
  max-width: 76ch;
}

.article-body > h2 {
  margin-top: 38px;
  padding-top: 6px;
}

.article-body > h2:first-child {
  margin-top: 0;
}

.article-body > h3 {
  margin-top: 28px;
}

.article-body li + li,
.takeaway-list li + li,
.source-list li + li {
  margin-top: 8px;
}

.takeaway-list {
  margin: 0;
  padding-left: 21px;
  color: var(--muted);
}

.takeaway-list li::marker,
.source-list li::marker {
  color: var(--brand);
  font-weight: 800;
}

.source-list ol {
  max-width: 76ch;
  margin-bottom: 0;
  padding-left: 23px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 19px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(55, 63, 129, 0.045);
}

.faq-item h3 {
  margin-bottom: 7px;
  font-size: 19px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.medux-extension {
  margin-top: 30px;
}

.seo-related-grid a {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.seo-related-grid a span {
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.index-heading {
  display: flex;
  margin-top: 22px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.index-heading h2 {
  margin-bottom: 7px;
}

.index-heading p {
  margin-bottom: 0;
}

.result-count {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #4b43a3;
  background: var(--brand-soft);
  border: 1px solid rgba(96, 71, 245, 0.15);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.category-filters {
  display: flex;
  margin-top: 25px;
  padding-bottom: 3px;
  gap: 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.filter-button {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #505666;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(55, 63, 129, 0.04);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.filter-button.is-active {
  color: #ffffff;
  background: linear-gradient(115deg, #8750ef, #4d45ef);
  border-color: transparent;
}

.post-card[hidden] {
  display: none;
}

@media (hover: hover) {
  .nav-links a:not(.nav-cta):hover,
  .breadcrumb a:hover,
  main p a:not(.cta):hover,
  main li a:not(.cta):hover {
    color: var(--brand);
  }

  .nav-links a:not(.nav-cta):hover::after {
    right: 18%;
    left: 18%;
  }

  .nav-cta:hover,
  .cta:hover {
    transform: translateY(-2px);
  }

  .nav-cta:hover {
    border-color: rgba(96, 71, 245, 0.28);
    box-shadow: 0 10px 25px rgba(54, 49, 126, 0.10);
  }

  .cta:hover {
    box-shadow: 0 16px 36px rgba(10, 16, 60, 0.33);
  }

  .cta.ghost:hover {
    background: rgba(255, 255, 255, 0.17);
    box-shadow: none;
  }

  .seo-related-grid a:hover {
    color: var(--brand);
    border-color: rgba(96, 71, 245, 0.25);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
  }

  .post-card:hover,
  .post-card:focus-within {
    border-color: rgba(96, 71, 245, 0.24);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
  }

  .post-card:hover img,
  .post-card:focus-within img {
    filter: saturate(1.04) contrast(1.02);
    transform: scale(1.018);
  }

  .post-card:hover .read-link,
  .post-card:focus-within .read-link {
    transform: translateX(2px);
  }
}

@media (max-width: 920px) {
  .nav-inner {
    width: min(calc(100% - 40px), var(--max));
  }

  .nav-links {
    gap: 16px;
    font-size: 14px;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .stat-row,
  .seo-related-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .block {
    padding: 25px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 136px;
  }

  .wrap,
  .nav-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-nav {
    position: sticky;
  }

  .nav-inner {
    min-height: 0;
    padding: 10px 0 9px;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .logo {
    font-size: 23px;
  }

  .brand-logo-image {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .nav-links {
    width: 100%;
    padding: 2px 0 3px;
    order: 2;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a:not(.nav-cta),
  .nav-cta {
    display: inline-flex;
    padding: 7px 11px;
    align-items: center;
    background: rgba(249, 249, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: none;
    white-space: nowrap;
  }

  .nav-links a:not(.nav-cta)::after {
    display: none;
  }

  .hero {
    padding: 51px 0 54px;
  }

  .hero::after {
    bottom: -36px;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }

  h1 {
    font-size: clamp(35px, 10.7vw, 48px);
    letter-spacing: -0.043em;
  }

  h2 {
    font-size: clamp(27px, 8.2vw, 35px);
  }

  h3 {
    font-size: 21px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-grid {
    margin-top: 27px;
  }

  .toc,
  .block,
  .publish-note,
  .post-card {
    border-radius: 19px;
  }

  .toc,
  .block,
  .publish-note {
    padding: 21px;
  }

  .post-body {
    padding: 19px;
  }

  .post-card h2,
  .post-card h3 {
    font-size: 21px;
  }

  .index-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .article-body {
    font-size: 16px;
  }

  pre {
    margin-inline: -4px;
    padding: 15px;
    font-size: 12px;
  }

  section {
    scroll-margin-top: 136px;
  }

  .footer {
    padding-bottom: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body {
    color: #000000;
    background: #ffffff;
  }

  body::before,
  .site-nav,
  .publish-note,
  .footer::before,
  .footer::after {
    display: none;
  }

  .hero,
  .block,
  .hero-card,
  .toc,
  .post-card,
  .seo-related-grid a {
    break-inside: avoid;
    background: #ffffff;
    box-shadow: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    color: #555555;
    font-size: 0.8em;
  }
}
