/* ============================================================
   bomao-join.com.cn — shared site kit
   /assets/site.css
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --ink-green: #0E2A24;
  --ink-green-2: #17463B;
  --flame: #E8752B;
  --flame-soft: #F6A45C;
  --paper: #F7F1E4;
  --paper-white: #FFFBF2;
  --char: #2B2B28;
  --teal: #5B8FA3;
  --teal-deep: #3E6B7C;
  --sage: #7C8F86;
  --glass: rgba(247, 241, 228, 0.14);

  --rail-w: 88px;
  --rail-w-open: 248px;
  --rail-current: var(--rail-w-open);
  --shell-max: 1264px;
  --gap: clamp(1rem, 2.2vw, 1.75rem);
  --radius-s: 4px;
  --radius-m: 12px;
  --shadow-card: 0 22px 48px -32px rgba(14, 42, 36, 0.6);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Sarasa Mono SC", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-rail="compact"] {
  --rail-current: var(--rail-w);
}

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
}

a {
  color: var(--teal-deep);
}

/* ---------- base ---------- */
body {
  padding-left: var(--rail-current);
  background-color: var(--paper);
  background-image: linear-gradient(180deg, rgba(14, 42, 36, 0.055), rgba(14, 42, 36, 0) 340px);
  color: var(--char);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: padding-left 0.26s var(--ease);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-green);
}

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

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

/* ---------- skip link + progress ---------- */
.skip-link {
  position: fixed;
  left: 1rem;
  top: 0.5rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: var(--flame);
  color: #20100A;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

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

.progress-bar {
  position: fixed;
  top: 0;
  left: var(--rail-current);
  right: 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--flame), var(--flame-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- header shell ---------- */
.site-header {
  display: block;
}

/* ---------- left rail ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--rail-current);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.5rem 1rem 1.25rem;
  overflow: hidden;
  background: var(--ink-green);
  background-image: linear-gradient(180deg, rgba(232, 117, 43, 0.13), rgba(232, 117, 43, 0) 42%);
  color: var(--paper);
  border-right: 1px solid rgba(247, 241, 228, 0.09);
  transition: width 0.26s var(--ease), transform 0.3s var(--ease);
}

.rail__brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(247, 241, 228, 0.14);
}

.rail__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--paper-white);
  text-decoration: none;
  white-space: nowrap;
}

.rail__wordmark {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(247, 241, 228, 0.5);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s var(--ease), width 0.26s var(--ease);
}

.rail__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(247, 241, 228, 0.62);
}

.rail__status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 3px rgba(232, 117, 43, 0.22);
  animation: railPulse 3.4s ease-in-out infinite;
}

@keyframes railPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(232, 117, 43, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(232, 117, 43, 0.08); }
}

.rail__status-text {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s var(--ease), width 0.26s var(--ease);
}

.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail__list {
  display: grid;
  gap: 0.2rem;
}

.rail__item {
  display: block;
}

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.55rem;
  border-radius: 6px;
  color: rgba(247, 241, 228, 0.72);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 62%;
  border-radius: 2px;
  background: var(--flame);
  transform: translateY(-50%) scaleY(0);
  transform-origin: 50% 50%;
  transition: transform 0.22s var(--ease);
}

.rail__link:hover {
  background: rgba(247, 241, 228, 0.08);
  color: var(--paper-white);
}

.rail__link[aria-current="page"] {
  background: rgba(232, 117, 43, 0.16);
  color: var(--paper-white);
}

.rail__link[aria-current="page"]::before {
  transform: translateY(-50%) scaleY(1);
}

.rail__num {
  flex: none;
  min-width: 1.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(247, 241, 228, 0.42);
}

.rail__link[aria-current="page"] .rail__num {
  color: var(--flame-soft);
}

.rail__label {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s var(--ease), width 0.26s var(--ease);
}

.rail__foot {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(247, 241, 228, 0.14);
}

.rail__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.5rem 0.4rem;
  border: 1px solid rgba(247, 241, 228, 0.2);
  border-radius: 6px;
  background: rgba(247, 241, 228, 0.07);
  color: rgba(247, 241, 228, 0.86);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.rail__toggle:hover {
  background: rgba(247, 241, 228, 0.16);
  color: var(--paper-white);
}

.rail__toggle-glyph {
  font-size: 0.85rem;
  line-height: 1;
}

.rail__toggle-text {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s var(--ease), width 0.26s var(--ease);
}

/* rail collapsed state */
html[data-rail="compact"] .rail__label,
html[data-rail="compact"] .rail__wordmark,
html[data-rail="compact"] .rail__status-text,
html[data-rail="compact"] .rail__toggle-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}

html[data-rail="compact"] .rail__link {
  justify-content: center;
  padding-inline: 0;
}

html[data-rail="compact"] .rail__brand,
html[data-rail="compact"] .rail__status {
  align-items: center;
  justify-content: center;
}

/* ---------- query bar ---------- */
.query-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--paper);
  background:
    linear-gradient(100deg, rgba(232, 117, 43, 0.16), rgba(232, 117, 43, 0) 46%),
    rgba(14, 42, 36, 0.95);
  border-bottom: 1px solid rgba(247, 241, 228, 0.13);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.query-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 0.7rem clamp(1rem, 3vw, 2.25rem);
  min-height: 68px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(247, 241, 228, 0.32);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(247, 241, 228, 0.12);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 14px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

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

