:root {
  --ink: #111111;
  --paper: #ffffff;
  --soft: #6b6b6b;
  --dot: rgba(0, 0, 0, 0.10);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-hover: 9px 9px 0 var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f2;
    --paper: #131313;
    --soft: #9a9a9a;
    --dot: rgba(255, 255, 255, 0.10);
    --shadow: 6px 6px 0 var(--ink);
    --shadow-hover: 9px 9px 0 var(--ink);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 2px, transparent 2px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* Nav bar */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 0.5rem 0.9rem;
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 2.5rem;
  background: var(--paper);
}
.nav-home {
  font-family: "Baloo 2", cursive;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.nav-links a {
  font-family: "Baloo 2", cursive;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
}
.nav-links a:hover { border-color: var(--ink); }
.nav-links a.active { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { text-align: center; margin-bottom: 3rem; }
.hero-home { margin-top: 1rem; }

.cat-logo {
  font-family: "Baloo 2", cursive;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.hero-title {
  font-family: "Baloo 2", cursive;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--paper), 4px 4px 0 var(--ink);
}

.hero-sub {
  margin: 0;
  color: var(--soft);
  font-size: 1.05rem;
  font-weight: 700;
}

/* Empty state */
.state { text-align: center; color: var(--soft); padding: 3rem 1rem; }

/* Home hub grid */
.hub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
.hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: pop 0.4s ease both;
}
.hub-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hover);
}
.hub-card:nth-child(1) { animation-delay: 0ms; }
.hub-card:nth-child(2) { animation-delay: 80ms; }
.hub-card:nth-child(3) { animation-delay: 160ms; }
.hub-card:nth-child(4) { animation-delay: 240ms; }
.hub-icon {
  font-family: "Baloo 2", cursive;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.hub-card h2 {
  font-family: "Baloo 2", cursive;
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
}
.hub-card p { margin: 0 0 1rem; color: var(--soft); font-size: 0.95rem; }
.hub-go {
  margin-top: auto;
  font-family: "Baloo 2", cursive;
  font-weight: 700;
  border-bottom: 3px solid var(--ink);
}
.hub-card:hover .hub-go { background: var(--ink); color: var(--paper); }

/* Bouldering — colorful climbing holds (the one splash of color) */
.hold-guide { margin-bottom: 2.8rem; }
.section-title {
  font-family: "Baloo 2", cursive;
  font-size: 1.6rem;
  text-align: center;
  margin: 0 0 1.4rem;
}
.section-note {
  text-align: center;
  color: var(--soft);
  font-size: 0.92rem;
  max-width: 46ch;
  margin: -0.6rem auto 1.6rem;
}
.holds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.hold-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 1rem 0.9rem 1.1rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hold-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hover);
}
.hold-stage {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}
.hold {
  position: relative;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
}
.hold--jug    { width: 88px; height: 62px; background: #ff5c5c; border-radius: 46% 46% 42% 42% / 62% 62% 38% 38%; }
.hold--sloper { width: 96px; height: 52px; background: #4d8cff; border-radius: 50% 50% 14px 14px; }
.hold--crimp  { width: 86px; height: 22px; background: #ffd23f; border-radius: 7px; }
.hold--pinch  { width: 42px; height: 78px; background: #3ec96b; border-radius: 22px; }
.hold--pocket { width: 76px; height: 76px; background: #a45cff; border-radius: 50%; }
.hold--pocket::before,
.hold--pocket::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 15px; height: 24px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 9px;
}
.hold--pocket::before { left: 16px; }
.hold--pocket::after  { right: 16px; }
.hold--edge   { width: 98px; height: 32px; background: #ff913f; border-radius: 10px 10px 5px 5px; }
.hold-name { font-family: "Baloo 2", cursive; font-weight: 700; font-size: 1.05rem; }
.hold-desc { color: var(--soft); font-size: 0.85rem; margin: 0.25rem 0 0; }

/* Bouldering grade tags — colorful, keep the black cartoon outline */
.grade-vb { background: #c9ccd1; color: #111; }
.grade-v0 { background: #ffd23f; color: #111; }
.grade-v1 { background: #ff8fc7; color: #111; }

.routine-card { margin-bottom: 2.8rem; }

/* Paper cards */
.papers { display: flex; flex-direction: column; gap: 1.8rem; }

.paper {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: pop 0.4s ease both;
}
.paper:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hover);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.paper:nth-child(1) { animation-delay: 0ms; }
.paper:nth-child(2) { animation-delay: 80ms; }
.paper:nth-child(3) { animation-delay: 160ms; }
.paper:nth-child(4) { animation-delay: 240ms; }
.paper:nth-child(n+5) { animation-delay: 320ms; }

.meta-loc { color: var(--soft); font-weight: 700; font-size: 0.9rem; }

/* Little cat ears poking up from each card */
.paper-head { position: relative; margin-bottom: 1.1rem; }
.paper-head:last-child { margin-bottom: 0; }
.paper-head::before,
.paper-head::after {
  content: "";
  position: absolute;
  top: -2.55rem;
  width: 0; height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 22px solid var(--ink);
}
.paper-head::before { left: 0.3rem; transform: rotate(-12deg); }
.paper-head::after  { left: 2.4rem; transform: rotate(12deg); }

.paper-title {
  font-family: "Baloo 2", cursive;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}
.paper-title a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
}
.paper-title a:hover { background: var(--ink); color: var(--paper); }

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.meta-date {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Tags — all black & white */
.tag {
  display: inline-block;
  font-family: "Baloo 2", cursive;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.12rem 0.7rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  white-space: nowrap;
}
.tag-topic { background: var(--paper); color: var(--ink); }
.tag-donation { background: #3ec96b; color: #111; }
.tag-todo {
  background: var(--paper);
  color: var(--soft);
  border-style: dashed;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Difficulty as a black/white scale: simple = hollow, hard = solid */
.level-simple { background: var(--paper); color: var(--ink); }
.level-medium {
  background: repeating-linear-gradient(
    45deg, var(--ink) 0 2px, transparent 2px 6px
  );
  color: var(--ink);
}
.level-hard { background: var(--ink); color: var(--paper); }

/* Notes */
.notes { font-size: 1rem; font-weight: 600; }
.notes > :first-child { margin-top: 0; }
.notes > :last-child { margin-bottom: 0; }
.notes p { margin: 0.7rem 0; }
.notes ul, .notes ol { margin: 0.7rem 0; padding-left: 1.4rem; }
.notes li { margin: 0.3rem 0; }
.notes li::marker { content: "🐾 "; }
.notes strong { font-weight: 800; }
.notes em { font-style: italic; }
.notes a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }

.notes code {
  background: var(--ink);
  color: var(--paper);
  padding: 0.08em 0.4em;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.notes blockquote {
  margin: 0.8rem 0;
  padding: 0.4rem 1rem;
  border: 3px solid var(--ink);
  border-radius: 12px;
  color: var(--soft);
  font-style: italic;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  text-align: center;
  font-weight: 700;
}
.footer-cats {
  font-family: "Baloo 2", cursive;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.6rem;
}
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}
.site-footer a:hover { background: var(--ink); color: var(--paper); }
.footer-link { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--soft); }

@media (max-width: 600px) {
  .container { padding: 2.5rem 1.1rem 3.5rem; }
  .paper { padding: 1.4rem 1.3rem; }
  .hub { grid-template-columns: 1fr; }
  .holds-grid { grid-template-columns: repeat(2, 1fr); }
}
