/* ==========================================================================
   凤凰体育主站 · 共享样式表 /assets/site.css
   设计语言：纵向叙事长卷 · 赛道斜影 · 经幡五色微点缀 · 精密细线网格
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body, h1, h2, h3, h4, h5, h6, p, figure, figcaption,
blockquote, dl, dd, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; border-spacing: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: light;

  --flame: #E8420C;
  --ember: #FF6B2C;
  --indigo: #1B1F3B;
  --indigo-700: #2A2F55;
  --indigo-900: #0F1226;
  --snow: #F5F1E8;
  --white: #FFFFFF;
  --ink: #0F1226;
  --rock: #5B6180;
  --flag-blue: #2B6FD6;
  --flag-green: #2E8B6F;
  --flag-yellow: #E3B23C;
  --flag-red: #C8332B;
  --flag-white: #E9E4D8;

  --page-bg: var(--snow);
  --surface: var(--white);
  --text: var(--ink);
  --text-soft: var(--rock);
  --line: rgba(15, 18, 38, 0.14);
  --line-strong: rgba(15, 18, 38, 0.3);
  --line-inverse: rgba(245, 241, 232, 0.16);
  --line-inverse-strong: rgba(245, 241, 232, 0.34);

  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
    "Source Han Sans SC", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    "HarmonyOS Sans SC", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "IBM Plex Mono", "Roboto Mono", SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 56px;
  --header-h-compact: 44px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --slant: 6deg;
}

/* ---------- 3. Base ---------- */
body {
  margin: 0;
  background-color: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-weight: 800; }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); letter-spacing: -0.015em; }
h4 { font-size: clamp(16px, 1.6vw, 19px); }

p { text-wrap: pretty; }

strong, b { font-weight: 700; }

::selection { background: var(--flame); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible,
.band :focus-visible,
.cover :focus-visible { outline-color: var(--ember); }

/* ---------- 4. Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--flame);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transform: translateY(-220%);
  transition: transform 0.18s var(--ease);
}

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.text-soft { color: var(--text-soft); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: clamp(24px, 4vw, 44px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--flame);
  --btn-fg: var(--white);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.12s var(--ease);
}

.btn:hover { --btn-bg: var(--ember); }
.btn:active { transform: translateY(1px); }

.btn--primary { --btn-bg: var(--flame); --btn-fg: var(--white); --btn-bd: transparent; }
.btn--primary:hover { --btn-bg: var(--ember); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--snow);
  --btn-bd: var(--line-inverse-strong);
}
.btn--ghost:hover { --btn-bg: rgba(245, 241, 232, 0.12); --btn-bd: rgba(245, 241, 232, 0.62); }

.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--line:hover { --btn-bg: var(--ink); --btn-fg: var(--snow); --btn-bd: var(--ink); }

.btn--sm { padding: 9px 15px; font-size: 13px; letter-spacing: 0.04em; }
.btn--block { display: flex; width: 100%; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background-color: var(--indigo);
  color: var(--snow);
  border-bottom: 1px solid var(--line-inverse);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background-image: linear-gradient(
    90deg,
    var(--flag-blue) 0 20%,
    var(--flag-white) 20% 40%,
    var(--flag-red) 40% 60%,
    var(--flag-green) 60% 80%,
    var(--flag-yellow) 80% 100%
  );
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  min-height: var(--header-h);
  transition: min-height 0.18s var(--ease);
}

/* 品牌刊头 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-block: 8px;
  color: var(--snow);
}

.brand__mark {
  width: 30px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--ember);
  transition: color 0.18s var(--ease);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark { color: var(--flame); }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--snow);
}

.brand__domain {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: rgba(245, 241, 232, 0.48);
  transition: opacity 0.18s var(--ease), color 0.18s var(--ease);
}

.brand:hover .brand__domain { color: rgba(245, 241, 232, 0.8); }

/* 命令栏导航 */
.command-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 14px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 2px 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(245, 241, 232, 0.68);
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--white); }

