/* stopbadagile.sallysloley.com - sea foam palette, TrashHand headings */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* TrashHand, converted from the desktop TTF.
   U+0023 (#) is DELIBERATELY excluded from the unicode-range: TrashHand maps
   the hash to an empty glyph with advance width but no contours, so every
   "#stopbadagile" on the page would render as a blank gap. Excluding it here
   makes the browser fall through to the next font in the stack for that one
   character. Replace this with Sally's hand-drawn hash when it exists. */
@font-face {
  font-family: 'TrashHand';
  src: url('trashhand.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0022, U+0024-10FFFF;
}

:root {
  --sf-deep:   #1B4D45;   /* deepest teal - headings, nav pill */
  --sf-mid:    #26695C;   /* buttons, links */
  --sf-soft:   #57A697;   /* hover, rules */
  --sf-pale:   #A8DBCD;   /* soft accents */
  --sf-page:   #DCEFE8;   /* page background - sea foam haze */
  --sf-card:   #F1F9F6;   /* cards */
  --sf-white:  #FFFFFF;
  --sf-ink:    #12312C;
  --sf-body:   #35544D;
  --sf-stone:  #6C8781;
  --sf-coral:  #E8917A;   /* small warm accent - the birds */
  --sf-gold:   #E3B96A;

  --f-display: 'TrashHand', 'Nunito', system-ui, sans-serif;
  --f-body: 'Nunito', system-ui, sans-serif;
  --fs-d1: clamp(2.6rem, 6.5vw, 4.6rem);
  --fs-d2: clamp(2rem, 4.2vw, 3.1rem);
  --fs-d3: clamp(1.5rem, 3vw, 2rem);
  --max: 1080px;
  --narrow: 720px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--sf-body);
  background: var(--sf-page);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(255,255,255,.6), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(38,105,92,.12), transparent 50%);
  background-attachment: fixed;
}
a { color: var(--sf-mid); text-decoration: underline; text-decoration-color: var(--sf-pale); text-underline-offset: 3px; }
a:hover { color: var(--sf-deep); text-decoration-color: var(--sf-soft); }
img { max-width: 100%; display: block; }

/* TrashHand is caps-only - lowercase maps to the same glyphs - and it sits
   small on the em, so headings need a touch more tracking to breathe. */
h1, h2, h3, .display-1, .display-2, .display-3 {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--sf-deep);
  line-height: 1.08;
  letter-spacing: .02em;
}
/* page headings (outside cards) in the card off-white; the green rule under them stays */
h1.display-1, h2.display-2 { color: var(--sf-card); text-shadow: 0 1px 2px rgba(27,77,69,.35); }
/* the #stopbadagile tag under the hero bird: green, half the h1 size */
.meta.meta-tag { color: var(--sf-mid); font-family: var(--f-display); font-size: calc(var(--fs-d1) / 2); letter-spacing: .06em; text-transform: none; font-weight: 700; }
.display-1 { font-size: var(--fs-d1); }
.display-2 { font-size: var(--fs-d2); }
.display-3 { font-size: var(--fs-d3); }
.lead { font-size: 1.25rem; line-height: 1.6; }
.meta { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sf-stone); font-weight: 700; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.rule { width: 56px; height: 3px; background: var(--sf-soft); border-radius: 3px; margin: 1.25rem auto; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: var(--narrow); }
.section { padding: 5rem 0; }
.section--tight { padding: 2.5rem 0; }

