/* =================================================================
   Kingston Bird Club — style.css
   -----------------------------------------------------------------
   Colour rules (checked for WCAG AA contrast):
   - Ink #150D0D is the text colour on every light background:
     white, teal, light teal, fall orange and summer yellow.
   - White text only on ink or deep teal #397C78.
   - Red #E92F10 belongs to the cardinal in the logo; it is not used
     for text or UI.
   - The seasonal colour (--season) changes with the time of year.
     app.js sets it; fall is the default if scripts are off.
   Fonts (free, from Google Fonts): Gaegu for titles, Cabin for
   everything else. To try another title font, change --display and
   the Google Fonts link in each page's <head>.
   ================================================================= */

:root {
  --teal: #7FC3BF;
  --teal-lt: #A6E0DC;
  --teal-dk: #397C78;
  --ink: #150D0D;
  --white: #FFFFFF;
  --tile: #FFFDF9;        /* the bingo-tile white */
  --muted: #3D4746;       /* secondary text, 9:1 on white */

  --season: #E0965E;      /* fall orange */
  --season-dk: #CB783F;

  --font: Cabin, "Trebuchet MS", Arial, sans-serif;
  --display: Gaegu, Cabin, "Comic Sans MS", cursive;

  /* hand-cut corners, like the paper tiles on the printed card */
  --cut: 16px 10px 18px 8px / 10px 16px 8px 18px;
  --line: 3px solid var(--ink);
  --max: 1120px;
}

html[data-season="winter"] { --season: #A6E0DC; --season-dk: #397C78 }
html[data-season="spring"] { --season: #A6E0DC; --season-dk: #7FC3BF }
html[data-season="summer"] { --season: #F09D00; --season-dk: #CB783F }
html[data-season="fall"]   { --season: #E0965E; --season-dk: #CB783F }

/* ---------- base ---------- */
[hidden] { display: none !important }  /* anything the site hides stays hidden, whatever its style */
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 700; line-height: 1.02 }
h1, h2 { font-family: var(--display); line-height: .95 }
h1 { font-size: clamp(3.2rem, 9.5vw, 6.8rem) }
h2 { font-size: clamp(2.4rem, 6vw, 3.8rem) }
h3 { font-size: 1.4rem; line-height: 1.15 }
p { margin: 0 0 1rem; max-width: 62ch }
a { color: var(--teal-dk); text-decoration-thickness: 2px; text-underline-offset: 3px }
a:hover { color: var(--ink) }
.on-teal a:not(.btn), .on-season a:not(.btn), .bingo a:not(.btn), .on-teal-lt a:not(.btn) { color: var(--ink) }
.on-dark a:not(.btn) { color: var(--teal-lt) }
.on-dark a:not(.btn):hover { color: var(--white) }
strong { font-weight: 700 }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--white) }
.on-dark :focus-visible { outline-color: var(--white); box-shadow: 0 0 0 6px var(--ink) }

.skip {
  position: absolute; left: .75rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--white); padding: .6rem 1rem;
  font-weight: 700; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: .75rem; color: var(--white) }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto }
.band { padding: clamp(3rem, 7vw, 5.5rem) 0 }
.on-teal { background: var(--teal) }
.on-teal-lt { background: var(--teal-lt) }
.on-season { background: var(--season) }
.on-dark { background: var(--ink); color: var(--white) }
.on-deep { background: var(--teal-dk); color: var(--white) }
.on-deep a:not(.btn) { color: var(--white) }
.lede { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.45 }
.small { font-size: .95rem }
.muted { color: var(--muted) }
.on-dark .muted, .on-deep .muted { color: #E6EFEE }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  color: var(--white); background: var(--ink);
  border: var(--line); border-radius: var(--cut);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--teal-dk); border-color: var(--teal-dk); color: var(--white) }
