@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}

/* One face (Bricolage Grotesque), one orange, one dark, one button system.
   Orange and dark carry whole sections; white sections sit between them. */
:root {
  --orange: #dc7126;
  --orange-ink: #b55312;
  --ink: #1f1a17;
  --ink-soft: #4a3f38;
  --on-ink-soft: #c9c4c0;
  --white: #ffffff;
  --track: #e9e7e6;
  --green: #23683f;
  --amber: #8a4b06;
  --alert: #b3261e;
  --face: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;

  /* type scale: small, body, lead, card title, section title, page title, big numbers */
  --t-small: 15px;
  --t-body: 18px;
  --t-lead: 22px;
  --t-h3: clamp(1.75rem, 2.5vw, 2.5rem);
  --t-h2: clamp(2.2rem, 4.2vw, 4rem);
  --t-h1: clamp(1.75rem, 5.4vw, 5rem);
  --t-giant: clamp(5.5rem, 12vw, 10.5rem);

  --edge: max(20px, min(4vw, 48px));
  /* page headers on every page but home */
  --t-page: clamp(2rem, 3.6vw, 3.4rem);
  --head-pad: clamp(28px, 3.5vw, 56px);
  --section: clamp(72px, 8.5vw, 120px);
  --round: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--white);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--face);
  font-size: var(--t-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--white);
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.slider:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
}

h2 {
  font-size: var(--t-h2);
}

h3 {
  font-size: var(--t-h3);
}

p,
dl,
dd,
ol,
ul,
figure,
blockquote {
  margin: 0;
}

p {
  text-wrap: pretty;
}

.test-bar {
  background: var(--ink);
  color: var(--white);
  font-size: var(--t-small);
  text-align: center;
  padding: 6px 16px;
}

/* buttons: square, 2px edge, two sizes, four colourways */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid transparent;
  font-size: var(--t-body);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: var(--t-small);
}

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn-ink:hover {
  background: var(--orange-ink);
  border-color: var(--orange-ink);
}

.btn-white {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn-white:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

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

.btn-line:hover {
  background: var(--ink);
  color: var(--white);
}

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

.btn-line-white:hover {
  background: var(--white);
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 32px;
}

/* section heading row: title left, one sentence right */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 64px;
  align-items: end;
  margin-bottom: 40px;
}

.head p {
  max-width: 46ch;
}

.note {
  margin-top: 40px;
}

/* top bar, on the same orange as the sections */
.top {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px var(--edge);
  background: var(--orange);
}

.logo {
  margin-right: 24px;
  font-size: clamp(1.4rem, 1.9vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.nav a {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  text-decoration: underline;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.call-short {
  display: none;
}

/* opening: the artwork runs down to the strip, the words sit on it over a dark fade */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 84vh, 860px);
  background: #9a9693;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 26, 23, 0.85) 0%, rgba(31, 26, 23, 0.5) 34%, rgba(31, 26, 23, 0) 64%);
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: 0 var(--edge) clamp(40px, 8vw, 128px);
  color: var(--white);
}

/* a tight dark edge plus a soft halo keeps the letters clear over light fur */
.hero h1,
.hero-text p {
  text-shadow: 0 0 1px rgba(20, 15, 12, 0.9), 0 1px 3px rgba(20, 15, 12, 0.85), 0 2px 18px rgba(20, 15, 12, 0.6);
}

.hero h1 {
  max-width: 19ch;
}

.hero-text p {
  margin-top: 20px;
  max-width: 44ch;
  font-size: clamp(1.5rem, 1.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
}

/* the strip of facts under the opening */
/* one line, spread edge to edge; the type eases down a little before it would wrap */
.strip {
  display: flex;
  justify-content: space-between;
  gap: clamp(16px, 2.2vw, 36px);
  padding: 16px var(--edge);
  background: var(--ink);
  color: var(--white);
  font-size: clamp(13px, 1.05vw, var(--t-small));
  font-weight: 700;
  white-space: nowrap;
  list-style: none;
}

.strip a {
  text-decoration: underline;
}

.star {
  display: inline-block;
  vertical-align: -2px;
  color: var(--orange);
}

/* kittens: white announcement cards on orange */
.kittens {
  background: var(--orange);
  padding: var(--section) var(--edge);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--white);
  border-radius: var(--round);
  overflow: hidden;
}

.card-photo {
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card-photo:hover img {
  transform: scale(1.04);
}

.card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: clamp(20px, 2.4vw, 32px);
}

.card h3 {
  margin-bottom: 10px;
}

.card h3 a {
  text-decoration: none;
}

.card-text p {
  color: var(--ink-soft);
}

.weeks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  font-size: var(--t-small);
  font-weight: 700;
}

