/* /assets/site.css */
:root {
  --bg-page: #0f1115;
  --bg-teal: #10312b;
  --bg-purple: #241a3a;
  --bg-green: #143028;
  --bg-card: #1a1e26;
  --amber: #f5c518;
  --lime: #39ff88;
  --orange: #ff6b35;
  --bluegray: #8a9bb5;
  --pink: #ff2e6f;
  --ink: #f0f3f8;
  --ink-dim: #a0aab8;
  --line: #2a2f3a;
  --c-cyan: #00c2ff;
  --c-pink: #ff5eaa;
  --c-green: #7ed321;
  --c-orange: #ff9f1c;
  --c-purple: #b286f6;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-head: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --container: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--amber);
  color: #0f1115;
}

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

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

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

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

/* ========== Header ========== */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--bg-teal);
}

.site-header__main {
  position: relative;
  background-color: var(--bg-teal);
  background-image:
    radial-gradient(circle at 85% 130%, rgba(57, 255, 136, 0.12), transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--amber);
  color: #0f1115;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  border-radius: 16px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.brand__sub {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-dim);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.main-nav__link::before {
  content: attr(data-num);
  margin-right: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-dim);
  opacity: 0.7;
}

.main-nav__link:hover {
  background: rgba(245, 197, 24, 0.15);
  color: var(--amber);
}

.main-nav__link[aria-current="page"] {
  background: var(--amber);
  color: #0f1115;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.main-nav__link[aria-current="page"]::before {
  color: rgba(15, 17, 21, 0.55);
  opacity: 1;
}

.nav-aux {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(240, 243, 248, 0.4);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}

.nav-aux:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header__strip {
  background: var(--amber);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.site-header__strip-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
}

.site-header__strip-tag {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0f1115;
  color: var(--amber);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

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

.index-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.index-bar__item:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.index-bar__item--active {
  background: var(--amber);
  border-color: var(--amber);
  color: #0f1115;
}

.index-bar__num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.65;
}

.index-bar__name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.site-header__strip .index-bar__item {
  background: rgba(15, 17, 21, 0.08);
  border-color: transparent;
  color: #0f1115;
  padding: 7px 14px;
}

.site-header__strip .index-bar__item:hover {
  background: #0f1115;
  color: var(--amber);
  transform: translateY(-1px);
}

.site-header__strip .index-bar__item--active {
  background: #0f1115;
  color: var(--amber);
}

.site-header__strip .index-bar__num {
  color: rgba(15, 17, 21, 0.55);
}

.site-header__strip .index-bar__item:hover .index-bar__num,
.site-header__strip .index-bar__item--active .index-bar__num {
  color: rgba(245, 197, 24, 0.7);
}

.site-header__count {
  margin-left: auto;
  color: #0f1115;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.site-header__count strong {
  font-size: 16px;
  font-weight: 700;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  width: 0;
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--amber), var(--lime));
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--amber);
  color: #0f1115;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  margin-top: 80px;
  background-color: var(--bg-purple);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--lime) 50%, var(--pink));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px 48px;
  padding: 64px 0 44px;
}

.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--amber);
  color: #0f1115;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.footer-brand__name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.footer-brand__desc {
  margin-top: 10px;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  max-width: 30ch;
}

.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.footer-contact__row {
  position: relative;
  padding-left: 14px;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
}

.footer-contact__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--amber);
}

.footer-links__title {
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(245, 197, 24, 0.3);
  color: var(--amber);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
}

.footer-links__list {
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  transition: color 0.2s;
}

.footer-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 1px;
  background: var(--amber);
  transition: background 0.2s;
}

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

.footer-links a:hover::before {
  background: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom__info {
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber);
  color: #0f1115;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  background: var(--lime);
}

/* ========== Sections ========== */
.section {
  padding: 72px 0;
}

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

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

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

