/* ============================================
   AY/SPORT//ARCHIVE — Shared Site Kit
   ============================================ */

:root {
  --navy: #0B3C5D;
  --blue: #2E8BC0;
  --orange: #F18F01;
  --amber: #FFB347;
  --bg: #F7F9FB;
  --section: #E8F1F8;
  --text: #1D2D3A;
  --muted: #5A6B7A;
  --border: #D5E3ED;
  --white: #FFFFFF;
  --font-head: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "Courier New", monospace;
  --shell: 1440px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

#main-content {
  display: block;
  flex: 1;
  scroll-margin-top: 96px;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--orange);
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy);
}

p {
  margin: 0 0 1.1em;
}

ul, ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

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

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 3000;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  transition: top 0.15s ease-out;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--navy);
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
}

.progress-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--amber);
  z-index: 6;
  pointer-events: none;
}

.site-header-inner {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  min-height: 72px;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-block:hover {
  color: var(--white);
  opacity: 0.92;
}

.brand-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  background: var(--orange);
  color: var(--navy);
  padding: 0.25rem 0.45rem;
}

.brand-dot {
  color: var(--navy);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
}

.brand-version {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--amber);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.12rem 0.4rem;
  margin-left: 0.2rem;
  opacity: 0.85;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.45rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--white);
  border-bottom-color: var(--orange);
}

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

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--orange);
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem 0.6rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  border-radius: 0;
  flex-shrink: 0;
}

.toggle-line {
  display: block;
  height: 2px;
  background: var(--white);
  transition: background 0.2s ease;
}

.toggle-line:nth-child(2) {
  width: 70%;
}

/* JS-nav relationship */
.js .site-nav {
  display: none;
}

.js .site-nav[data-open="true"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
  padding: 1rem 1.5rem 1.6rem;
  gap: 0.35rem;
  box-shadow: 0 16px 30px rgba(11, 60, 93, 0.28);
}

@media (min-width: 1024px) {
  .site-header-inner {
    min-height: 88px;
  }

  .site-nav,
  .js .site-nav,
  .js .site-nav[data-open="true"] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: #c2d3e0;
  border-top: 4px solid var(--orange);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 3.5rem clamp(1.25rem, 4vw, 4rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.footer-dot {
  color: var(--orange);
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber);
  letter-spacing: 0.12em;
  margin-top: 0.4rem;
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #b6c9d8;
}

.footer-trust {
  margin-top: 1.1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--orange);
  font-size: 0.78rem;
  color: #8fb0c5;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: #b6c9d8;
  font-size: 0.88rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-links a:hover {
  color: var(--amber);
  padding-left: 0.2rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #b6c9d8;
  line-height: 1.6;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 3rem;
  padding: 1.2rem clamp(1.25rem, 4vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #7e9fb4;
}

@media (max-width: 1023px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 639px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
  }

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

/* ---------- shared layout components ---------- */

.content-shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
  width: 100%;
}

.section-block {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.section-block--alt {
  background: var(--section);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 2px;
  background: var(--orange);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- buttons ---------- */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
}

.btn-primary::after {
  content: "→";
  font-family: var(--font-mono);
  font-weight: 400;
  display: inline-block;
  transition: transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
}

.btn-primary:hover::after {
  transform: translateX(3px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.btn-ghost:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ---------- tags & index chips ---------- */

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--navy);
  padding: 0.2rem 0.7rem;
  border-radius: 0;
  line-height: 1.4;
}

.index-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue);
  border: 1px solid var(--border);
  padding: 0.15rem 0.6rem;
  background: transparent;
  line-height: 1.5;
}

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--blue);
}

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

.breadcrumbs span[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-inline: 0.4rem;
  color: var(--border);
}

/* ---------- media frames ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--section);
  aspect-ratio: 16 / 9;
  display: block;
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(11, 60, 93, 0.12);
  pointer-events: none;
}

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

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

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

/* ---------- decorative speed line ---------- */

.speed-lines {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    135deg,
    var(--orange) 0,
    var(--orange) 8px,
    transparent 8px,
    transparent 16px
  );
}

/* ---------- focus visibility ---------- */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- reduced motion ---------- */

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

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