/* Welcome Home Puppy: site styles
   Brand tokens live in :root. Do not add new colors or fonts. */

:root {
  --red: #C8372D;
  --red-hover: #B8302A;
  --red-dark: #9E2A22;
  --red-shadow: rgba(74, 20, 10, 0.45);
  --ink: #4A2A1E;
  --muted: #7A5646;
  --cream: #FFF7EC;
  --paper: #FFFFFF;
  --sand: #F0DCC4;
  --butter: #FCE9C4;
  --gold: #F4C35A;
  --gift: #FBE3A6;
  --display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--sand); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-block: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--display); font-weight: 600; font-size: 20px; text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--red);
  display: grid; place-items: center;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-weight: 700; font-size: 16px; }
.nav__link { text-decoration: none; padding-block: 10px; }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 16px; box-shadow: 0 3px 0 var(--red-shadow); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 16px 26px; border: 2px solid transparent; border-radius: 999px;
  font-family: var(--body); font-weight: 800; font-size: 17px; line-height: 1.2; text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:active { transform: translateY(2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-shadow); }
.btn--primary:hover { background: var(--red-hover); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn--secondary:hover { background: var(--cream); color: var(--ink); }
.btn--small { min-height: 48px; padding: 12px 20px; font-size: 16px; box-shadow: none; }
.btn--light { background: #fff; color: var(--red); box-shadow: 0 4px 0 var(--red-shadow); }
.btn--light:hover { color: var(--red-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn__tag { font-size: 12px; letter-spacing: 0.1em; opacity: 0.9; }
.btn--secondary .btn__tag { color: var(--muted); opacity: 1; }

/* ---------- Shared type ---------- */
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.pill {
  align-self: flex-start; background: var(--butter); padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.section { padding-block: 96px; }
.section--white { background: var(--paper); border-block: 1px solid var(--sand); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 36px; }
.section-title { font-weight: 600; font-size: clamp(34px, 4vw, 50px); line-height: 1.06; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__title {
  font-weight: 700; font-size: clamp(52px, 6.4vw, 88px); line-height: 0.98;
  letter-spacing: -0.015em; color: var(--red);
}
.hero__lede { max-width: 30ch; font-size: clamp(21px, 2vw, 25px); line-height: 1.45; font-weight: 700; }
.hero__byline { font-size: 17px; color: var(--muted); }
.hero__byline strong { color: var(--ink); }
.hero .actions { margin-top: 6px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 4px 0 0; padding: 0; list-style: none;
  font-size: 15px; font-weight: 700; color: var(--muted);
}
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }

.cover { position: relative; width: 100%; max-width: 380px; margin: 0; }
.cover::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px; background: var(--gold);
  transform: translate(18px, 18px) rotate(2deg);
}
.cover img {
  position: relative; width: 100%; aspect-ratio: 7 / 10; object-fit: cover;
  border-radius: 4px 12px 12px 4px; box-shadow: 0 30px 60px -24px rgba(74, 42, 30, 0.55);
}
.sticker {
  position: absolute; bottom: 90px; right: -26px; width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: #fff; color: var(--red); border: 3px solid var(--red); transform: rotate(10deg);
  font-family: var(--display); font-weight: 700; line-height: 1.05;
  box-shadow: 0 8px 18px -8px rgba(74, 42, 30, 0.5);
}
.sticker b { font-size: 26px; font-weight: 700; }
.sticker span { font-size: 13px; letter-spacing: 0.04em; }

/* ---------- Story ---------- */
.story .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; }
.story__head { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.story__title { font-weight: 600; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.04; }
.portrait {
  width: 240px; height: 240px; margin-top: 8px; border-radius: 50%; object-fit: cover;
  border: 6px solid var(--butter);
}
.story__lines {
  flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px;
  font-size: clamp(21px, 2.1vw, 26px); line-height: 1.5; font-weight: 600;
}
.story__last {
  margin-top: 8px; font-family: var(--display); font-weight: 600;
  font-size: clamp(25px, 2.6vw, 32px); line-height: 1.25; color: var(--red);
}

/* ---------- Look inside ---------- */
.inside { padding-block: 96px 40px; }
.spreads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin: 0; }
.spreads figure { margin: 0; }
.spreads img { width: 100%; aspect-ratio: 14 / 10; object-fit: cover; border-radius: 18px; background: var(--butter); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 30px;
  background: var(--paper); border: 2px solid var(--sand); border-radius: var(--radius);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--butter); color: var(--red);
}
.card h3 { margin-top: 6px; font-weight: 600; font-size: 24px; line-height: 1.2; }
.card p { color: var(--muted); }

/* ---------- Gift ---------- */
.gift { background: var(--gift); }
.gift .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 80px; }
.gift__art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.gift__art img {
  width: 100%; max-width: 400px; aspect-ratio: 1; object-fit: cover;
  border: 8px solid #fff; border-radius: 28px; transform: rotate(-3deg);
  box-shadow: 0 26px 50px -22px rgba(74, 42, 30, 0.55);
}
.gift__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.gift .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.gift__title { font-weight: 600; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.02; }
.gift__text { max-width: 38ch; font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--cream); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 800; }
.gift .actions { margin-top: 8px; }

