@layer reset, base, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  img { display: block; max-width: 100%; height: auto; }
  button, input, textarea { font: inherit; }
}
@layer base {
  :root { --red: #bd242b; --green: #174c35; --ink: #171c19; --muted: #46534b; --line: #d9e0da; --paper: #fff; --wash: #f0f4ef; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--paper); }
  html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
  body { font-size: 1.25rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: .075em; }
  a:hover { color: var(--red); }
  :focus-visible { outline: 3px solid #0a65b4; outline-offset: 5px; }
  ::selection { background: #ffe096; color: #171c19; }
  h1, h2, h3 { font-weight: 800; line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
  h1 { font-size: clamp(3.1rem, 6.8vw, 6.6rem); }
  h2 { font-size: clamp(2.3rem, 4.2vw, 4.2rem); }
  h3 { font-size: 1.65rem; line-height: 1.2; }
  p { max-width: 61ch; }
  p + p { margin-top: 1.3rem; }
  button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
}
@layer components {
  .wrap { width: min(100% - 5rem, 1280px); margin-inline: auto; }
  .skip { position: absolute; top: -6rem; left: 1rem; z-index: 9; background: white; color: black; padding: 1rem; }
  .skip:focus { top: 1rem; }
  .masthead { border-bottom: 1px solid var(--line); }
  .header-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .brand { font-size: 1.45rem; font-weight: 900; line-height: 1.02; letter-spacing: -.06em; text-transform: uppercase; text-decoration: none; }
  .brand span { display: block; color: var(--green); }
  .nav { display: flex; align-items: center; gap: 1.7rem; }
  .nav a { font-size: 1rem; font-weight: 700; text-decoration: none; padding-block: .8rem; }
  .nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: .6rem; }
  .nav a:last-child { background: var(--green); color: white; padding: .8rem 1.05rem; }
  .nav a:last-child:hover { background: #103b28; }
  .menu-button { display: none; background: none; border: 1px solid var(--line); padding: .6rem .9rem; font-weight: 700; font-size: 1rem; }
  .deadline { background: var(--green); color: white; padding: .62rem 0; font-size: 1rem; }
  .deadline .wrap { display: flex; justify-content: space-between; gap: 1rem; }
  .deadline time { font-weight: 800; }
  .eyebrow { font-size: .9rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.4rem; color: var(--green); }
  .home-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; gap: 4.5rem; padding-block: 4rem; }
  .home-hero h1 { max-width: 10ch; }
  .home-hero h1 .red { color: var(--red); }
  .home-hero .subheading { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.25; margin-block: 1.8rem; max-width: 26ch; letter-spacing: -.02em; }
  .home-hero .intro { font-size: 1.25rem; max-width: 37ch; }
  .button { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; margin-top: 1.9rem; padding: .9rem 1.4rem; border: 0; background: var(--red); color: white; text-decoration: none; font-size: 1.125rem; font-weight: 800; cursor: pointer; transition: background .15s ease; }
  .button:hover { background: #971a20; color: white; }
  .button:disabled { background: #5d655f; cursor: not-allowed; }
  .map-frame { padding: .8rem; border: 1px solid var(--line); background: white; box-shadow: 0 6px 24px #1437210a; }
  .map-frame a { display: block; }
  .map-frame img { width: 100%; height: auto; object-fit: contain; }
  figcaption { font-size: .9rem; line-height: 1.45; color: var(--muted); margin-top: .85rem; }
  .map-links { margin-top: 1.4rem; }
  .source-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: 1rem; line-height: 1.45; }
  .source-links a { display: inline-block; padding-block: .15rem; }
  .landscape { margin-top: 1rem; }
  .landscape picture, .landscape img { width: 100%; }
  .landscape img { aspect-ratio: 2.7; object-fit: cover; }
  .section { padding-block: 5rem; }
  .story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; border-top: 1px solid var(--line); }
  .story h2 { max-width: 12ch; }
  .story .prose { max-width: 60ch; }
  .mission { background: var(--green); color: white; }
  .mission .eyebrow { color: #bed9c8; }
  .mission h2 { max-width: 22ch; }
  .mission p { margin-top: 2rem; max-width: 56ch; font-size: 1.4rem; }
  .next { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
  .next h2 { max-width: 15ch; }
  .plain-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; font-weight: 700; font-size: 1.125rem; }
  .species { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; padding-block: 0 4rem; }
  .species img { width: 100%; aspect-ratio: 1.25; object-fit: cover; }
  .species figcaption { color: var(--ink); margin-top: .5rem; }
  .species-note { font-size: .9rem; color: var(--muted); margin-top: -2.5rem; margin-bottom: 3rem; }
  .page-hero { padding-block: 4.5rem 3rem; }
  .page-hero h1 { max-width: 14ch; }
  .page-hero .lead { font-size: 1.45rem; line-height: 1.4; margin-top: 2rem; max-width: 48ch; }
  .split-page { display: grid; grid-template-columns: 1.05fr 1fr; gap: 5rem; padding-bottom: 5rem; align-items: start; }
  .split-page .page-hero { padding-bottom: 2rem; }
  .page-image { margin-top: 4.5rem; }
  .page-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
  .portrait img { aspect-ratio: 1; object-position: center; }
  .steps { list-style: none; padding: 0; margin: 0; counter-reset: steps; }
  .steps li { counter-increment: steps; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-block: 1.7rem; border-top: 1px solid var(--line); }
  .steps li::before { content: '0' counter(steps); color: var(--green); font-size: 1.25rem; font-weight: 800; }
  .steps p { margin-top: .65rem; }
  .steps .step-heading { font-size: 1.65rem; line-height: 1.2; }
  .notice { padding: 1.4rem 1.6rem; background: var(--wash); border-left: 4px solid var(--green); margin-top: 2rem; font-size: 1.125rem; }
  .form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; padding-block: 4.5rem 6rem; align-items: start; }
  .form-layout h1 { font-size: clamp(3.1rem, 5.6vw, 5.6rem); }
  .form-intro { margin-top: 2rem; }
  .form-card { background: var(--wash); padding: 2.5rem; }
  .field { margin-bottom: 1.4rem; }
  label { display: block; font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }
  input:not([type=checkbox]), textarea { width: 100%; border: 1px solid #6c7b70; border-radius: 0; background: white; color: var(--ink); padding: .8rem; font-size: 1.25rem; min-height: 56px; }
  textarea { resize: vertical; min-height: 180px; }
  .checkbox-label { display: flex; align-items: start; gap: .85rem; font-size: 1rem; font-weight: 400; line-height: 1.5; }
  input[type=checkbox] { flex: 0 0 auto; width: 24px; height: 24px; margin: .1rem 0 0; accent-color: var(--green); }
  .privacy-note { font-size: 1rem; color: var(--muted); margin-top: 1.4rem; }
  .form-card .button { width: 100%; margin-top: 1rem; }
  .form-status { margin-top: 1.25rem; font-size: 1.125rem; }
  .form-status[data-kind=error] { color: #9c1620; }
  .form-status[data-kind=success] { color: var(--green); }
  .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .footer { background: #112e21; color: white; padding-block: 3rem 1.5rem; }
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 3rem; }
  .footer .brand { font-size: 1.8rem; }
  .footer .brand span { color: #b9d4bf; }
  .footer a:hover { color: #cee6d4; }
  .footer-title { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; color: #b9d4bf; font-weight: 700; }
  .footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: 1rem; }
  .footer-bottom { border-top: 1px solid #496352; margin-top: 2.5rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; color: #c4d6c9; font-size: .9rem; }
  .photo-credits { margin-top: 2.5rem; font-size: .9rem; color: #c4d6c9; }
  .photo-credits summary { cursor: pointer; padding-block: .6rem; }
  .photo-credits p { margin-top: 1rem; }
  .photo-credits li { margin-bottom: .7rem; overflow-wrap: anywhere; }
  .species img[src*="woodpecker"] { object-position: 63% 30%; }
  .not-found { min-height: 55vh; padding-block: 5rem; }
  .not-found p { margin-top: 2rem; }
}
@layer responsive {
  @media (max-width: 1050px) {
    .wrap { width: calc(100% - 3rem); }
    .nav { gap: 1rem; }
    .home-hero, .story, .next, .split-page, .form-layout { gap: 2.5rem; }
    .home-hero { grid-template-columns: 1fr 1fr; }
    .form-card { padding: 1.75rem; }
  }
  @media (max-width: 760px) {
    .wrap { width: calc(100% - 2.5rem); }
    .header-inner { min-height: 88px; flex-wrap: wrap; gap: 0; padding-block: 1rem; }
    .brand { font-size: 1.25rem; }
    .menu-button { display: block; }
    .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 1rem; }
    .nav a { padding: .75rem .3rem; min-height: 48px; }
    .js .nav:not([data-open]) { display: none; }
    .deadline .wrap { display: block; font-size: .95rem; }
    .deadline .deadline-label { display: none; }
    .home-hero { grid-template-columns: 1fr; padding-top: 2.5rem; gap: 2.7rem; }
    .home-hero h1 { font-size: clamp(3.2rem, 12.5vw, 5.8rem); max-width: 11ch; }
    .home-hero .subheading { font-size: 1.65rem; max-width: 27ch; }
    .home-hero .intro { max-width: 100%; }
    .home-hero .button { width: 100%; }
    .eyebrow { font-size: .85rem; margin-bottom: 1rem; }
    .map-frame { padding: .4rem; }
    .section { padding-block: 3rem; }
    .story, .next, .split-page, .form-layout { grid-template-columns: 1fr; gap: 2rem; }
    .story h2, .next h2 { max-width: 18ch; }
    .landscape img { aspect-ratio: 1.1; object-position: 50% 45%; }
    .mission p { font-size: 1.25rem; }
    .species { grid-template-columns: repeat(3, 1fr); gap: 1.1rem .7rem; }
    .species figcaption { font-size: .875rem; }
    .page-hero { padding-top: 2.8rem; }
    .page-image { margin-top: 0; }
    .split-page { padding-bottom: 3rem; }
    .form-layout { padding-block: 2.8rem 3rem; }
    .form-card { padding: 1.5rem; margin-inline: -.3rem; }
    .form-intro { margin-top: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
}
