/* ===================================================================
   $BABYBASECAT — community page
   =================================================================== */

:root {
  --blue: #0052ff;
  --blue-deep: #0040c8;
  --blue-dark: #001a4d;
  --cream: #f6f4ef;
  --cream-2: #efece4;
  --ink: #0a0a0f;
  --white: #fff;
  --radius: 20px;
  --radius-lg: 30px;
  --wrap: 1180px;
  --font: "Unbounded", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 12px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- section furniture ---------- */
section {
  position: relative;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0 0 10px;
}

h2 {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 40px;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

/* =================== NAV =================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 10, 15, 0.08);
}

.nav-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pill-ghost {
  border: 1.5px solid rgba(10, 10, 15, 0.16);
}

.pill-solid {
  background: var(--blue);
  color: var(--white);
}

.pill:hover {
  transform: translateY(-1px);
}
.pill-ghost:hover {
  background: rgba(10, 10, 15, 0.05);
}
.pill-solid:hover {
  background: var(--blue-deep);
}

/* =================== HERO =================== */
.hero {
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 0;
}

.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0) 62%
  );
  pointer-events: none;
}

.hero-in {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7px 15px;
  border-radius: 999px;
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(2.9rem, 9.2vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.86;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 300;
  max-width: 30ch;
  opacity: 0.95;
  margin: 0 0 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn {
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--white);
  color: var(--blue);
}

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn:hover {
  transform: translateY(-2px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.18);
  border: 1px dashed rgba(255, 255, 255, 0.34);
  padding: 12px 18px;
  border-radius: 14px;
  max-width: max-content;
  font-family: var(--font);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ca:hover {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
}

.ca.is-copied {
  border-style: solid;
  border-color: #7dffb0;
}

.ca-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

.ca-value {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  opacity: 0.9;
  word-break: break-all;
}

.ca-hint {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* CA block on a light surface (site office) */
.ca-dark {
  margin-top: 16px;
  background: rgba(0, 82, 255, 0.06);
  border-color: rgba(0, 82, 255, 0.4);
  color: var(--ink);
  max-width: 100%;
}

.ca-dark:hover {
  background: rgba(0, 82, 255, 0.11);
  border-color: rgba(0, 82, 255, 0.75);
}

.ca-dark .ca-hint {
  background: rgba(0, 82, 255, 0.14);
}

.ca-dark.is-copied {
  border-color: #0a9d52;
}

button.pill {
  font-family: var(--font);
  border: none;
  cursor: pointer;
}

button.pill.is-copied {
  background: #0a9d52;
}

.ilink {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.hero-art img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.14);
  overflow: hidden;
  padding: 13px 0;
}

.ticker-track {
  display: flex;
  gap: 26px;
  white-space: nowrap;
  width: max-content;
  animation: slide 32s linear infinite;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.ticker-track span:nth-child(even) {
  opacity: 0.45;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =================== LORE =================== */
.lore {
  padding: clamp(64px, 10vw, 120px) 0;
}

.lore-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.lore-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

.lore-cards {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--white);
  border: 1px solid rgba(10, 10, 15, 0.09);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 82, 255, 0.1);
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  opacity: 0.75;
}

/* =================== EVIDENCE =================== */
.ev {
  background: var(--ink);
  color: var(--white);
  padding: clamp(64px, 10vw, 120px) 0;
}

.ev .kicker {
  opacity: 0.45;
}

.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.ev-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.ev-card:hover {
  border-color: rgba(0, 82, 255, 0.6);
  transform: translateY(-3px);
}

.ev-card blockquote {
  margin: 0 0 16px;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.ev-card figcaption {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.42;
}

/* =================== GALLERY =================== */
.gallery {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--cream-2);
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gal {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(10, 10, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gal:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 82, 255, 0.14);
}

.gal img {
  width: 100%;
}

.gal-wide {
  grid-column: 1 / -1;
}

.gal figcaption {
  padding: 15px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.62;
}

/* =================== DESK =================== */
.desk {
  padding: clamp(64px, 10vw, 120px) 0;
}

.desk-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.desk-main {
  display: grid;
  gap: 16px;
}

.safety,
.notice {
  border-radius: var(--radius);
  padding: 26px 28px;
}

.safety {
  background: var(--blue);
  color: var(--white);
}

.notice {
  background: var(--white);
  border: 1px solid rgba(10, 10, 15, 0.09);
}

.safety p,
.notice p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
}

.safety p {
  opacity: 0.95;
}
.notice p {
  opacity: 0.72;
}

.desk-art {
  text-align: center;
}

.desk-art img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.desk-art p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.55;
}

/* =================== FOOTER =================== */
.foot {
  background: var(--blue-dark);
  color: var(--white);
  padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 52px);
}

.foot-in {
  text-align: center;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.foot-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.foot-links {
  margin: 0 0 16px;
}

.foot-links a {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: background 0.15s ease, transform 0.15s ease;
}

.foot-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.foot-note {
  font-size: 0.84rem;
  font-weight: 300;
  opacity: 0.72;
  margin: 0 0 8px;
}

.foot-fine {
  font-size: 0.74rem;
  font-weight: 300;
  opacity: 0.42;
  margin: 0;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .hero-in,
  .lore-grid,
  .desk-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 420px;
    margin: 0 auto;
  }

  .lede {
    max-width: none;
  }

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

  .desk-art {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .nav-in {
    padding: 10px 16px;
  }

  .brand span {
    font-size: 0.82rem;
  }

  .pill {
    padding: 8px 14px;
    font-size: 0.74rem;
  }

  .wrap,
  .hero-in {
    padding-left: 16px;
    padding-right: 16px;
  }

  .gal-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .ca {
    max-width: none;
    width: 100%;
  }
}