.nav-link[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--flame);
}

.nav-link__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: rgba(245, 241, 232, 0.36);
  transition: color 0.18s var(--ease);
}

.nav-link:hover .nav-link__num,
.nav-link[aria-current="page"] .nav-link__num { color: var(--ember); }

/* 右侧动作区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--snow);
  border: 1px solid var(--line-inverse-strong);
  background-color: transparent;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle:hover { border-color: var(--ember); background-color: rgba(255, 107, 44, 0.14); }

.nav-toggle__bar {
  display: block;
  width: 16px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 阅读进度 */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: rgba(245, 241, 232, 0.09);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background-image: linear-gradient(90deg, var(--flame), var(--ember));
  transition: width 0.1s linear;
}

@media (min-width: 1041px) {
  .site-header[data-compact] .header-bar { min-height: var(--header-h-compact); }
  .site-header[data-compact] .brand__domain { opacity: 0.4; }
}

@media (max-width: 1040px) {
  .header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "nav   nav";
    align-items: center;
    gap: 0 10px;
    min-height: 0;
    padding-bottom: 4px;
  }

  .brand { grid-area: brand; padding-block: 10px; }
  .header-tools { grid-area: tools; gap: 6px; }
  .nav-toggle { display: inline-flex; }

  .command-nav {
    grid-area: nav;
    width: 100%;
    min-width: 0;
    border-top: 1px solid var(--line-inverse);
  }

  .nav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav-link {
    padding: 10px 13px 9px;
    font-size: 13px;
    scroll-snap-align: center;
    border-bottom-width: 2px;
  }

  .nav-item:first-child .nav-link { padding-left: 0; }

  .command-nav[data-open] .nav-list {
    flex-wrap: wrap;
    overflow-x: visible;
    overscroll-behavior-x: auto;
    scroll-snap-type: none;
  }

  .command-nav[data-open] .nav-link {
    border-bottom: 1px solid var(--line-inverse);
    padding-left: 0;
    padding-right: 0;
  }

  .command-nav[data-open] .nav-link[aria-current="page"] {
    border-bottom-color: var(--flame);
  }

  .command-nav[data-open] .nav-item { flex: 1 1 45%; }
}

@media (max-width: 560px) {
  .header-tools__help { display: none; }
  .brand__name { font-size: 16px; }
  .brand__domain { font-size: 9px; }
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--indigo);
  color: var(--snow);
  overflow: hidden;
}

.footer-flags {
  display: flex;
  height: 4px;
}

.footer-flags span { flex: 1 1 0; }
.footer-flags span:nth-child(1) { background-color: var(--flag-blue); }
.footer-flags span:nth-child(2) { background-color: var(--flag-white); }
.footer-flags span:nth-child(3) { background-color: var(--flag-red); }
.footer-flags span:nth-child(4) { background-color: var(--flag-green); }
.footer-flags span:nth-child(5) { background-color: var(--flag-yellow); }

.footer-shell { padding-block: clamp(38px, 5.5vw, 72px) 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.footer-brand { padding-top: 0; }
.footer-col:nth-child(2) { padding-top: 14px; }
.footer-col:nth-child(3) { padding-top: 30px; }
.footer-col:nth-child(4) { padding-top: 8px; }

.brand--footer { padding-block: 0; }

.footer-brand__line {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(245, 241, 232, 0.6);
}

.footer-icp {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245, 241, 232, 0.42);
}

.footer-col__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  border-bottom: 1px solid var(--line-inverse);
}

.footer-list li + li { margin-top: 10px; }

.footer-link {
  display: inline-block;
  padding-block: 2px;
  font-size: 14.5px;
  color: rgba(245, 241, 232, 0.76);
  transition: color 0.18s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.foot-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 10px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.1);
}

.foot-item:first-of-type { padding-top: 0; }

.foot-item__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(245, 241, 232, 0.42);
}

