/* ==========================================================================
   K1看台 · 共享样式 /assets/site.css
   高原夜空深藏蓝 + 酥油灯暖金 + 雪线青 + 经幡五色
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- tokens ---------- */
:root {
  --ink: #0B1B33;
  --ink-2: #12294A;
  --ink-3: #18345B;
  --ink-field: #0E2140;

  --snow: #F4F1EA;
  --mist: #8FA3BF;
  --body-text: #DCE5F0;
  --line: rgba(143, 163, 191, 0.28);
  --line-soft: rgba(143, 163, 191, 0.16);

  --gold: #F2B33D;
  --gold-hi: #FFC85B;
  --teal: #6FD3C4;

  --fb: #2F6FE0;
  --fr: #D9483F;
  --fg: #3FA36B;
  --fy: #E8C24A;
  --fc: #7FB6C9;

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

  --wrap: 1280px;
  --gutter: 20px;
  --r-card: 18px;
  --r-tag: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
}

@media (min-width: 1100px) {
  :root { --gutter: 40px; }
}

/* ---------- base ---------- */
body {
  background-color: var(--ink);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

::selection { background-color: var(--gold); color: var(--ink); }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

#main-content { scroll-margin-top: 148px; }

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }
.section--band { background-color: var(--ink-2); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 20px; }
.grid--12 { display: grid; gap: 20px; grid-template-columns: repeat(12, 1fr); }
.grid--12 > * { grid-column: span 12; }

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
}

/* ---------- type utilities ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background-color: var(--teal);
}

.lede {
  max-width: 40ch;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.72;
  color: var(--body-text);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section-head__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head__desc {
  max-width: 46ch;
  color: var(--mist);
  font-size: 16px;
}

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--body-text);
}

.prose h2 {
  margin-top: 2em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--snow);
}

.prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.4;
  color: var(--snow);
}

.prose p + p { margin-top: 1.1em; }
.prose ul, .prose ol { margin-top: 1.1em; }
.prose li { margin-top: 0.5em; padding-left: 1.2em; position: relative; }

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 2px;
  background-color: var(--gold);
}

.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-tag);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #101F35;
}

.btn--gold:hover { background-color: var(--gold-hi); border-color: var(--gold-hi); }

.btn--ghost {
  background-color: transparent;
  border-color: rgba(244, 241, 234, 0.35);
  color: var(--snow);
}

.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.btn:active { transform: translateY(1px); }

/* ---------- field ---------- */
.field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.field__input {
  width: 100%;
  padding: 9px 12px;
  background-color: var(--ink-field);
  border: 1px solid var(--line);
  border-radius: var(--r-tag);
  color: var(--snow);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.field__input::placeholder { color: #7C8FAB; }
.field__input:hover { border-color: rgba(143, 163, 191, 0.55); }

.field__input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
  background-color: #0A1A33;
}

@media (min-width: 640px) {
  .field__input { font-size: 14px; }
}

/* ---------- tags（展签：左竖色条 + 单行文字，无胶囊圆角） ---------- */
.tag {
  --tag-color: var(--mist);
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px 5px 13px;
  background-color: rgba(244, 241, 234, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-tag);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--snow);
  white-space: nowrap;
}

.tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--tag-color);
}

.tag--blue { --tag-color: var(--fb); }
.tag--red { --tag-color: var(--fr); }
.tag--green { --tag-color: var(--fg); }
.tag--yellow { --tag-color: var(--fy); }
.tag--cyan { --tag-color: var(--fc); }
.tag--gold { --tag-color: var(--gold); }
.tag--teal { --tag-color: var(--teal); }

/* ---------- card ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background-color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--snow);
}

.card__meta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

/* ---------- scorebar（横向宽幅记分牌信息条） ---------- */
.scorebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-tag);
}

.scorebar__team {
  font-size: 14px;
  color: var(--snow);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scorebar__team--right { text-align: right; }

.scorebar__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--teal);
  letter-spacing: 0.04em;
}

