/* ==========================================================================
   全站赛场 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, dl, dd, dt, ul, ol, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--hf-amber); outline-offset: 2px; }

/* --- tokens --------------------------------------------------------------- */
:root {
  --hf-navy: #0B1B2B;
  --hf-navy-deep: #08131F;
  --hf-red: #D7263D;
  --hf-red-deep: #B01B2E;
  --hf-white: #F7F5F0;
  --hf-slate: #24384C;
  --hf-green: #1E7A4C;
  --hf-amber: #E8A020;
  --hf-muted: #93A1B0;
  --hf-ink: #121417;
  --hf-pink: #F6D9DD;
  --hf-teal: #2FA39A;
  --hf-dim: #5A6B7C;

  --hf-line-dark: rgba(147, 161, 176, 0.22);
  --hf-line-light: rgba(11, 27, 43, 0.14);

  --hf-shell: 1280px;
  --hf-gutter: clamp(16px, 4.2vw, 44px);
  --hf-header-h: 66px;
  --hf-gap: clamp(14px, 1.6vw, 22px);

  --hf-font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --hf-font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --hf-font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", "Noto Serif SC", serif;
  --hf-font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* --- base type ------------------------------------------------------------ */
body {
  background: var(--hf-white);
  color: var(--hf-ink);
  font-family: var(--hf-font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--hf-red); color: #fff; }

.hf-shell {
  width: 100%;
  max-width: var(--hf-shell);
  margin-inline: auto;
  padding-inline: var(--hf-gutter);
}

.hf-h1, .hf-h2, .hf-h3, .hf-h4 {
  font-family: var(--hf-font-display);
  font-weight: 900;
  font-stretch: condensed;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--hf-navy);
}
.hf-h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.06; }
.hf-h2 { font-size: clamp(26px, 3.4vw, 40px); }
.hf-h3 { font-size: clamp(20px, 2.3vw, 28px); }
.hf-h4 { font-size: clamp(17px, 1.6vw, 20px); font-weight: 800; }
.hf-section--dark .hf-h1,
.hf-section--dark .hf-h2,
.hf-section--dark .hf-h3,
.hf-section--dark .hf-h4 { color: var(--hf-white); }

.hf-serif { font-family: var(--hf-font-serif); font-weight: 600; letter-spacing: 0.01em; }
.hf-eyebrow {
  display: block;
  font-family: var(--hf-font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--hf-red);
  margin-bottom: 10px;
}
.hf-lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.8;
  color: var(--hf-slate);
  max-width: 44em;
}
.hf-section--dark .hf-lede { color: rgba(247, 245, 240, 0.78); }
.hf-prose { max-width: 42em; font-size: 16.5px; line-height: 1.78; color: #22303D; }
.hf-prose p { margin: 0 0 1.05em; }
.hf-prose h2, .hf-prose h3 { margin: 1.7em 0 0.6em; }
.hf-p { max-width: 42em; margin-bottom: 1em; }

.hf-mono {
  font-family: var(--hf-font-mono);
  font-size: 0.92em;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hf-figure {
  display: block;
  font-family: var(--hf-font-display);
  font-weight: 900;
  font-stretch: condensed;
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  color: var(--hf-navy);
}
.hf-section--dark .hf-figure { color: var(--hf-white); }

/* --- layout --------------------------------------------------------------- */
.hf-section { padding-block: clamp(40px, 6vw, 80px); }
.hf-section--tight { padding-block: clamp(24px, 3vw, 40px); }
.hf-section--dark {
  background: var(--hf-navy);
  color: var(--hf-white);
  background-image: repeating-linear-gradient(to right, rgba(147, 161, 176, 0.06) 0 1px, transparent 1px 72px);
}
.hf-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hf-line-light);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.hf-section--dark .hf-section__head { border-bottom-color: var(--hf-line-dark); }
.hf-rule { height: 1px; border: 0; margin: 0; background: var(--hf-line-light); }
.hf-section--dark .hf-rule { background: var(--hf-line-dark); }

.hf-grid { display: grid; gap: var(--hf-gap); }
.hf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hf-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}
.hf-rail { position: sticky; top: calc(var(--hf-header-h) + 18px); }

/* --- header --------------------------------------------------------------- */
.hf-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--hf-navy);
  color: var(--hf-white);
  border-bottom: 1px solid var(--hf-line-dark);
  background-image: repeating-linear-gradient(to right, rgba(147, 161, 176, 0.06) 0 1px, transparent 1px 72px);
}
.hf-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  min-height: var(--hf-header-h);
  transition: min-height 180ms ease-out;
}
.hf-header[data-scrolled] .hf-header__bar { min-height: 56px; }
.hf-header[data-scrolled] .hf-brand__line { display: none; }

