/* HotsInfo — one stylesheet, no framework.
   Card treatment adapted from the MotionSites "Orbis Cards" glass technique:
   a masked gradient hairline plus an inset highlight, all in CSS. */

:root {
  --ground: #070C1A;
  --ground-2: #0A1024;
  --text: #EDF1FB;
  --muted: rgba(237, 241, 251, 0.62);
  --faint: rgba(237, 241, 251, 0.42);
  --hairline: rgba(237, 241, 251, 0.10);
  --gold: #E9B44C;
  --cyan: #4FD8E8;
  --violet: #7C6BF0;
  --warn: #E08B6B;

  --shell: 1440px;
  --gutter: 24px;
  --radius: 18px;
  --header-h: 116px;

  --display: Cinzel, Georgia, serif;
  --sans: Barlow, "Helvetica Neue", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* Chinese has no Cinzel equivalent, and Barlow carries no CJK glyphs, so the
   Chinese pages fall through to Noto Sans SC and lean on weight for hierarchy. */
.lang-zh {
  --display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.lang-zh .brand-name,
.lang-zh .hero h1 .latin { font-family: Cinzel, Georgia, serif; }
.lang-zh .card-head h2,
.lang-zh .hero h1,
.lang-zh .page-head h1,
.lang-zh .section-title { letter-spacing: 0.01em; font-weight: 600; }
.lang-zh .notes li,
.lang-zh .figure-sub,
.lang-zh .lede,
.lang-zh .prose p { line-height: 1.75; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: #12131A;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 12, 26, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

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

.brand-mark {
  width: 15px;
  height: 15px;
  rotate: 45deg;
  border-radius: 3px;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(79, 216, 232, 0.55);
}

.brand-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.brand-name span { color: var(--gold); }

.header-right { display: flex; align-items: center; gap: 10px; }

.top-nav {
  display: flex;
  gap: 4px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.lang-switch:hover { color: var(--cyan); border-color: rgba(79, 216, 232, 0.45); }

.top-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}
.top-nav a:hover { color: var(--text); background: rgba(237, 241, 251, 0.06); }
.top-nav a.is-active { color: var(--text); background: rgba(237, 241, 251, 0.09); }

.subnav-wrap { border-top: 1px solid var(--hairline); background: rgba(10, 16, 36, 0.6); }

.subnav {
  display: flex;
  gap: 22px;
  height: 47px;
  align-items: center;
}

.subnav a {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s ease;
}
.subnav a:hover { color: var(--text); }
.subnav a.is-active { color: var(--cyan); }
.subnav a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* ------------------------------------------------------------------ glass */

.glass {
  position: relative;
  border-radius: var(--radius);
  background: rgba(237, 241, 251, 0.014);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.07);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(237, 241, 251, 0.30) 0%,
    rgba(237, 241, 251, 0.09) 22%,
    rgba(237, 241, 251, 0) 45%,
    rgba(237, 241, 251, 0) 58%,
    rgba(237, 241, 251, 0.09) 80%,
    rgba(237, 241, 251, 0.30) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.25s ease;
}

.pad { padding: 26px 28px; }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 11vw, 136px) 0 clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--hairline);
}

.hero-glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(45% 55% at 22% 32%, rgba(124, 107, 240, 0.30), transparent 68%),
    radial-gradient(38% 48% at 74% 22%, rgba(79, 216, 232, 0.22), transparent 70%),
    radial-gradient(40% 40% at 54% 78%, rgba(233, 180, 76, 0.10), transparent 72%);
  filter: blur(14px);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-3%, -1%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

.hero-inner { position: relative; }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.2vw, 4.9rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.01em;
}
.hero h1 .accent { color: var(--cyan); }

.lede {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(237, 241, 251, 0.28); color: var(--text); }

.btn-primary {
  background: linear-gradient(140deg, rgba(79, 216, 232, 0.18), rgba(124, 107, 240, 0.18));
  border-color: rgba(79, 216, 232, 0.45);
}
.btn-primary:hover { border-color: var(--cyan); }

/* ------------------------------------------------------------------ bands */

.band { padding: clamp(40px, 6vw, 72px) var(--gutter); }

.section-title {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 24px 26px;
  background: var(--ground);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-value {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-value .unit { font-size: 0.5em; color: var(--muted); }

.stat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.prose-grid h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--gold);
}
.prose-grid p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ------------------------------------------------------------- page heads */

