/* Whiskers & Hound — coming soon */

@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("fonts/mulish.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #141715;
  --oat: #cfc3a9;
  --cream: #f2efe6;
  --brass: #d8ab5c;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Mulish", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(22px, 6vw, 96px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #1c2b26;
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, p, address { margin: 0; }

/* ───────── The whole page ───────── */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--night);
  overflow: hidden;
}

.hero-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* The dog's nose sits 59% across the photo. Pin that point at 47% of the
   viewport so the right-hand side is always clear for the words. */
.hero-photo img {
  position: absolute;
  top: 50%;
  left: 47vw;
  width: max(130vw, 200vh);
  max-width: none;
  height: auto;
  transform: translate(-59%, -47%);
  animation: fade 1.4s ease both;
}
/* Windsor-green wash, weighted to the right where the words sit */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(31, 48, 42, .18) 0%, rgba(31, 48, 42, .5) 46%, rgba(26, 40, 35, .84) 100%),
    linear-gradient(180deg, rgba(20, 23, 21, .5) 0%, rgba(20, 23, 21, 0) 26%, rgba(20, 23, 21, .3) 100%),
    rgba(58, 85, 76, .34);
}

.logo {
  width: clamp(64px, 8vw, 112px);
  margin: clamp(18px, 3vw, 34px) var(--gutter) 0;
}

.hero-body {
  align-self: center;
  justify-self: end;
  width: calc(min(33rem, 38vw) + var(--gutter));
  padding: 40px var(--gutter) clamp(72px, 14vh, 150px) 0;
}
.hero-body > * { animation: rise .9s var(--ease) both; }
.hero-body > :nth-child(2) { animation-delay: .08s; }
.hero-body > :nth-child(3) { animation-delay: .16s; }
.hero-body > :nth-child(4) { animation-delay: .24s; }

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}
.label::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin-top: 20px;
  font-family: var(--display);
  font-variation-settings: "opsz" 14;
  font-weight: 400;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--oat);
}

.tagline {
  margin-top: 18px;
  max-width: 26rem;
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
}

address {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 239, 230, .28);
  max-width: 26rem;
  font-style: normal;
  font-size: 15px;
  letter-spacing: .04em;
}
address a {
  color: var(--oat);
  text-decoration: none;
  transition: color .2s;
}
address a:hover { color: var(--brass); }
address a:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-photo img, .hero-body > * { animation: none; }
}

/* ───────── Phones, tablets, any portrait window ─────────
   (a phone turned sideways keeps the side-by-side layout above) */

@media (max-width: 900px) and (max-aspect-ratio: 5/4), (max-aspect-ratio: 1/1) {
  /* Dog up top, words below on the dark blanket */
  .hero-photo img {
    top: 0;
    left: 0;
    width: 100%;
    height: 62%;
    object-fit: cover;
    object-position: 30% 0%;
    transform: none;
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(20, 23, 21, .42) 0%, rgba(26, 40, 35, .1) 22%, rgba(26, 40, 35, .82) 50%, #1c2b26 62%),
      rgba(58, 85, 76, .3);
  }
  .hero-body {
    align-self: end;
    justify-self: start;
    width: min(100%, 40rem);
    padding: 40vh var(--gutter) 48px;
  }
  h1 { font-size: clamp(2.5rem, 9vw, 4rem); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
}

/* Short phones: shrink the photo so everything still fits on one screen */
@media (max-width: 900px) and (max-height: 700px) and (max-aspect-ratio: 5/4) {
  .hero-photo img { height: 50%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(20, 23, 21, .42) 0%, rgba(26, 40, 35, .1) 16%, rgba(26, 40, 35, .88) 38%, #1c2b26 50%),
      rgba(58, 85, 76, .3);
  }
  .hero-body { padding-top: 24vh; padding-bottom: 32px; }
  address { margin-top: 24px; padding-top: 18px; }
}