.weeks-bar {
  display: block;
  height: 8px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
}

.weeks-fill {
  display: block;
  height: 100%;
  width: calc(var(--share, 1) * 100%);
  background: var(--orange);
  border-radius: inherit;
}

.weeks:not([data-born]) .weeks-bar {
  display: none;
}

.card-text .card-price {
  margin-top: auto;
  padding-top: 16px;
  color: var(--ink);
  font-size: var(--t-lead);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.card .btn {
  margin-top: 12px;
}

.status {
  margin-left: 8px;
  font-size: var(--t-small);
  font-weight: 700;
}

.status-available {
  color: var(--green);
}

.status-reserved {
  color: var(--amber);
}

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

/* what every kitten goes home with: one white panel, a ticked list */
.included {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 2.3fr);
  gap: 24px 48px;
  align-items: start;
  margin-top: 24px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  border-radius: var(--round);
}

.included h3 {
  font-size: var(--t-lead);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* the kittens page's short text panel, laid out like the list above it */
.about-kittens {
  display: grid;
  gap: 12px;
  max-width: 70ch;
}

/* three across at every width down to phones */
.checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 32px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
}

.check {
  flex: none;
  color: var(--orange);
}

/* about us on white, with little space above and below so the photo fills one screen */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px clamp(40px, 7vw, 112px);
  align-items: center;
  padding: clamp(24px, 2.5vw, 40px) var(--edge);
}

.about h2 {
  margin-bottom: 28px;
}

.about-text p {
  max-width: 56ch;
}

.about-text p + p {
  margin-top: 16px;
}

.about-text .btn {
  margin-top: 32px;
}

/* the whole photo, uncropped, nearly the full screen tall beside the text */
.about-photo {
  justify-self: end;
  width: min(100%, 69vh);
  width: min(100%, 69svh);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--round);
}

/* meet the parents: big portraits of the cats that are not retired */
.parents {
  background: var(--ink);
  color: var(--white);
  padding: var(--section) var(--edge);
}

/* every portrait the same size; the arrows sit on the photos' middle, at both sides */
.slider-wrap {
  --slide-w: clamp(240px, 28vw, 400px);
  position: relative;
}

.slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slide {
  flex: 0 0 var(--slide-w);
  scroll-snap-align: start;
}

.slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--round);
}

.slide figcaption {
  margin-top: 12px;
  color: var(--on-ink-soft);
  font-size: var(--t-small);
}

.slide strong {
  display: block;
  color: var(--white);
  font-size: var(--t-lead);
}

.arrow {
  position: absolute;
  top: calc(var(--slide-w) * 0.625 - 26px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out, opacity 160ms ease-out;
}

.arrow-prev {
  left: 12px;
}

.arrow-next {
  right: 12px;
}

.arrow:hover {
  background: var(--ink);
  color: var(--white);
}

.arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.parents .arrow:focus-visible,
.parents .slider:focus-visible {
  outline-color: var(--orange);
}

/* the way home: four short steps, so a shorter band than the other sections */
.how {
  padding: clamp(56px, 6vw, 84px) var(--edge);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 20px;
  border-top: 3px solid var(--orange);
}

.steps h3 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2vw, 1.875rem);
}

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

/* reviews: the two review widgets, each over its own darkened photo,
   each a summary line as the source gives it, then a row of white tiles */
.rv {
  padding: clamp(40px, 4vw, 56px) var(--edge);
  background: var(--orange);
  text-align: center;
}

.rv-google {
  background: linear-gradient(rgba(31, 26, 23, 0.62), rgba(31, 26, 23, 0.62)),
    url("/photos/reviews-kittens-1600.jpg") center / cover;
  color: var(--white);
}

.rv-facebook {
  background: linear-gradient(rgba(31, 26, 23, 0.62), rgba(31, 26, 23, 0.62)),
    url("/photos/landscape-1600.jpg") center 35% / cover;
  color: var(--white);
}

