/* =========================================================
   Adopt Oliver — design tokens
   bg    #F7F4EC  warm oat paper
   ink   #1E1B17  near-black warm charcoal (Oliver's coat)
   amber #A6672A  deep honey (Oliver's eyes)
   amber-soft #D9A15C
   line  #E2D9C6  hairline / dividers
   brindle #3B2F26 deep umber, used in the brindle-stripe motif
   ========================================================= */

:root {
  --bg: #F7F4EC;
  --paper: #FDFBF6;
  --ink: #1E1B17;
  --ink-soft: #55503F;
  --amber: #A6672A;
  --amber-soft: #D9A15C;
  --line: #E2D9C6;
  --brindle: #3B2F26;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.9em;
}

.eyebrow-light { color: var(--amber-soft); }

/* focus visibility */
a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* =========== buttons =========== */
.btn {
  display: inline-block;
  padding: 0.95em 2em;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--amber);
  color: #FFF8ED;
}
.btn-primary:hover {
  background: #8f5620;
  transform: translateY(-1px);
}
.btn-light {
  background: var(--amber-soft);
  color: var(--brindle);
}
.btn-light:hover {
  background: #eab876;
  transform: translateY(-1px);
}

/* =========== nav =========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
  color: var(--ink);
}
.nav.scrolled .wordmark { color: var(--ink); }
.hero .wordmark { color: #fff; }
.nav:not(.scrolled) .wordmark { color: #fff; }
.wordmark-dot { color: var(--amber-soft); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { opacity: 1; }
.nav.scrolled .nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 0.55em 1.3em;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.5);
  opacity: 1 !important;
}
.nav.scrolled .nav-cta {
  background: var(--amber);
  color: #FFF8ED !important;
  border-color: var(--amber);
}

/* =========== hero =========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,27,23,0.15) 0%, rgba(30,27,23,0.05) 30%, rgba(30,27,23,0.55) 78%, rgba(30,27,23,0.82) 100%);
  z-index: -1;
}
.hero-content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 90px;
  width: 100%;
  color: #fff;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 78px);
  color: #fff;
  max-width: 14ch;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 46ch;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.6em;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s ease infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* =========== brindle divider — signature motif =========== */
.brindle-divider {
  height: 14px;
  background: var(--brindle);
  background-image: repeating-linear-gradient(
    116deg,
    rgba(255,255,255,0.09) 0px,
    rgba(255,255,255,0.09) 3px,
    transparent 3px,
    transparent 9px,
    rgba(255,255,255,0.05) 9px,
    rgba(255,255,255,0.05) 14px,
    transparent 14px,
    transparent 26px
  );
}

/* =========== story =========== */
.story {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 28px;
}
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.story-media img {
  border-radius: 6px;
  position: sticky;
  top: 110px;
}
.story-text h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 0.6em;
}
.story-text p {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 60ch;
}
.story-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  border-left: 3px solid var(--amber-soft);
  padding-left: 20px;
  margin-top: 1.6em;
}

/* =========== facts =========== */
.facts {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 28px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: none; }
.fact-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.fact-value {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}

/* =========== section heads =========== */
.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 28px 40px;
  text-align: left;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.section-sub {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 50ch;
}

/* =========== gallery =========== */
.gallery-section { background: var(--bg); }
.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--line);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(30,27,23,0.35) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* span variations for editorial rhythm */
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1 / 2.05; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }

/* =========== video =========== */
.video-section { background: var(--paper); padding-bottom: 100px; }
.video-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(30,27,23,0.08);
}
.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

/* =========== adopt / CTA =========== */
.adopt {
  background: var(--ink);
  color: #fff;
  text-align: left;
  position: relative;
}
.adopt-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 28px;
}
.adopt h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  max-width: 16ch;
}
.adopt-sub {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  max-width: 48ch;
  margin-bottom: 1.8em;
}
.adopt-note {
  margin-top: 1.2em;
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
}

/* =========== footer =========== */
.site-footer {
  padding: 32px 28px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--ink);
}
.site-footer p { margin: 0; color: rgba(255,255,255,0.4); }

/* =========== lightbox =========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 14, 0.94);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* =========== responsive =========== */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-media img { position: static; }
  .facts-inner { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(3) { border-right: none; }
  .fact { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { gap: 16px; font-size: 13.5px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-content { padding-bottom: 60px; }
  .story { padding: 70px 20px; }
  .section-head { padding: 70px 20px 30px; }
  .facts-inner { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; }
  .fact:nth-child(odd) { border-right: 1px solid var(--line); }
  .fact:nth-child(even) { border-right: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px 70px; gap: 10px; }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 1/1; }
  .video-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .video-card video { aspect-ratio: 16/10; }
  .adopt-inner { padding: 80px 20px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
}