.hf-skip {
  position: absolute;
  left: 14px;
  top: -72px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--hf-red);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: top 180ms ease-out;
}
.hf-skip:focus { top: 10px; }

.hf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 6px 0;
}
.hf-brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--hf-red);
  color: #fff;
  font-family: var(--hf-font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 70% 100%, 0 100%);
}
.hf-brand__text { display: flex; flex-direction: column; line-height: 1.18; }
.hf-brand__name {
  font-family: var(--hf-font-display);
  font-weight: 900;
  font-stretch: condensed;
  font-size: 17px;
  letter-spacing: 0.08em;
}
.hf-brand__line {
  font-family: var(--hf-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--hf-muted);
}

.hf-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.hf-nav__list { display: flex; align-items: center; gap: 2px; }
.hf-nav__item { display: block; }
.hf-nav__link {
  display: block;
  position: relative;
  padding: 10px 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(247, 245, 240, 0.72);
  border-bottom: 2px solid transparent;
  transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out;
}
.hf-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.hf-nav__link[aria-current="page"] { color: #fff; border-bottom-color: var(--hf-red); }

.hf-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.hf-navtoggle {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--hf-line-dark);
  color: var(--hf-white);
  cursor: pointer;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}
.hf-navtoggle:hover { background: var(--hf-slate); }
.hf-navtoggle__bar {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}
.hf-header[data-open] .hf-navtoggle { background: var(--hf-red); border-color: var(--hf-red); }
.hf-header[data-open] .hf-navtoggle__bar:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.hf-header[data-open] .hf-navtoggle__bar:nth-of-type(3) { opacity: 0; }
.hf-header[data-open] .hf-navtoggle__bar:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
.hf-navtoggle__sr {
  position: absolute;
  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;
}

