:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #15191d;
  --muted: #525a63;
  --line: #d7dce1;
  --accent: #e84435;
  --blue: #d8eefb;
  --peach: #fce9df;
  --content-width: 1240px;
  --gutter: clamp(22px, 5.1vw, 76px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.site-header,
.hero,
.cats-section,
.site-footer {
  width: min(100% - (var(--gutter) * 2), var(--content-width));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.nav-link {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  padding-block: 52px 68px;
}

.hero-copy { position: relative; z-index: 1; }

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3.7rem, 7.1vw, 6.25rem);
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.hero-copy > p {
  max-width: 630px;
  margin: 24px 0 32px;
  color: #30363c;
  font-size: clamp(1.05rem, 1.6vw, 1.27rem);
  line-height: 1.55;
}

.primary-link {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 27px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.primary-link:hover {
  transform: translateY(-2px);
  background: #cc3328;
}

.primary-link span { font-size: 1.3rem; line-height: 1; }

.hero-art {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 330px;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 2%;
  width: min(86%, 390px);
  aspect-ratio: 1;
  border-radius: 47% 53% 54% 46% / 48% 44% 56% 52%;
  background: #ffe6d8;
}

.hero-art img {
  display: block;
  position: relative;
  width: min(100%, 470px);
  height: auto;
}

.cats-section {
  padding-block: 18px 76px;
  scroll-margin-top: 28px;
}

.cats-section h2 {
  margin: 0 0 28px;
  font-size: clamp(2.8rem, 4.5vw, 3.7rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

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

.cat-card {
  min-width: 0;
  padding: 12px 12px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.photo-placeholder {
  height: clamp(210px, 23vw, 286px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 6px;
}

.photo-blue { background: var(--blue); }
.photo-peach { background: var(--peach); }

.photo-placeholder img {
  width: min(82%, 220px);
  height: calc(100% - 36px);
  object-fit: contain;
  object-position: center bottom;
}

.photo-placeholder span {
  padding: 0 8px 13px;
  color: #333b42;
  font-size: 0.96rem;
  line-height: 1.25;
}

.cat-copy { padding: 12px 5px 0; }

.cat-copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.cat-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.site-footer .wordmark { font-size: 1.5rem; }

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.not-found {
  min-height: calc(100vh - 186px);
  padding-top: clamp(80px, 14vh, 170px);
}

.not-found-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6rem);
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.not-found-copy {
  margin: 24px 0 32px;
  color: #30363c;
  font-size: 1.15rem;
}

@media (min-width: 1450px) {
  .hero h1 { font-size: 6.25rem; }
}

@media (max-width: 1200px) {
  .hero {
    min-height: 460px;
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
    gap: 20px;
  }

  .hero h1 { font-size: clamp(3.2rem, 5.1vw, 4rem); }
}

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .photo-placeholder { height: clamp(220px, 36vw, 300px); }
}

@media (max-width: 760px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 46px 32px;
  }

  .hero h1 { font-size: clamp(3.4rem, 10vw, 4.8rem); }
  .hero-art { min-height: 0; justify-content: end; }
  .hero-art img { width: min(78%, 390px); margin-right: -10px; }
}

@media (max-width: 620px) {
  :root { --gutter: 22px; }
  .site-header { min-height: 76px; }
  .wordmark { font-size: 1.8rem; }

  .hero h1 { font-size: clamp(3.2rem, 13vw, 4.3rem); }
  .hero-copy > p { margin-block: 20px 25px; }
  .hero-art img { width: min(88%, 370px); margin-right: -10px; }
  .cats-section { padding-block: 18px 56px; }
  .cats-section h2 { margin-bottom: 21px; font-size: 2.65rem; }
  .cat-grid { grid-template-columns: 1fr; gap: 16px; }
  .cat-card { padding: 10px 10px 15px; }
  .photo-placeholder { height: min(76vw, 340px); }
  .cat-copy h3 { font-size: 1.85rem; }
  .site-footer { min-height: 90px; }
  .site-footer p { max-width: 150px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