/* ---------- stat ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1;
  color: var(--teal);
}

.stat__label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--mist);
  line-height: 1.6;
}

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

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

.breadcrumbs__list li + li::before {
  content: "／";
  color: rgba(143, 163, 191, 0.55);
}

.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--snow); }

/* ---------- media（页面阶段放图的可复用容器） ---------- */
.media { display: block; margin: 0; }

.media__frame {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.media--21x9 .media__frame { aspect-ratio: 21 / 9; }
.media--16x9 .media__frame { aspect-ratio: 16 / 9; }
.media--4x3 .media__frame { aspect-ratio: 4 / 3; }
.media--1x1 .media__frame { aspect-ratio: 1 / 1; }

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.media__caption .mono { color: var(--teal); font-size: 12px; }

/* ---------- flagline（经幡五色细分隔带） ---------- */
.flagline {
  display: flex;
  width: 100%;
  height: 4px;
  overflow: hidden;
}

.flagline span { flex: 1 1 0; }
.flagline span:nth-child(1) { background-color: var(--fb); }
.flagline span:nth-child(2) { background-color: var(--fy); }
.flagline span:nth-child(3) { background-color: var(--fr); }
.flagline span:nth-child(4) { background-color: var(--fg); }
.flagline span:nth-child(5) { background-color: var(--fc); }
.flagline--tall { height: 6px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 300;
  padding: 10px 18px;
  background-color: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--r-tag);
  transition: top 0.16s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--snow);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* --- 第一行：检索条 --- */
.index-bar {
  background-color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.index-bar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 8px var(--gutter);
  transition: padding 0.2s var(--ease);
}

.index-bar__label {
  display: none;
  flex: none;
  padding-left: 8px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--teal);
  white-space: nowrap;
}

.index-bar__count {
  flex: none;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
  white-space: nowrap;
}

@media (min-width: 560px) {
  .index-bar__label { display: inline-block; }
}

@media (min-width: 720px) {
  .index-bar__inner { gap: 14px; padding-block: 10px; }
}

/* --- 第二行：居中刊头 --- */
.masthead {
  padding: 18px var(--gutter) 12px;
  text-align: center;
  transition: padding 0.2s var(--ease);
}

.masthead__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: var(--wrap);
  margin-inline: auto;
  transition: gap 0.2s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--snow);
  transition: font-size 0.2s var(--ease);
}

.brand__mark {
  display: inline-block;
  padding: 3px 9px 5px;
  border: 2px solid var(--gold);
  border-radius: var(--r-tag);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.76em;
  letter-spacing: 0.02em;
  color: var(--gold);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.brand__word { font-weight: 900; }

.brand__line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  line-height: 1.6;
  color: var(--mist);
}

@media (min-width: 720px) {
  .masthead { padding: 24px var(--gutter) 14px; }
  .brand { gap: 14px; }
  .brand__line { font-size: 12px; }
}

/* --- 第三行：居中栏目导航 --- */
.nav-bar { background-color: var(--ink); }

.nav-bar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 8px var(--gutter);
  transition: padding 0.2s var(--ease);
}

.nav-toggle {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(244, 241, 234, 0.35);
  border-radius: var(--r-tag);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--snow);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

.nav-toggle__text { line-height: 1; }

.nav-bar__nav {
  grid-area: 2 / 1 / 3 / 4;
  width: 100%;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
}

.nav[data-open="true"] { display: flex; }

