/* ============================================================
   River Washed Gundogs — shared styles
   Tokens: ink #201D18, bone #EDE6D6, rust #BB4A28,
           slate #5B564A, juniper #3A4A34, straw #C9B182
   ============================================================ */

:root {
  --ink: #17211f;
  --bone: #f1e3c9;
  --bone-dim: #e7d6b2;
  --rust: #1e3b3b;
  --rust-dark: #122626;
  --slate: #5b4e3d;
  --juniper: #3e4a2c;
  --straw: #b99a55;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--rust);
  color: var(--bone);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.on-dark { color: var(--bone); }
.site-header.on-light { color: var(--ink); }
.site-header.scrolled {
  background: rgba(32, 29, 24, 0.94);
  color: var(--bone);
  padding: 0.7rem 0;
  box-shadow: 0 2px 18px rgba(0,0,0,0.25);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.brand img { height: 84px; width: auto; flex-shrink: 0; }
@media (max-width: 480px) { .brand img { height: 62px; } }
.brand-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.25rem;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--rust);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  padding: 0.4rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--ink);
    color: var(--bone);
    flex-direction: column;
    gap: 0;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { border-bottom: 1px solid rgba(237,230,214,0.15); }
  .nav-links a { display: block; padding: 1.1rem 0; opacity: 1; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--bone);
  overflow: hidden;
}
.hero.hero-portrait { min-height: 68vh; }
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.68) 0%, rgba(20,18,15,0.58) 35%, rgba(20,18,15,0.62) 65%, rgba(20,18,15,0.94) 100%);
}
.hero-scrim.hero-scrim-light {
  background: linear-gradient(180deg, rgba(20,18,15,0.35) 0%, rgba(20,18,15,0.22) 35%, rgba(20,18,15,0.28) 65%, rgba(20,18,15,0.75) 100%);
}
.hero-text-panel {
  display: inline-block;
  background: linear-gradient(100deg, rgba(15,13,11,0.72) 0%, rgba(15,13,11,0.6) 70%, rgba(15,13,11,0.35) 100%);
  padding: 2rem 2.2rem;
  border-radius: 4px;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 4.5rem;
  width: 100%;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--straw);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--straw);
  display: inline-block;
}
.hero .eyebrow {
  display: inline-flex;
  background: rgba(12,11,9,0.75);
  padding: 0.5rem 1rem;
  border-radius: 3px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 0 0 1.1rem;
  max-width: 14ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--straw);
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(245,240,228,0.98);
  margin: 0 0 2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  background: rgba(15,13,11,0.55);
  padding: 0.9rem 1.1rem;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 1px solid currentColor;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-solid {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--bone);
}
.btn-solid:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-outline {
  background: transparent;
  color: var(--bone);
}
.btn-outline:hover { background: rgba(237,230,214,0.12); }
.hero .btn-outline { background: rgba(12,11,9,0.65); }
.hero .btn-outline:hover { background: rgba(12,11,9,0.85); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

.section-dark { background: var(--ink); color: var(--bone); }
.section-juniper { background: var(--juniper); color: var(--bone); }
.section-bone { background: var(--bone); color: var(--ink); }
.section-dim { background: var(--bone-dim); color: var(--ink); }

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.9rem;
}
.section-dark .kicker,
.section-juniper .kicker,
.dog-card .kicker { color: var(--straw); }

h2.headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 1.3rem;
}
h3.subhead {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 0.7rem;
}
.copy-lg { font-size: 1.1rem; max-width: 62ch; }
.copy { max-width: 60ch; color: var(--slate); }
.section-dark .copy, .section-juniper .copy { color: rgba(237,230,214,0.82); }