.rv-box {
  max-width: 1200px;
  margin: 0 auto;
}

.rv h2 {
  margin-bottom: 16px;
  font-size: var(--t-page);
}

/* the summary line, laid out the way the source shows it */
.rv-head {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: inherit;
  text-decoration: none;
}

.rv-logo {
  display: flex;
}

.rv-score {
  font-size: clamp(2.25rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-left: 8px;
  text-align: left;
}

.rv-facebook .rv-meta {
  align-items: center;
  margin-left: 0;
  text-align: center;
}

.rv-name {
  font-size: var(--t-lead);
  font-weight: 700;
  line-height: 1.2;
}

.rv-count,
.rv-percent {
  font-size: var(--t-small);
}

.rv-count {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rv-head:hover .rv-count {
  text-decoration-thickness: 2px;
}

.rv-view {
  display: none;
}

.rv-stars {
  display: flex;
}

/* the tiles, with a square arrow at each side */
.rv-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.rv-turn {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--white);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.rv-turn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.rv-turn-next svg,
.arrow-next svg,
.photo-turn-next svg {
  transform: scaleX(-1);
}

.rv-track {
  --tile: 320px;
  display: flex;
  gap: 20px;
  width: calc(var(--tile) * 3 + 40px);
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.rv-track::-webkit-scrollbar {
  display: none;
}

.rv-card {
  display: flex;
  flex: 0 0 var(--tile);
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 16px;
  background: var(--white);
  border-radius: var(--round);
  color: var(--ink);
  scroll-snap-align: start;
}

.rv-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rv-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--track);
}

.rv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-initial {
  color: var(--ink-soft);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.rv-recommends {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: var(--t-small);
  font-weight: 700;
}

.rv-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 14px;
}

.rv-text {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.rv-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--orange-ink);
  font-size: var(--t-small);
  font-weight: 700;
  text-decoration: none;
}

.rv-more:hover {
  color: var(--ink);
}

.rv-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--track);
  color: var(--ink-soft);
  font-size: var(--t-small);
}

.rv-facebook .rv-foot svg {
  color: #4267b2;
}

.rv-foot p {
  text-align: left;
}

.rv-foot strong {
  color: var(--ink);
}

.rv-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 10px;
  margin-top: 20px;
}

.rv-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.3;
  cursor: pointer;
}

.rv-dots span.on {
  opacity: 1;
}

.rv-google .rv-dots span,
.rv-facebook .rv-dots span {
  background: var(--white);
  opacity: 0.4;
}

.rv-google .rv-dots span.on,
.rv-facebook .rv-dots span.on {
  opacity: 1;
}

/* three tiles fit, then two, then one */
@media (max-width: 1240px) {
  .rv-track {
    width: calc(var(--tile) * 2 + 20px);
  }
}

@media (max-width: 860px) {
  /* one tile, narrowed to fit between the arrows on a small phone */
  .rv-stage {
    gap: 8px;
  }

  .rv-turn {
    width: 44px;
    height: 44px;
  }

  .rv-track {
    --tile: min(320px, calc(100vw - 2 * var(--edge) - 104px));
    width: var(--tile);
  }

  /* the summary stacks: name, then score and stars, then the link */
  .rv-head {
    flex-direction: column;
    gap: 6px;
  }

  .rv-logo {
    display: none;
  }

  .rv-meta {
    display: contents;
  }

  .rv-name {
    order: -1;
    text-align: center;
  }

  .rv-view {
    display: inline;
  }
}

/* earlier litters */
.litters {
  padding: var(--section) var(--edge);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--round);
}

.gallery img:nth-child(5n + 2) {
  transition-delay: 60ms;
}

.gallery img:nth-child(5n + 3) {
  transition-delay: 120ms;
}

.gallery img:nth-child(5n + 4) {
  transition-delay: 180ms;
}

.gallery img:nth-child(5n + 5) {
  transition-delay: 240ms;
}

/* questions: white answers on orange */
.questions {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px 80px;
  align-items: start;
  background: var(--orange);
  padding: clamp(40px, 4vw, 64px) var(--edge);
}

.questions h2 {
  font-size: var(--t-page);
}

