/* Stinkycats - a family homepage for three cats.
   Static CSS, no preprocessor. Mobile first. */

:root {
  --cream: #fff6e9;
  --cream-deep: #ffe9cd;
  --ink: #2a2018;
  --ink-soft: #6b5a49;
  --pink: #ff6b8a;
  --mustard: #f2ab2e;
  --teal: #1f9a92;
  --plum: #7b5ea7;
  --card: #fffdf8;
  --line: #e8d7bf;

  --radius: 18px;
  --shadow: 0 2px 0 var(--line), 0 14px 30px -18px rgba(42, 32, 24, 0.55);

  --font-body: ui-rounded, "SF Pro Rounded", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next", ui-rounded, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 50;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 50% 0%, #fff9f0 0%, var(--cream) 45%, var(--cream-deep) 100%);
}

/* Warm band that reads as the floor the cats walk on. */
.hero__floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  z-index: -2;
  background: linear-gradient(180deg, rgba(255, 214, 160, 0) 0%, rgba(255, 205, 145, 0.55) 55%, rgba(250, 186, 120, 0.75) 100%);
}
.hero__floor::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 22px, var(--pink) 22px 44px);
  opacity: 0.85;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

.hero__fallback {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  z-index: -1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1rem, 5vw, 4rem);
  padding: 0 1rem;
}
.hero__fallback img {
  width: clamp(90px, 20vw, 200px);
  filter: drop-shadow(0 12px 10px rgba(120, 80, 40, 0.28));
}

.hero__inner {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 9vh, 7rem) 1.25rem 0;
  max-width: 46rem;
}

.hero__eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero__title {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(3.2rem, 15vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--mustard), 8px 8px 0 var(--pink);
}

.hero__tagline {
  margin: 1.4rem auto 0;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  max-width: 30ch;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero__cta {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 0 -2px rgba(42, 32, 24, 0.25);
  transition: transform 0.15s ease;
}
.hero__cta:hover { transform: translateY(-2px); }

/* ------------------------------------------------------------- roster */

.roster {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem 2rem;
}

.roster__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0;
  letter-spacing: -0.02em;
}

.roster__sub {
  margin: 0.35rem 0 2.5rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.cards__loading { color: var(--ink-soft); }

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__portrait {
  background: radial-gradient(85% 75% at 50% 30%, #fff2d8 0%, #ffe0bd 70%, #ffd3a6 100%);
  padding: 1.25rem 1rem 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 190px;
  border-bottom: 2px solid var(--line);
}

.card__img {
  width: min(100%, 240px);
  height: auto;
  filter: drop-shadow(0 10px 8px rgba(120, 80, 40, 0.22));
}
.card__img[hidden] { display: none; }

.card__body { padding: 1.25rem 1.35rem 1.6rem; }

.card__name {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

.card__role {
  margin: 0.1rem 0 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.card__age { margin: 0; font-size: 1.02rem; }
.card__age-main { font-size: 1.1rem; }
.card__age-joke { color: var(--ink-soft); }

.card__birthday {
  margin: 0.15rem 0 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.card__desc { margin: 0 0 1.1rem; }

.card__label {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 800;
}

.card__food { margin: 0; font-weight: 600; }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chips li {
  background: var(--cream-deep);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.meter {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.meter__pips { display: flex; gap: 3px; }
.meter__pip {
  width: 12px;
  height: 20px;
  border-radius: 4px;
  background: var(--cream-deep);
  border: 1.5px solid var(--line);
}
.meter__pip--on { background: var(--pink); border-color: #d8365a; }
.meter__pip--max { background: var(--plum); border-color: #503b73; }
.meter__value { font-weight: 700; font-size: 0.9rem; }

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

.footer {
  border-top: 2px dashed var(--line);
  margin-top: 2rem;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

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