:root {
  --paper: #efece6;
  --paper-soft: #f7f5f1;
  --ink: #1c1f23;
  --muted: #565a60;
  --line: #d3cfc7;
  --field: #85888c;
  --sans: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* The Denver photo stays fixed behind the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/denver.jpg") center bottom / cover no-repeat;
}
a { color: inherit; text-decoration-color: var(--field); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
p + p { margin-top: 1em; }

.wrap { width: 100%; max-width: 62rem; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--ink); color: var(--paper-soft); padding: .5rem 1rem; }

/* Sticky header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1.5rem; padding-block: .75rem; }
.brand { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; font-size: .9375rem; }
.site-header nav a:not(.button) { color: var(--muted); text-decoration: none; padding-block: .3rem; }
.site-header nav a:not(.button):hover { color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.button {
  display: inline-block;
  padding: .75rem 1.4rem;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-soft);
  font: 600 1rem/1.3 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s;
}
.button:hover { background: #3b4047; }
.button-small { padding: .45rem .9rem; font-size: .875rem; }

main {
  margin-block: clamp(1rem, 4vh, 2.5rem) clamp(2rem, 22vh, 13rem);
  padding-block: clamp(2rem, 6vh, 3.5rem);
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(20, 24, 30, .25);
}
h1 { font-size: clamp(2.25rem, 6.5vw, 3.75rem); font-weight: 650; line-height: 1.06; letter-spacing: -.03em; }
.lead { margin-top: 1rem; font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 40rem; }
.eyebrow { margin-bottom: .75rem; color: var(--muted); font-size: .9375rem; font-weight: 500; }
.actions { margin-top: 2rem; }
.muted { color: var(--muted); font-size: .9375rem; }
.label { font-size: .8125rem; font-weight: 600; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.credentials { margin-left: .5em; font-size: .36em; font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.photo { display: block; width: 8rem; height: 8rem; object-fit: cover; border-radius: 50%; margin-bottom: 1.5rem; }

.hero { padding-block: clamp(.5rem, 3vh, 2rem); }
main > section:not(.hero):not(.band) { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
main > section:not(.hero):not(.band) > .label { margin-bottom: 1rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.5rem; }
main > section .cards { margin-top: 0; }
.card { display: block; padding: 1.25rem 1.5rem; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: var(--ink); }
.card h2, .card h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.card p { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }

.prose { max-width: 42rem; }
.prose > p:not(.lead):not(.eyebrow) { margin-top: 1.25rem; }
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding: 1.5rem; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 10px; }
.band h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; }

.split { display: grid; gap: .75rem; }
.split > .label { margin-bottom: 0; }
.items { display: grid; gap: 1.25rem; padding: 0; list-style: none; }
.item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
.item-title { font-weight: 600; }
.items p { margin-top: .35rem; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
.form { display: grid; gap: 1.1rem; align-content: start; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9375rem; }
.form input, .form textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--field);
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
}
.form .trap { position: absolute; left: -999px; width: 1px; height: 1px; }
.form .button { justify-self: start; }
.note { color: var(--muted); font-size: .875rem; }
.details { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; overflow-wrap: anywhere; }
.details dt { color: var(--muted); font-size: .9375rem; }
.map { display: block; width: 100%; height: 18rem; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 10px; }

.site-footer { margin-top: auto; background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; padding-block: 1rem; }
.credit { font-size: .8125rem; }

@media (min-width: 44rem) {
  .split { grid-template-columns: 10rem 1fr; gap: 2rem; }
  .split > .label { padding-top: .25rem; }
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
}

/* Quote widget */
.quote { margin: 2rem 0 0; padding: 1.25rem 1.5rem; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 10px; transition: opacity .25s; }
.quote.fading { opacity: 0; }
.quote blockquote { font-size: 1.1875rem; font-weight: 500; line-height: 1.45; letter-spacing: -.01em; min-height: 5.8em; }
.quote figcaption { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }
.quote-controls { display: flex; gap: 1rem; margin-top: .5rem; }
.text-button { padding: .2rem 0; border: 0; background: none; color: var(--muted); font: 500 .875rem/1.4 var(--sans); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.text-button:hover { color: var(--ink); }
@media (min-width: 44rem) { .quote blockquote { min-height: 4.4em; } }

/* Sigi and Alfi */
.dogs { position: fixed; right: clamp(.5rem, 3vw, 2rem); bottom: 0; z-index: 9; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.dogs > * { pointer-events: auto; }
.dog-row { display: flex; align-items: flex-end; gap: .25rem; }
.dog-row[hidden] { display: none; }
.dog { display: block; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.dog canvas { display: block; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(20, 24, 30, .35)); }
.dog:hover { transform: translateY(-2px); }
.dog:focus-visible { outline-offset: 1px; border-radius: 6px; }
.dog-pill { margin-bottom: .35rem; padding: .15rem .6rem; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--muted); font: 500 .75rem/1.5 var(--sans); cursor: pointer; }
.dog-pill:hover { color: var(--ink); }
.dog-pills { display: flex; gap: .35rem; }
.dog-pills[hidden] { display: none; }
.dog-pill[hidden] { display: none; }
.dog-bubble { width: min(20rem, calc(100vw - 1rem)); margin-bottom: .5rem; padding: .9rem 1rem; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20, 24, 30, .3); font-size: .9375rem; line-height: 1.45; }
.dog-bubble[hidden] { display: none; }
.dog-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.dog-actions button { padding: .3rem .6rem; border: 1px solid var(--field); border-radius: 6px; background: var(--paper); color: var(--ink); font: 500 .8125rem/1.3 var(--sans); cursor: pointer; }
.dog-actions button:hover { border-color: var(--ink); }
.dog-actions button[hidden] { display: none; }
.dog-actions .dog-game { background: var(--ink); border-color: var(--ink); color: var(--paper-soft); }
@media (prefers-reduced-motion: reduce) {
  .quote, .dog:hover { transition: none; transform: none; }
}

/* Treat Catch */
.game { width: min(64rem, calc(100vw - 1.5rem), max(20rem, calc((100dvh - 14rem) * 1.5))); max-height: calc(100dvh - 1.5rem); margin: auto; padding: 1rem 1.25rem 1.25rem; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(20, 24, 30, .5); }
.game::backdrop { background: rgba(20, 24, 30, .65); }
.game-head, .game-hud { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.game-head h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
.game-hud { margin-block: .4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.game-hud span:last-child { color: #c8344f; letter-spacing: .1em; }
.game-canvas { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 6px; image-rendering: pixelated; touch-action: none; cursor: none; }
.game-message { margin-top: .6rem; font-size: .9375rem; line-height: 1.45; }
.game-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.game h3 { margin-top: .8rem; font-size: .875rem; font-weight: 600; }
.game-scores { margin: .2rem 0 0; padding-left: 1.25rem; font-size: .875rem; }
.game-scores .new { font-weight: 700; }

/* Pet and treat effects */
.dog-effect { position: absolute; z-index: 1; line-height: 1; pointer-events: none; translate: -50% 50%; }
.dog-heart { font-size: 1.25rem; }
.dog-hand { font-size: 2rem; }
.dog-treat { font-size: 1.75rem; }