/* only the line under the heading; the answers fill their own tiles */
.questions h2 + p {
  margin-top: 20px;
  max-width: 34ch;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

details {
  background: var(--white);
  border-radius: var(--round);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* a drawn chevron that turns when the answer opens */
summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 200ms ease-out;
}

details[open] summary::after {
  transform: rotate(225deg);
}

details p {
  margin: 0;
  padding: 0 20px 16px;
}

/* contact on dark */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px 80px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
  padding: var(--section) var(--edge);
}

.contact p {
  margin-top: 16px;
  max-width: 44ch;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: var(--t-lead);
}

.contact-list div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 16px;
}

.contact-list dt {
  color: var(--on-ink-soft);
}

.contact-list dd {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact a:focus-visible {
  outline-color: var(--orange);
}

/* the name returns at full width */
.close {
  background: var(--orange);
  padding: 56px var(--edge) 40px;
}

.close-name {
  font-size: clamp(2.6rem, 9.4vw, 9.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.close-links {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font-weight: 700;
}

/* about us page */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px clamp(40px, 7vw, 112px);
  align-items: center;
  background: var(--orange);
  padding: var(--head-pad) var(--edge);
}

.page-head h1 {
  font-size: var(--t-page);
  line-height: 1.02;
}

.lead {
  margin-top: 28px;
  max-width: 42ch;
  font-size: var(--t-lead);
  line-height: 1.45;
}

/* at most half the screen tall, so the page below it shows too */
.page-photo {
  justify-self: end;
  width: min(100%, 37.5vh);
  width: min(100%, 37.5svh);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--round);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 48px clamp(40px, 7vw, 112px);
  padding: var(--section) var(--edge);
}

.story-words {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-words p {
  max-width: 62ch;
  font-size: var(--t-lead);
}

/* the photos share the height of the words, so both columns end together */
.story-pictures {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-pictures img {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  border-radius: var(--round);
}

/* one kitten's page */
.kitten {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: start;
  background: var(--orange);
  padding: clamp(32px, 4vw, 56px) var(--edge) var(--section);
}

/* a kitten's name is short, so it can stay big on a phone */
.kitten h1 {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
}

/* a cat's kittens follow its profile on the same orange, so only one section's spacing
   separates them, and the heading is page-sized because it carries the cat's full name */
.cat-profile + .kittens {
  padding-top: 0;
}

.cat-profile + .kittens h2 {
  font-size: var(--t-page);
}

.kitten-kind {
  margin-top: 12px;
  font-size: var(--t-lead);
  font-weight: 700;
}

.back {
  margin-top: 24px;
  font-weight: 700;
}

.kitten-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--white);
  border-radius: var(--round);
}

/* the main photo of a kitten or cat page, with arrows to step through the others */
.photo-main {
  position: relative;
}

.photo-main .photo-open[hidden] {
  display: none;
}

.photo-turn {
  position: absolute;
  top: 50%;
  left: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--white);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.photo-turn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.photo-turn-next {
  left: auto;
  right: 12px;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.thumbs img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
}

/* a marked-down kitten shows its old price struck through, smaller, before the new one */
.was-price {
  margin-right: 0.25em;
  color: var(--ink-soft);
  font-size: 0.75em;
  font-weight: 600;
}

.kitten-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: var(--t-h3);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.status-pill {
  padding: 4px 12px;
  background: var(--white);
  border-radius: 999px;
  font-size: var(--t-small);
  font-weight: 700;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 28px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--round);
}

.facts dt {
  color: var(--ink-soft);
  font-size: var(--t-small);
}

.facts dd {
  font-weight: 700;
}

.ask {
  color: var(--ink-soft);
  font-weight: 400;
  font-style: italic;
}

.goes-home {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: start;
  padding: var(--section) var(--edge);
}

.goes-home p {
  margin-top: 20px;
  max-width: 44ch;
}

/* entrances, only when scripts run */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

.card:nth-child(2n) {
  transition-delay: 90ms;
}

.steps li:nth-child(2) {
  transition-delay: 70ms;
}

.steps li:nth-child(3) {
  transition-delay: 140ms;
}

.steps li:nth-child(4) {
  transition-delay: 210ms;
}

