/* AK Waterfowl Guides — site styles
   Fonts are self-hosted (SIL Open Font License). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0c2418;
  --ink-2: #103824;
  --ink-3: #1a4a32;
  --cream: #f4efe6;
  --cream-2: #ebe4d6;
  --paper: #f7f3ec;
  --gold: #d4b05c;
  --gold-2: #e0c278;
  --gold-dim: #9a7d38;
  --rust: #8e4b38;
  --sage: #5d6d56;
  --moss: #3e4c3b;
  --text: #1d1b17;
  --text-soft: #4f4b44;
  --muted: #6d685f;
  --line: rgba(212, 176, 92, 0.35);
  --line-dark: rgba(244, 239, 230, 0.14);
  --danger-note: #7a3e2e;
  --max: 72rem;
  --max-wide: 80rem;
  --header-h: 4.35rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip:focus { top: 1rem; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 0.75rem;
}
.dark-section .eyebrow,
.hero .eyebrow { color: var(--gold); }

h1, h2, h3, .brand-wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(2.85rem, 8vw, 6.1rem); font-weight: 500; }
h2 { font-size: clamp(2.15rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 600; }

.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 40rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.section-head {
  max-width: 42rem;
  margin-bottom: 2.75rem;
}
.section-head h2 { margin-bottom: 0.85rem; }

/* ---------- layout ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.wrap-wide {
  width: min(100% - 2.5rem, var(--max-wide));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}
.section.tight { padding: 4.25rem 0; }

.dark-section {
  background: var(--ink);
  color: var(--cream);
}
.dark-section .lede,
.dark-section p { color: rgba(244, 239, 230, 0.82); }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}
.dark-section .rule,
footer .rule { background: var(--line-dark); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header .inner {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header.is-scrolled {
  background: rgba(12, 36, 24, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(212, 176, 92, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
  min-width: 0;
}
.brand-mark {
  height: 2.55rem;
  width: auto;
  max-height: 2.55rem;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-wordmark {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.88;
  position: relative;
}
.nav a:hover,
.nav a:focus-visible { opacity: 1; color: var(--gold-2); }
.nav a.cta-link {
  border: 1px solid var(--gold);
  padding: 0.45rem 0.85rem;
  color: var(--gold);
  opacity: 1;
}
.nav a.cta-link:hover { background: var(--gold); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(244, 239, 230, 0.35);
  color: var(--cream);
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; }
.nav-toggle span::before { transform: translate(-50%, calc(-50% - 5px)); }
.nav-toggle span::after { transform: translate(-50%, calc(-50% + 5px)); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 36, 24, 0.28) 0%, rgba(12, 36, 24, 0.15) 32%, rgba(12, 36, 24, 0.45) 62%, rgba(12, 36, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(12, 36, 24, 0.35) 0%, rgba(12, 36, 24, 0.05) 55%);
}
.hero-inner {
  width: min(100% - 2.5rem, var(--max-wide));
  margin-inline: auto;
  padding: 6.75rem 0 4.5rem;
}
.hero h1 {
  max-width: 14ch;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-logo {
  display: block;
  width: min(11.25rem, 46vw);
  height: auto;
  margin: 0 0 0.85rem;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
}
.hero-tag {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-lead {
  margin: 1.15rem 0 1.75rem;
  max-width: 28rem;
  font-size: 1.15rem;
  color: rgba(244, 239, 230, 0.9);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-2);
}
.hero-meta span + span::before {
  content: "·";
  margin: 0 0.7rem 0 0;
  opacity: 0.5;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.8rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold:hover,
.btn-gold:focus-visible { background: var(--gold-2); border-color: var(--gold-2); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 239, 230, 0.45);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--gold); color: var(--gold-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-credit {
  position: absolute;
  right: 1.25rem;
  bottom: 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 230, 0.65);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.about-copy h2 { margin-bottom: 1.1rem; }
.about-copy p { color: var(--text-soft); }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stat dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--gold-dim);
  margin-bottom: 0.3rem;
}
.stat dd {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.photo-frame {
  position: relative;
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
}
.photo-caption {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- areas ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}
.area-card {
  background: var(--ink-2);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}
.area-card.photo .area-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.area-card.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.area-card.photo:hover img { transform: scale(1.04); }
.area-card .area-body {
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.area-num {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.area-card h3 {
  color: var(--cream);
  margin-bottom: 0.7rem;
}
.area-card p {
  color: rgba(244, 239, 230, 0.8);
  font-size: 0.98rem;
  flex: 1;
}
.area-note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: rgba(217, 188, 126, 0.9);
}
.area-card.typo {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(198, 165, 106, 0.12), transparent 50%),
    linear-gradient(180deg, var(--ink-3), var(--ink));
  min-height: 100%;
  position: relative;
}
.area-card.typo .area-media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.tidal-art {
  width: min(100%, 22rem);
  height: auto;
  color: var(--gold);
  opacity: 0.7;
}
.area-card.typo .area-media-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- includes ---------- */
.include-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.include-card {
  background: #fff;
  border: 1px solid rgba(28, 26, 22, 0.08);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: 0 1px 0 rgba(12, 36, 24, 0.04);
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.include-card .icon {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--gold-dim);
  margin-bottom: 0.9rem;
}
.include-card h3 { margin-bottom: 0.45rem; color: var(--ink); }
.include-card p { color: var(--text-soft); font-size: 0.98rem; }
.include-card.editable {
  /* retained for any leftover markup; no longer used as a placeholder style */
  border-style: dashed;
  border-color: rgba(142, 75, 56, 0.45);
  background: #fbf6f0;
}
.editable-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid rgba(142, 75, 56, 0.4);
  padding: 0.15rem 0.4rem;
  margin-bottom: 0.6rem;
}