/* ---------- Intro statement ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Two Grounds split ---------- */
.grounds {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 820px) {
  .grounds { grid-template-columns: 1fr; }
}
.ground {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: var(--bone);
  overflow: hidden;
}
.ground img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.ground::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(32,29,24,0.05) 30%, rgba(32,29,24,0.88) 100%);
}
.ground.ground-plain::after { display: none; }
.ground-content {
  position: relative;
  z-index: 1;
  padding: 2.75rem;
}
.ground-content .kicker { color: var(--straw); }
.ground-content h3 {
  font-family: var(--display);
  font-size: 1.9rem;
  margin: 0 0 0.6rem;
}
.ground-content p { max-width: 36ch; color: rgba(237,230,214,0.88); margin: 0; }

/* ---------- Feather divider ---------- */
.feather-divider {
  width: 100%;
  height: 90px;
  display: block;
  background: var(--bone);
}
.feather-divider.on-dark { background: var(--ink); }
.feather-divider.on-juniper { background: var(--juniper); }
.feather-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Photo strip ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.photo-strip img {
  width: 100%; height: 220px; object-fit: cover;
}
@media (max-width: 760px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cards (dogs) ---------- */
.dog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 900px) {
  .dog-grid { grid-template-columns: 1fr; }
}
.dog-card {
  background: var(--ink);
  color: var(--bone);
}
.dog-photo { aspect-ratio: 4/5; overflow: hidden; }
.dog-photo img { width: 100%; height: 100%; object-fit: cover; }
.dog-body { padding: 1.6rem 1.6rem 2rem; }
.dog-body .kicker { margin-bottom: 0.5rem; }
.dog-body h3 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 0.3rem; }
.dog-body .akc-name {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--straw);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.dog-body p.desc { color: rgba(237,230,214,0.85); font-size: 0.95rem; margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0; }
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(237,230,214,0.3);
  padding: 0.3rem 0.6rem;
  color: rgba(237,230,214,0.8);
}

/* ---------- Stats / field notes ---------- */
.field-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  font-family: var(--mono);
}
@media (max-width: 760px) { .field-notes { grid-template-columns: 1fr; } }
.field-note .num {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.field-note .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Timeline (about page) ---------- */
.timeline {
  border-left: 2px solid var(--straw);
  padding-left: 2rem;
  margin-top: 3rem;
}
.timeline-item { margin-bottom: 2.5rem; position: relative; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.55rem;
  top: 0.3rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rust);
}
.timeline-item .when {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.4rem;
}
.timeline-item h4 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}

/* ---------- Pups page ---------- */
.status-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 1.6rem;
  background: var(--straw);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--juniper);
  flex-shrink: 0;
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
  margin-top: 2.5rem;
}
@media (max-width: 760px) { .expect-grid { grid-template-columns: 1fr; } }
.expect-item { display: flex; gap: 1rem; }
.expect-item .mk {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--rust);
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.expect-item h4 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 0.35rem; }
.expect-item p { margin: 0; color: var(--slate); font-size: 0.95rem; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { margin-bottom: 2rem; }
.contact-block .kicker { margin-bottom: 0.6rem; }
.contact-block a.big-link {
  font-family: var(--display);
  font-size: 1.6rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
}

form.inquiry {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.field input, .field textarea, .field select {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(91,86,74,0.35);
  background: var(--bone);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--rust);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: -0.4rem;
}

/* ---------- Foundation photo ---------- */
.foundation-photo {
  margin: 2.5rem 0 0;
}
.foundation-photo img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.foundation-photo figcaption {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 2.5rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--ink);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.wide { aspect-ratio: 8/5; grid-column: span 2; }
.gallery-item.tall { aspect-ratio: 4/6; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 8px; }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 4/5; }
}
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(23,33,31,0) 0%, rgba(23,33,31,0.85) 100%);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(237,230,214,0.75);
  padding: 3.5rem 0 2.2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(237,230,214,0.15);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--bone); }
.footer-brand svg { width: 26px; height: 26px; }
.footer-brand img { height: 48px; width: auto; }
.footer-brand span {
  font-family: var(--display);
  font-size: 1.05rem;
}
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(237,230,214,0.75);
}
.footer-nav a:hover { color: var(--straw); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(237,230,214,0.5);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.max-copy { max-width: 68ch; margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