.page-head { padding: clamp(40px, 6vw, 76px) var(--gutter) 0; }

.page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.k-gold { color: var(--gold); font-weight: 600; }
.k-cyan { color: var(--cyan); font-weight: 600; }

/* ------------------------------------------------------------ maps layout */

.maps-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-top: 34px;
}

.jump {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.jump-title {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.jump ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }

.jump a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.jump a:hover {
  color: var(--text);
  border-left-color: var(--cyan);
  background: rgba(237, 241, 251, 0.05);
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

/* -------------------------------------------------------------- map cards */

.card {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: calc(var(--header-h) + 20px);
  transition: transform 0.22s ease;
}
.card:hover { transform: translateY(-3px); }
.card:hover::before { background: linear-gradient(180deg, rgba(79, 216, 232, 0.42) 0%, rgba(237, 241, 251, 0.10) 40%, rgba(237, 241, 251, 0) 55%, rgba(124, 107, 240, 0.30) 100%); }

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

.card-head h2 {
  margin: 0;
  flex: 1 1 auto;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip-random, .chip-scales { border-color: rgba(233, 180, 76, 0.42); color: #F0C878; }
.chip-unranked { border-color: rgba(237, 241, 251, 0.2); color: var(--muted); }

.card-figures {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.figure { flex: 1 1 0; min-width: 0; }
.figure + .figure { border-left: 1px solid var(--hairline); padding-left: 18px; }

.figure-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.figure-value {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: 1.68rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* ranges like 110-150s would otherwise break mid-number */
.figure-value.is-long { font-size: 1.24rem; letter-spacing: -0.01em; }
.v-gold { color: var(--gold); }
.v-cyan { color: var(--cyan); }

.figure-sub { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

.notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }

.notes li {
  position: relative;
  padding-left: 15px;
  font-size: 12.9px;
  line-height: 1.48;
  color: var(--muted);
}
.notes li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.card-foot { margin: auto 0 0; }

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pill-measured { background: rgba(79, 216, 232, 0.12); color: var(--cyan); }
.pill-inferred { background: rgba(224, 139, 107, 0.13); color: var(--warn); }

.legend p { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.legend p .pill { margin-right: 8px; }

/* ------------------------------------------------------------------ prose */

.prose { max-width: 74ch; }
.prose p { color: var(--muted); }
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(237, 241, 251, 0.07);
  color: var(--text);
}
.prose .section-title { margin-top: 38px; }
.prose .section-title:first-child { margin-top: 0; }

.ledger { margin: 0; padding-left: 20px; color: var(--muted); }
.ledger li { margin-bottom: 7px; }
.ledger strong { color: var(--text); }

.placeholder { text-align: center; max-width: 66ch; margin-inline: auto; }
.placeholder-mark { font-size: 2rem; margin: 0 0 10px; opacity: 0.7; }
.placeholder h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
}
.placeholder p { color: var(--muted); }
.placeholder-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

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

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-items: baseline;
  justify-content: space-between;
}
.site-footer p { margin: 0; font-size: 13px; color: var(--faint); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ------------------------------------------------------------ responsive */

@media (min-width: 768px) { :root { --gutter: 48px; } }
@media (min-width: 1280px) { :root { --gutter: 96px; } }

@media (max-width: 1000px) {
  .maps-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .jump {
    position: static;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 12px;
  }
  .jump ul {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .jump a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
  }
  .jump a:hover { border-left-color: transparent; border-bottom-color: var(--cyan); }
}

@media (max-width: 560px) {
  :root { --header-h: 116px; }
  .header-inner { height: 60px; }
  .top-nav a { padding: 8px 10px; font-size: 14px; }
  .map-grid { grid-template-columns: minmax(0, 1fr); }
  .card-figures { flex-direction: column; gap: 14px; }
  .figure + .figure { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 14px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* -------------------------------------------------------- motion + print */

@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;
  }
}

@media print {
  .site-header, .site-footer, .jump, .hero-glow, .hero-actions { display: none; }
  body { background: #fff; color: #111; }
  .glass, .card { background: none; box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
  .glass::before { display: none; }
  .map-grid { grid-template-columns: repeat(2, 1fr); }
  .v-gold { color: #8a6400; }
  .v-cyan { color: #0f6f7a; }
  .notes li, .figure-sub, .figure-label, .lede, .prose p { color: #333; }
}