.query-brand {
  display: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--paper-white);
  text-decoration: none;
  white-space: nowrap;
}

.query-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(247, 241, 228, 0.24);
  border-radius: 999px;
  background: var(--glass);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.query-field:focus-within {
  border-color: var(--flame-soft);
  background: rgba(247, 241, 228, 0.2);
}

.query-field__icon {
  display: inline-flex;
  flex: none;
  color: rgba(247, 241, 228, 0.62);
}

.query-field__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.32rem 0;
  border: 0;
  background: transparent;
  color: var(--paper-white);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.query-field__input::placeholder {
  color: rgba(247, 241, 228, 0.52);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.query-field__input:focus {
  outline: none;
}

.query-field__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.query-field__count {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--flame-soft);
  white-space: nowrap;
}

.query-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
}

.query-chip {
  display: inline-block;
  padding: 0.3rem 0.62rem;
  border: 1px solid rgba(91, 143, 163, 0.55);
  border-radius: 999px;
  color: #BDD8E2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.query-chip:hover {
  background: rgba(91, 143, 163, 0.22);
  border-color: var(--teal);
  color: #E6F3F8;
}

.query-cta {
  flex: none;
  padding: 0.44rem 0.9rem;
  border-radius: var(--radius-s);
  background: var(--flame);
  color: #20100A;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.query-cta:hover {
  background: var(--flame-soft);
  transform: translateY(-1px);
}

/* ---------- page shell ---------- */
.page-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.25rem) clamp(3rem, 6vw, 5rem);
}

/* ---------- typography helpers ---------- */
.display-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-green);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.14;
  color: var(--ink-green);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.22;
  color: var(--ink-green);
}

.lede {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #3B3B36;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--teal-deep);
  text-transform: uppercase;
}

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

/* ---------- prose ---------- */
.prose {
  max-width: 66ch;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #33332F;
}

.prose p {
  margin: 0 0 1.05em;
}

.prose h2 {
  margin: 1.9em 0 0.65em;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

.prose h3 {
  margin: 1.6em 0 0.55em;
  font-size: 1.2rem;
}

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

.prose ol {
  list-style: decimal;
}

.prose li {
  margin: 0.35em 0;
}

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

.prose strong {
  color: var(--ink-green);
  font-weight: 700;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ink-green);
  color: var(--paper-white);
}

.btn--primary:hover {
  background: var(--ink-green-2);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(14, 42, 36, 0.28);
  color: var(--ink-green);
}

.btn--ghost:hover {
  border-color: var(--ink-green);
  background: rgba(14, 42, 36, 0.06);
}

.btn--quiet {
  background: rgba(14, 42, 36, 0.07);
  color: var(--ink-green);
}

.btn--quiet:hover {
  background: rgba(232, 117, 43, 0.16);
  color: #8E3F12;
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.tag--teal {
  background: rgba(91, 143, 163, 0.16);
  border: 1px solid rgba(91, 143, 163, 0.38);
  color: var(--teal-deep);
}

.tag--flame {
  background: rgba(232, 117, 43, 0.14);
  border: 1px solid rgba(232, 117, 43, 0.4);
  color: #8E3F12;
}

.tag--ink {
  background: var(--ink-green);
  color: var(--paper-white);
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--sage);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--sage);
}

.breadcrumb__link {
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 107, 124, 0.35);
}

.breadcrumb__link:hover {
  border-color: var(--flame);
  color: #8E3F12;
}

/* ---------- grid ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}

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

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

.grid--sidebar {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

/* ---------- panel ---------- */
.panel {
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(14, 42, 36, 0.1);
  border-radius: var(--radius-m);
  background: var(--paper-white);
  box-shadow: var(--shadow-card);
}

/* ---------- media ---------- */
.media-stack {
  display: grid;
  gap: 0.75rem;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(14, 42, 36, 0.12);
  border-radius: var(--radius-m);
  background-color: var(--ink-green-2);
  background-image:
    repeating-linear-gradient(90deg, rgba(247, 241, 228, 0.08) 0 1px, rgba(247, 241, 228, 0) 1px 18px),
    radial-gradient(120% 90% at 78% 12%, rgba(232, 117, 43, 0.4), rgba(232, 117, 43, 0) 60%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 42, 36, 0) 52%, rgba(14, 42, 36, 0.45));
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame--offset {
  margin-left: clamp(0px, 3vw, 48px);
}