.hf-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--hf-red);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* --- buttons -------------------------------------------------------------- */
.hf-btn {
  --hf-btn-bg: transparent;
  --hf-btn-fg: var(--hf-white);
  --hf-btn-bd: var(--hf-line-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--hf-btn-bg);
  color: var(--hf-btn-fg);
  border: 1px solid var(--hf-btn-bd);
  border-radius: 0;
  font-family: var(--hf-font-body);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
.hf-btn:hover { background: var(--hf-slate); border-color: var(--hf-slate); color: #fff; }
.hf-btn--primary { --hf-btn-bg: var(--hf-red); --hf-btn-bd: var(--hf-red); --hf-btn-fg: #fff; }
.hf-btn--primary:hover { background: var(--hf-red-deep); border-color: var(--hf-red-deep); }
.hf-btn--line { --hf-btn-bd: rgba(247, 245, 240, 0.34); }
.hf-btn--ghost { --hf-btn-bd: transparent; }
.hf-btn--ink { --hf-btn-fg: var(--hf-navy); --hf-btn-bd: var(--hf-line-light); }
.hf-btn--ink:hover { background: var(--hf-navy); border-color: var(--hf-navy); color: #fff; }
.hf-btn--sm { padding: 7px 12px; font-size: 13px; }
.hf-btn--block { width: 100%; }

/* --- breadcrumbs ---------------------------------------------------------- */
.hf-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
  font-family: var(--hf-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--hf-dim);
}
.hf-crumbs li { display: inline-flex; align-items: center; }
.hf-crumbs li::after { content: "/"; margin-left: 8px; color: var(--hf-muted); }
.hf-crumbs li:last-child::after { content: ""; margin: 0; }
.hf-crumbs a { transition: color 180ms ease-out; }
.hf-crumbs a:hover { color: var(--hf-red); }
.hf-crumbs [aria-current="page"] { color: var(--hf-navy); }

/* --- cards ---------------------------------------------------------------- */
.hf-card {
  background: #fff;
  border: 1px solid var(--hf-line-light);
  padding: clamp(16px, 1.8vw, 24px);
}
.hf-card--navy { background: var(--hf-navy); color: var(--hf-white); border-color: var(--hf-line-dark); }
.hf-card--slate { background: var(--hf-slate); color: var(--hf-white); border-color: transparent; }
.hf-card--flat { background: var(--hf-white); border-color: transparent; }
.hf-card--accent { border-left: 3px solid var(--hf-red); }
.hf-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.hf-card__title {
  font-family: var(--hf-font-display);
  font-weight: 800;
  font-stretch: condensed;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.hf-card__meta {
  font-family: var(--hf-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--hf-dim);
}
.hf-card--navy .hf-card__meta,
.hf-card--slate .hf-card__meta { color: var(--hf-muted); }

/* --- tags ----------------------------------------------------------------- */
.hf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  font-family: var(--hf-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.hf-tag--red { color: var(--hf-red-deep); background: var(--hf-pink); border-color: rgba(215, 38, 61, 0.4); }
.hf-tag--green { color: #0F5734; background: rgba(30, 122, 76, 0.14); border-color: rgba(30, 122, 76, 0.42); }
.hf-tag--amber { color: #8A5A00; background: rgba(232, 160, 32, 0.16); border-color: rgba(232, 160, 32, 0.5); }
.hf-tag--teal { color: #14655F; background: rgba(47, 163, 154, 0.14); border-color: rgba(47, 163, 154, 0.45); }
.hf-tag--ghost { color: var(--hf-muted); background: transparent; border-color: var(--hf-line-dark); }

/* --- notes / steps -------------------------------------------------------- */
.hf-note {
  border-left: 3px solid var(--hf-amber);
  background: rgba(232, 160, 32, 0.08);
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--hf-navy);
}
.hf-note--info { border-left-color: var(--hf-teal); background: rgba(47, 163, 154, 0.08); }
.hf-note--ok { border-left-color: var(--hf-green); background: rgba(30, 122, 76, 0.08); }

.hf-steps { display: grid; gap: 0; border-top: 1px solid var(--hf-line-light); }
.hf-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hf-line-light);
}
.hf-step__no {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hf-line-light);
  font-family: var(--hf-font-mono);
  font-size: 13px;
  color: var(--hf-red);
}
.hf-step__title {
  font-family: var(--hf-font-display);
  font-weight: 800;
  font-stretch: condensed;
  font-size: 16px;
  color: var(--hf-navy);
}
.hf-step__body { margin-top: 4px; font-size: 14.5px; line-height: 1.75; color: #43535F; }

/* --- data bars ------------------------------------------------------------ */
.hf-bars { display: flex; flex-direction: column; gap: 12px; }
.hf-bar__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-family: var(--hf-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--hf-dim);
}
.hf-bar { position: relative; height: 8px; background: rgba(11, 27, 43, 0.08); overflow: hidden; }
.hf-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 0%);
  background: var(--hf-red);
  transition: width 500ms ease-out;
}
.hf-bar__fill--green { background: var(--hf-green); }
.hf-bar__fill--amber { background: var(--hf-amber); }
.hf-bar__fill--teal { background: var(--hf-teal); }

/* --- directory index ------------------------------------------------------ */
.hf-index { border-top: 1px solid var(--hf-line-light); }
.hf-index__item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 6px 20px;
  align-items: baseline;
  padding: 16px 6px;
  border-bottom: 1px solid var(--hf-line-light);
  transition: background-color 180ms ease-out;
}
.hf-index__item:hover { background: rgba(11, 27, 43, 0.035); }
.hf-index__no { font-family: var(--hf-font-mono); font-size: 12.5px; color: var(--hf-red); }
.hf-index__title { font-family: var(--hf-font-display); font-weight: 800; font-stretch: condensed; font-size: 17px; color: var(--hf-navy); }
.hf-index__desc { margin-top: 5px; font-size: 14px; line-height: 1.7; color: var(--hf-dim); }
.hf-index__meta { font-family: var(--hf-font-mono); font-size: 12px; color: var(--hf-muted); white-space: nowrap; }

/* --- filter bar ----------------------------------------------------------- */
.hf-filterbar { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--hf-line-light);
  background: #fff;
  color: var(--hf-slate);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 180ms ease-out, color 180ms ease-out, background-color 180ms ease-out;
}
.hf-filter:hover { border-color: var(--hf-navy); color: var(--hf-navy); }
.hf-filter[aria-pressed="true"] {
  border-color: var(--hf-red);
  color: var(--hf-red);
  box-shadow: inset 0 0 0 1px var(--hf-red);
}
.hf-filter__count { font-family: var(--hf-font-mono); font-size: 11px; color: var(--hf-muted); }
.hf-section--dark .hf-filter {
  background: transparent;
  border-color: var(--hf-line-dark);
  color: rgba(247, 245, 240, 0.8);
}
.hf-section--dark .hf-filter:hover { border-color: #fff; color: #fff; }
.hf-section--dark .hf-filter[aria-pressed="true"] { border-color: var(--hf-red); color: #fff; }
[data-hidden] { display: none !important; }

/* --- media containers (页面阶段放图) --------------------------------------- */
.hf-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--hf-slate);
}
.hf-media--4x3 { aspect-ratio: 4 / 3; }
.hf-media--3x2 { aspect-ratio: 3 / 2; }
.hf-media--1x1 { aspect-ratio: 1 / 1; }
.hf-media--wide { aspect-ratio: 21 / 9; }
.hf-media--frame { border: 1px solid var(--hf-line-light); }
.hf-media--empty {
  background-image: linear-gradient(135deg, var(--hf-navy) 0 58%, var(--hf-red) 58% 100%);
}
.hf-media > img,
.hf-media > svg,
.hf-media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05) brightness(0.98);
}
.hf-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(rgba(11, 27, 43, 0.1), rgba(11, 27, 43, 0.1)),
    repeating-linear-gradient(0deg, rgba(147, 161, 176, 0.14) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(147, 161, 176, 0.14) 0 1px, transparent 1px 8px);
}
.hf-media--empty::after { opacity: 0.35; }
.hf-media__caption {
  display: block;
  padding-top: 8px;
  font-family: var(--hf-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--hf-dim);
}