/* nav */
.nav { padding: 1.1rem 0; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-size: 2.1rem; color: var(--sf-deep); text-decoration: none; letter-spacing: .02em; }
.brandwrap { display: flex; align-items: center; flex-wrap: wrap; }
.brand-sep { font-family: var(--f-display); font-size: 2.1rem; color: var(--sf-deep); margin: 0 .5rem; }
.brand-aviary { font-family: var(--f-display); font-size: 2.1rem; color: var(--sf-deep); letter-spacing: .02em; background: var(--sf-white); padding: 0 .6rem; border-radius: 6px; line-height: 1.25; display: inline-block; }
.nav ul { list-style: none; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.nav ul a { text-decoration: none; color: var(--sf-body); font-weight: 600; font-size: .95rem; }
.nav ul a:hover { color: var(--sf-deep); }
.nav ul a[aria-current="page"] { color: var(--sf-deep); font-weight: 800; }
.nav ul a.pill {
  color: var(--sf-mid); border: 1.5px solid var(--sf-mid); border-radius: 999px; padding: .3rem .9rem;
}
.nav ul a.pill:hover, .nav ul a.pill[aria-current="page"] { background: var(--sf-mid); color: var(--sf-white); }

/* buttons */
.btn {
  display: inline-block; font-family: var(--f-body); font-size: .9rem; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent; transition: all .2s;
}
.btn-primary { background: var(--sf-mid); color: var(--sf-white); }
.btn-primary:hover { background: var(--sf-deep); color: var(--sf-white); }
.btn-outline { background: transparent; color: var(--sf-deep); border-color: var(--sf-deep); }
.btn-outline:hover { background: var(--sf-deep); color: var(--sf-white); }
.btn-warm { background: var(--sf-coral); color: #4A2318; }
.btn-warm:hover { background: #D3775F; color: var(--sf-white); }

/* cards + grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--sf-card); border-radius: var(--radius); padding: 2rem 1.75rem;
  border: 1px solid rgba(38,105,92,.16); box-shadow: 0 6px 24px rgba(27,77,69,.07);
}
.card h3 { margin-bottom: .6rem; }
.card p { margin-bottom: .9rem; }
.card .credit { font-size: .8rem; color: var(--sf-stone); font-style: italic; }

/* hero bird - whole card, never cropped */
.hero-bird { width: 100%; max-width: 380px; margin: 0 auto 1.5rem; }
.hero-bird img {
  width: 100%; height: auto; border-radius: 14px;
  border: 8px solid var(--sf-white); background: var(--sf-white);
  box-shadow: 0 10px 30px rgba(27,77,69,.18);
}

/* gallery - 4 across, each card shown whole (never cropped) */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img {
  width: 100%; height: auto; object-fit: contain; border-radius: 12px; background: var(--sf-card);
  border: 3px solid var(--sf-white); box-shadow: 0 4px 14px rgba(27,77,69,.12); transition: transform .2s;
}
.gallery img:hover { transform: translateY(-3px) rotate(-1deg); }
.gallery figure { margin: 0; text-align: center; }
.gallery figcaption { font-family: var(--f-display); font-size: 1.4rem; color: var(--sf-deep); margin-top: .5rem; letter-spacing: .04em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img, .btn { transition: none; }
}

/* footer */
footer { padding: 3rem 0 2.5rem; color: var(--sf-stone); font-size: .9rem; }
footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
footer ul { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer a { color: var(--sf-stone); text-decoration: none; }
footer a:hover { color: var(--sf-deep); }

/* lightbox */
.gallery .lb-link { display: block; cursor: zoom-in; }
.lb { position: fixed; inset: 0; background: rgba(18,49,44,.92); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: min(92vw, 720px); text-align: center; }
.lb-fig img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 14px; border: 8px solid var(--sf-white); background: var(--sf-white); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-fig figcaption { font-family: var(--f-display); font-size: 1.8rem; color: var(--sf-card); margin-top: .75rem; letter-spacing: .04em; }
.lb button { position: absolute; background: none; border: none; color: var(--sf-card); font-size: 3rem; line-height: 1; cursor: pointer; padding: .5rem 1rem; opacity: .85; }
.lb button:hover { opacity: 1; }
.lb-close { top: .75rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb { padding: 1rem; } .lb button { font-size: 2.4rem; padding: .4rem .6rem; } }
