/* Shawano Lake field guide — one stylesheet, no build step, no CDN. */

:root {
  --deep:    #08161a;
  --water:   #0e2830;
  --shelf:   #143842;
  --edge:    #1d4d59;
  --weed:    #4f9d84;
  --brass:   #d9a441;
  --brass-d: #b3821f;
  --paper:   #eef2ef;
  --ink:     #e6ece9;
  --mute:    #93a8a9;
  --rule:    #1e424c;
  --danger:  #d4694b;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  ui-sans-serif, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 78% -12%, rgba(79,157,132,.16), transparent 62%),
    radial-gradient(900px 620px at 4% 8%, rgba(217,164,65,.08), transparent 58%),
    var(--deep);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #f0c069; }

.skip {
  position: absolute; left: -9999px;
  background: var(--brass); color: var(--deep); padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8,22,26,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px; flex-wrap: wrap;
}
.brand { text-decoration: none; color: inherit; display: block; padding: 10px 0; }
.brand-mark {
  display: block; font-family: var(--serif); font-size: 24px; letter-spacing: .22em;
  color: var(--paper);
}
.brand-sub {
  display: block; font-size: 11px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--mute); margin-top: 2px;
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; padding-bottom: 8px; }
.nav a {
  color: var(--mute); text-decoration: none; font-size: 13.5px;
  letter-spacing: .05em; padding: 7px 12px; border-radius: 999px;
  border: 1px solid transparent;
}
.nav a:hover { color: var(--paper); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] {
  color: var(--deep); background: var(--brass); border-color: var(--brass);
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .34; filter: saturate(.75) contrast(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,22,26,.35) 0%, rgba(8,22,26,.82) 68%, var(--deep) 100%);
}
.hero-in { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 64px; }
.kicker {
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 7.5vw, 84px); line-height: .98;
  margin: 0 0 20px; color: var(--paper); letter-spacing: -.015em;
}
.lede {
  font-size: clamp(17px, 2vw, 21px); line-height: 1.55; max-width: 62ch;
  color: #cfdcd9; margin: 0 0 30px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 3px;
  font-size: 14px; letter-spacing: .06em; text-decoration: none;
  border: 1px solid var(--brass); color: var(--brass); background: transparent;
}
.btn:hover { background: rgba(217,164,65,.12); color: #f0c069; }
.btn-solid { background: var(--brass); color: var(--deep); font-weight: 600; }
.btn-solid:hover { background: #f0c069; color: var(--deep); }

/* ---------- sections ---------- */

section { padding: 62px 0; }
section + section { border-top: 1px solid var(--rule); }

.page-head { padding: 58px 0 34px; border-bottom: 1px solid var(--rule); }
.page-head h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; margin: 0 0 14px; color: var(--paper);
}

h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12;
  margin: 0 0 18px; color: var(--paper); letter-spacing: -.01em;
}
h3 {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass); margin: 34px 0 12px; font-weight: 600;
}
p { max-width: 72ch; }
.mute { color: var(--mute); }

/* ---------- stat grid ---------- */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px; margin: 0; background: var(--rule);
  border: 1px solid var(--rule);
}
.stat { background: var(--water); padding: 20px 22px; }
.stat dt {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 8px;
}
.stat dd {
  margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.25;
  color: var(--paper);
}

/* ---------- species grid ---------- */

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 20px; margin-top: 8px;
}
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--water); border: 1px solid var(--rule);
  transition: border-color .18s, transform .18s;
  overflow: hidden;
}
.card:hover { border-color: var(--weed); transform: translateY(-3px); }
.card-img {
  aspect-ratio: 16 / 9; width: 100%; object-fit: contain;
  background: #f2efe7; padding: 8px; display: block;
  border-bottom: 1px solid var(--rule);
}
.card-body { padding: 16px 18px 20px; }
.card-body h4 {
  margin: 0 0 4px; font-family: var(--serif); font-weight: 400;
  font-size: 22px; color: var(--paper);
}
.card-latin { font-style: italic; color: var(--mute); font-size: 13px; margin: 0 0 10px; }
.card-note { margin: 0; font-size: 14px; color: #b9cac7; line-height: 1.5; }
.tag {
  display: inline-block; font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--edge); color: var(--mute); margin: 0 6px 6px 0;
}
.tag-hot { border-color: var(--brass-d); color: var(--brass); }
.tag-closed { border-color: var(--danger); color: var(--danger); }

/* ---------- species detail ---------- */