/* --- reveal / back to top ------------------------------------------------- */
.hf-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}
.hf-js [data-reveal].is-in { opacity: 1; transform: translateY(0); }

.hf-totop {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--hf-navy);
  color: var(--hf-white);
  border: 1px solid var(--hf-line-dark);
  font-family: var(--hf-font-mono);
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease-out, transform 180ms ease-out, background-color 180ms ease-out, visibility 180ms;
}
.hf-totop[data-visible] { opacity: 1; visibility: visible; transform: translateY(0); }
.hf-totop:hover { background: var(--hf-red); border-color: var(--hf-red); }

/* --- footer --------------------------------------------------------------- */
.hf-footer {
  background: var(--hf-ink);
  color: var(--hf-white);
  border-top: 3px solid var(--hf-red);
}
.hf-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(0, 2.1fr) minmax(250px, 1.45fr);
  gap: clamp(24px, 3vw, 44px);
  padding-top: clamp(34px, 5vw, 56px);
  padding-bottom: clamp(28px, 4vw, 46px);
}
.hf-footer__brand { display: flex; flex-direction: column; }
.hf-brand--footer .hf-brand__name { font-size: 18px; }
.hf-footer__claim {
  margin-top: 16px;
  max-width: 30ch;
  padding-left: 13px;
  border-left: 2px solid var(--hf-red);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--hf-muted);
}
.hf-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.hf-footer__coltitle {
  margin-bottom: 12px;
  font-family: var(--hf-font-display);
  font-weight: 800;
  font-stretch: condensed;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--hf-muted);
}
.hf-footer__list { display: flex; flex-direction: column; gap: 2px; }
.hf-footer__link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(247, 245, 240, 0.78);
  border-bottom: 1px solid transparent;
  transition: color 180ms ease-out, border-color 180ms ease-out;
}
.hf-footer__link:hover { color: #fff; border-bottom-color: var(--hf-red); }
.hf-footer__link--inline {
  display: inline;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(147, 161, 176, 0.55);
  text-underline-offset: 3px;
}
.hf-footer__contact { min-width: 0; }
.hf-footer__facts { display: flex; flex-direction: column; gap: 12px; }
.hf-footer__fact { min-width: 0; }
.hf-footer__label {
  font-family: var(--hf-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--hf-muted);
}
.hf-footer__value {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(247, 245, 240, 0.9);
  overflow-wrap: anywhere;
}
.hf-footer__base { background: #0C0E11; border-top: 1px solid rgba(147, 161, 176, 0.18); }
.hf-footer__baseinner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
}
.hf-footer__legal {
  font-family: var(--hf-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--hf-muted);
}
.hf-footer__icp { color: var(--hf-muted); }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .hf-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hf-footer__brand { grid-column: 1 / -1; }
  .hf-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .hf-header { --hf-header-h: 60px; }
  .hf-navtoggle { display: flex; }
  .hf-header__cta--secondary { display: none; }
  .hf-nav { display: none; }
  .hf-header[data-open] .hf-nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 14px var(--hf-gutter) 24px;
    background: var(--hf-navy-deep);
    border-bottom: 1px solid var(--hf-line-dark);
    max-height: calc(100vh - var(--hf-header-h));
    overflow-y: auto;
    animation: hf-panel 200ms ease-out;
  }
  .hf-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .hf-nav__link {
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--hf-line-dark);
    border-left: 3px solid transparent;
  }
  .hf-nav__link[aria-current="page"] {
    border-bottom-color: var(--hf-line-dark);
    border-left-color: var(--hf-red);
    padding-left: 14px;
  }
  .hf-layout { grid-template-columns: minmax(0, 1fr); }
  .hf-rail { position: static; }
  .hf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hf-grid--2, .hf-grid--3, .hf-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .hf-index__item { grid-template-columns: 44px minmax(0, 1fr); }
  .hf-index__meta { grid-column: 2; }
  .hf-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .hf-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .hf-brand__line { display: none; }
  .hf-brand__mark { width: 32px; height: 32px; font-size: 14px; }
  .hf-header__cta { padding: 6px 10px; font-size: 12.5px; }
  .hf-prose, .hf-p { font-size: 15.5px; }
}

@keyframes hf-panel {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hf-js [data-reveal] { opacity: 1; transform: none; }
  .hf-progress { transition: none; }
}
