/* Soaring Bison — photographs first, everything else quiet. No third-party fonts or scripts. */

:root {
  --ground: #15201c;      /* deep green-black, from the logo's circle */
  --ground-2: #1d2b26;
  --cream: #efe6d0;       /* logo cream */
  --cream-dim: #b9b2a0;
  --tan: #c9973f;         /* logo ochre: links */
  --tan-bright: #e0ad55;
  --rule: #2c3a35;
  --sans: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ground); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--ground); color: var(--cream);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--tan); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--tan-bright); }
a:focus-visible { outline: 3px solid var(--tan-bright); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
p { margin: 0 0 1rem; max-width: 64ch; }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cream); color: var(--ground); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: var(--gutter); }

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--cream); text-decoration: none; font-size: 1.15rem; font-weight: 500; }
.brand img { width: 2.75rem; height: auto; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { color: var(--cream-dim); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--cream); text-decoration: underline; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: min(78vh, 46rem); display: flex; align-items: flex-end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(21,32,28,.95) 0%, rgba(21,32,28,.35) 45%, rgba(21,32,28,0) 75%);
}
.hero .wrap { padding-block: clamp(2rem, 6vw, 4rem); }
.hero p { color: var(--cream-dim); font-size: 1.15rem; margin: .75rem 0 0; max-width: 48ch; }

/* Gallery */
.gallery-section { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.gallery a { display: block; background: var(--ground-2); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery a:hover img, .gallery a:focus-visible img { opacity: .9; }

/* Lightbox: pure CSS via :target, no scripts */
.lb {
  display: none; position: fixed; inset: 0; z-index: 50; margin: 0;
  background: #0a0f0d;
}
.lb:target { display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3rem 1rem 1rem; }
.lb img { max-width: 100%; max-height: calc(100vh - 6rem); width: auto; height: auto; object-fit: contain; }
.lb-close { position: absolute; inset: 0; z-index: 0; }
.lb img, .lb-nav { position: relative; z-index: 1; }
.lb-nav { display: flex; gap: 1rem; align-items: center; padding-top: .75rem; }
.lb-nav a { color: var(--cream); text-decoration: none; padding: .5rem 1rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .95rem; }
.lb-nav a:hover { border-color: var(--cream-dim); }
.lb-count { color: var(--cream-dim); font-size: .9rem; }

/* Sections and simple pages */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.page .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page h1 { margin-bottom: 1.5rem; }
.page .note { border-left: 3px solid var(--tan); padding-left: 1rem; color: var(--cream); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); color: var(--cream-dim); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; }
.site-footer a { color: var(--cream-dim); }