.media-frame__label {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--paper-white);
}

.media-caption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--sage);
}

/* ---------- filter + search states ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  padding: 0.4rem 0.78rem;
  border: 1px solid rgba(14, 42, 36, 0.2);
  border-radius: 999px;
  background: var(--paper-white);
  color: var(--ink-green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--flame);
  color: #8E3F12;
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink-green);
  border-color: var(--ink-green);
  color: var(--paper-white);
}

.is-hidden {
  display: none !important;
}

.is-dim {
  opacity: 0.26;
  filter: grayscale(0.5);
}

[data-searchable] {
  transition: opacity 0.24s var(--ease), filter 0.24s var(--ease);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2.25rem) 1.5rem;
  background: var(--ink-green);
  background-image: linear-gradient(200deg, rgba(232, 117, 43, 0.12), rgba(232, 117, 43, 0) 38%);
  color: var(--paper);
  border-top: 1px solid rgba(247, 241, 228, 0.12);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--flame) 0 24px, rgba(232, 117, 43, 0.18) 24px 48px);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--shell-max);
  margin-inline: auto;
}

.footer__col {
  min-width: 0;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--paper-white);
}

.footer__brand-sub {
  margin-left: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--flame-soft);
  vertical-align: 0.55em;
}

.footer__desc {
  max-width: 38ch;
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(247, 241, 228, 0.72);
}

.footer__rhythm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(247, 241, 228, 0.18);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(247, 241, 228, 0.78);
}

.footer__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 3px rgba(232, 117, 43, 0.24);
}

.footer__title {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--flame-soft);
}

.footer__list {
  display: grid;
  gap: 0.45rem;
}

.footer__list--index {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(247, 241, 228, 0.14);
}

.footer__link {
  display: inline-block;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(247, 241, 228, 0.8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer__link:hover {
  color: var(--paper-white);
  border-bottom-color: var(--flame-soft);
}

.footer__contact {
  display: grid;
  gap: 0.8rem;
}

.footer__contact-item {
  display: grid;
  gap: 0.1rem;
}

.footer__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--sage);
}

.footer__value {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(247, 241, 228, 0.92);
  word-break: break-word;
}

.footer__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(247, 241, 228, 0.6);
}

.footer__to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  padding: 0.48rem 0.85rem;
  border: 1px solid rgba(247, 241, 228, 0.24);
  border-radius: var(--radius-s);
  background: rgba(247, 241, 228, 0.06);
  color: rgba(247, 241, 228, 0.88);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.footer__to-top:hover {
  background: rgba(232, 117, 43, 0.22);
  color: var(--paper-white);
}

.footer__to-top-glyph {
  font-size: 0.85rem;
  line-height: 1;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: var(--shell-max);
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(247, 241, 228, 0.14);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(247, 241, 228, 0.62);
}

.footer__copyright,
.footer__record {
  line-height: 1.7;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .query-chips {
    display: none;
  }
}

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

  .footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  html,
  html[data-rail] {
    --rail-current: 0px;
  }

  body {
    padding-left: 0;
  }

  .progress-bar {
    left: 0;
  }

  .rail {
    width: min(86vw, 320px);
    padding: 1.5rem 1.15rem 1.15rem;
    transform: translateX(-104%);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65);
  }

  .rail[data-open="true"] {
    transform: translateX(0);
  }

  html[data-rail] .rail__label,
  html[data-rail] .rail__wordmark,
  html[data-rail] .rail__status-text {
    opacity: 1;
    width: auto;
  }

  html[data-rail] .rail__link {
    justify-content: flex-start;
    padding-inline: 0.55rem;
  }

  html[data-rail] .rail__brand {
    align-items: flex-start;
  }

  html[data-rail] .rail__status {
    justify-content: flex-start;
  }

  .rail__toggle {
    display: none;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(14, 42, 36, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s var(--ease);
  }

  html[data-nav-open="true"] body::after {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 0;
  }

  .query-brand {
    display: inline-block;
    order: 1;
  }

  .query-bar__inner {
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.6rem 1rem;
    min-height: 0;
  }

  .query-field {
    order: 3;
    flex: 1 1 100%;
  }

  .query-cta {
    order: 2;
    margin-left: auto;
  }

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

@media (max-width: 620px) {
  .footer__grid,
  .footer__list--index {
    grid-template-columns: minmax(0, 1fr);
  }

  .query-field__input {
    font-size: 0.75rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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