/* ---------- seasons / species ---------- */
.species-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.species-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.species-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.75rem;
  margin-top: 1.5rem;
}
.species-group h3 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dim);
  margin-bottom: 0.55rem;
}
.species-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.species-group li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(28, 26, 22, 0.08);
  color: var(--text);
}
.adfg-note {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  background: var(--cream-2);
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 50rem;
}
.adfg-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- regulations ---------- */
.reg-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}
.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: req;
}
.req-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.req-list li::before {
  counter-increment: req;
  content: counter(req, decimal-leading-zero);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1.2;
}
.aside-box {
  background: var(--ink-2);
  padding: 1.75rem 1.6rem;
  border-top: 3px solid var(--gold);
}
.aside-box h3 { color: var(--cream); margin-bottom: 0.8rem; }
.aside-box ul { margin: 0; padding: 0 0 0 1.1rem; color: rgba(244, 239, 230, 0.82); }
.aside-box li { margin: 0.45rem 0; }
.aside-box a { color: var(--gold-2); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.25rem;
  align-items: start;
}
.email-display {
  margin: 1.25rem 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
}
.email-display a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.email-display a:hover { color: var(--gold-dim); }
.replace-hint { display: none; }
.placeholder-token {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  letter-spacing: 0;
  background: #f3e6d6;
  padding: 0.05em 0.3em;
  border-radius: 2px;
}

.inquiry-form {
  display: grid;
  gap: 1rem;
  background: #fff;
  padding: 1.75rem 1.6rem;
  border: 1px solid rgba(28, 26, 22, 0.08);
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.field input,
.field select,
.field textarea {
  border: 1px solid rgba(28, 26, 22, 0.18);
  background: var(--paper);
  padding: 0.7rem 0.8rem;
  border-radius: 0;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212, 176, 92, 0.28);
}
.field textarea { min-height: 8rem; resize: vertical; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}
.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--moss);
}
.form-status.error { color: var(--rust); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.75rem 0 2rem;
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; color: var(--cream); text-decoration: none; }
.footer-brand .footer-logo {
  width: 8.25rem;
  height: auto;
  display: block;
  flex: 0 0 auto;
}
.footer-tagline {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--gold);
}
.footer-legal { color: rgba(244, 239, 230, 0.7); max-width: 38rem; }
.footer-legal p { margin-bottom: 0.4rem; }
.credits details { margin-top: 1.25rem; }
.credits summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
}
.credits dl {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.65rem;
  color: rgba(244, 239, 230, 0.75);
  font-size: 0.82rem;
  max-width: 52rem;
}
.credits dt { color: var(--cream); font-weight: 650; }
.credits dd { margin: 0.15rem 0 0; }
.credits a { color: var(--gold-2); }

/* ---------- utilities ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .about-grid,
  .species-layout,
  .reg-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .include-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 0.85rem; }
  .species-photo { order: -1; }
  .species-photo img,
  .photo-frame img { aspect-ratio: 16 / 10; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(12, 36, 24, 0.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav a.cta-link {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--gold);
  }
  .hero-inner { padding: 5.75rem 0 3.25rem; }
  .hero-logo { width: min(9.5rem, 52vw); }
}

@media (max-width: 640px) {
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
  .hero-meta span + span::before { content: none; }
  .area-grid,
  .include-grid,
  .field-row,
  .species-cols { grid-template-columns: 1fr; }
  .wrap, .wrap-wide, .hero-inner { width: min(100% - 1.5rem, var(--max-wide)); }
  .section { padding: 3.75rem 0; }
  .hero-credit { left: 1rem; right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .area-card.photo:hover img { transform: none; }
}