/* below this the five facts cannot share a line, so they stack as a short list */
@media (max-width: 1000px) {
  .strip {
    flex-direction: column;
    gap: 6px;
    font-size: var(--t-small);
  }

  /* too narrow to sit beside the words: the two photos go under them as a pair of squares */
  .story {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-pictures {
    flex-direction: row;
  }

  .story-pictures img {
    min-width: 0;
    aspect-ratio: 1;
  }
}

/* the full menu needs about 1430px on one line; below that it moves under the logo */
@media (max-width: 1460px) {
  .top {
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .logo {
    margin-right: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .included {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery img:nth-child(n + 9) {
    display: none;
  }
}

@media (max-width: 800px) {
  .head,
  .about,
  .questions,
  .contact,
  .page-head,
  .story,
  .kitten,
  .goes-home {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 640px;
  }

  /* on a phone the words climb higher up the picture, so the fade does too */
  .hero::after {
    background: linear-gradient(to top, rgba(31, 26, 23, 0.9) 0%, rgba(31, 26, 23, 0.72) 48%, rgba(31, 26, 23, 0) 82%);
  }

  .hero-text p {
    font-size: 1.3rem;
  }

  .story-words p {
    font-size: var(--t-body);
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery img:nth-child(n + 7) {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .logo {
    font-size: var(--t-body);
  }

  .top-actions {
    gap: 8px;
  }

  /* on a phone the number becomes a tap-to-call button */
  .call {
    padding: 8px 12px;
    border: 2px solid var(--ink);
    font-size: var(--t-small);
  }

  .call-number {
    display: none;
  }

  .call-short {
    display: inline;
  }

  /* a phone keeps the photo beside the words, so the kitten list stays a short scroll */
  .card {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .card-text {
    padding: 16px;
  }

  .card h3 {
    margin-bottom: 4px;
    font-size: 1.5rem;
  }

  .card-text p {
    font-size: var(--t-small);
  }

  .card-text .card-price {
    padding-top: 8px;
    font-size: var(--t-body);
  }

  .steps,
  .checks {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .contact-list {
    font-size: var(--t-body);
  }

  .contact-list div {
    grid-template-columns: 4.5rem 1fr;
    gap: 12px;
  }
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card-photo img,
  summary::after,
  .arrow,
  .btn {
    transition: none;
  }
}

/* learn: the guide list and a single post */
.short-head {
  padding: var(--head-pad) var(--edge);
  background: var(--orange);
}

.short-head h1 {
  max-width: 24ch;
  font-size: var(--t-page);
  line-height: 1.02;
}

.short-head .lead,
.page-head .lead {
  margin-top: 16px;
  max-width: 62ch;
}

/* the section right after a page header starts close to it */
.short-head + :is(.cats, .plain-text, .litters, .learn),
.page-head + section {
  padding-top: clamp(32px, 4vw, 56px);
}

.short-head a {
  font-weight: 700;
}

.short-head + .kittens {
  padding-top: 0;
}

.learn {
  padding: var(--section) var(--edge);
}

.learn > h2 {
  margin-bottom: 40px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.post-card-photo {
  display: block;
  overflow: hidden;
  border-radius: var(--round);
}

.post-card-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card h3 a:hover {
  text-decoration: underline;
}

.post-card p {
  color: var(--ink-soft);
}

.post-head h1 {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.02;
}

.post-date {
  margin-bottom: 16px;
  font-size: var(--t-small);
  font-weight: 700;
}

.post-by {
  margin-top: 20px;
  font-size: var(--t-small);
}

.post-note {
  max-width: calc(760px + 2 * var(--edge));
  margin: 48px auto 0;
  padding: 0 var(--edge);
  font-size: var(--t-small);
}

.post-note p,
.post-note ul {
  padding: 16px 20px;
  border: 2px solid var(--ink);
}

.post-note p {
  border-bottom: 0;
}

.post-note ul {
  margin: 0;
  padding-top: 0;
  padding-left: 40px;
  border-top: 0;
}

.post-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: calc(760px + 2 * var(--edge));
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--edge) var(--section);
}

.post-body h2 {
  margin-top: 32px;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.1;
}

.post-body h2:first-child {
  margin-top: 0;
}

.post-body a:not(.btn) {
  color: var(--orange-ink);
  font-weight: 700;
}

.post-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
}

.post-body .checks {
  grid-template-columns: minmax(0, 1fr);
}

.post-body .actions {
  margin-top: 32px;
}

@media (max-width: 1000px) {
  .post-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* plain pages: cats, policies and how to apply */
.cats,
.plain-text {
  padding: var(--section) var(--edge);
}

/* auto-fill keeps every card the same width, even in a row of two */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 40px 24px;
}

.cat-card {
  min-width: 0;
}

.cat-photo {
  display: block;
  text-decoration: none;
}

.cat-photo img,
.cat-soon {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--round);
}

/* a cat whose photos haven't arrived yet keeps the same shape as the others */
.cat-soon {
  display: grid;
  place-items: center;
  padding: 8px;
  background: var(--track);
  color: var(--ink-soft);
  font-weight: 700;
  text-align: center;
}

.cat-card h3 {
  margin-top: 14px;
  font-size: 1.4rem;
  line-height: 1.15;
}

.cat-card p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: var(--t-small);
}

/* our cats page: kings, queens and retired cats */
.cat-group + .cat-group {
  margin-top: 64px;
}

.cat-group > h2 {
  margin-bottom: 24px;
  font-size: var(--t-h2);
  line-height: 1.05;
}

/* one group shows at a time, and its button stands in for its heading */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.cat-tab {
  text-decoration: none;
}

.cat-tab span {
  margin-left: 6px;
  opacity: 0.7;
}

.cat-tab[aria-current="true"] {
  background: var(--ink);
  color: var(--white);
}

.cats .cat-group + .cat-group {
  margin-top: 0;
}

.cats .cat-group > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* phones: every menu link visible, wrapped onto a second line */
@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    gap: 6px 18px;
    overflow: visible;
  }
}

/* phones: two cats to a row */
@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .cat-tabs {
    gap: 8px;
    margin-bottom: 24px;
  }

  .cat-tab {
    padding-inline: 14px;
  }

  .cat-card h3 {
    margin-top: 8px;
    font-size: 0.95rem;
  }

  .cat-card p {
    font-size: 0.8rem;
    line-height: 1.35;
  }
}

.card-photo {
  text-decoration: none;
}

/* kitten photos are square, so a kitten waiting for photos gets a square placeholder */
.card-photo .cat-soon {
  aspect-ratio: 1;
}

.kitten .cat-soon,
.kitten.cat-profile .cat-soon {
  aspect-ratio: auto;
  height: 96px;
}

/* a cat's own page uses the kitten page layout with a portrait photo */
.cat-profile .kitten-photo,
.cat-profile .cat-soon {
  aspect-ratio: 4 / 5;
}

/* beside the words, the photo column is only as wide as a photo that fits on the
   screen below the header: square for a kitten, 4:5 for a cat */
@media (min-width: 801px) {
  .kitten {
    grid-template-columns: minmax(0, min(50%, calc(100vh - 210px))) minmax(0, 1fr);
    grid-template-columns: minmax(0, min(50%, calc(100svh - 210px))) minmax(0, 1fr);
  }

  .kitten.cat-profile {
    grid-template-columns: minmax(0, min(50%, calc((100vh - 210px) * 0.8))) minmax(0, 1fr);
    grid-template-columns: minmax(0, min(50%, calc((100svh - 210px) * 0.8))) minmax(0, 1fr);
  }
}

.photo-open {
  display: block;
  cursor: zoom-in;
}

.thumbs .photo-open {
  display: inline-block;
}

/* full-size photo viewer on kitten and cat pages */
.viewer {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.viewer::backdrop {
  background: rgba(20, 16, 14, 0.92);
}

.viewer[open] {
  display: grid;
  place-items: center;
}

.viewer img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--round);
}

