/* ============================================================
   Renoir & Stickers
   Palette pulled from the photographs themselves: the gray-green
   of the cat bed and the couch, slate ink, and the dusty rose of
   a kitten's nose. The page stays quiet so the cats don't have to.
   ============================================================ */

:root {
  --fleece:      #E7EAE7;
  --fleece-deep: #D8DDD9;
  --paper:       #FBFBFA;
  --slate:       #2B3338;
  --slate-soft:  #5C6B71;
  --slate-line:  #C3CBC7;
  --pad:         #C4736F;
  --pad-deep:    #A85B58;

  --display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --body: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --gut: 1.5rem;

  --shadow: 0 1px 2px rgba(43,51,56,.06), 0 8px 26px -12px rgba(43,51,56,.28);
  --radius: 3px;
}

@media (min-width: 700px) { :root { --gut: 2.5rem; } }

/* ---------- reset-ish ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip; /* lets the hero photo bleed past the wrap without a scrollbar */
  background: var(--fleece);
  color: var(--slate);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--pad-deep); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--slate); color: var(--paper);
  padding: .75rem 1.25rem; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- shared bits ---------- */

.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--slate-soft);
  max-width: 34ch;
}

.section-note { color: var(--slate-soft); margin-top: .6rem; }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .85rem 1.6rem;
  border: 1px solid var(--slate);
  border-radius: 999px;
  background: var(--slate);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--pad-deep); border-color: var(--pad-deep); transform: translateY(-1px); }

.btn--quiet { background: transparent; color: var(--slate); border-color: var(--slate-line); }
.btn--quiet:hover { background: transparent; color: var(--pad-deep); border-color: var(--pad); }

.btn--light { background: var(--paper); color: var(--slate); border-color: var(--paper); }
.btn--light:hover { background: var(--pad); border-color: var(--pad); color: var(--paper); }

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

.hero {
  display: grid;
  gap: 2rem;
  padding: 0 0 3.5rem;
}

.hero__photo { margin: 0; order: -1; }
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 34%;
}

.hero__text { padding: 2.5rem var(--gut) 0; }

.hero__title {
  font-size: clamp(3.4rem, 15vw, 5.5rem);
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
  line-height: .92;
  margin: 0 0 1.4rem;
}

.amp {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: .5em;
  color: var(--pad);
  line-height: 1;
  margin: .08em 0 .04em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.9rem;
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1fr 43%;
    align-items: center;
    gap: 3.5rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 0 5.5rem;
    min-height: min(88vh, 780px);
  }
  .hero__photo {
    order: 0;
    align-self: stretch;
    overflow: hidden;
    /* bleed off the right edge of the viewport, not the wrap */
    margin-right: min(0px, calc((var(--wrap) - 100vw) / 2));
  }
  .hero__photo img { height: 100%; aspect-ratio: auto; object-position: 50% 35%; }
  .hero__text { padding: 3rem 0 3rem var(--gut); }
  .hero__title { font-size: clamp(4.5rem, 7.2vw, 6.4rem); }
  .amp { display: inline-block; font-size: .5em; margin: 0 .14em; vertical-align: .16em; }
}

/* ---------- bands ---------- */

.band {
  padding: 4rem var(--gut);
  max-width: var(--wrap);
  margin: 0 auto;
}
.band--tight { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.prose { max-width: 62ch; }
.prose h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 1.2rem; }
.prose p { color: var(--slate-soft); }
.prose p:first-of-type { color: var(--slate); }

/* ---------- quick facts ---------- */

.facts { margin: 0; }

.facts__row {
  display: grid;
  gap: .1rem .5rem;
  padding: .85rem 0;
  border-top: 1px solid var(--slate-line);
}
.facts__row:last-child { border-bottom: 1px solid var(--slate-line); }

.facts dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.facts dd { margin: 0; }

@media (min-width: 700px) {
  .facts__row { grid-template-columns: 15rem 1fr; align-items: baseline; }
  .facts dt { padding-top: .12rem; }
}

/* ---------- the two of them ---------- */

.brothers {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 820px) {
  .brothers { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
}

.cat { margin: 0; display: flex; flex-direction: column; }
.cat p { color: var(--slate-soft); }

.cat__photo { margin: 0 0 1.5rem; }

.lightbox-open {
  display: block; width: 100%; padding: 0; border: 0; margin: 0;
  background: none; cursor: zoom-in; border-radius: var(--radius);
}
.lightbox-open img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.lightbox-open:hover img { transform: scale(1.012); }

.cat__name {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-variation-settings: 'opsz' 96, 'SOFT' 50, 'WONK' 1;
  margin-bottom: .15rem;
}

.cat__tag {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--pad-deep) !important;
  margin: 0 0 1.1rem;
}

.cat__id {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .875rem;
  margin-top: auto;  /* pins both brothers' ID lines to the same baseline */
  padding-top: 1rem;
  border-top: 1px solid var(--slate-line);
}

