@font-face {
  font-family: Archivo;
  src: url('../assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 500 900;
  font-stretch: 87.5% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-regular.woff') format('woff');
  font-weight: 300 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-semibold.woff') format('woff');
  font-weight: 451 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-bold.woff') format('woff');
  font-weight: 651 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1a1a19;
  --brand: #2a327d;
  --brand-hover: #222964;
  --on-brand: #ffffff;
  --link: #245782;
  --sky: #a9dff3;
  --sun: #ffda29;
  --sun-hover: #efc818;
  --on-sun: #19180f;
  --paper: #f8f8f5;
  --surface: #ffffff;
  --soft: #eeefeb;
  --sky-soft: #e8f5fa;
  --muted: #556175;
  --line: #e0e1dc;
  --control-line: #7d8ba4;
  --accent: #b64d36;
  --glass: rgb(252 252 249 / 88%);
  --glass-edge: rgb(54 53 48 / 17%);
  --wait-surface: #f5f0e4;
  --wait-text: #685124;
  --danger-surface: #f6eeea;
  --danger-text: #823f2e;
  --heading: Archivo, 'DM Sans', Arial, sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
  --gutter: clamp(20px, 4.8vw, 78px);
  --edge: min(1232px, calc(100% - 2 * var(--gutter)));
  --round: 13px;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #f6f5ef;
  --brand: #ffdc54;
  --brand-hover: #f7cb38;
  --on-brand: #19180f;
  --link: #f6dc81;
  --paper: #151514;
  --surface: #212120;
  --soft: #292928;
  --sky-soft: #282c2a;
  --muted: #bcbdb5;
  --line: #3b3b38;
  --control-line: #797970;
  --accent: #ffac93;
  --glass: rgb(33 33 31 / 82%);
  --glass-edge: rgb(246 245 239 / 21%);
  --wait-surface: #3a301a;
  --wait-text: #f9d787;
  --danger-surface: #422b27;
  --danger-text: #ffc0ae;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 14px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.52 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.58;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}
#main:focus {
  outline: none;
}
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
h4,
.stat strong {
  font-family: var(--heading);
  font-weight: 750;
}
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.024em;
}
h1 {
  font-size: clamp(34px, 4.3vw, 54px);
  font-stretch: 94%;
}
h2 {
  font-size: clamp(23px, 2.35vw, 34px);
}
h3 {
  font-size: 22px;
}
strong {
  font-weight: 720;
}
.icon {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
  padding: 12px 18px;
  background: var(--sky);
  color: var(--brand);
  border-radius: 8px;
}
.muted,
small,
.quiet-empty {
  color: var(--muted);
}
.small-link,
.text-link,
.back {
  font-weight: 650;
}
.text-link,
.back,
.small-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--link);
  min-height: 40px;
}
.text-link:hover,
.small-link:hover,
.back:hover,
.footer-inner nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.menu-row,
.btn,
.icon-btn,
.menu-btn,
.heart,
.desktop-nav a,
.thread-card {
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 690;
  line-height: 1.36;
  white-space: normal;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn.primary:hover {
  background: var(--brand-hover);
}
.btn.outline {
  border-color: var(--control-line);
  background: transparent;
  color: var(--ink);
}
.btn.outline:hover {
  background: var(--soft);
  border-color: var(--ink);
}
.btn.small {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.87rem;
}
.icon-btn,
.menu-btn,
.heart {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
}
.icon-btn:hover,
.menu-btn:hover {
  background: var(--soft);
}
#topbar {
  background: var(--paper);
}
.top-inner,
.page,
.footer-inner {
  width: var(--edge);
  margin-inline: auto;
}
.top-inner {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.desktop-nav,
.top-actions {
  display: flex;
  align-items: center;
}
.desktop-nav {
  gap: clamp(3px, 1vw, 17px);
}
.desktop-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 13px;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 620;
  white-space: nowrap;
}
.desktop-nav a:hover,
.desktop-nav [aria-current] {
  background: var(--sky-soft);
}
.top-actions {
  gap: 8px;
}
.menu-btn {
  border: 1px solid var(--line);
}
.page {
  min-height: 55vh;
  padding-block: 28px 76px;
}
.page.narrow {
  max-width: 790px;
}
.leaf-a {
  height: 75%;
  width: 20%;
  bottom: -22%;
  right: 42%;
  transform: rotate(-60deg);
}
.leaf-b {
  height: 66%;
  width: 16%;
  bottom: -19%;
  right: 23%;
  transform: rotate(32deg);
  background: #91bed7;
}
.section-head,
.view-heading,
.result-head,
.row-between,
.card-line,
.profile-head,
.row-actions,
.form-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.section-head {
  margin: 0 0 17px;
}
.section-head h2 {
  font-size: clamp(26px, 2.25vw, 36px);
}
.section-head .text-link {
  font-size: 0.9rem;
  flex: none;
}
.pet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px clamp(14px, 1.65vw, 28px);
}
.pet-card {
  min-width: 0;
}
.card-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--round);
  background: var(--soft);
  aspect-ratio: 1.45;
}
.card-photo > a,
.card-photo img,
.guide-card > img,
.product-card > a > img,
.gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-photo img,
.guide-card img,
.product-card img {
  transition: transform 0.35s ease;
}
.pet-card:hover .card-photo img,
.guide-card:hover img,
.product-card:hover img {
  transform: scale(1.035);
}
.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--ink);
  background: var(--glass);
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
}
.heart::after {
  content: '';
  position: absolute;
  inset: -3px;
}
.heart:hover {
  background: var(--surface);
}
.heart.is-saved {
  background: var(--sky-soft);
  color: var(--link);
}
.heart.is-saved .icon,
.row-actions .is-saved .icon {
  fill: currentColor;
}
.card-info {
  display: block;
  padding: 12px 2px 0;
}
.card-line {
  align-items: baseline;
  gap: 7px;
}
.card-line h3,
.card-line h2 {
  font-size: clamp(19px, 1.55vw, 25px);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.card-line strong {
  font-size: clamp(13px, 1vw, 16px);
  flex: none;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.card-info p,
.card-place,
.product-card small {
  color: var(--muted);
  font-size: 0.86rem;
}
.card-info p {
  margin: 4px 0;
}
.card-place,
.large-place,
.profile-head p {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.care-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--soft);
  border-radius: 22px;
  padding: clamp(22px, 2.6vw, 42px);
  margin: 36px 0;
}
.strip-symbol,
.service-icon {
  background: transparent;
  color: var(--link);
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  flex: none;
  width: 56px;
  height: 56px;
}
.care-strip h2 {
  font-size: clamp(22px, 2.2vw, 32px);
}
.care-strip p {
  color: var(--muted);
  margin-top: 5px;
}
.care-strip > .btn {
  margin-left: auto;
  flex: none;
}
#footer {
  --footer-muted: #465264;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #f3f1e8;
}
[data-theme='dark'] #footer {
  --footer-muted: var(--muted);
  background: #101010;
}
.footer-inner {
  position: relative;
  z-index: 1;
  padding-block-start: 27px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px clamp(15px, 4.5vw, 30px);
  color: var(--footer-muted);
  font-size: 0.91rem;
  font-weight: 550;
}
.footer-group {
  display: flex;
  flex-direction: column;
}
.footer-group h2 {
  margin-bottom: 5px;
  color: var(--ink);
  font: 700 0.94rem / 1.3 var(--body);
}
.footer-group a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.footer-meta p {
  color: var(--footer-muted);
  font-size: 12px;
}
.footer-top {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 0.82rem;
  font-weight: 650;
}
.footer-top-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--control-line);
  border-radius: 50%;
}
.footer-top-icon .icon {
  transform: rotate(-90deg);
}
.footer-top:hover .footer-top-icon {
  background: var(--soft);
}
.footer-wordmark {
  position: relative;
  display: block;
  width: min(100%, 720px);
  height: clamp(52px, 14vw, 101px);
  margin-inline: auto;
  container-type: inline-size;
}
.footer-wordmark:focus-visible {
  outline-offset: -6px;
}
.footer-wordmark-letters {
  --wordmark-crop: 0.2em;
  position: absolute;
  inset: auto 0 calc(-1 * var(--wordmark-crop));
  clip-path: inset(0 0 var(--wordmark-crop));
  pointer-events: none;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--heading);
  font-size: min(25.5vw, 11.5rem);
  font-size: 25.5cqi;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.035em;
  opacity: 0.10;
}
[data-theme='dark'] .footer-wordmark-letters {
  opacity: 0.085;
}
.footer-wordmark:is(:hover, :focus-visible) .footer-wordmark-letters {
  opacity: 0.14;
}
.footer-letter {
  flex: none;
}
.footer-middle-p {
  font-size: 0.8em;
}
.footer-glyph {
  position: relative;
  display: block;
}
.footer-paw {
  position: absolute;
  inset: 0.045em auto auto calc(50% - 0.063em);
  width: 0.16em;
  height: 0.16em;
  filter: brightness(0);
  transform: rotate(-8deg);
}
[data-theme='dark'] .footer-paw {
  filter: brightness(0) invert(1);
}