.viewer button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font: 700 2rem/1 var(--face);
  cursor: pointer;
}

.viewer-close {
  top: 16px;
  right: 16px;
}

.viewer-prev,
.viewer-next {
  top: 50%;
  transform: translateY(-50%);
}

.viewer-prev {
  left: 16px;
}

.viewer-next {
  right: 16px;
}

.cats-more {
  margin-top: 56px;
  font-size: var(--t-lead);
  font-weight: 700;
}

.plain-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: calc(760px + 2 * var(--edge));
  margin: 0 auto;
}

.plain-text h2 {
  margin-top: 32px;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.1;
}

.plain-text h2:first-child {
  margin-top: 0;
}

.plain-text a:not(.btn) {
  color: var(--orange-ink);
  font-weight: 700;
}

.plain-text .actions {
  margin-top: 16px;
}

.close-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
  font-size: var(--t-small);
  font-weight: 700;
}

.close-pages a {
  text-decoration: none;
}

.close-pages a:hover {
  text-decoration: underline;
}

/* the logo, call and apply share one row on a phone */
@media (max-width: 480px) {
  .top {
    gap: 10px 8px;
  }

  .logo {
    font-size: 16px;
  }

  .call {
    padding: 6px 10px;
  }
}

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

/* the kitten application */
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.apply-form h2 {
  margin-top: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label {
  padding: 0;
  font-weight: 700;
}

.field-hint {
  color: var(--ink-soft);
  font-size: var(--t-small);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 1px;
}

.pick {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 0;
}

.pick input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--orange-ink);
}