.foot-item__value {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.foot-item__text {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--snow);
  word-break: break-word;
}

.foot-item__text--wide {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.86);
}

.copy-btn {
  padding: 3px 9px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(245, 241, 232, 0.6);
  border: 1px solid rgba(245, 241, 232, 0.22);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}

.copy-btn:hover {
  color: var(--white);
  border-color: var(--ember);
  background-color: rgba(255, 107, 44, 0.16);
}

.copy-btn[data-copied="true"] {
  color: var(--flag-yellow);
  border-color: rgba(227, 178, 60, 0.7);
  background-color: rgba(227, 178, 60, 0.14);
}

.footer-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(245, 241, 232, 0.46);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 20px 26px;
  border-top: 1px solid var(--line-inverse);
  font-size: 12.5px;
  color: rgba(245, 241, 232, 0.55);
}

.footer-copy {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-left: auto;
}

.footer-legal .footer-link { font-size: 12.5px; }

.footer-icp--end {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245, 241, 232, 0.42);
}

@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:nth-child(2),
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) { padding-top: 0; }
  .footer-brand { grid-column: 1 / -1; padding-bottom: 8px; }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-legal { margin-left: 0; }
  .footer-bottom { gap: 8px 16px; }
}

/* ---------- 8. Breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumbs a { color: var(--text-soft); transition: color 0.18s var(--ease); }
.breadcrumbs a:hover { color: var(--flame); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---------- 9. Article containers ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
}

.prose > * + * { margin-top: 1.2em; }

.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--flame); }

.prose a {
  color: var(--flag-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover { color: var(--flame); }

.prose blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--flame);
  color: var(--text-soft);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 5px;
  background-color: rgba(15, 18, 38, 0.06);
}

/* ---------- 10. Section headings ---------- */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: clamp(16px, 2.4vw, 28px);
}

.sec-index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--flame);
}

.sec-title {
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.cover {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px);
  background-color: var(--indigo);
  color: var(--snow);
}

.band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px);
  background-color: var(--indigo);
  color: var(--snow);
}

.band--flame { background-color: var(--flame); color: var(--white); }
.band--snow { background-color: var(--surface); color: var(--ink); }

/* ---------- 11. Cards & tags ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background-color: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card:hover { border-color: var(--line-strong); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  background-color: transparent;
}

.tag--blue { color: #2461BC; background-color: rgba(43, 111, 214, 0.08); border-color: rgba(43, 111, 214, 0.36); }
.tag--green { color: #24705A; background-color: rgba(46, 139, 111, 0.09); border-color: rgba(46, 139, 111, 0.36); }
.tag--yellow { color: #8A6410; background-color: rgba(227, 178, 60, 0.18); border-color: rgba(227, 178, 60, 0.55); }
.tag--red { color: #B02A24; background-color: rgba(200, 51, 43, 0.08); border-color: rgba(200, 51, 43, 0.36); }
.tag--flame { color: var(--flame); background-color: rgba(232, 66, 12, 0.08); border-color: rgba(232, 66, 12, 0.34); }

/* ---------- 12. Media containers ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--indigo-700);
  border: 1px solid var(--line);
}

.media img,
.media picture,
.media picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--fill { height: 100%; }

.media--slant {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
}

.media__tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white);
  background-color: var(--flame);
}

.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--snow);
  background-image: linear-gradient(180deg, rgba(15, 18, 38, 0) 0%, rgba(15, 18, 38, 0.84) 100%);
}

.media:hover img { transform: scale(1.02); }
.media img { transition: transform 0.5s var(--ease); }

/* ---------- 13. Reveal ---------- */
[data-reveal] {
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

html.js [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(14px);
}

/* ---------- 14. Link helper ---------- */
.link-inline {
  color: var(--flag-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s var(--ease);
}

.link-inline:hover { color: var(--flame); }

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  html.js [data-reveal]:not(.is-in),
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .read-progress__bar { transition: none; }
  .media:hover img { transform: none; }
}