.btn.light { background: var(--tile); color: var(--ink) }
.btn.light:hover { background: var(--teal-lt); border-color: var(--ink); color: var(--ink) }
.btn.quiet { background: transparent; color: var(--ink); min-height: 44px; padding: .5rem 1rem; font-size: .98rem }
.btn.quiet:hover { background: var(--tile) }
.on-dark .btn.light, .on-deep .btn.light { border-color: var(--white) }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: var(--line) }
.site-header .wrap {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav join";
  align-items: center; gap: .75rem 1.75rem; padding: .85rem 0;
}
.brand {
  grid-area: brand; display: flex; align-items: center; gap: .7rem;
  color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1;
}
.brand img { width: 58px; height: 58px; transform: rotate(-6deg) }
.brand:hover { color: var(--ink) }
.brand:hover img { transform: rotate(4deg) }
.header-join { grid-area: join; min-height: 44px; padding: .5rem 1rem }
.site-nav { grid-area: nav; justify-self: end }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem }
.site-nav a {
  display: inline-block; padding: .6rem 0; color: var(--ink);
  font-weight: 600; text-decoration: none; border-bottom: 4px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink); color: var(--ink) }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink) }
@media (max-width: 860px) {
  /* phones and small tablets: logo + Join on top, the five links in one row below */
  .site-header .wrap { grid-template-columns: 1fr auto; grid-template-areas: "brand join" "nav nav"; gap: .4rem 1rem; padding-bottom: .2rem }
  .site-nav { justify-self: stretch; border-top: 2px solid var(--ink); padding-top: .15rem }
  .site-nav ul { justify-content: space-between; gap: 0 .5rem }
  .site-nav a { font-size: .98rem; padding: .55rem 0 }
  .brand { font-size: 1.45rem }
  .brand img { width: 46px; height: 46px }
}
@media (max-width: 380px) { .site-nav a { font-size: .9rem } .brand { font-size: 1.25rem } }

/* ---------- home hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem) }
.hero h1 { font-size: clamp(3rem, 8.2vw, 7rem); line-height: .9; letter-spacing: -.02em; margin-bottom: 1.75rem; text-wrap: balance }
@media (min-width: 821px) { .hero h1 { white-space: nowrap } }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end }
.hero-row .lede { max-width: 44ch; margin: 0 }
.hero-row .actions { margin: 0; justify-content: flex-end }
@media (max-width: 820px) { .hero-row { grid-template-columns: 1fr } .hero-row .actions { justify-content: flex-start } }
.hero-art { margin: clamp(1.5rem, 4vw, 2.5rem) auto 0; max-width: 1100px }
.hero-art img { width: 100% }
.hero-art figcaption { text-align: center; font-size: .95rem; padding: 0 1rem 1rem; font-style: italic }

/* ---------- inner page title ---------- */
.page-title { padding: clamp(2.5rem, 6vw, 4rem) 0 }
.page-title .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center }
.page-title h1 { font-size: clamp(3rem, 8vw, 5.6rem) }
.page-title p { margin-bottom: 0 }
.sticker {
  width: clamp(120px, 18vw, 190px); aspect-ratio: 1; object-fit: cover;
  border: 6px solid var(--white); border-radius: 50%;
  outline: 3px solid var(--ink); transform: rotate(6deg); background: var(--tile);
}
.sticker.tilt-left { transform: rotate(-7deg) }
@media (max-width: 640px) {
  .page-title .wrap { grid-template-columns: 1fr }
  .page-title .sticker { width: 110px; order: -1 }
}

/* ---------- welcome statement ---------- */
.welcome p {
  max-width: 40ch; margin: 0;
  font-size: clamp(1.4rem, 3.3vw, 2.15rem); line-height: 1.3; font-weight: 600;
}
.welcome .glad { display: block; margin-top: .8rem; color: var(--teal); font-family: var(--display); font-size: 1.35em }

/* ---------- events ---------- */
.event-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start }
.poster {
  border: var(--line); border-radius: var(--cut); overflow: hidden;
  transform: rotate(-1.5deg); background: var(--teal);
}
.event-feature h3 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1rem }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.25rem; margin: 0 0 1.25rem }
.facts dt { font-weight: 700 }
.facts dd { margin: 0 }
.tag {
  display: inline-block; margin-bottom: .9rem; padding: .2rem .7rem;
  background: var(--season); border: 2px solid var(--ink); border-radius: var(--cut);
  font-weight: 700; font-size: .95rem;
}
.event-list { list-style: none; margin: 1rem 0 0; padding: 0; border-top: var(--line) }
.event-list li { display: grid; grid-template-columns: 11rem 1fr; gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 2px solid var(--ink) }
.event-list .when { font-weight: 700 }
.event-list p { margin: .2rem 0 0 }
@media (max-width: 720px) {
  .event-feature { grid-template-columns: 1fr }
  .poster { max-width: 420px }
  .event-list li { grid-template-columns: 1fr }
}
details.past { margin-top: 2.5rem }
details.past summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; padding: .5rem 0 }
.loading { font-style: italic }

