:root {
  --story-green: #667257;
  --story-green-dark: #4f5b43;
  --story-ink: #181b17;
  --story-muted: #686d65;
  --story-paper: #f3f1eb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { color: var(--story-ink); display: flex; flex-direction: column; font-family: "Open Sans", sans-serif; margin: 0; min-height: 100vh; }
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }

.stories-header { align-items: center; background: #fff; display: flex; flex-direction: column; min-height: 165px; padding: 0 24px; position: sticky; top: 0; z-index: 20; }
.stories-logo img { height: 90px; margin: 19px auto 0; object-fit: contain; width: 239px; }
.stories-desktop-nav { display: flex; gap: 30px; margin: 8px auto 12px; }
.stories-desktop-nav a { border-bottom: 2px solid transparent; color: #222; font-family: Merriweather, serif; font-size: 1rem; padding: 10px 0; text-decoration: none; }
.stories-desktop-nav a:hover, .stories-desktop-nav a:focus-visible { border-color: var(--story-green); }
.stories-mobile-nav { display: none; }

.stories-hero { align-items:center; background-image:url("images/Photo-03029.jpg"); background-image:image-set(url("images/responsive/Photo-03029-1920.avif") type("image/avif"),url("images/responsive/Photo-03029-1920.webp") type("image/webp"),url("images/Photo-03029.jpg") type("image/jpeg")); background-position:50% 50%; background-size:cover; color:#fff; display:flex; min-height:var(--stories-cover-height,460px); padding:55px max(28px,calc((100% - 1140px)/2)); position:relative; }
.stories-hero-shade { background:linear-gradient(90deg,rgba(8,11,7,.72),rgba(8,11,7,.35) 58%,rgba(8,11,7,.18)); inset:0; position:absolute; }
.stories-hero-copy { max-width:700px; position:relative; z-index:1; }
.stories-eyebrow { color: var(--story-green); font-family: Montserrat, sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; margin: 0 0 13px; }
.stories-hero .stories-eyebrow { color:rgba(255,255,255,.78); }
.stories-hero h1 { font-family: var(--stories-cover-title-family,"Merriweather",Georgia,serif); font-size: clamp(2.5rem, 5vw, 4.8rem); font-weight: 300; line-height: 1.1; margin: 0 0 20px; }
.stories-hero-copy > p:not(.stories-eyebrow) { color:rgba(255,255,255,.88); line-height:1.7; margin:0 0 25px; max-width:640px; }
.stories-hero-copy a, .stories-cta a { background: var(--story-green); border: 1px solid var(--story-green); border-radius: 999px; color: #fff; display: inline-flex; font-family: Montserrat, sans-serif; font-size: 0.73rem; font-weight: 700; letter-spacing: 0.07em; padding: 14px 25px; text-decoration: none; text-transform: uppercase; }
.stories-hero-copy a { background:transparent; border-color:rgba(255,255,255,.76); }
.stories-hero-copy a:hover, .stories-cta a:hover { background: var(--story-green-dark); }

.stories-section { margin: 0 auto; max-width: 1220px; padding: 100px 30px 110px; }
.stories-heading { align-items: end; border-bottom: 1px solid #deded8; display: grid; gap: 50px; grid-template-columns: 1fr minmax(280px, 0.75fr); margin-bottom: 42px; padding-bottom: 28px; }
.stories-heading h2 { font-family: Merriweather, serif; font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 300; margin: 0; }
.stories-heading > p { color: var(--story-muted); line-height: 1.7; margin: 0; }
.stories-gallery { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-card { background: #fff; border: 1px solid #e1e1dc; border-radius: 15px; display: grid; grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr); min-height: 310px; overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; }
.story-card { color: inherit; text-decoration: none; }
.story-card:hover { box-shadow: 0 20px 50px rgba(39, 46, 35, 0.12); transform: translateY(-4px); }
.story-card-featured { grid-column: 1 / -1; grid-template-columns: 1.25fr 0.75fr; min-height: 480px; }
.story-image { min-height: 100%; overflow: hidden; }
.story-image img { height: 100%; object-fit: cover; transition: transform 0.5s; width: 100%; }
.story-card:hover img { transform: scale(1.035); }
.story-copy { align-self: center; padding: 34px; }
.story-copy > span { color: var(--story-green); font-family: Montserrat, sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; }
.story-copy h3 { font-family: Merriweather, serif; font-size: clamp(1.4rem, 2.4vw, 2.15rem); font-weight: 300; line-height: 1.25; margin: 11px 0 14px; }
.story-copy p { color: var(--story-muted); font-size: 0.88rem; line-height: 1.65; margin: 0 0 20px; }
.story-copy small { font-family: Montserrat, sans-serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; }
.stories-loading { color: var(--story-muted); font-family: Merriweather, serif; grid-column: 1/-1; padding: 50px; text-align: center; }
.stories-empty { background: var(--story-paper); border-radius: 15px; grid-column: 1/-1; padding: 70px 25px; text-align: center; }
.stories-empty span { color: var(--story-green); font-family: Montserrat, sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .15em; }
.stories-empty h3 { font-family: Merriweather, serif; font-size: 2rem; font-weight: 300; margin: 12px 0; }
.stories-empty p { color: var(--story-muted); }

.stories-cta { background: var(--story-paper); padding: 90px 25px; text-align: center; }
.stories-cta h2 { font-family: Merriweather, serif; font-size: clamp(2.2rem, 4vw, 3.7rem); font-weight: 300; margin: 0 0 16px; }
.stories-cta > p:not(.stories-eyebrow) { color: var(--story-muted); margin: 0 0 28px; }
.stories-cta > div { display: flex; gap: 12px; justify-content: center; }
.stories-cta .stories-cta-secondary { background: transparent; color: var(--story-ink); }

.stories-footer { align-items: center; background: #858e99; color: #fff; display: grid; flex-shrink: 0; font-size: 0.84rem; grid-template-columns: 1fr 1fr 1fr; margin-top: auto; min-height: 76px; padding: 10px max(30px, calc((100% - 1140px) / 2)); }
.stories-footer div { display: grid; gap: 5px; }
.stories-footer strong { font-size: 0.92rem; }
.stories-footer p { text-align: center; }
.stories-footer > a { color: #fff; font-family: Montserrat, sans-serif; font-weight: 700; justify-self: end; text-decoration: none; }

@media (max-width: 900px) {
  .stories-hero { padding-left:35px; padding-right:35px; }
  .stories-hero-copy { max-width:650px; }
  .stories-heading { grid-template-columns: 1fr; }
  .stories-gallery { grid-template-columns: 1fr; }
  .story-card-featured { grid-column: auto; }
}

@media (max-width: 620px) {
  .stories-header { align-items: center; flex-direction: column; justify-content: flex-start; min-height: 165px; position: relative; }
  .stories-logo img { height: 90px; margin-top: 21px; width: 239px; }
  .stories-desktop-nav { display: none; }
  .stories-mobile-nav { display: block; position: absolute; right: 24px; top: 72px; }
  .stories-mobile-nav summary { cursor: pointer; font-family: Montserrat, sans-serif; font-size: 0.72rem; font-weight: 700; list-style: none; }
  .stories-mobile-nav nav { background: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15); display: grid; gap: 17px; padding: 22px; position: absolute; right: 0; top: 30px; width: 210px; }
  .stories-mobile-nav a { color: var(--story-ink); font-family: Montserrat, sans-serif; font-size: 0.75rem; text-decoration: none; }
  .stories-hero { min-height:min(var(--stories-cover-height,460px),480px); padding:45px 22px; }
  .stories-section { padding: 70px 14px 80px; }
  .story-card, .story-card-featured { display: block; min-height: 0; }
  .story-image { height: 330px; }
  .story-copy { padding: 28px 24px 32px; }
  .stories-cta > div { align-items: center; flex-direction: column; }
  .stories-footer { gap: 8px; grid-template-columns: repeat(3, 1fr); min-height: 76px; padding: 10px 14px; text-align: center; }
  .stories-footer p { margin: 0; }
  .stories-footer > a { justify-self: end; }
}