/* ---------- Makers ---------- */
.makers { padding-block: 96px 24px; }
.makers .cards { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.maker {
  display: flex; gap: 22px; align-items: flex-start; padding: 30px;
  background: var(--paper); border: 2px solid var(--sand); border-radius: var(--radius);
}
.avatar {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--display); font-weight: 600; font-size: 30px;
  object-fit: cover;
}
.avatar--gold { background: var(--gold); color: var(--ink); }
.maker__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.maker h3 { font-weight: 600; font-size: 24px; line-height: 1.2; }
.maker__role { font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.maker p { margin-top: 4px; color: var(--muted); }

/* ---------- Details ---------- */
.specs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 0; overflow: hidden;
  background: var(--sand); border: 2px solid var(--sand); border-radius: var(--radius);
}
.spec { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; background: var(--paper); }
.spec dt { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-size: 19px; font-weight: 700; }

/* ---------- Review ask ---------- */
.review { padding-bottom: 96px; }
.review__box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: 40px; background: var(--paper); border: 2px solid var(--sand); border-radius: 28px;
}
.review__text { flex: 1 1 420px; min-width: 0; display: flex; align-items: flex-start; gap: 20px; }
.review__icon {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--butter); color: var(--red);
}
.review h2 { font-weight: 600; font-size: 30px; line-height: 1.15; }
.review p { margin-top: 6px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta { padding-bottom: 72px; }
.cta__box {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 80px 32px; text-align: center; background: var(--red); border-radius: 32px;
}
.cta__box h2 { position: relative; color: #fff; font-weight: 700; font-size: clamp(42px, 5.4vw, 68px); line-height: 1; }
.cta__box p { position: relative; color: #fff; font-size: 20px; }
.cta__box .actions { position: relative; justify-content: center; margin-top: 10px; }
.paw { position: absolute; fill: #fff; pointer-events: none; }
.paw--a { width: 220px; height: 220px; right: -30px; top: -30px; opacity: 0.12; transform: rotate(18deg); }
.paw--b { width: 140px; height: 140px; left: -24px; bottom: -28px; opacity: 0.1; transform: rotate(-24deg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--sand); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding-block: 28px 40px; font-size: 15px; color: var(--muted);
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { display: inline-block; padding-block: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav__link { display: none; }
  .site-header .wrap { flex-wrap: nowrap; gap: 8px; }
  .brand { gap: 8px; font-size: 17px; white-space: nowrap; }
  .brand-mark { width: 32px; height: 32px; }
  .nav .btn { padding: 10px 14px; font-size: 15px; white-space: nowrap; }
  .section { padding-block: 64px; }
  .hero { padding-block: 40px 64px; }
  .hero .wrap { gap: 48px; }
  .actions .btn { flex: 1 1 100%; }
  .cover { max-width: 300px; }
  .sticker { bottom: 64px; right: -10px; width: 84px; height: 84px; }
  .sticker b { font-size: 21px; }
  .sticker span { font-size: 11px; }
  .portrait { width: 180px; height: 180px; }
  .inside { padding-block: 64px 24px; }
  .makers { padding-block: 64px 16px; }
  .review { padding-bottom: 64px; }
  .review__box { padding: 28px 22px; }
  .cta__box { padding: 56px 22px; }
  .specs { grid-template-columns: 1fr; }
}
@media (max-width: 389px) {
  .brand { font-size: 15px; }
  .nav .btn { padding: 10px 12px; font-size: 14px; }
}

/* ---------- 404 ---------- */
.lost {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0 80px;
}
.lost h1 {
  font-weight: 700;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1;
  color: var(--red);
  margin-bottom: 16px;
}
.lost p {
  max-width: 28ch;
  margin: 0 auto 28px;
  font-size: 20px;
  color: var(--muted);
}
