/* Catalog — Route wall (Cadmium Voltage Desk)
   Unique hang-tag / vertical-route layout; theme matches index.php. */

*, *::before, *::after { box-sizing: border-box; }

body.rw-crag.a69-body {
  --rw-void: #070708;
  --rw-panel: #101014;
  --rw-ink: #f3f0e7;
  --rw-mute: #9a968a;
  --rw-line: rgba(243, 240, 231, 0.12);
  --rw-cadmium: #ff3b00;
  --rw-acid: #d6ff3c;
  --rw-cobalt: #7a8cff;
  --rw-display: "Syne", "Avenir Next", sans-serif;
  --rw-sans: "DM Sans", "Segoe UI", sans-serif;
  --rw-mono: "JetBrains Mono", ui-monospace, monospace;
  --rw-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rw-c0: #ff3b00;
  --rw-c1: #7a8cff;
  --rw-c2: #d6ff3c;
  --rw-c3: #ffb703;
  --rw-c4: #ff6b8a;
  --rw-c5: #5ce1ff;

  color: var(--rw-ink);
  font-family: var(--rw-sans);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(255, 59, 0, 0.16), transparent 50%),
    radial-gradient(700px 380px at 10% 100%, rgba(122, 140, 255, 0.12), transparent 46%),
    linear-gradient(180deg, #0b0b0d 0%, var(--rw-void) 100%) !important;
  background-attachment: scroll !important;
  -webkit-font-smoothing: antialiased;
}

body.rw-crag.a69-body ::selection {
  background: var(--rw-cadmium);
  color: #140600;
}

body.rw-crag .a69-main {
  padding-bottom: 2.8rem;
  overflow-x: clip;
}

body.rw-crag a { color: inherit; text-decoration: none; }

.rw-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.5rem 0.85rem;
  background: var(--rw-cadmium);
  color: #140600;
  font-weight: 700;
  font-family: var(--rw-sans);
}
.rw-skip:focus { top: 1rem; }

.rw-yard {
  width: min(1180px, calc(100% - 1.4rem));
  margin: 0.6rem auto 0;
  padding-bottom: 1.5rem;
}

.rw-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--rw-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rw-acid);
}

.rw-mast h1 {
  margin: 0 0 0.45rem;
  font-family: var(--rw-display);
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--rw-ink);
}
.rw-mast h1 em {
  font-style: normal;
  color: var(--rw-cadmium);
}
.rw-lede {
  margin: 0 0 0.5rem;
  max-width: 48ch;
  color: var(--rw-mute);
  font-size: 1.02rem;
  line-height: 1.5;
}
.rw-stat {
  margin: 0 0 1.15rem;
  font-family: var(--rw-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rw-cobalt);
}

/* Hang-tag sort + topo dots */
.rw-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 0.95rem;
  background: var(--rw-panel);
  border: 1px solid var(--rw-line);
  border-radius: 0.35rem;
}
.rw-belt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.rw-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem 0.42rem 1.15rem;
  background: #0c0c10;
  color: var(--rw-ink);
  clip-path: polygon(0.7rem 0, 100% 0, 100% 100%, 0.7rem 100%, 0 50%);
  font-family: var(--rw-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--rw-line);
  transition: background 0.25s var(--rw-ease), color 0.2s, border-color 0.25s;
}
.rw-tag:hover,
.rw-tag:focus-visible {
  border-color: rgba(214, 255, 60, 0.45);
  color: var(--rw-acid);
}
.rw-tag.is-on {
  background: var(--rw-cadmium);
  color: #140600;
  border-color: transparent;
}
.rw-topo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.rw-dot {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--rw-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #0c0c10;
  color: var(--rw-ink);
  box-shadow: inset 0 0 0 2px var(--rw-c0);
  transition: transform 0.3s var(--rw-ease), background 0.2s;
}
.rw-dot:hover,
.rw-dot:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 59, 0, 0.12);
}
.rw-dot:nth-child(2) { box-shadow: inset 0 0 0 2px var(--rw-c1); }
.rw-dot:nth-child(3) { box-shadow: inset 0 0 0 2px var(--rw-c2); }
.rw-dot:nth-child(4) { box-shadow: inset 0 0 0 2px var(--rw-c3); }
.rw-dot:nth-child(5) { box-shadow: inset 0 0 0 2px var(--rw-c4); }
.rw-dot:nth-child(6) { box-shadow: inset 0 0 0 2px var(--rw-c5); }

.rw-all {
  margin-left: auto;
  font-family: var(--rw-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--rw-acid);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  transition: color 0.2s;
}
.rw-all:hover,
.rw-all:focus-visible {
  color: var(--rw-ink);
}

/* Horizontal crag of vertical routes */
.rw-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(10.2rem, 1fr));
  gap: 0.65rem;
  align-items: start;
}