.nav a {
  position: relative;
  display: block;
  padding: 12px 10px;
  border-radius: var(--r-tag);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: #CBD7E6;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 20px;
  bottom: 7px;
  height: 3px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav a:hover,
.nav a:focus-visible { color: var(--snow); background-color: rgba(244, 241, 234, 0.05); }

.nav a:hover::after { transform: scaleX(1); }

.nav a[aria-current="page"] { color: var(--gold); background-color: rgba(242, 179, 61, 0.08); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-bar__cta { grid-area: 1 / 3; justify-self: end; }

@media (min-width: 900px) {
  .nav-bar__inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    padding-block: 10px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-toggle { display: none; }

  .nav-bar__nav {
    grid-area: 1 / 2;
    width: auto;
    margin-top: 0;
    border-top: 0;
  }

  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding-top: 0;
  }

  .nav a { padding: 10px 14px; font-size: 15px; }

  .nav a::after {
    left: 14px;
    right: 14px;
    width: auto;
    bottom: 4px;
  }

  .nav-bar__cta { grid-area: 1 / 3; }
}

/* --- 吸顶压缩状态 --- */
.site-header[data-condensed] .index-bar__inner { padding-block: 5px; }
.site-header[data-condensed] .masthead { padding-block: 6px; }
.site-header[data-condensed] .masthead__inner { gap: 0; }
.site-header[data-condensed] .brand { font-size: 26px; }
.site-header[data-condensed] .brand__line { display: none; }
.site-header[data-condensed] .nav-bar__inner { padding-block: 6px; }
.site-header[data-condensed] .nav a { padding-block: 8px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--ink-2);
  border-top: 1px solid var(--line);
  color: #D7E0EC;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) var(--gutter) 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(240px, 0.9fr) 2.1fr;
    gap: 56px;
    padding-bottom: 40px;
  }
}

.footer-brand { display: flex; flex-direction: column; gap: 10px; }

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--snow);
}

.footer-brand__mark {
  display: inline-block;
  padding: 2px 8px 4px;
  border: 2px solid var(--gold);
  border-radius: var(--r-tag);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72em;
  color: var(--gold);
}

.footer-brand__tag {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
}

.footer-brand__meta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: #7C8FAB;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 26px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col__title {
  padding-left: 9px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--snow);
}

.footer-list { display: flex; flex-direction: column; gap: 8px; }

.footer-list a {
  display: inline-block;
  padding-block: 3px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
  transition: color 0.16s var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible { color: var(--gold); }

.footer-contact {
  display: grid;
  gap: 14px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .footer-contact {
    grid-template-columns: 180px 1fr;
    align-items: start;
    gap: 28px;
    padding-top: 32px;
    margin-top: 32px;
  }
}

.footer-contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--snow);
}

.footer-contact__list { display: flex; flex-direction: column; gap: 10px; }

.footer-contact__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.footer-contact__key {
  flex: none;
  min-width: 60px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  color: var(--teal);
}

.footer-contact__val {
  font-size: 15px;
  line-height: 1.7;
  color: var(--snow);
}

.copy-mail {
  flex: none;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid rgba(244, 241, 234, 0.35);
  border-radius: var(--r-tag);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--snow);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
              background-color 0.16s var(--ease);
}

.copy-mail:hover { border-color: var(--gold); color: var(--gold); }
.copy-mail[data-copied="true"] {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.footer-note {
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.7;
  color: #8FA3BF;
}

@media (min-width: 900px) {
  .footer-note { grid-column: 2; }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.7;
  color: #7C8FAB;
}

.footer-legal__icp { max-width: 78ch; }

.footer-legal__year {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  background-color: var(--gold);
  border-radius: var(--r-tag);
  color: #101F35;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.to-top::before {
  content: "↑";
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
}

.to-top:hover { background-color: var(--gold-hi); transform: translateY(-2px); }

@media (min-width: 900px) {
  .to-top { right: 24px; bottom: 24px; }
}

/* ---------- reveal ---------- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

[data-reveal].is-revealed {
  animation: reveal-up 0.24s var(--ease) both;
}

/* ---------- 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;
  }

  [data-reveal].is-revealed { animation: none; }
  .to-top:hover { transform: none; }
  .btn:active { transform: none; }
}
