:root {
  --ink: #2b2520;
  --muted: #6f6258;
  --paper: #fffaf4;
  --panel: #ffffff;
  --line: #e9ded3;
  --accent: #2f6f67;
  --accent-dark: #1f514b;
  --rose: #b85d6a;
  --gold: #c98b32;
  --shadow: 0 18px 60px rgba(43, 37, 32, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  object-fit: contain;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(18px, env(safe-area-inset-left)) 14px max(18px, env(safe-area-inset-right));
  background: rgba(255, 250, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  min-width: 0;
}

.brand span:last-child {
  overflow-wrap: anywhere;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #fff;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(28px, 6vw, 82px) clamp(18px, 4vw, 52px) 40px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero p:not(.eyebrow),
.intro p,
.parents p,
.contact p {
  color: var(--muted);
  font-size: 18px;
}

.hero img {
  height: min(72vh, 720px);
  min-height: 420px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  touch-action: manipulation;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--accent-dark);
  border-color: var(--accent);
  background: transparent;
}

.section {
  padding: clamp(44px, 7vw, 88px) clamp(18px, 4vw, 52px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 36px;
  background: #fff;
  border-block: 1px solid var(--line);
}

.quick-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.quick-facts div,
.contact-box {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.puppy-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 16px;
}

.puppy-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(43, 37, 32, 0.08);
}

.puppy-button {
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.puppy-button:hover,
.puppy-button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.puppy-card img {
  aspect-ratio: 4 / 5;
  background: #f7efe7;
}

.puppy-card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.puppy-card-body span:not(.status):not(.puppy-title) {
  color: var(--muted);
}

.puppy-title {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  color: #fff;
  background: var(--rose);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.status.unavailable,
.modal-status.unavailable {
  background: var(--muted);
}

.status:hover {
  background: var(--gold);
}

.gallery {
  background: #fff;
  border-block: 1px solid var(--line);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.photo-strip img {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f7efe7;
}

.box-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
}

.box-feature video {
  width: 100%;
  max-height: 620px;
  background: #000;
  border-radius: 8px;
}

.parents {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 36px;
}

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

.parent-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(43, 37, 32, 0.08);
}

.parent-card img {
  height: auto;
  max-height: 560px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: #f7efe7;
}

.parent-card div {
  padding: 16px;
}

.parent-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  color: #fff;
  background: var(--accent-dark);
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.82);
}

.contact h2 {
  color: #fff;
}

.contact-box {
  color: var(--ink);
  background: #fff;
}

.contact-box .button {
  width: 100%;
  margin-top: 8px;
}

.icon-button {
  gap: 9px;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: currentColor;
}

.contact-box a:not(.button) {
  color: var(--accent-dark);
  font-weight: 800;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.action-wide {
  grid-column: 1 / -1;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 22, 0.68);
}

.modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(18px, 3vw, 30px);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  width: max-content;
  margin-left: auto;
  min-height: 40px;
  padding: 8px 12px;
  color: #fff;
  background: var(--accent-dark);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.modal-status {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  color: #fff;
  background: var(--rose);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.modal-details div {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-details dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 18px;
}

.modal-gallery img {
  max-height: 72vh;
  border-radius: 12px;
  background: transparent;
}

.modal-actions {
  margin-top: 18px;
}

footer {
  padding: 24px clamp(18px, 4vw, 52px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .parents,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

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

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

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

  .box-feature {
    grid-template-columns: 1fr;
  }

  .parent-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
  }

  nav a {
    flex: 1 1 auto;
    min-width: max-content;
  }

  .hero,
  .section {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  h1 {
    font-size: 42px;
  }

  .puppy-grid,
  .photo-strip,
  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .modal-details {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .modal {
    align-items: end;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .modal-panel {
    width: 100%;
    max-height: 92vh;
    padding: 14px;
  }

  .modal-close {
    top: max(0px, env(safe-area-inset-top));
  }

  .modal-gallery img {
    max-height: 82vh;
  }
}