.grid-lines {
  background-image:
    linear-gradient(rgba(240, 243, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 243, 248, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head__index {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  letter-spacing: 0.12em;
}

.section-head__title {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

.section-head__note {
  max-width: 36ch;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

/* ========== Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.card--amber { border-top: 4px solid var(--amber); }
.card--cyan { border-top: 4px solid var(--c-cyan); }
.card--pink { border-top: 4px solid var(--c-pink); }
.card--green { border-top: 4px solid var(--c-green); }
.card--orange { border-top: 4px solid var(--c-orange); }
.card--purple { border-top: 4px solid var(--c-purple); }

.card__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 197, 24, 0.15);
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.card__title {
  margin: 12px 0 10px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.card__meta {
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  transition: color 0.2s;
}

.card__link:hover {
  color: var(--lime);
}

/* ========== Tiles ========== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.tile {
  display: block;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
}

.tile--amber { background: rgba(245, 197, 24, 0.14); border-color: rgba(245, 197, 24, 0.35); }
.tile--cyan { background: rgba(0, 194, 255, 0.12); border-color: rgba(0, 194, 255, 0.3); }
.tile--pink { background: rgba(255, 94, 170, 0.12); border-color: rgba(255, 94, 170, 0.3); }
.tile--green { background: rgba(126, 211, 33, 0.12); border-color: rgba(126, 211, 33, 0.3); }
.tile--orange { background: rgba(255, 159, 28, 0.12); border-color: rgba(255, 159, 28, 0.3); }
.tile--purple { background: rgba(178, 134, 246, 0.12); border-color: rgba(178, 134, 246, 0.3); }

.tile__name {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.tile__count {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-dim);
}

/* ========== Entry list ========== */
.entry-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.entry-row {
  display: grid;
  grid-template-columns: 60px 1fr 160px 120px 110px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.entry-row:last-child {
  border-bottom: 0;
}

.entry-row:hover {
  background: rgba(57, 255, 136, 0.05);
}

.entry-row__rank {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
}

.entry-row__name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.entry-row__category,
.entry-row__batch {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1;
  color: var(--ink-dim);
}

.entry-row__status {
  justify-self: start;
}

/* ========== Status badges ========== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--new {
  background: rgba(255, 107, 53, 0.15);
  color: var(--orange);
}

.status-badge--archived {
  background: rgba(138, 155, 181, 0.15);
  color: var(--bluegray);
}

.status-badge--hot {
  background: rgba(255, 46, 111, 0.15);
  color: var(--pink);
}

.status-badge--updated {
  background: rgba(57, 255, 136, 0.15);
  color: var(--lime);
}

/* ========== Tags ========== */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--amber);
  color: #0f1115;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  transition: filter 0.2s, transform 0.2s;
}

.tag:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.tag--lg {
  padding: 10px 18px;
  font-size: 17px;
  font-weight: 800;
}

.tag--md {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.tag--sm {
  padding: 5px 10px;
  font-size: 12px;
  opacity: 0.88;
}

.tag--cyan { background: var(--c-cyan); }
.tag--pink { background: var(--c-pink); }
.tag--green { background: var(--c-green); }
.tag--orange { background: var(--c-orange); }
.tag--purple { background: var(--c-purple); }

/* ========== Hot list ========== */
.hotlist {
  display: grid;
  gap: 12px;
}

.hotlist__item {
  display: grid;
  grid-template-columns: 44px 1fr 120px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.hotlist__item:hover {
  border-color: var(--pink);
}

.hotlist__body {
  display: grid;
  gap: 6px;
}

.hotlist__name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.hotlist__meta {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.2;
  color: var(--ink-dim);
}

/* ========== Rank numbers ========== */
.rank-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(245, 197, 24, 0.12);
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.rank-num--top {
  background: var(--amber);
  color: #0f1115;
}

/* ========== Metric bars ========== */
.metric-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--amber);
}

.metric-bar__fill--lime {
  background: var(--lime);
}

.metric-bar__fill--pink {
  background: var(--pink);
}

.metric-bar__fill--orange {
  background: var(--orange);
}

/* ========== Track ========== */
.track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.track__item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* ========== Table ========== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
}

.data-table th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-dim);
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.06em;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: rgba(57, 255, 136, 0.04);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1;
}

.breadcrumb__sep {
  color: var(--line);
}

.breadcrumb a {
  color: var(--ink-dim);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--amber);
}

.breadcrumb__current {
  color: var(--ink);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--amber);
  color: #0f1115;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(57, 255, 136, 0.25);
}

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

.btn--ghost:hover {
  background: transparent;
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: none;
}

/* ========== Image frames ========== */
.img-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.img-frame::after {
  content: "IMG";
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}

.img-frame--square {
  aspect-ratio: 1;
}

.img-frame--portrait {
  aspect-ratio: 4 / 5;
}

.img-frame--hero {
  aspect-ratio: 21 / 9;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .entry-row {
    grid-template-columns: 48px 1fr 120px 100px 96px;
    gap: 12px;
  }

  .track__item {
    flex-basis: 240px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__main {
    position: relative;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 18px 18px;
    background: #0b2320;
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.4);
  }

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

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-radius: 12px;
  }

  .main-nav__link::before {
    order: 2;
    margin-right: 0;
    margin-left: 8px;
  }

  .nav-aux {
    display: inline-flex;
    width: fit-content;
    margin: 12px 20px 4px;
  }

  .site-header__strip-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }

  .site-header__strip-tag,
  .site-header__count {
    display: none;
  }

  .site-header__count {
    margin-left: 0;
  }

  .entry-row {
    grid-template-columns: 40px 1fr auto;
    padding: 14px 16px;
  }

  .entry-row__category,
  .entry-row__batch {
    display: none;
  }

  .hotlist__item {
    grid-template-columns: 40px 1fr 90px;
  }
}

@media (max-width: 620px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 56px 0;
  }

  .tile-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

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

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