.field-trap {
  position: absolute;
  left: -9999px;
}

.apply-form .btn {
  align-self: flex-start;
  cursor: pointer;
}

/* choosing a kitten: photo tiles, with the waitlist as the last choice */
.kitten-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kitten-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 2px solid var(--track);
  border-radius: var(--round);
  cursor: pointer;
}

.kitten-choice:last-child {
  grid-column: 1 / -1;
}

.kitten-choice:has(input:checked) {
  border-color: var(--orange-ink);
  background: #fdf1e7;
}

.kitten-choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--orange-ink);
}

.kitten-choice img {
  flex: none;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.kitten-choice span {
  display: block;
  min-width: 0;
}

.wishes {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wishes[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .kitten-choices {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* an answer the form still needs, marked in red when someone tries to send */
.field.is-missing {
  padding-left: 14px;
  box-shadow: inset 4px 0 0 var(--alert);
}

.field.is-missing > input,
.field.is-missing > select,
.field.is-missing > textarea {
  border-color: var(--alert);
}

.field-error,
.form-note {
  color: var(--alert);
  font-size: var(--t-small);
  font-weight: 600;
}

.form-note:empty {
  display: none;
}

.pick.is-missing {
  color: var(--alert);
}

.pick.is-missing input {
  outline: 2px solid var(--alert);
  outline-offset: 2px;
}

/* the kitten agreement on /contract. Sections and clauses are numbered the way
   the agreement refers to them, so "Section 7.1" is the first clause of section 7. */
.agreement {
  gap: 48px;
  counter-reset: part;
}

.agreement section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-increment: part;
}

.agreement h2 {
  margin-top: 0;
  font-size: var(--t-h3);
}

.agreement h2 span {
  margin-right: 0.4em;
  color: var(--orange-ink);
}

.agreement ol,
.agreement ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding-left: 2.6em;
}

.agreement ol {
  counter-reset: clause;
}

.agreement ol > li {
  counter-increment: clause;
}

.agreement ol > li::marker {
  content: counter(part) "." counter(clause) "  ";
  color: var(--orange-ink);
  font-weight: 700;
}

.agreement ul {
  padding-left: 1.2em;
}

.agreement .columns {
  display: block;
  columns: 2;
  column-gap: 40px;
}

.agreement .columns li {
  margin-bottom: 8px;
}

.terms {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--t-small);
}

.terms th,
.terms td {
  padding: 10px 12px;
  border: 1px solid var(--track);
  text-align: left;
  vertical-align: top;
}

.terms th {
  color: var(--ink-soft);
  font-weight: 600;
}

.terms td {
  height: 44px;
}

.terms.price td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.terms .total th,
.terms .total td {
  color: var(--ink);
  font-weight: 700;
}

.nowrap {
  white-space: nowrap;
}

/* on a phone each table row becomes label-and-blank pairs */
@media (max-width: 640px) {
  .agreement .columns {
    columns: 1;
  }

  .terms,
  .terms tbody {
    display: block;
  }

  .terms {
    border-top: 1px solid var(--track);
  }

  .terms tr {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .terms colgroup {
    display: none;
  }

  .terms th,
  .terms td {
    height: auto;
    min-height: 44px;
    border-width: 0 0 1px;
  }
}

/* the short message form inside the dark contact block */
.message-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 34rem;
  margin-top: 24px;
}

.message-form .field-label {
  color: var(--white);
}

.message-form .field input,
.message-form .field textarea {
  border-color: var(--white);
}

.message-form .btn {
  align-self: flex-start;
}