.rw-route {
  --accent: var(--rw-c0);
  position: relative;
  padding: 0.75rem 0.55rem 0.9rem;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 4px no-repeat,
    var(--rw-panel);
  border: 1px solid var(--rw-line);
  border-radius: 0.35rem;
  min-height: 28rem;
  animation: rw-rise 0.55s var(--rw-ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.rw-route:nth-child(2) { --accent: var(--rw-c1); }
.rw-route:nth-child(3) { --accent: var(--rw-c2); }
.rw-route:nth-child(4) { --accent: var(--rw-c3); }
.rw-route:nth-child(5) { --accent: var(--rw-c4); }
.rw-route:nth-child(6) { --accent: var(--rw-c5); }

.rw-route-head { padding: 0.25rem 0.35rem 0.75rem; }
.rw-code {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-family: var(--rw-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.rw-route-head h2 {
  margin: 0;
  font-family: var(--rw-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--rw-ink);
}
.rw-route-head h2 a:hover,
.rw-route-head h2 a:focus-visible {
  color: var(--accent);
}
.rw-route-head p {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--rw-mute);
  line-height: 1.35;
}

.rw-holds {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 18rem;
}
.rw-hold {
  width: 88%;
  color: var(--rw-ink);
  transition: transform 0.35s var(--rw-ease);
}
.rw-hold:nth-child(odd) { align-self: flex-start; }
.rw-hold:nth-child(even) { align-self: flex-end; }
.rw-hold:hover,
.rw-hold:focus-visible {
  transform: translateY(-3px);
}
.rw-hold-face {
  display: block;
  aspect-ratio: 1.05;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 59, 0, 0.12), transparent 50%),
    #0c0c10;
  border: 1px solid var(--rw-line);
  clip-path: polygon(14% 6%, 90% 2%, 100% 46%, 82% 100%, 16% 92%, 0 50%);
}
.rw-hold:nth-child(2) .rw-hold-face {
  clip-path: polygon(8% 18%, 78% 0, 100% 38%, 88% 100%, 22% 96%, 0 58%);
}
.rw-hold:nth-child(3) .rw-hold-face {
  clip-path: polygon(0 8%, 86% 0, 100% 52%, 74% 100%, 10% 88%, 6% 40%);
}
.rw-hold:nth-child(4) .rw-hold-face {
  clip-path: polygon(18% 0, 100% 12%, 92% 78%, 48% 100%, 0 70%, 8% 28%);
}
.rw-hold:nth-child(5) .rw-hold-face {
  clip-path: polygon(10% 12%, 70% 0, 100% 30%, 86% 100%, 20% 100%, 0 48%);
}
.rw-hold img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--rw-ease);
}
.rw-hold:hover img,
.rw-hold:focus-visible img {
  transform: scale(1.06);
}
.rw-hold-copy {
  display: block;
  padding: 0.35rem 0.1rem 0;
}
.rw-hold-copy small {
  display: block;
  font-family: var(--rw-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rw-mute);
}
.rw-hold-copy strong {
  display: block;
  margin-top: 0.12rem;
  font-family: var(--rw-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--rw-ink);
}
.rw-hold-copy em {
  display: inline-block;
  margin-top: 0.15rem;
  font-style: normal;
  font-weight: 800;
  font-size: 0.84rem;
  font-family: var(--rw-mono);
  color: var(--accent);
}

.rw-route-foot {
  margin: 0.75rem 0.35rem 0;
  font-size: 0.7rem;
  color: var(--rw-mute);
}
.rw-route-foot a {
  font-weight: 700;
  color: var(--rw-acid);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.rw-route-foot a:hover,
.rw-route-foot a:focus-visible {
  color: var(--rw-ink);
}

.rw-empty {
  padding: 2rem 1.2rem;
  text-align: center;
  background: var(--rw-panel);
  border: 1px solid var(--rw-line);
  border-radius: 0.35rem;
}
.rw-empty h2 {
  margin: 0 0 0.4rem;
  font-family: var(--rw-display);
  font-size: 1.6rem;
}
.rw-empty p {
  margin: 0 0 1rem;
  color: var(--rw-mute);
}
.rw-empty a {
  display: inline-flex;
  padding: 0.65rem 1.1rem;
  background: var(--rw-cadmium);
  color: #140600;
  font-weight: 700;
  border-radius: 0.25rem;
}

@keyframes rw-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .rw-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .rw-wall { grid-template-columns: 1fr 1fr; }
  .rw-all { margin-left: 0; width: 100%; }
  .rw-route { min-height: 0; }
  .rw-controls { padding: 0.75rem; }
}

@media (max-width: 520px) {
  .rw-wall { grid-template-columns: 1fr; }
  .rw-hold { width: 78%; }
  .rw-mast h1 { font-size: clamp(2.4rem, 14vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .rw-route,
  .rw-hold,
  .rw-hold img,
  .rw-dot {
    animation: none !important;
    transition: none !important;
  }
}