/* ---------- bingo ---------- */
.bingo { background: var(--card, var(--season)) }
.bingo-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem }
.bingo-head :is(h1, h2) { font-size: clamp(3.2rem, 9vw, 5.6rem); margin: 0 }
.bubble {
  position: relative; display: inline-block; margin: 0 0 .9rem; padding: .55rem 1.3rem .65rem;
  background: var(--white); border-radius: 28px 22px 30px 20px;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.1;
}
.bubble::after {
  content: ""; position: absolute; left: 34px; bottom: -14px;
  border: 9px solid transparent; border-top: 16px solid var(--white); border-left-width: 4px;
}
.card-picker { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem }
.card-btn[aria-pressed="true"] { background: var(--ink); color: var(--white) }
.card-btn[aria-pressed="true"]:hover { background: var(--teal-dk); border-color: var(--teal-dk) }
.bingo-layout { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 2rem }
@media (max-width: 860px) { .bingo-layout { grid-template-columns: 1fr } }
.bingo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.4rem, 1.4vw, .75rem) }
.tile {
  position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; margin: 0;
  background: var(--tile); color: var(--ink);
  border: var(--line); border-radius: var(--cut); overflow: hidden;
  font: inherit; cursor: pointer; text-align: center;
}
.tile:nth-child(3n+1) { transform: rotate(-.8deg) }
.tile:nth-child(3n+2) { transform: rotate(.5deg) }
.tile:nth-child(3n)   { transform: rotate(-.3deg) }
.tile-art { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden }
.tile-art img { width: 100%; height: 100%; object-fit: cover }
.tile .name {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 2.6em;
  border-top: 2px solid var(--ink); padding: .25rem .3rem;
  font-size: max(.875rem, min(1.6vw, .95rem)); font-weight: 700; line-height: 1.15; hyphens: auto;
}
.tile:hover { outline: 3px solid var(--ink); outline-offset: 2px }
.tile[aria-pressed="true"] .tile-art::after {
  /* the "spotted" mark: a marker-drawn circle with a tick, like circling it on the paper card */
  content: ""; position: absolute; left: 12%; top: 12%; width: 76%; aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='41' fill='%23FFFDF9' fill-opacity='.7'/%3E%3Cpath d='M52 7C77 6 95 26 94 51C93 77 72 94 47 93C22 92 5 72 7 47C9 23 28 8 58 10' fill='none' stroke='%23150D0D' stroke-width='6.5' stroke-linecap='round'/%3E%3Cpath d='M30 52L44 66L71 35' fill='none' stroke='%23150D0D' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tile.is-selected { outline: 4px solid var(--ink); outline-offset: 3px }
.tile.free .tile-art { background: var(--teal) }
.tile.empty { background: transparent; border-style: dashed; aspect-ratio: 1 }
.bingo-side {
  background: var(--tile); border: var(--line); border-radius: var(--cut);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}
.bingo-score { font-size: 1.35rem; font-weight: 700; margin: 0 0 .25rem }
.bingo-score.win { font-size: 2rem }
.bird-facts { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 2px solid var(--ink) }
.bird-facts h3 { font-size: 1.8rem; margin-bottom: .6rem }
.bird-facts ul { margin: 0; padding-left: 1.2rem }
.bird-facts li { margin-bottom: .35rem }
.bingo-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem }

/* fact cards on the bingo page, like the back of the printed card */
.fact-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem }
.fact-grid > li {
  background: var(--tile); border: var(--line); border-radius: var(--cut);
  padding: 1rem 1.1rem; display: grid; grid-template-columns: 72px 1fr; gap: .9rem; align-items: start;
}
.fact-grid img { width: 72px; height: 72px; border: 2px solid var(--ink); border-radius: 10px 6px 12px 5px; object-fit: cover }
.fact-grid h3 { font-size: 1.25rem; margin-bottom: .35rem }
.fact-grid ul { margin: 0; padding-left: 1.1rem; font-size: 1rem }

