/* /assets/site.css */
:root {
  --bg-ink: #0B090A;
  --bg-elevated: #151010;
  --surface-paper: #F2E8D8;
  --gold-brand: #C9A227;
  --gold-bright: #F2C94C;
  --crimson-deep: #7A1424;
  --crimson-live: #D43A4F;
  --text-cream: #F8F1E8;
  --text-muted: #B7A99A;
  --border-metal: rgba(201, 162, 39, 0.4);
  --shadow-black: rgba(0, 0, 0, 0.6);
  --font-head: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Oswald", "Arial Narrow", "DIN Condensed", sans-serif;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 68px;
  --grid-gap: clamp(18px, 3vw, 36px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-ink);
  color: var(--text-cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
}

main {
  display: block;
  outline: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin-bottom: 1em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--gold-bright);
}

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

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}

ul, ol {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  background: var(--surface-paper);
  color: var(--bg-ink);
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px var(--shadow-black);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

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

.container--narrow {
  max-width: 940px;
}

.container--wide {
  max-width: 1600px;
}

.section {
  padding-block: clamp(56px, 8vw, 100px);
}

.section--elevated {
  background: var(--bg-elevated);
}

.section--crimson {
  background: var(--crimson-deep);
}

.section--paper {
  background: var(--surface-paper);
  color: var(--bg-ink);
}

.section--lead {
  margin-bottom: clamp(24px, 4vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-brand);
  margin-bottom: 0.8rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold-brand);
  transform: skewX(-20deg);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: 60ch;
}

.section--paper .lead {
  color: rgba(11, 9, 10, 0.78);
}

.split-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.split-line::before {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-brand), transparent);
  transform: skewX(-20deg);
}

.split-line::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold-brand);
  transform: rotate(45deg);
  flex: none;
}

.split-line--crimson::before {
  background: linear-gradient(90deg, var(--crimson-live), transparent);
}

.split-line--crimson::after {
  background: var(--crimson-live);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 84px);
  border-bottom: 1px solid var(--border-metal);
  background:
    radial-gradient(circle at 78% 20%, rgba(201, 162, 39, 0.14), transparent 42%),
    var(--bg-ink);
}

.page-hero::before {
  content: "REC";
  position: absolute;
  top: 24px;
  right: -20px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 1;
  color: rgba(201, 162, 39, 0.06);
  pointer-events: none;
}

.page-id {
  font-family: var(--font-num);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--crimson-live);
}

.page-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  margin: 0.3em 0 0.35em;
}

.page-description {
  max-width: 58ch;
  color: var(--text-muted);
}

.breadcrumbs {
  padding-block: 1.25rem 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

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

.breadcrumbs li + li::before {
  content: "/";
  margin-inline: 0.45rem;
  color: var(--gold-brand);
  font-family: var(--font-num);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--gold-bright);
}

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

.content-area {
  padding-block: clamp(40px, 6vw, 80px);
}

.content-body {
  max-width: 72ch;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.3rem;
  background: transparent;
  border: 2px solid var(--gold-brand);
  color: var(--gold-brand);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.button:hover {
  background: var(--gold-brand);
  color: var(--bg-ink);
  box-shadow: 0 0 22px rgba(201, 162, 39, 0.35);
}

.button--primary {
  background: var(--gold-brand);
  color: var(--bg-ink);
}

.button--primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.button--ghost {
  border-color: var(--border-metal);
  color: var(--text-cream);
}

.button--ghost:hover {
  background: rgba(201, 162, 39, 0.08);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.button--paper {
  background: var(--surface-paper);
  border-color: var(--surface-paper);
  color: var(--bg-ink);
}

.button--paper:hover {
  border-color: var(--gold-brand);
}

.button--block {
  width: 100%;
}

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

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

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

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

.grid--archive {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

.panel {
  position: relative;
  padding: clamp(22px, 3vw, 36px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-metal);
  box-shadow: 0 24px 48px var(--shadow-black);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-brand), transparent 70%);
}

.panel--paper {
  background: var(--surface-paper);
  color: var(--bg-ink);
  border-color: transparent;
}

.panel--paper::before {
  background: var(--crimson-live);
}

.card {
  position: relative;
  padding: clamp(18px, 2.5vw, 28px);
  background: rgba(21, 16, 16, 0.85);
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-brand);
}

.card--paper {
  background: var(--surface-paper);
  color: var(--bg-ink);
}

.figure {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-metal);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.figure:hover img {
  transform: scale(1.02);
}

.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 162, 39, 0.12);
  pointer-events: none;
}

.figure--16x9 {
  aspect-ratio: 16 / 9;
}

.figure--21x9 {
  aspect-ratio: 21 / 9;
}