.sp-head { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.sp-head img {
  width: 100%; background: #f2efe7;
  border: 1px solid var(--rule); padding: 18px;
}
.sp-latin { font-style: italic; color: var(--weed); font-size: 17px; margin: 0 0 16px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li {
  position: relative; padding-left: 24px; margin-bottom: 12px;
  max-width: 62ch; line-height: 1.55;
}
ul.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 11px;
  width: 9px; height: 1px; background: var(--brass);
}

.pull {
  border-left: 2px solid var(--weed); padding: 4px 0 4px 22px;
  font-family: var(--serif); font-size: 19px; line-height: 1.5; color: #d6e2df;
  max-width: 62ch;
}

/* ---------- tables ---------- */

.tablewrap { overflow-x: auto; border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 640px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th {
  background: var(--shelf); color: var(--paper); font-size: 11px;
  letter-spacing: .13em; text-transform: uppercase; font-weight: 600;
  position: sticky; top: 0;
}
tbody tr:nth-child(odd) { background: rgba(255,255,255,.016); }
tbody tr:hover { background: rgba(79,157,132,.08); }
td.num { font-family: var(--mono); font-size: 13.5px; color: var(--paper); white-space: nowrap; }
.sp-cell { display: flex; align-items: center; gap: 12px; }
.sp-cell img {
  width: 62px; height: 40px; object-fit: contain; flex: none;
  background: #f2efe7; border: 1px solid var(--rule); padding: 2px;
}
.sp-cell a { text-decoration: none; color: var(--paper); font-family: var(--serif); font-size: 17px; }
.sp-cell a:hover { color: var(--brass); }

/* ---------- map ---------- */

#map {
  height: 560px; width: 100%; border: 1px solid var(--rule);
  background: var(--water); z-index: 1;
}
.leaflet-popup-content-wrapper { background: var(--water); color: var(--ink); border-radius: 3px; }
.leaflet-popup-tip { background: var(--water); }
.leaflet-popup-content { margin: 14px 16px; font: 14px/1.55 var(--sans); }
.leaflet-popup-content b { color: var(--brass); font-size: 15px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--mute); }

.mapfig { margin: 0; }
.mapfig img { width: 100%; border: 1px solid var(--rule); background: #fff; display: block; }
.mapfig figcaption { font-size: 13px; color: var(--mute); margin-top: 10px; }

.sheets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

/* ---------- misc ---------- */

.note {
  border: 1px solid var(--brass-d); background: rgba(217,164,65,.07);
  padding: 18px 22px; margin: 26px 0;
}
.note strong { color: var(--brass); }
.note.warn { border-color: var(--danger); background: rgba(212,105,75,.09); }
.note.warn strong { color: var(--danger); }
.note p { margin: 0; max-width: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }

.foot { border-top: 1px solid var(--rule); background: #061114; padding: 52px 0 64px; margin-top: 40px; }
.foot-h { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); font-family: var(--sans); margin-bottom: 16px; }
.sources { color: var(--mute); font-size: 13.5px; padding-left: 20px; max-width: 90ch; }
.sources li { margin-bottom: 7px; }
.fine { font-size: 12.5px; color: #6f8486; max-width: 88ch; margin-top: 22px; line-height: 1.6; }

.backlink { display: inline-block; font-size: 13px; letter-spacing: .08em; color: var(--mute); text-decoration: none; margin-bottom: 20px; }
.backlink:hover { color: var(--brass); }

@media (max-width: 860px) {
  .sp-head, .cols, .cols-3 { grid-template-columns: 1fr; gap: 28px; }
  .hero-in { padding-top: 62px; padding-bottom: 46px; }
  section { padding: 46px 0; }
  #map { height: 420px; }
}

/* ---------- species filter ---------- */

.filterbar {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px;
}
.filt {
  font: inherit; font-size: 13px; letter-spacing: .04em; cursor: pointer;
  background: transparent; color: var(--mute);
  border: 1px solid var(--edge); border-radius: 999px; padding: 7px 14px;
  transition: border-color .15s, color .15s, background .15s;
}
.filt:hover { color: var(--paper); border-color: var(--weed); }
.filt.is-on {
  background: var(--brass); border-color: var(--brass); color: var(--deep); font-weight: 600;
}
.filtnote { font-size: 13.5px; margin: 0 0 14px; }

.spot { border-top: 1px solid var(--rule); padding: 30px 0; }
.spot[hidden] { display: none; }
.spot-n { margin-top: 0; color: var(--mute); }
.spot-h { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.chips li { display: block; }
a.tag { text-decoration: none; }
a.tag:hover { border-color: var(--brass); color: #f0c069; }

/* map embedded on a species page */
.map-sm { height: 380px; }