/* ---------- prose sections ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem) }
@media (max-width: 760px) { .split { grid-template-columns: 1fr } }
.doing { display: grid; grid-template-columns: 110px 1fr; gap: 1.25rem; align-items: start }
.doing img { width: 110px; aspect-ratio: 1; object-fit: cover; border: var(--line); border-radius: var(--cut); transform: rotate(-4deg) }
.doing:nth-child(2) img { transform: rotate(5deg) }
.prose > * { max-width: 70ch }
.prose h2 { margin-top: 2.5rem }
.prose h2:first-child { margin-top: 0 }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem }
.prose li { margin-bottom: .45rem }
.bring { list-style: none; padding: 0; margin: 0; columns: 2 18rem; column-gap: 2.5rem }
.bring li { break-inside: avoid; padding: .6rem 0 .6rem 2.1rem; position: relative; border-bottom: 2px solid var(--ink) }
.bring li::before {
  content: ""; position: absolute; left: 0; top: .85rem; width: 1.15rem; height: 1.15rem;
  border: 3px solid var(--ink); border-radius: 5px 3px 6px 2px; background: var(--season);
}
.faq details { border-bottom: 2px solid var(--ink) }
.faq details:first-of-type { border-top: 2px solid var(--ink) }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 700; font-size: 1.15rem }
.faq details > div { padding: 0 0 1rem }

.values { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3rem }
@media (max-width: 680px) { .values { grid-template-columns: 1fr } }
.values h3 { border-bottom: var(--line); padding-bottom: .4rem; display: inline-block }
.note-from { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.5 }
.signoff { font-weight: 700 }

/* photo slots: use real photos sparingly */
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem }
@media (max-width: 640px) { .photo-row { grid-template-columns: 1fr } }
.photo-slot {
  aspect-ratio: 4 / 3; border: var(--line); border-radius: var(--cut);
  background: var(--teal-lt); display: grid; place-items: center; padding: 1rem;
  text-align: center; font-weight: 600; font-size: .95rem;
}
.photo-row img { aspect-ratio: 4 / 3; object-fit: cover; border: var(--line); border-radius: var(--cut) }

.qr-slot {
  width: 150px; aspect-ratio: 1; border: 3px dashed var(--ink); border-radius: 8px;
  display: grid; place-items: center; text-align: center; padding: .5rem; font-size: .85rem; font-weight: 600; background: var(--white);
}
.print-row { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center }

/* ---------- WACK ---------- */
.report-bar { border-bottom: var(--line) }
.report-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.25rem 0 }
.report-bar p { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; max-width: 46ch }
.big-number { font-family: var(--display); white-space: nowrap; font-size: clamp(4rem, 11vw, 8.5rem); font-weight: 700; line-height: .9; letter-spacing: -.03em; margin: 0 }
.big-number-label { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 600; max-width: 26ch; margin-top: .75rem }
.stat-row { display: flex; flex-wrap: wrap; gap: 1rem 3.5rem; margin: 1.5rem 0 2.5rem }
.stat .n { display: block; font-size: clamp(3rem, 8vw, 4.75rem); font-weight: 700; line-height: 1 }
.stat .l { font-weight: 600 }
.bars { list-style: none; margin: .5rem 0 0; padding: 0 }
.bars li { display: grid; grid-template-columns: minmax(7rem, 13rem) 1fr 2.5rem; gap: .8rem; align-items: center; padding: .3rem 0 }
.bars .track { height: 18px }
.bars .fill { display: block; height: 100%; min-width: 4px; background: var(--teal-dk); border-radius: 0 4px 4px 0 }
.bars .v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums }
@media (max-width: 560px) { .bars li { grid-template-columns: 1fr 2.5rem } .bars .track { grid-column: 1 / -1; grid-row: 2 } }
.data-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem }
@media (max-width: 760px) { .data-cols { grid-template-columns: 1fr } }
.species { columns: 2 14rem; column-gap: 2rem; padding-left: 1.2rem }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.25rem 0 0 }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.1rem 3.4rem; min-height: 2.6rem }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.15rem;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  background: var(--season); border: var(--line); border-radius: 50%; font-weight: 700;
}

