:root {
  --cranberry: #a62c37;
  --cranberry-dark: #711d27;
  --cream: #f5f0e6;
  --paper: #ebe3d4;
  --ink: #182322;
  --pine: #304b41;
  --slate: #697d82;
  --gold: #d29b52;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(20px, 4vw, 64px); background: rgba(245, 240, 230, .96); border-bottom: 1px solid rgba(24,35,34,.16);
  position: relative; z-index: 20;
}
.brand { justify-self: start; display: flex; align-items: center; gap: 12px; }
.brand-mark, .footer-mark { font-family: "Fraunces", serif; font-size: 25px; font-weight: 700; letter-spacing: -2px; }
.brand-mark span, .footer-mark span { color: var(--cranberry); font-style: italic; }
.brand-copy { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.15; }
.brand-copy small { display: block; margin-top: 4px; color: #68716c; font-size: 9px; font-weight: 500; letter-spacing: .08em; }
nav { display: flex; gap: 32px; font-size: 13px; font-weight: 600; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--cranberry); transition: right .25s ease; }
nav a:hover::after { right: 0; }
.header-cta { justify-self: end; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: 13px; font-weight: 700; }
.menu-button { display: none; border: 0; background: none; font-weight: 700; }

.hero { min-height: 760px; height: calc(100vh - 88px); position: relative; overflow: hidden; display: flex; align-items: center; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(239,233,220,.93) 0%, rgba(239,233,220,.78) 27%, rgba(239,233,220,.1) 59%, transparent 75%); }
.hero-content { position: relative; z-index: 2; width: min(590px, 47vw); margin-left: clamp(24px, 7vw, 110px); margin-top: -20px; }
.eyebrow { margin: 0 0 18px; color: var(--cranberry); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Fraunces", serif; }
h1 { margin: 0; font-size: clamp(58px, 7vw, 106px); letter-spacing: -.055em; line-height: .88; }
h1 em { color: var(--cranberry); font-weight: 600; }
.hero-intro { width: min(450px, 100%); margin: 30px 0; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { border: 1px solid var(--ink); padding: 15px 21px; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: white; }
.button.secondary { background: rgba(245,240,230,.45); }
.weather-stamp { position: absolute; z-index: 2; right: clamp(20px, 4vw, 60px); bottom: 34px; display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--cranberry); color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.45); }
.stamp-kicker { font-size: 9px; letter-spacing: .18em; font-weight: 700; }
.weather-stamp strong { font-size: 15px; }
.weather-stamp > span:last-child { font-size: 12px; }

