:root {
  --sand: #f4efe8;
  --clay: #c26b4a;
  --mesquite: #4f6b57;
  --dusk: #2f3e46;
  --ink: #1f1f1f;
  --paper: #fffdf9;
  --line: #d8c9b8;
  --shadow: 0 10px 30px rgb(31 31 31 / 12%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, var(--sand), #ece2d5 42%, var(--sand));
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--dusk);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
}

.skip-link:focus {
  left: 1rem;
  z-index: 1000;
}

.container {
  width: min(1100px, calc(100% - 2.75rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

@media (max-width: 759px) {
  .narrow {
    padding-inline: 0.45rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--sand) 90%, white 10%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.site-title {
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-details {
  position: relative;
}

.nav-toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.25rem;
  background: var(--paper);
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dusk);
}

.nav-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  min-width: 10rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.nav-list a {
  display: block;
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border-radius: 0.25rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: color-mix(in srgb, var(--mesquite) 16%, white);
}

.nav-details:not([open]) .nav-list {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(24rem, 55vh, 34rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: image-set(
      url("../img/jiggs-ranch-hero-1200x1600.webp") type("image/webp") 1x,
      url("../img/jiggs-ranch-hero-1800x1050.webp") type("image/webp") 1.5x,
      url("../img/jiggs-ranch-hero-2400x1400.webp") type("image/webp") 2x
    );
  background-position: center 45%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
}

.home-hero .hero-image {
  background-position: center 35%;
}

.page-hero .hero-image {
  background-position: center 55%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(1100px 600px at 18% 20%, rgb(31 31 31 / 22%), rgb(31 31 31 / 0%) 60%),
    linear-gradient(180deg, rgb(31 31 31 / 12%) 0%, rgb(31 31 31 / 52%) 72%, rgb(31 31 31 / 66%) 100%);
}

.hero-content {
  position: relative;
  color: #f8f3ec;
  text-align: left;
  padding-left: 0.2rem;
  padding-block: clamp(3rem, 8vh, 4.2rem) clamp(2.2rem, 6vh, 3rem);
}

.hero-eyebrow {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.hero-badge {
  width: min(420px, 58vw);
  margin: 0 0 0.9rem;
}

.hero-badge img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 30px rgb(0 0 0 / 22%));
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.12;
}

.hero p {
  margin-top: 0.8rem;
  font-size: clamp(1rem, 2.3vw, 1.4rem);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--clay);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.35rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn:hover {
  background: #a85a3e;
}

.btn-secondary {
  background: color-mix(in srgb, var(--dusk) 90%, black);
}

.btn-secondary:hover {
  background: #233036;
}

.section {
  padding: clamp(2.2rem, 6vw, 4rem) 0;
}

.section h2,
.section h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.section-warm {
  background: color-mix(in srgb, var(--sand) 85%, white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card p {
  margin: 0;
  padding: 0.9rem;
}

.card-image {
  min-height: 9rem;
  background: linear-gradient(135deg, #6f7d63, #a3947e 55%, #4f6b57);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
}

.photo-grid figure {
  margin: 0;
}

.photo-placeholder {
  min-height: 11rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: linear-gradient(160deg, #8f7d66, #596655 52%, #314048);
}

figcaption {
  margin-top: 0.45rem;
  font-size: 0.93rem;
  color: color-mix(in srgb, var(--ink) 78%, var(--dusk));
}

.callout {
  background: var(--paper);
  border: 1px solid var(--clay);
  border-left: 6px solid var(--clay);
  border-radius: 0.6rem;
  padding: 1rem 1rem 1.2rem;
  box-shadow: var(--shadow);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline li {
  margin-left: 1rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--mesquite);
}

.notes-list {
  padding-left: 1.2rem;
}

.private-note {
  color: color-mix(in srgb, var(--ink) 88%, #5a5a5a);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--dusk) 7%, var(--sand));
  padding: 1.4rem 0 1.7rem;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

@media (min-width: 760px) {
  .container {
    width: min(1100px, 92%);
  }

  .hero-content {
    padding-left: 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-list,
  .nav-details:not([open]) .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
}

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

  .hero-image {
    transform: none;
  }

  @media (max-width: 420px) {
    .hero-badge {
      width: min(340px, 78vw);
    }
  }

  [class^="reveal-"] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 600ms ease, transform 700ms ease;
  }

  .hero.is-visible .reveal-1 { transition-delay: 80ms;  opacity: 1; transform: translateY(0); }
  .hero.is-visible .reveal-2 { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
  .hero.is-visible .reveal-3 { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
  .hero.is-visible .reveal-4 { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
  .hero.is-visible .reveal-5 { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

}