/* ---------- join band + footer ---------- */
.join-band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between }
.join-band h2 { margin: 0 }
.join-band p { margin: .5rem 0 0 }
.site-footer { background: var(--ink); color: var(--white); padding: 3rem 0 2.5rem }
.site-footer .follow { font-family: var(--display); font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 700; line-height: 1.05; margin: 0 0 2rem; max-width: none }
.site-footer .follow a { color: var(--teal) }
.site-footer .follow a:hover { color: var(--white) }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; font-size: 1rem }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem }
.foot-grid a { color: var(--teal-lt) }
.foot-grid a:hover { color: var(--white) }
.foot-grid p { margin: 0 0 .4rem }

/* ---------- motion + print ---------- */
@media (prefers-reduced-motion: no-preference) {
  .brand img, .tile, .btn { transition: transform .18s ease, background-color .15s ease }
  .tile:active { transform: scale(.97) }
}
@media print {
  .site-header, .site-footer, .report-bar, .join-band, .bingo-tools, .actions, .wire, .hidden-bird, .toast { display: none !important }
  .on-teal, .on-season, .on-dark, .on-deep, .on-teal-lt { background: none !important; color: var(--ink) !important }
}
@media (max-width: 640px) {
  .hero-art img { height: 210px; object-fit: cover; object-position: center }
}

/* ---------- small delights ---------- */

/* hidden birds: one tucked away on four pages */
.has-hider { position: relative }
.hidden-bird {
  position: absolute; z-index: 2; padding: 0; border: 0; background: none; cursor: pointer;
  width: var(--w, 72px); line-height: 0;
}
.hidden-bird img { width: 100%; height: auto }
.hidden-bird:focus-visible { outline-offset: 4px }
.hidden-bird.found::after {
  content: ""; position: absolute; right: -6px; top: -6px; width: 22px; height: 22px;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23150D0D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* birds on a wire above the footer */
/* app.js picks new birds each time a page loads (see “WIRE_BIRDS” in config.js);
   the three in the page are what shows if scripts are off. */
.wire { position: relative; height: 100px; margin-top: 4rem; overflow: hidden; --flip: 1 }
.wire::before { content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 3px; background: var(--ink) }
.wire img { position: absolute; height: auto; transform: scaleX(var(--flip)) }
.wire .w1 { left: 14%; bottom: 26px; width: 64px }
.wire .w2 { left: 46%; bottom: 26px; width: 66px }
.wire .w3 { right: 16%; bottom: 25px; width: 60px; --flip: -1 }
.site-footer { margin-top: 0 }

/* toast for found birds */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 60; max-width: min(92vw, 28rem);
  transform: translate(-50%, 160%);
  background: var(--ink); color: var(--white); border-radius: var(--cut);
  padding: .8rem 1.2rem; font-weight: 700; text-align: center;
}
.toast.show { transform: translate(-50%, 0) }

/* the 404 page */
.lost { text-align: center; padding: clamp(3rem, 10vw, 7rem) 0 }
.lost img { width: min(260px, 60vw); margin: 0 auto 1.5rem }
.lost h1 { margin-inline: auto }
.lost p { margin-inline: auto }
.lost .actions { justify-content: center }

@media (prefers-reduced-motion: no-preference) {
  .toast { transition: transform .3s ease }
  .hidden-bird { transition: transform .2s ease }
  .hidden-bird:hover { transform: translateY(-4px) rotate(-6deg) }
  .hidden-bird.flutter { animation: flutter .7s ease }
  .tile.hop { animation: hop .55s ease }
  .wire img { transform-origin: 50% 100% }
  .wire img:hover { animation: bob .6s ease }
  @keyframes flutter { 0%,100% { transform: none } 25% { transform: translateY(-14px) rotate(-10deg) } 50% { transform: translateY(-4px) rotate(8deg) } 75% { transform: translateY(-10px) rotate(-4deg) } }
  @keyframes hop { 0%,100% { translate: 0 0 } 40% { translate: 0 -14px } 70% { translate: 0 2px } }
  @keyframes bob { 0%,100% { transform: scaleX(var(--flip)) } 50% { transform: scaleX(var(--flip)) translateY(-6px) } }
}
@media (max-width: 520px) {
  .doing { grid-template-columns: 76px 1fr; gap: 1rem }
  .doing img { width: 76px }
}

