:root {
  --bg: #f4ecdf;
  --bg-soft: rgba(255, 251, 245, 0.74);
  --surface: rgba(255, 248, 239, 0.86);
  --surface-strong: #fffaf2;
  --text: #2b241f;
  --muted: #6f6359;
  --line: rgba(76, 56, 42, 0.12);
  --gold: #d49a45;
  --rose: #d87061;
  --sage: #8ba087;
  --ink: #3f4448;
  --shadow: 0 24px 60px rgba(74, 53, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 154, 69, 0.15), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(216, 112, 97, 0.16), transparent 20%),
    linear-gradient(180deg, #f8f1e5 0%, #f1e7d9 52%, #efe5d8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 90%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 18px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, #2f2822, #655143);
  color: #fff8f1;
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.section-heading h2,
.hero-copy h1,
.stage-card-copy h2,
.pet-card h3,
.story-note h3,
.visit-step h3 {
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
}

.brand-copy strong {
  font-size: 1.35rem;
  line-height: 1;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.96rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: currentColor;
  opacity: 0.75;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
  padding: 52px 6px 42px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: 0.94;
  max-width: 10ch;
  font-weight: 600;
}

.hero-text,
.section-heading p,
.pet-description,
.visit-step p,
.story-note p,
.pet-traits,
.form-feedback,
.visit-form label {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: #2f2822;
  color: #fffaf4;
  box-shadow: 0 18px 30px rgba(47, 40, 34, 0.18);
}

.button-secondary {
  background: rgba(255, 250, 242, 0.5);
  color: var(--text);
  border-color: var(--line);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.hero-metrics li,
.filter-bar,
.pet-card,
.story-note,
.visit-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-metrics li {
  padding: 18px 16px;
  border-radius: 22px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.85rem;
  margin-bottom: 5px;
}

.hero-stage {
  position: relative;
  min-height: 580px;
  border-radius: 44px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.66), rgba(250, 238, 224, 0.9)),
    radial-gradient(circle at top right, rgba(212, 154, 69, 0.2), transparent 26%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(76, 56, 42, 0.12);
}

.hero-stage::before {
  width: 320px;
  height: 320px;
  top: -60px;
  right: -50px;
}

.hero-stage::after {
  width: 220px;
  height: 220px;
  bottom: 34px;
  left: -80px;
}

.stage-card {
  position: absolute;
  border-radius: 28px;
  border: 1px solid rgba(76, 56, 42, 0.12);
  background: rgba(255, 251, 245, 0.92);
  box-shadow: 0 20px 48px rgba(67, 50, 39, 0.12);
}

.stage-card-main {
  left: 50%;
  top: 52%;
  width: min(340px, calc(100% - 70px));
  transform: translate(-50%, -50%) rotate(-4deg);
  padding: 24px;
}

.stage-card-small {
  width: 190px;
  padding: 16px;
}

.card-one {
  top: 56px;
  left: 38px;
  transform: rotate(7deg);
}

.card-two {
  right: 36px;
  bottom: 48px;
  transform: rotate(-6deg);
}

.portrait,
.pet-portrait {
  display: grid;
  place-items: center;
  color: #fffef9;
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.portrait {
  width: 100%;
  min-height: 280px;
  border-radius: 22px;
  font-size: 7rem;
}

.pet-portrait {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  font-size: 2.7rem;
}

.portrait-gold {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 244, 220, 0.45), transparent 24%),
    linear-gradient(145deg, #efb15b, #c8802a);
}

.portrait-rose {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 234, 221, 0.42), transparent 26%),
    linear-gradient(145deg, #ea9385, #bf5242);
}

.portrait-sage {
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 245, 228, 0.4), transparent 24%),
    linear-gradient(145deg, #9eb29b, #647c61);
}

.portrait-ink {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(145deg, #606972, #2d3237);
}

.stage-card-copy p,
.stage-card-copy span {
  margin: 0;
  color: var(--muted);
}

.stage-card-copy h2 {
  margin: 12px 0 6px;
  font-size: 2.5rem;
}

.featured-section,
.story-section,
.visit-section {
  padding: 34px 0 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.98;
}

.section-heading p {
  margin: 14px 0 0;
  max-width: 58ch;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  margin-top: 28px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  transform: translateY(-1px);
  background: rgba(47, 40, 34, 0.08);
}

.filter-chip.is-active {
  background: #2f2822;
  color: #fff8f1;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.pet-card {
  border-radius: 30px;
  padding: 20px;
  transform-origin: center top;
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.pet-card.is-hidden {
  opacity: 0.22;
  filter: grayscale(0.25);
  transform: scale(0.97);
}

.pet-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pet-badge,
.story-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(47, 40, 34, 0.08);
  color: var(--text);
  font-size: 0.84rem;
}

.pet-card h3 {
  margin: 18px 0 0;
  font-size: 2rem;
}

.pet-traits {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.pet-description {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.pet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pet-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 0.88rem;
}

.story-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 0.85fr;
  gap: 18px;
  margin-top: 24px;
}

.story-note {
  border-radius: 30px;
  padding: 24px;
}

.story-note-large {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.94), rgba(244, 228, 209, 0.8)),
    var(--surface);
}

.accent-note {
  background:
    linear-gradient(180deg, rgba(139, 160, 135, 0.18), rgba(255, 248, 239, 0.86)),
    var(--surface);
}

.story-note h3 {
  margin: 18px 0 12px;
  font-size: 2rem;
  line-height: 1.05;
}

.visit-card {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 26px;
  padding: 28px;
  border-radius: 34px;
  margin-top: 26px;
}

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

.visit-step {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(76, 56, 42, 0.08);
}

.visit-step span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}

.visit-step h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.visit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-self: end;
}

.visit-form label:last-of-type,
.visit-form button,
.form-feedback {
  grid-column: 1 / -1;
}

.visit-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.94rem;
}

.visit-form input {
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(76, 56, 42, 0.14);
  background: rgba(255, 255, 255, 0.82);
  padding: 0 16px;
  font: inherit;
  color: var(--text);
}

.visit-form input:focus-visible {
  outline: 2px solid rgba(212, 154, 69, 0.4);
  outline-offset: 2px;
}

.form-feedback {
  min-height: 28px;
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 1040px) {
  .hero-section,
  .visit-card,
  .story-layout {
    grid-template-columns: 1fr;
  }

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

  .visit-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    margin-top: 12px;
  }

  .site-header {
    position: static;
    padding: 18px;
  }

  .site-nav {
    display: none;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .hero-stage {
    min-height: 460px;
  }

  .stage-card-main {
    width: calc(100% - 40px);
  }

  .stage-card-small {
    width: 156px;
  }

  .hero-metrics,
  .pet-grid,
  .visit-form {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    gap: 8px;
  }

  .pet-card,
  .story-note,
  .visit-card {
    border-radius: 24px;
  }
}
