:root {
  --cream: #fbf3e4;
  --paper: #fffaf0;
  --paper-strong: #fffdf7;
  --sage: #8c9c72;
  --sage-dark: #566a45;
  --moss: #203a22;
  --clay: #b77731;
  --walnut: #634b31;
  --charcoal: #26371f;
  --muted: #737b67;
  --line: #e4d5bd;
  --rose: #c75b6b;
  --sky: #7fa8aa;
  --shadow: 0 16px 34px rgba(99, 75, 49, 0.13);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 7% 8%, rgba(140, 156, 114, 0.12), transparent 26rem),
    radial-gradient(circle at 92% 18%, rgba(183, 119, 49, 0.11), transparent 28rem),
    var(--cream);
}

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

a {
  color: inherit;
}

p,
li {
  line-height: 1.62;
}

.site-header {
  border-bottom: 1px solid rgba(228, 213, 189, 0.8);
  background: rgba(251, 243, 228, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  text-decoration: none;
  color: var(--moss);
  font-weight: 900;
  letter-spacing: 0;
  display: grid;
  line-height: 1.05;
}

.brand small {
  color: var(--sage-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--moss);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 10px 11px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  background: #eee6d8;
}

.hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.hero.compact {
  padding-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--sage-dark);
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--moss);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.04;
  margin-bottom: 16px;
}

h3 {
  color: var(--moss);
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.lead {
  color: var(--walnut);
  font-size: 1.16rem;
  font-weight: 650;
  max-width: 690px;
}

.hero-art {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 18% 3% 10% 12%;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.82), rgba(238, 230, 216, 0.72)),
    radial-gradient(circle at 82% 20%, rgba(127, 168, 170, 0.2), transparent 16rem);
  border: 1px solid rgba(228, 213, 189, 0.9);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  display: none;
}

.hero-art img {
  position: relative;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(99, 75, 49, 0.16));
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  background: var(--sage-dark);
  color: white;
}

.button.secondary {
  background: #eee6d8;
  color: var(--moss);
}

.button.clay {
  background: var(--clay);
  color: white;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.band {
  width: 100%;
  margin: 34px 0;
  padding: 52px 0;
  background: rgba(255, 250, 240, 0.62);
  border-top: 1px solid rgba(228, 213, 189, 0.7);
  border-bottom: 1px solid rgba(228, 213, 189, 0.7);
}

.band-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(55, 47, 35, 0.08);
  padding: 18px;
}

.card.highlight {
  border-left: 8px solid var(--sage);
}

.card.clay {
  border-left: 8px solid var(--clay);
}

.card.sky {
  border-left: 8px solid var(--sky);
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.service-card img {
  height: 185px;
  width: 100%;
  object-fit: contain;
  background: transparent;
  border: 0;
  padding: 0;
  filter: drop-shadow(0 12px 14px rgba(99, 75, 49, 0.14));
}

.price {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(86, 106, 69, 0.28);
  border-radius: 6px;
  background: #f6ead5;
  color: var(--walnut);
  padding: 8px 10px;
  font-weight: 900;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(140, 156, 114, 0.18);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
}

.side-art {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(55, 47, 35, 0.08);
}

.side-art img {
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(99, 75, 49, 0.12));
}

.section-art {
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}

.section-art img {
  max-width: min(280px, 74vw);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(99, 75, 49, 0.12));
}

.note {
  background: #f6ead5;
  border: 1px solid #d6b274;
  color: var(--walnut);
  border-radius: 8px;
  padding: 16px;
  font-weight: 700;
}

.worksheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.worksheet-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.worksheet-row:first-child {
  border-top: 0;
}

.worksheet-label {
  background: rgba(238, 230, 216, 0.78);
  color: var(--walnut);
  font-weight: 900;
  padding: 14px;
}

.worksheet-row p {
  margin: 0;
  padding: 14px;
}

.pricing-table {
  display: grid;
  gap: 12px;
}

.pricing-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 8px solid var(--sage);
  border-radius: 8px;
  padding: 16px;
}

.pricing-item strong {
  color: var(--moss);
}

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

.resource-list .card {
  min-height: 100%;
}

.link-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  color: var(--moss);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 101, 61, 0.22);
}

.link-list a:hover {
  color: var(--clay);
  border-color: rgba(174, 99, 64, 0.36);
}

.feature-links {
  margin-top: 22px;
}

.footer {
  margin-top: 46px;
  background: var(--moss);
  color: #fffaf0;
  padding: 34px 0;
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
}

.footer a {
  color: #fffaf0;
  font-weight: 800;
}

.fine-print {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.88rem;
}

.dog-board-hero,
.profile-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.dog-board-hero {
  padding: 52px 0 22px;
}

.dog-board-hero h1,
.identity-card h1 {
  margin-bottom: 12px;
}