/* click birds */
.click-bird {
  position: fixed; z-index: 70; pointer-events: none; font-size: 1.6rem; line-height: 1;
  translate: -50% -50%; animation: fly-off .9s ease-out forwards;
}
@keyframes fly-off {
  0%   { transform: scale(.4); opacity: 0 }
  20%  { transform: scale(1.1); opacity: 1 }
  100% { transform: translate(var(--drift, 0), -70px) scale(.9) rotate(-12deg); opacity: 0 }
}

/* out and about: scrapbook */
.scrapbook { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.75rem; margin-top: 2.5rem }
@media (max-width: 860px) { .scrapbook { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 480px) { .scrapbook { grid-template-columns: 1fr } }
.snap {
  position: relative; margin: 0; padding: .7rem .7rem 0; background: var(--white);
  border: var(--line); border-radius: 6px 4px 7px 3px;
}
.snap:nth-child(3n+1) { transform: rotate(-1.6deg) }
.snap:nth-child(3n+2) { transform: rotate(1deg) translateY(10px) }
.snap:nth-child(3n)   { transform: rotate(-.6deg) }
.snap::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 84px; height: 24px;
  translate: -50% 0; rotate: -4deg; background: rgba(166, 224, 220, .85); border: 1px solid rgba(21, 13, 13, .15);
}
.snap:nth-child(even)::before { background: rgba(240, 157, 0, .55); rotate: 5deg }
.snap img, .snap .photo-slot { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border: 2px solid var(--ink); border-radius: 3px }
.snap .photo-slot { border-width: 2px; border-radius: 3px }
.snap figcaption { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; padding: .6rem .2rem .75rem; text-align: center }
.scrap-sticker { position: absolute; pointer-events: none; height: auto }
.scrap-sticker.s1 { width: 70px; top: -58px; right: 4% }
.scrap-sticker.s2 { width: 76px; bottom: -40px; left: -10px; transform: rotate(-6deg) }
@media (max-width: 480px) { .scrap-sticker { display: none } }
.also-ig { margin-top: 2.75rem; font-weight: 700 }

/* ---------- added in update 3 ---------- */

/* footer links: bigger tap areas (at least 44px tall) */
.foot-links a { display: inline-block; padding: .65rem 0; min-height: 44px }

/* About page: on phones, the hidden swallow sits in the corner instead of over the text */
@media (max-width: 640px) {
  .hidden-bird[data-bird="tree-swallow"] { --w: 70px !important; left: auto !important; right: 5% !important; top: -44px !important }
}

/* Start here: the three event types */
.event-types { display: grid; gap: .75rem; margin: 0 0 1rem }
.event-types > div { display: grid; grid-template-columns: 11rem 1fr; gap: .25rem 1rem; align-items: baseline }
.event-types dt .tag { margin: 0 }
.event-types dd { margin: 0 }
@media (max-width: 560px) { .event-types > div { grid-template-columns: 1fr } }
.faq ul { margin: 0 0 1rem; padding-left: 1.2rem }

/* events: add to calendar */
.cal-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem }
.cal-label { font-weight: 700; margin-right: .25rem }

/* About: Our story so far */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; position: relative; max-width: 52rem }
.timeline::before { content: ""; position: absolute; left: 10rem; top: .6rem; bottom: .6rem; width: 3px; background: var(--ink) }
.timeline li { position: relative; display: grid; grid-template-columns: 10rem 1fr; gap: 0 2.25rem; padding: 0 0 2rem }
.timeline li:last-child { padding-bottom: 0 }
.timeline li::before {
  content: ""; position: absolute; left: calc(10rem - .55rem); top: .3rem; width: 1.25rem; height: 1.25rem;
  background: var(--season); border: 3px solid var(--ink); border-radius: 50%;
}
.timeline .when { grid-column: 1; grid-row: 1 / span 2; text-align: right; padding-right: 1.25rem; font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.1 }
.timeline h3, .timeline p { grid-column: 2; margin-left: .5rem }
.timeline h3 { margin-bottom: .2rem }
.timeline p { margin-bottom: 0 }
@media (max-width: 640px) {
  .timeline::before { left: .55rem }
  .timeline li { grid-template-columns: 1fr; padding-left: 2.25rem }
  .timeline li::before { left: 0 }
  .timeline .when { grid-row: auto; text-align: left; padding: 0 }
  .timeline h3, .timeline p { grid-column: 1; margin-left: 0 }
}