.figure--4x5 {
  aspect-ratio: 4 / 5;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.65em;
  background: rgba(11, 9, 10, 0.55);
  border: 1px solid var(--border-metal);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.tag--gold {
  color: var(--gold-brand);
  border-color: var(--gold-brand);
}

.tag--crimson {
  color: var(--crimson-live);
  border-color: rgba(212, 58, 79, 0.6);
  background: rgba(212, 58, 79, 0.12);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  color: var(--text-muted);
  font-size: 13px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.meta-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold-brand);
  transform: skewX(-20deg);
  flex: none;
}

.archive-index {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold-brand);
}

.archive-index::after {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--gold-brand);
  transform: skewX(-20deg);
}

.archive-item {
  position: relative;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-metal);
}

.archive-item:last-child {
  border-bottom: 0;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid var(--border-metal);
  margin-bottom: 1.5rem;
}

.tab-button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.tab-button:hover {
  color: var(--gold-bright);
}

.tab-button[aria-selected="true"] {
  color: var(--bg-ink);
  background: var(--gold-brand);
  border-color: var(--gold-brand);
}

.tab-panel {
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border-metal);
  box-shadow: 0 18px 36px var(--shadow-black);
}

.notice {
  padding: 1rem 1.25rem;
  background: rgba(122, 20, 36, 0.28);
  border-left: 4px solid var(--crimson-live);
}

.notice-title {
  color: var(--gold-bright);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 9, 10, 0.92);
  border-bottom: 1px solid var(--border-metal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  position: relative;
}

.scroll-progress {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--crimson-deep), var(--gold-brand) 55%, var(--gold-bright));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  box-shadow: 0 0 12px rgba(242, 201, 76, 0.35);
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-cream);
  text-decoration: none;
}

.brand:hover {
  color: var(--gold-bright);
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, var(--bg-ink), #1D1414);
  border: 2px solid var(--gold-brand);
  color: var(--gold-bright);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  transform: skewX(-8deg);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.brand-tagline {
  display: none;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: 1rem;
}

.nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
}

.nav-list li {
  list-style: none;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 18px;
  color: var(--text-cream);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-brand), var(--gold-bright));
  transition: width 0.25s var(--ease), left 0.25s var(--ease);
}

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

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  left: 0;
  width: 100%;
}

.header-tool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.temp-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.25rem 0.9rem;
  background: rgba(122, 20, 36, 0.18);
  border: 1px solid rgba(212, 58, 79, 0.55);
  color: var(--text-cream);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.temp-trigger:hover {
  border-color: var(--gold-brand);
  background: rgba(201, 162, 39, 0.08);
}

.temp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson-live);
  box-shadow: 0 0 10px rgba(212, 58, 79, 0.9);
  flex: none;
}

.temp-label {
  white-space: nowrap;
}

.temp-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 2rem));
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 2px solid var(--border-metal);
  border-top: 6px solid var(--crimson-deep);
  box-shadow: 0 24px 48px var(--shadow-black);
  z-index: 120;
}

.temp-title {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.temp-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  background: transparent;
  border: 1px solid var(--border-metal);
  color: var(--text-cream);
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--gold-brand);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-toggle-text {
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--gold-bright);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--gold-bright);
}

.site-footer {
  background: var(--bg-elevated);
  border-top: 3px solid var(--border-metal);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 35%;
  height: 3px;
  background: var(--crimson-live);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(48px, 7vw, 84px) 40px;
}

.footer-heading {
  border-left: 3px solid var(--gold-brand);
  padding-left: 0.65rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-brand);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-about,
.footer-trust,
.footer-service-note,
.footer-contact-list {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-about {
  margin-top: 1.1rem;
}

.footer-trust {
  font-size: 12px;
  border-left: 3px solid var(--border-metal);
  padding-left: 0.6rem;
}

.footer-contact-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  padding-block: 1rem;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 2rem;
}

.footer-copy,
.footer-update {
  margin: 0;
}

.brand--footer .brand-symbol {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.brand--footer .brand-name {
  font-size: 1.4rem;
}

.brand--footer .brand-tagline {
  display: inline-flex;
}

@media (min-width: 1280px) {
  .brand-tagline {
    display: block;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 60px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    align-items: initial;
    justify-content: initial;
    margin-inline: 0;
    background: var(--bg-elevated);
    border-top: 2px solid var(--gold-brand);
    border-bottom: 2px solid var(--border-metal);
    padding: 10px clamp(16px, 4vw, 48px) 24px;
    box-shadow: 0 24px 48px var(--shadow-black);
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav .nav-list {
    display: block;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 0.5rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  }

  .nav-link::after {
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    width: 3px;
  }

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

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .grid--2,
  .grid--split,
  .grid--archive {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .temp-label {
    display: none;
  }

  .temp-trigger {
    padding-inline: 0.5rem;
  }

  .brand-symbol {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }
}

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

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