.dog-board-section {
  padding-top: 20px;
}

.board-toolbar,
.record-card-heading,
.identity-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.small-button {
  min-height: 38px;
  padding: 9px 13px;
}

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

.dog-index-card,
.identity-card,
.record-card,
.next-panel {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 253, 247, 0.9)),
    radial-gradient(circle at 92% 12%, rgba(140, 156, 114, 0.12), transparent 13rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(55, 47, 35, 0.08);
}

.dog-index-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
}

.dog-index-photo,
.identity-photo {
  background:
    linear-gradient(145deg, rgba(238, 230, 216, 0.76), rgba(251, 243, 228, 0.6)),
    radial-gradient(circle at 30% 18%, rgba(127, 168, 170, 0.2), transparent 12rem);
  display: grid;
  place-items: center;
}

.dog-index-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  filter: drop-shadow(0 10px 12px rgba(99, 75, 49, 0.13));
}

.dog-index-body {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.dog-index-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0;
}

.dog-index-body p,
.next-panel p,
.registered-name {
  color: var(--walnut);
  margin-bottom: 0;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.status-chip,
.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.status-chip.sage,
.result-badge.pass,
.result-badge.normal {
  background: rgba(140, 156, 114, 0.2);
  color: var(--sage-dark);
}

.status-chip.moss,
.result-badge.good {
  background: rgba(32, 58, 34, 0.12);
  color: var(--moss);
}

.status-chip.rose,
.result-badge.fail {
  background: rgba(199, 91, 107, 0.14);
  color: #8a2f3d;
}

.status-chip.sky,
.result-badge.pending {
  background: rgba(127, 168, 170, 0.2);
  color: #365f61;
}

.status-chip.clay {
  background: rgba(183, 119, 49, 0.17);
  color: #81531f;
}

.status-chip.walnut {
  background: rgba(99, 75, 49, 0.13);
  color: var(--walnut);
}

.next-due {
  border-top: 1px solid rgba(228, 213, 189, 0.72);
  padding-top: 10px;
}

.profile-shell {
  padding: 30px 0 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--sage-dark);
  font-weight: 900;
  text-decoration: none;
}

.identity-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
}

.identity-photo img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  padding: 20px;
  filter: drop-shadow(0 14px 16px rgba(99, 75, 49, 0.15));
}

.identity-body {
  padding: 24px;
}

.registered-name {
  font-weight: 800;
  font-size: 1.08rem;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.identity-grid div {
  border-top: 1px solid rgba(228, 213, 189, 0.8);
  padding-top: 10px;
}

.identity-grid dt {
  color: var(--sage-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.identity-grid dd {
  margin: 3px 0 0;
  color: var(--charcoal);
  font-weight: 750;
}

.next-panel {
  margin: 16px 0;
  padding: 18px;
  border-left: 8px solid var(--sage);
}

.next-panel h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.record-grid,
.prevention-pair {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

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

.record-grid.single,
.prevention-pair {
  grid-template-columns: 1fr;
}

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

.record-card {
  padding: 18px;
  overflow: hidden;
}

.record-card h3 {
  margin-bottom: 0;
}

.add-entry-button {
  border: 1px solid rgba(86, 106, 69, 0.28);
  border-radius: 6px;
  background: #eee6d8;
  color: var(--moss);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 10px;
}

.record-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.record-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.record-table th {
  color: var(--sage-dark);
  font-size: 0.74rem;
  text-align: left;
  text-transform: uppercase;
}

.record-table th,
.record-table td {
  border-bottom: 1px solid rgba(228, 213, 189, 0.76);
  padding: 8px 7px;
  vertical-align: top;
}

.record-table input,
.record-table select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.74);
  color: var(--charcoal);
  font: inherit;
  min-height: 34px;
  padding: 7px 8px;
}

.record-table input:focus,
.record-table select:focus {
  border-color: rgba(86, 106, 69, 0.42);
  outline: 2px solid rgba(140, 156, 114, 0.16);
}

.result-cell {
  min-width: 126px;
}

.result-cell select {
  margin-bottom: 6px;
}

.delete-row {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(99, 75, 49, 0.1);
  color: var(--walnut);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .split.reverse,
  .grid.three,
  .grid.two,
  .resource-list,
  .dog-card-grid,
  .identity-card,
  .record-grid,
  .prevention-pair,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-art {
    min-height: 280px;
  }

  .hero-art img {
    max-height: 310px;
  }

  .pricing-item,
  .worksheet-row {
    grid-template-columns: 1fr;
  }

  .pricing-item {
    align-items: start;
  }

  .identity-photo {
    min-height: 260px;
  }

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

  .board-toolbar,
  .record-card-heading,
  .identity-heading {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-links a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }

  .section,
  .band {
    padding: 32px 0;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