/* About: speak up line under the guidelines */
.speak-up { margin-top: 2rem; padding: 1rem 1.25rem; border: var(--line); border-radius: var(--cut); background: var(--tile); max-width: 52rem }
.speak-up a { color: var(--ink) }

/* ---------- added in update 4 ---------- */

/* Start here: ways birding can look, resources */
.birding-ways { columns: 2 16rem; column-gap: 2rem; margin: 0 0 1rem; padding-left: 1.3rem }
.birding-ways li { break-inside: avoid }
.resources li { margin-bottom: .7rem }

/* About: our projects (cards are styled in the update 4.7 section at the end) */
.projects { padding-top: 0 }

/* WACK: photos from our rounds, behind a button */
.photo-reveal { margin-top: 2rem }
.photo-reveal summary {
  display: inline-block; cursor: pointer; font-weight: 700; padding: .6rem 1.1rem;
  border: var(--line); border-radius: var(--cut); background: var(--tile); list-style: none;
}
.photo-reveal summary::-webkit-details-marker { display: none }
.photo-reveal[open] summary { background: var(--ink); color: var(--white) }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-top: 1.25rem }
.photo-grid .snap { transform: none; padding: .5rem .5rem 0 }
.photo-grid .snap::before { display: none }
.photo-grid figcaption { font-family: var(--font); font-size: .95rem; font-weight: 700; padding: .45rem .1rem .55rem }
.muted-note { font-style: italic; margin: 0 }

/* WACK: dead-bird report box */
.report-dead { border: var(--line); border-radius: var(--cut); background: var(--season); padding: 1.1rem 1.25rem; margin: 1rem 0 1.75rem }
.report-dead h3 { margin-bottom: .4rem }
.report-dead .btn { margin-top: .25rem }
.steps-h { margin-bottom: .25rem }

/* Bird Mail page */
.mail-steps { padding-left: 1.3rem }
.mail-steps li { margin-bottom: 1rem }
.mail-steps .btn { margin-top: .75rem }

/* footer: hide-them-again button */
.hidden-status { margin-top: .4rem }
.link-btn {
  background: none; border: 0; padding: .5rem 0; min-height: 44px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--teal-lt); text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--white) }

/* ---------- added in update 4.5 ---------- */
/* hidden birds can peek in from the side of the screen without making the page scroll sideways */
.has-hider { overflow-x: clip }
@supports not (overflow: clip) { body { overflow-x: hidden } }
.hidden-bird .flip { transform: scaleX(-1) }
/* page title picture (no circle) */
.page-art { width: clamp(110px, 16vw, 170px); height: auto; transform: rotate(4deg) }
@media (max-width: 640px) { .page-art { order: -1; width: 100px } }
/* phones: keep hidden birds clear of text */
@media (max-width: 640px) {
  .hidden-bird[data-bird="pileated-woodpecker"] { --w: 46px !important; left: -6px !important }
}

/* ---------- added in update 4.6 ---------- */
/* About: three values, each topped with a drawing */
.values.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem }
.values.three img { height: 92px; width: auto; margin-bottom: .9rem }
@media (max-width: 760px) {
  .values.three { grid-template-columns: 1fr; gap: 2.25rem }
  .values.three img { height: 76px }
}
/* events: "More information" fold-out */
.more-info { margin: 0 0 1.25rem; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink) }
.more-info summary { cursor: pointer; font-weight: 700; padding: .7rem 0 }
.more-info > div { padding: 0 0 .6rem }
.more-info p { margin-bottom: .6rem }
.values.three + .speak-up { max-width: none }

/* ---------- added in update 4.7 ---------- */

