:root {
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --ink: #2b2621;
  --muted: #766b60;
  --orange: #d96c32;
  --orange-dark: #a54220;
  --gold: #efb64f;
  --green: #314d43;
  --line: rgba(43, 38, 33, 0.14);
  --shadow: 0 24px 60px rgba(76, 50, 31, 0.12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 231, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(76, 50, 31, 0.06); }
.nav-wrap {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 45% 45%;
  background: var(--orange);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.08);
}
.site-nav { display: flex; align-items: center; gap: 30px; font-size: .94rem; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-contact):hover { color: var(--orange-dark); }
.nav-contact { padding: 10px 17px; border-radius: 999px; background: var(--ink); color: white; }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }
.menu-button span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px; background: var(--ink); }

.section-pad { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  padding-top: 74px;
  padding-bottom: 100px;
}
.eyebrow { margin: 0 0 15px; color: var(--orange-dark); font-size: .76rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.03; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(3.4rem, 7vw, 6.8rem); font-weight: 500; }
h1 em { color: var(--orange); font-weight: 500; }
.hero-lede { max-width: 610px; margin: 28px 0 34px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.23rem); }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform 160ms ease, background-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: white; box-shadow: 0 12px 24px rgba(217, 108, 50, .2); }
.button-primary:hover { background: var(--orange-dark); }
.text-link { font-weight: 800; text-underline-offset: 5px; }
.hero-photo-wrap { position: relative; min-height: 540px; display: grid; place-items: center; }
.sun-disc { position: absolute; width: min(36vw, 430px); aspect-ratio: 1; border-radius: 50%; background: var(--gold); opacity: .9; transform: translate(7%, -4%); }
.hero-photo { position: relative; width: min(100%, 430px); aspect-ratio: 4 / 5; object-fit: cover; border: 10px solid var(--paper); border-radius: 48% 48% 22px 22px; box-shadow: var(--shadow); }
.photo-note { position: absolute; right: 2%; bottom: 7%; margin: 0; padding: 12px 18px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); font-size: .9rem; font-weight: 800; transform: rotate(-3deg); }
.photo-note span { color: var(--orange); }

.story { padding-top: 110px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.7rem); font-weight: 500; }
.story-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 18px; }
.story-card { min-height: 305px; padding: clamp(28px, 4vw, 46px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.story-card-main { background: var(--green); color: white; }
.story-card p { margin: 0; }
.story-card-main p + p { margin-top: 20px; color: rgba(255,255,255,.78); }
.dropcap::first-letter { float: left; margin: .03em .12em 0 0; color: var(--gold); font-family: Georgia, serif; font-size: 4.8rem; line-height: .8; }
.detail-number { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #f3dfc2; color: var(--orange-dark); font-size: .76rem; font-weight: 900; }
.detail-card h3 { margin: 60px 0 14px; font-size: 1.8rem; }
.detail-card p { color: var(--muted); }

.gallery { padding-top: 110px; padding-bottom: 120px; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
.split-heading > p { max-width: 440px; margin: 0 0 5px; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: 16px; }
.gallery-item { position: relative; grid-column: span 4; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 20px; background: #ddd; cursor: zoom-in; }
.gallery-item-wide { grid-column: span 8; }
.gallery-item-tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-item span { position: absolute; left: 14px; bottom: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(255,253,248,.9); color: var(--ink); font-size: .79rem; font-weight: 800; backdrop-filter: blur(8px); }

.adopt { padding-top: 30px; padding-bottom: 120px; }
.adopt-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: clamp(38px, 6vw, 78px); border-radius: 36px; background: var(--orange); color: white; box-shadow: var(--shadow); }
.adopt-panel .eyebrow { color: #ffe0a5; }
.adopt-panel h2 { max-width: 520px; margin: 0; font-size: clamp(2.5rem, 4.5vw, 4.6rem); font-weight: 500; }
.adopt-copy > p { max-width: 520px; margin: 4px 0 28px; color: rgba(255,255,255,.86); font-size: 1.08rem; }
.adopt-links { display: flex; flex-wrap: wrap; gap: 12px; }
.button-light { background: white; color: var(--orange-dark); }
.button-outline-light { border: 1px solid rgba(255,255,255,.6); color: white; }
.button-outline-light:hover { background: rgba(255,255,255,.1); }

.contact { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 500px; margin-bottom: 100px; padding: 0; overflow: hidden; border-radius: 36px; background: var(--paper); box-shadow: var(--shadow); }
.contact-card { align-self: center; padding: clamp(38px, 7vw, 86px); }
.contact-card h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; }
.contact-card p:not(.eyebrow) { margin: 20px 0 30px; color: var(--muted); font-size: 1.08rem; }
.contact > img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }

.site-footer { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 34px 0 45px; border-top: 1px solid var(--line); display: flex; align-items: end; justify-content: space-between; gap: 30px; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--ink); }

.lightbox { width: min(920px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: visible; border: 0; border-radius: 22px; background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.lightbox::backdrop { background: rgba(25,20,16,.84); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 22px 22px 0 0; background: #17130f; }
.lightbox p { margin: 0; padding: 14px 20px 18px; text-align: center; font-weight: 700; }
.lightbox-close { position: absolute; top: -14px; right: -10px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: white; color: var(--ink); box-shadow: 0 8px 25px rgba(0,0,0,.25); font-size: 1.8rem; line-height: 1; cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo-wrap { min-height: 500px; }
  .sun-disc { width: min(70vw, 420px); }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-card-main { grid-column: 1 / -1; }
  .adopt-panel, .contact { grid-template-columns: 1fr; }
  .contact > img { min-height: 360px; max-height: 430px; }
}

@media (max-width: 720px) {
  .nav-wrap { min-height: 68px; }
  .menu-button { display: block; z-index: 2; cursor: pointer; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 14px 25px rgba(76, 50, 31, .1); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-contact { margin-top: 5px; text-align: center; }
  .hero { min-height: auto; padding-top: 45px; padding-bottom: 80px; }
  .hero-photo-wrap { min-height: 420px; }
  .hero-photo { width: min(86%, 400px); }
  .photo-note { right: 1%; }
  .story, .gallery { padding-top: 80px; padding-bottom: 90px; }
  .story-grid, .split-heading { grid-template-columns: 1fr; }
  .split-heading { gap: 18px; }
  .gallery-grid { grid-auto-rows: 200px; }
  .gallery-item, .gallery-item-wide { grid-column: span 6; }
  .adopt-panel { gap: 32px; padding: 36px 26px; }
  .contact { margin-bottom: 70px; }
  .site-footer { align-items: start; flex-direction: column; }
}

@media (max-width: 480px) {
  .section-pad, .nav-wrap, .site-footer { width: min(100% - 28px, 1180px); }
  h1 { font-size: clamp(3rem, 16vw, 4rem); }
  .hero-photo-wrap { min-height: 350px; }
  .hero-photo { border-width: 7px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card-main { grid-column: auto; }
  .gallery-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .gallery-item, .gallery-item-wide, .gallery-item-tall { grid-column: auto; grid-row: auto; }
  .adopt-links .button { width: 100%; }
  .contact { border-radius: 26px; }
  .contact > img { min-height: 300px; }
}

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