:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #22262a;
  --muted: #5d646b;
  --line: #ddd8cc;
  --header: #1f2a2e;
  --header-text: #f3efe6;
  --accent: #a4471e;
  --accent-hover: #86391a;
  --radius: 6px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191b;
    --surface: #1d2326;
    --text: #e7e3da;
    --muted: #a5abaf;
    --line: #333b3f;
    --header: #0e1214;
    --accent: #e0814f;
    --accent-hover: #f09a6b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 1rem; }

.wrap { width: min(100% - 32px, 960px); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--header); color: var(--header-text); padding: 1.25rem 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: inherit; text-decoration: none; display: grid; }
.brand:hover { color: inherit; }
.brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: bold; letter-spacing: .01em; }
.brand-tagline { font-size: .9rem; opacity: .8; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 0; padding: 0; }
.site-nav a { color: var(--header-text); text-decoration: none; font-size: .95rem; padding: .2rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--header-text); }

/* Main */
.site-main { padding-bottom: 3rem; }
.page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose img { border-radius: var(--radius); margin: 1rem 0; }

.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius);
  padding: .7rem 1.2rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-hover); color: #fff; }
.button-secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.button-secondary:hover { background: var(--accent); }

.messages { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.message { background: #e6f2e4; color: #1e4620; border-radius: var(--radius); padding: .8rem 1rem; }

/* Homepage slideshow. Most gallery photos are 3:2; use 4 / 3 for squarer framing. */
.slideshow {
  --slide-ratio: 3 / 2;
  position: relative; background: #000;
  width: min(100% - 32px, 960px); margin: 2rem auto 0; border-radius: var(--radius); overflow: hidden;
}
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; position: relative; }
.slide img { width: 100%; aspect-ratio: var(--slide-ratio); object-fit: cover; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 16px .75rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); font-size: .95rem; }
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.slide-btn:hover { background: rgba(0,0,0,.7); }
.slide-btn.prev { left: 12px; }
.slide-btn.next { right: 12px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.gallery-item img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); transition: opacity .15s; }
.gallery-item:hover img { opacity: .85; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-height: 85vh; width: auto; margin: auto; border-radius: var(--radius); }
.lightbox-caption { color: #fff; text-align: center; margin: .5rem 0 0; }
.lightbox-close { position: fixed; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; }

/* Hunting dates */
.seasons { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.seasons th, .seasons td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.seasons thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Contact form */
.contact-form { max-width: 560px; margin-top: 1.5rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
}
.contact-form .field { margin: 0 0 1rem; }
.contact-form .error { color: #b3261e; font-size: .9rem; }
.has-error input, .has-error textarea { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.site-footer a { color: var(--muted); }