/* About: project cards. Three across on computers, stacked on phones. */
.project-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start }
@media (max-width: 900px) { .project-list { grid-template-columns: 1fr; gap: 2rem } }
.project {
  position: relative; display: grid; gap: .35rem; padding: 1.1rem 1.25rem;
  border: var(--line); border-radius: var(--cut); background: var(--tile);
  scroll-margin-top: 3rem;
}
.project > strong, .project-link strong { font-size: 1.3rem }
.project > span { font-size: 1rem }
.project:target { box-shadow: 0 0 0 4px var(--season) }
/* WACK card: the whole card is the link */
.project-link { display: grid; gap: .35rem; margin: -1.1rem -1.25rem; padding: 1.1rem 1.25rem; border-radius: var(--cut); color: var(--ink); text-decoration: none }
.project-link:hover { background: var(--teal-lt) }
.project-link span { font-size: 1rem }
.project-link .go { font-weight: 700; text-decoration: underline; margin-top: .3rem }
.project-link .go::after { content: " →" }
/* Bird Mail card: penguin in the corner, “Read more” opens in place */
.project-art { position: absolute; top: -26px; right: 10px; width: 54px; height: auto; transform: rotate(6deg) }
#bird-mail > strong, #bird-mail > span { padding-right: 3.2rem }
.read-more summary { cursor: pointer; font-weight: 700; text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px }
.read-more > div { padding-top: .25rem }
.read-more p { margin-bottom: .7rem; font-size: 1rem }

<<<<<<< Updated upstream
=======
/* ---------- added in update 4.8 ---------- */

/* WACK photos: square tiles; caption lines: bird name in bold, then date, spot, notes */
.photo-grid .snap img { aspect-ratio: 1 }
@media (max-width: 640px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem } .photo-grid .snap { padding: .35rem .35rem 0 } .photo-grid figcaption { font-size: .85rem } }
.photo-grid figcaption { font-weight: 400; line-height: 1.35 }
.photo-grid figcaption .cap-1 { font-weight: 700 }

/* ---------- added in update 4.9 ---------- */

/* Event ticket: drawn when an event has no photo. Sizes follow the ticket's width. */
.ticket {
  position: relative; aspect-ratio: 1; container-type: inline-size;
  transform: rotate(2deg); color: var(--ink); font-family: var(--font);
}
.ticket-shape { position: absolute; inset: 0; width: 100%; height: 100% }
.ticket-shape path { fill: var(--season); stroke: var(--ink); stroke-width: 3 }
.ticket-shape line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 6 }
.ticket-head {
  position: absolute; left: 5%; right: 5%; top: 5%; height: 12%;
  display: flex; justify-content: space-between; align-items: center; padding: 0 4%;
  background: var(--ink); color: var(--white); border-radius: 6px;
  gap: 4%; font-weight: 700; letter-spacing: .08em; font-size: 12px; font-size: 4cqw; white-space: nowrap;
}
.ticket-head span:first-child { text-transform: uppercase }
.ticket-body { position: absolute; left: 8%; right: 31%; top: 20%; bottom: 27%; display: flex; flex-direction: column; justify-content: center; gap: 3cqw }
.ticket-tag { align-self: flex-start; padding: .1em .7em; background: var(--white); border: 2px solid var(--ink); border-radius: 99px; font-weight: 700; font-size: 13px; font-size: 4.2cqw }
.ticket-title { font-family: var(--display); font-weight: 700; line-height: .95; font-size: 38px; font-size: 12cqw; overflow-wrap: anywhere }
.ticket-title.mid { font-size: 28px; font-size: 9cqw }
.ticket-title.long { font-size: 22px; font-size: 7cqw }
.ticket-place { font-weight: 700; font-size: 15px; font-size: 5cqw; line-height: 1.2 }
.ticket-bird {
  position: absolute; right: 6%; top: 40%; width: 23%; aspect-ratio: 1;
  display: grid; place-items: center; background: var(--white); border: 3px solid var(--ink); border-radius: 50%;
}
.ticket-bird img { width: 74%; height: 74%; object-fit: contain }
.ticket-stub {
  position: absolute; left: 8%; right: 8%; top: 77%; bottom: 5%;
  display: flex; justify-content: space-between; align-items: center; gap: 4%;
  font-family: var(--display); font-weight: 700; line-height: 1; font-size: 30px; font-size: 9.5cqw;
}
.ticket-stub small { display: block; font-family: var(--font); font-size: 12px; font-size: 3.8cqw; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .15em }
.ticket-time { text-align: right; font-size: .8em }
@media (max-width: 720px) { .ticket { max-width: 420px } }

>>>>>>> Stashed changes
