:root {
  --ink: #262821;
  --paper: #f5efe3;
  --cream: #fffaf0;
  --dog: #d8644d;
  --dog-dark: #723b2e;
  --cat: #547c7d;
  --cat-dark: #2d4a4c;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.landing {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(45, 43, 36, .08) .7px, transparent .7px);
  background-size: 5px 5px;
}

.landing-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 30px; }

.brand { text-align: center; }

.brand__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #777066;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand h1 { margin: 0; font-family: "Fraunces", serif; font-size: clamp(48px, 7vw, 82px); line-height: .85; letter-spacing: -.055em; }
.brand h1 span:first-child { color: var(--dog); }
.brand h1 span:last-child { color: var(--cat); }
.brand h1 i { color: #b29a71; font-size: .68em; font-weight: 600; }
.brand p { margin: 22px auto 0; max-width: 480px; color: #6d695f; font-size: 15px; }

.pet-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 42px; }

.pet-choice {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(38,40,33,.12);
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(67,54,35,.09);
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
}

.pet-choice:hover { transform: translateY(-6px); box-shadow: 0 24px 55px rgba(67,54,35,.16); }
.pet-choice::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,250,240,.97) 0 43%, rgba(255,250,240,.25) 70%, transparent); }
.pet-choice img { position: absolute; inset: 0 0 0 auto; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.pet-choice:hover img { transform: scale(1.025); }
.pet-choice__content { position: absolute; inset: 0 auto 0 0; display: flex; width: 52%; flex-direction: column; justify-content: center; align-items: flex-start; padding: 34px; }
.pet-choice__content small { margin-bottom: 14px; color: #796f63; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.pet-choice__content strong { font-family: "Fraunces", serif; font-size: clamp(31px, 3.5vw, 49px); line-height: .95; letter-spacing: -.04em; }
.dog-choice strong { color: var(--dog-dark); }
.cat-choice strong { color: var(--cat-dark); }
.pet-choice__content > span { display: inline-flex; gap: 16px; align-items: center; margin-top: 27px; border-bottom: 1px solid currentColor; padding-bottom: 5px; font-size: 12px; font-weight: 700; }
.pet-choice__content b { font-size: 18px; transition: transform .2s ease; }
.pet-choice:hover .pet-choice__content b { transform: translateX(5px); }

.landing-footer { margin-top: 28px; color: #8b8479; text-align: center; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.landing-footer span { margin: 0 12px; color: #b29a71; }

.wisdom-page { background: var(--paper); }
.dog-page { --accent: var(--dog); --accent-dark: var(--dog-dark); --tint: #eeb3a2; }
.cat-page { --accent: var(--cat); --accent-dark: var(--cat-dark); --tint: #a8c0b9; }
.wisdom-shell { width: min(1050px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 24px; }

.wisdom-card { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 650px; overflow: hidden; border: 1px solid rgba(38,40,33,.13); border-radius: 24px; background: var(--cream); box-shadow: 0 24px 70px rgba(68,55,36,.11); }
.pet-portrait { position: relative; min-height: 590px; overflow: hidden; background: var(--tint); }
.pet-portrait::after { content: ""; position: absolute; inset: 0; box-shadow: inset -40px 0 65px rgba(33,32,27,.08); pointer-events: none; }
.pet-portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-stamp { position: absolute; right: 24px; bottom: 24px; display: grid; width: 64px; height: 64px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; place-items: center; background: rgba(114,59,46,.75); color: #fff8ec; text-align: center; font-family: "Fraunces", serif; font-size: 13px; line-height: .8; transform: rotate(-9deg); backdrop-filter: blur(5px); }
.portrait-stamp--cat { background: rgba(45,74,76,.78); }

.wisdom-content { display: flex; flex-direction: column; padding: clamp(36px, 6vw, 72px); }
.date-row { display: flex; justify-content: space-between; align-items: center; color: #8b8478; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.edition { border: 1px solid rgba(38,40,33,.17); border-radius: 50px; padding: 7px 11px; }
.edition b { color: var(--accent); }
.kicker { margin: auto 0 16px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.wisdom-content h1 { margin: 0; overflow-wrap: anywhere; color: var(--accent-dark); font-family: "Fraunces", serif; font-size: clamp(35px, 4.2vw, 57px); line-height: 1.02; letter-spacing: -.045em; }
.wisdom-content h1.is-long { font-size: clamp(31px, 3.7vw, 49px); }
.wisdom-content h1.is-very-long { font-size: clamp(28px, 3.25vw, 43px); }
.paw-divider { display: flex; gap: 6px; margin: 25px 0 20px; color: var(--accent); transform: rotate(-5deg); }
.paw-divider span { font-size: 6px; }
.paw-divider span:nth-child(2) { transform: translateY(-5px); }
.cat-divider span { font-size: 8px; }
.interpretation { margin: 0; color: #5f5c54; font-size: clamp(14px, 1.5vw, 17px); line-height: 1.65; }
.signature { margin: 17px 0 30px; color: #979084; font-family: "Fraunces", serif; font-size: 12px; font-style: italic; }
.wisdom-footer { display: flex; justify-content: space-between; align-items: center; padding: 22px 4px 0; color: #8c8579; font-size: 10px; }
.wisdom-footer p { margin: 0; text-transform: uppercase; letter-spacing: .1em; }
.wisdom-footer strong { color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.wisdom-footer > span { font-family: "Fraunces", serif; font-style: italic; }
@media (max-width: 760px) {
  .landing-shell { width: min(100% - 24px, 560px); padding-top: 38px; }
  .brand h1 { font-size: clamp(45px, 14vw, 65px); }
  .brand p { padding: 0 15px; }
  .pet-choices { grid-template-columns: 1fr; margin-top: 32px; }
  .pet-choice { min-height: 370px; }
  .pet-choice__content { width: 58%; padding: 25px; }
  .wisdom-shell { width: min(100% - 22px, 540px); padding-top: 18px; }
  .wisdom-card { display: block; min-height: 0; }
  .pet-portrait { height: min(84vw, 430px); min-height: 0; }
  .pet-portrait::after { box-shadow: inset 0 -35px 55px rgba(33,32,27,.1); }
  .wisdom-content { min-height: 530px; padding: 32px 27px; }
  .kicker { margin-top: 48px; }
  .wisdom-content h1 { font-size: clamp(34px, 10vw, 49px); }
  .wisdom-content h1.is-long { font-size: clamp(29px, 8vw, 40px); }
  .wisdom-content h1.is-very-long { font-size: clamp(27px, 7.2vw, 36px); }
  .wisdom-footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 390px) {
  .pet-choice { min-height: 335px; }
  .pet-choice::after { background: linear-gradient(90deg, rgba(255,250,240,.97) 0 47%, rgba(255,250,240,.15) 78%, transparent); }
  .pet-choice__content strong { font-size: 31px; }
  .date-row time { max-width: 130px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
