@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fcf3ec;
  --ivory: #fffaf6;
  --brown: #3b2215;
  --terracotta: #d7795b;
  --latte: #dad1ca;
  --muted: #7a685e;
}

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

html {
  min-width: 320px;
  background: var(--cream);
  color: var(--brown);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 75% 20%, rgba(215, 121, 91, 0.1), transparent 30rem),
    linear-gradient(135deg, #fffaf6 0%, var(--cream) 48%, #f7e8dc 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.28;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

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

p,
h1,
figure {
  margin: 0;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 40px, 1320px);
  min-height: 100svh;
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid rgba(59, 34, 21, 0.14);
}

.brand-logo {
  width: clamp(168px, 18vw, 228px);
  height: auto;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(215, 121, 91, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
  padding: clamp(48px, 7vh, 86px) 0;
}

.hero-copy {
  z-index: 2;
  max-width: 590px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.5rem, 8.5vw, 8.8rem);
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: -0.055em;
}

h1 em {
  position: relative;
  left: clamp(26px, 5vw, 70px);
  color: var(--terracotta);
  font-weight: 500;
}

.intro {
  max-width: 52ch;
  margin-top: clamp(38px, 7vh, 66px);
  color: rgba(59, 34, 21, 0.78);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.75;
}

.signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  color: var(--brown);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.13rem;
  font-style: italic;
  line-height: 1.25;
}

.signature-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(215, 121, 91, 0.32);
  border-radius: 50%;
  background: rgba(255, 250, 246, 0.7);
}

.signature-mark svg {
  width: 24px;
  fill: var(--terracotta);
}

.portrait-stage {
  position: relative;
  min-height: min(64vw, 670px);
}

.portrait {
  position: absolute;
  overflow: hidden;
  border: 9px solid rgba(255, 250, 246, 0.9);
  background: var(--ivory);
  box-shadow: 0 24px 70px rgba(59, 34, 21, 0.16);
  animation: portrait-arrival 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-dog {
  inset: 2% auto auto 7%;
  width: 61%;
  aspect-ratio: 0.72;
  transform: rotate(-3.5deg);
  border-radius: 48% 48% 22px 22px;
}

.portrait-cat {
  right: 2%;
  bottom: 3%;
  width: 47%;
  aspect-ratio: 0.82;
  transform: rotate(4deg);
  border-radius: 22px 22px 48% 48%;
  animation-delay: 130ms;
}

.hand-note {
  position: absolute;
  top: 11%;
  right: 0;
  z-index: 3;
  color: var(--terracotta);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-style: italic;
  transform: rotate(7deg);
  animation: note-arrival 700ms 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.decorative-line {
  position: absolute;
  right: 8%;
  bottom: 2%;
  width: 45%;
  height: 1px;
  background: var(--terracotta);
  opacity: 0.45;
  transform: rotate(-12deg);
  transform-origin: right;
}

.site-footer {
  padding: 22px 0 26px;
  border-top: 1px solid rgba(59, 34, 21, 0.14);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

@keyframes portrait-arrival {
  from {
    opacity: 0;
    translate: 0 28px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes note-arrival {
  from {
    opacity: 0;
    translate: -12px 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 32px, 660px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 52px 0 32px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    font-size: clamp(4.2rem, 20vw, 7rem);
  }

  .intro {
    max-width: 58ch;
  }

  .portrait-stage {
    min-height: min(112vw, 700px);
    margin-top: 10px;
  }

  .portrait-dog {
    left: 4%;
  }

  .hand-note {
    right: 4%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 480px);
  }

  .site-header {
    justify-content: center;
    padding: 22px 0;
  }

  .brand-logo {
    width: 190px;
  }

  .status {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(4.25rem, 24vw, 6.1rem);
    line-height: 0.74;
  }

  h1 em {
    left: 28px;
  }

  .intro {
    margin-top: 42px;
    font-size: 0.98rem;
  }

  .signature {
    margin-top: 24px;
  }

  .portrait-stage {
    min-height: 126vw;
  }

  .portrait {
    border-width: 6px;
  }

  .portrait-dog {
    width: 65%;
  }

  .portrait-cat {
    right: 0;
    width: 51%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