@media (min-width: 640px) {
  .footer-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .footer-inner {
    padding-block-start: clamp(28px, 3.3vw, 48px);
  }
  .footer-nav {
    gap: clamp(16px, 3vw, 48px);
    font-size: 0.94rem;
  }
  .footer-group {
    align-items: flex-start;
  }
  .footer-group h2 {
    margin-bottom: 7px;
  }
  .footer-group a {
    min-height: 35px;
  }
  .footer-top {
    gap: 10px;
    font-size: 0.87rem;
  }
  .footer-top-icon {
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--sun);
    color: var(--on-sun);
  }
  .footer-top:hover .footer-top-icon {
    background: var(--sun-hover);
  }
  .footer-meta {
    gap: 14px;
    margin-top: 18px;
  }
  .footer-wordmark {
    width: min(100%, 1760px);
    height: clamp(76px, 5.3vw, 87px);
  }
  .footer-wordmark-letters {
    inset: auto 0 clamp(-0.255em, 54px - 9vw, -0.1em);
    clip-path: none;
    font-size: min(25.5vw, 28rem);
    font-size: 25.5cqi;
  }
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .footer-wordmark-letters,
  .footer-paw {
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .footer-wordmark:is(:hover, :focus-visible) .footer-wordmark-letters {
    transform: translateY(-0.028em);
  }
  .footer-wordmark:is(:hover, :focus-visible) .footer-paw {
    transform: rotate(6deg);
  }
}
#splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: var(--sky-soft);
  color: var(--brand);
  font: 740 40px/1 var(--heading);
  letter-spacing: -0.07em;
  animation: splash-failsafe 0.01s 2.4s forwards;
  pointer-events: none;
}
#splash img {
  width: 84px;
  height: 80px;
  object-fit: contain;
}
#splash > span span {
  color: var(--link);
}
#splash.gone {
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.15s,
    visibility 0.15s;
}
#splash.replay {
  animation: none;
}
@keyframes splash-failsafe {
  to {
    visibility: hidden;
    opacity: 0;
  }
}