.swatch {
  flex: 0 0 auto;
  width: .95rem; height: .95rem;
  border-radius: 50%;
  border: 1px solid var(--slate-line);
}
.swatch--renoir   { background: #6C6355; }
.swatch--stickers { background: linear-gradient(115deg, #FBFBFA 0 48%, #8A8272 48% 100%); }

/* the signature: two strands becoming one */

.merge {
  display: block;
  width: 100%;
  height: auto;
  margin: 2rem auto -4rem;
  overflow: visible;
}
.merge path {
  fill: none;
  stroke: var(--pad);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s cubic-bezier(.5,0,.2,1);
}
/* stacked layout squashes the natural 1000:130 ratio, so give it room */
@media (max-width: 819px) { .merge { height: 84px; } }

.merge.in path { stroke-dashoffset: 0; }
.merge.in path:nth-child(2) { transition-delay: .1s; }
.merge.in .merge__tail { transition-delay: .95s; transition-duration: .5s; }

/* ---------- together (the dark band) ---------- */

.band--dark {
  background: var(--slate);
  color: var(--fleece);
  max-width: none;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.together {
  display: grid;
  gap: 2.5rem;
  max-width: var(--wrap);
  margin: 0 auto;
  align-items: center;
}

.together__photo { margin: 0; }
.together__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--radius);
}

.together h2 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-variation-settings: 'opsz' 120, 'SOFT' 50, 'WONK' 1;
  margin-bottom: 1.4rem;
}
.together p { color: #B9C4C6; }
.together__cta { margin-top: 1.9rem; }

@media (min-width: 820px) {
  .together { grid-template-columns: 42% 1fr; gap: 4rem; }
}

/* ---------- gallery ---------- */

.gallery {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery figure { margin: 0; }

.gallery figcaption {
  font-family: var(--display);
  font-style: italic;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--slate-soft);
  margin-top: .6rem;
  text-align: left;
}

/* ---------- health list ---------- */

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--slate-soft);
}
.plain-list li {
  position: relative;
  padding: .8rem 0 .8rem 1.6rem;
  border-top: 1px solid var(--slate-line);
}
.plain-list li:last-child { border-bottom: 1px solid var(--slate-line); }
.plain-list strong { color: var(--slate); }
.plain-list li::before {
  content: "";
  position: absolute;
  left: .15rem; top: 1.42rem;
  width: .4rem; height: .4rem;
  border-radius: 50%;
  background: var(--pad);
}

/* ---------- form ---------- */

.ask {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .ask { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
  .ask__intro { position: sticky; top: 3rem; }
}

.ask__intro h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 1.2rem; }
.ask__intro p { color: var(--slate-soft); max-width: 40ch; }

.form {
  background: var(--paper);
  border: 1px solid var(--slate-line);
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

@media (min-width: 700px) { .form { padding: 2.25rem; } }

.field { margin-bottom: 1.15rem; }

.field-pair { display: grid; gap: 0; }
@media (min-width: 560px) {
  .field-pair { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}

.field label {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: .4rem;
}

.opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-style: italic;
  color: #8A9793;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--slate);
  background: var(--fleece);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
  padding: .7rem .8rem;
  transition: border-color .15s ease, background .15s ease;
}

.field textarea { resize: vertical; line-height: 1.55; }

.field input::placeholder,
.field textarea::placeholder { color: #7C8985; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--pad);
  outline: 1px solid var(--pad);
  outline-offset: 0;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235C6B71' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: .7rem;
  padding-right: 2.2rem;
}

.btn--submit { width: 100%; margin-top: .6rem; font-size: 1rem; padding: .95rem 1.6rem; }
.btn--submit[disabled] { opacity: .55; cursor: progress; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  margin: 1rem 0 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--slate-soft);
}
.form__status:empty { margin: 0; }
.form__status.is-ok { color: var(--pad-deep); font-weight: 700; }
.form__status.is-bad { color: #A0342E; }

/* the whole form swapped out for a thank-you */
.form--sent { text-align: center; }
.form--sent .thanks-h {
  font-family: var(--display);
  font-variation-settings: 'opsz' 72, 'SOFT' 50, 'WONK' 1;
  font-size: 1.9rem;
  font-weight: 500;
  margin: 0 0 .6rem;
}
.form--sent p { color: var(--slate-soft); margin: 0 auto; max-width: 34ch; }

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

.footer {
  border-top: 1px solid var(--slate-line);
  padding: 2.5rem var(--gut) 3.5rem;
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: .875rem;
  color: var(--slate-soft);
  text-align: center;
}
.footer p { margin: 0 0 .4rem; }
.footer__contact { margin: 0; }

/* ---------- lightbox ---------- */

.lb {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  background: rgba(29, 35, 38, .96);
  color: var(--fleece);
  overflow: hidden;
}
.lb::backdrop { background: rgba(29, 35, 38, .96); }

.lb__figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3.5rem 1rem 2.5rem;
}

.lb__img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lb__caption {
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: #C0CACB;
  text-align: center;
  max-width: 46ch;
}

.lb__close,
.lb__nav {
  position: absolute;
  background: rgba(251,251,250,.1);
  border: 0;
  color: var(--fleece);
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  transition: background .15s ease;
}
.lb__close:hover,
.lb__nav:hover { background: rgba(251,251,250,.24); }

.lb__close {
  top: .85rem; right: .85rem;
  width: 2.6rem; height: 2.6rem;
  font-size: 1.7rem;
}

.lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem; height: 2.8rem;
  font-size: 2rem;
  padding-bottom: .22rem;
}
.lb__nav--prev { left: .6rem; }
.lb__nav--next { right: .6rem; }

@media (min-width: 700px) {
  .lb__nav { width: 3.4rem; height: 3.4rem; font-size: 2.4rem; }
  .lb__nav--prev { left: 1.5rem; }
  .lb__nav--next { right: 1.5rem; }
}

/* ---------- entrance motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .8s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}
.fade-in.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  .reveal, .fade-in { opacity: 1; transform: none; }
  .merge path { stroke-dashoffset: 0; }
}