.marquee { overflow: hidden; background: var(--cranberry); color: white; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; gap: 26px; align-items: center; font-family: "Fraunces", serif; font-size: 16px; animation: crawl 26s linear infinite; }
.marquee-track i { color: #e4b978; font-size: 8px; }
@keyframes crawl { to { transform: translateX(-50%); } }

.meet-section { padding: 120px clamp(22px, 6vw, 96px); }
.section-heading { display: grid; grid-template-columns: 1fr 1.4fr .8fr; gap: 40px; align-items: end; margin-bottom: 90px; }
.section-heading h2, .notes-title h2, .day-picker h2, .favorites > h2 { margin: 0; font-size: clamp(42px, 5.3vw, 78px); line-height: .98; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 300px; color: #55615d; line-height: 1.7; }
.dog-profile { min-height: 470px; display: grid; grid-template-columns: 60px minmax(300px, 1.1fr) minmax(300px, .9fr); align-items: stretch; border-top: 1px solid rgba(24,35,34,.28); position: relative; }
.dog-profile + .dog-profile { margin-top: 34px; }
.profile-number { padding-top: 24px; font-family: "Fraunces", serif; font-size: 18px; color: var(--cranberry); }
.dog-portrait { margin: 22px 0; min-height: 390px; display: flex; align-items: flex-end; padding: 25px; background-size: cover; background-position: center; overflow: hidden; position: relative; }
.dog-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 45%); }
.dog-portrait span { color: white; position: relative; z-index: 1; letter-spacing: .32em; font-size: 11px; font-weight: 700; }
.portrait-micha { background-image: url('/assets/micha-miko-coast.png'); background-position: 58% center; }
.portrait-miko { background-image: url('/assets/micha-miko-coast.png'); background-position: 88% center; }
.profile-copy { padding: 65px clamp(20px, 5vw, 80px); }
.profile-copy h3 { margin: 0 0 18px; font-size: 62px; line-height: 1; }
.profile-lede { font-size: 18px; line-height: 1.65; max-width: 470px; }
dl { margin: 42px 0 0; }
dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid rgba(24,35,34,.15); font-size: 13px; }
dt { color: #69726e; } dd { margin: 0; font-weight: 700; }
.miko-profile .dog-portrait { order: 3; }
.miko-profile .profile-copy { order: 2; }
.miko-profile .profile-number { order: 1; }

.field-notes { background: var(--pine); color: #f7f1e8; padding: 110px clamp(22px, 6vw, 96px); }
.notes-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.notes-title h2 { max-width: 670px; }
.notes-title h2 em { color: #d9b27b; }
.field-notes .eyebrow { color: #d9b27b; align-self: flex-start; margin-top: 18px; }
.route-line { height: 80px; border-bottom: 1px solid rgba(255,255,255,.25); display: flex; justify-content: space-around; align-items: end; }
.route-line span { width: 11px; height: 11px; margin-bottom: -6px; background: #d9b27b; border: 3px solid var(--pine); outline: 1px solid #d9b27b; border-radius: 50%; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 90px); padding-top: 40px; }
.notes-grid article { position: relative; }
.note-index { color: #d9b27b; font-family: "Fraunces", serif; }
.note-place { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .65; }
.notes-grid h3 { font-size: 27px; line-height: 1.18; margin: 18px 0; }
.notes-grid article > p:last-child { color: #cbd5cd; font-size: 14px; line-height: 1.7; }

.day-picker { padding: 110px clamp(22px, 6vw, 96px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; background: var(--paper); }
.picker-copy { grid-row: span 2; }
.picker-copy > p:last-child { font-size: 17px; color: #5d6662; }
.picker-controls { border-top: 1px solid rgba(24,35,34,.3); }
.plan-choice { width: 100%; display: flex; gap: 22px; padding: 18px 8px; border: 0; border-bottom: 1px solid rgba(24,35,34,.3); background: transparent; color: #6b716d; cursor: pointer; font-size: 18px; text-align: left; }
.plan-choice span { font-size: 11px; color: var(--cranberry); padding-top: 5px; }
.plan-choice.active { color: var(--ink); font-weight: 700; padding-left: 18px; }
.plan-result { background: var(--cream); padding: 28px; }
.result-meter { height: 6px; background: #d5cdbc; margin-bottom: 24px; }
#meter-fill { display: block; width: 50%; height: 100%; background: var(--cranberry); transition: width .4s ease; }
.plan-result p { min-height: 48px; line-height: 1.5; }
.plan-result strong { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

.favorites { padding: 110px clamp(22px, 6vw, 96px); }
.favorite-list { margin-top: 60px; border-top: 1px solid rgba(24,35,34,.3); }
.favorite-list > div { display: grid; grid-template-columns: 60px 1fr 200px; align-items: center; min-height: 95px; border-bottom: 1px solid rgba(24,35,34,.3); transition: padding .2s, color .2s, background .2s; }
.favorite-list > div:hover { padding: 0 20px; background: var(--cranberry); color: white; }
.favorite-list span { color: var(--cranberry); font-size: 11px; }
.favorite-list > div:hover span { color: #f0c687; }
.favorite-list h3 { font-size: 24px; margin: 0; }
.favorite-list p { color: #68716c; font-size: 13px; }
.favorite-list > div:hover p { color: white; }

footer { background: var(--ink); color: white; min-height: 160px; padding: 40px clamp(22px, 6vw, 96px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
footer p { font-family: "Fraunces", serif; font-size: 18px; }
footer a { font-size: 12px; border-bottom: 1px solid white; }
.footer-mark { font-size: 38px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 50; background: var(--ink); color: white; padding: 14px 20px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .35s ease; }
.toast.show { transform: translate(-50%, 0); }
body.miko-mode * { animation-duration: 0s !important; }
body.miko-mode .hero > img { filter: saturate(.7) sepia(.12); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; height: 72px; }
  .header-cta { display: none; }
  .menu-button { display: block; }
  nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 24px; flex-direction: column; background: var(--cream); border-bottom: 1px solid #bbb3a5; }
  nav.open { display: flex; }
  .hero { height: 780px; min-height: 0; align-items: flex-end; }
  .hero > img { object-position: 61% center; }
  .hero-wash { background: linear-gradient(0deg, rgba(239,233,220,.97) 0%, rgba(239,233,220,.78) 35%, transparent 67%); }
  .hero-content { width: auto; margin: 0 24px 70px; }
  .weather-stamp { display: none; }
  .section-heading { grid-template-columns: 1fr; margin-bottom: 55px; }
  .dog-profile { grid-template-columns: 42px 1fr; }
  .dog-portrait { min-width: 0; }
  .profile-copy { grid-column: 2; padding: 35px 5px 60px; }
  .miko-profile .dog-portrait { order: initial; }
  .miko-profile .profile-copy { order: initial; }
  .miko-profile .profile-number { order: initial; }
  .notes-title { display: block; }
  .notes-grid { grid-template-columns: 1fr; }
  .route-line { display: none; }
  .notes-grid article { padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .day-picker { grid-template-columns: 1fr; }
  .picker-copy { grid-row: auto; }
}

@media (max-width: 600px) {
  .brand-copy { display: none; }
  .hero { height: 720px; }
  h1 { font-size: 56px; }
  .hero-intro { font-size: 15px; }
  .button { width: 100%; }
  .meet-section, .field-notes, .day-picker, .favorites { padding-top: 78px; padding-bottom: 78px; }
  .dog-profile { display: block; }
  .profile-number { display: block; }
  .dog-portrait { min-height: 350px; }
  .profile-copy h3 { font-size: 50px; }
  .favorite-list > div { grid-template-columns: 42px 1fr; padding: 16px 0; }
  .favorite-list p { grid-column: 2; margin: 5px 0; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  * { transition-duration: .01ms !important; }
}
