/* The Beagle Girl Gazette — Blastie (JR orchestrator build, 2026-11-04)
   Palette: warm neutrals chosen to flatter tri-color beagles (client brief).
   JS-free by design: every feature works with JavaScript disabled.
   Accessibility: --amber is a FILL colour; --amber-ink is the darkened token
   used wherever amber is applied to TEXT (WCAG AA). --muted darkened so it
   clears 4.5:1 on both --cream and --card. */

:root {
  --cream: #faf6ef;
  --card: #fffdf8;
  --ink: #3d3229;
  --muted: #6b5b4b;        /* 6.05:1 on cream, 6.41:1 on card */
  --amber: #d98e32;        /* fills only — 2.48:1 as text, never use for text */
  --amber-ink: #8a5314;    /* 5.86:1 on cream, 6.21:1 on card — text use */
  --sage: #9caf88;
  --line: rgba(61, 50, 41, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Poppins, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 300;
}

h1, h2, h3 { font-family: Fredoka, Poppins, sans-serif; font-weight: 600; }

/* ---- hero ---- */
.hero { position: relative; max-height: 78vh; overflow: hidden; }
.hero-img { width: 100%; height: min(72vh, 640px); object-fit: cover; display: block; }
.hero-veil {
  position: absolute; inset: 0;
  background: none;
}
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 12%;
  text-align: center; color: #fffaf2; padding: 0 1rem;
  text-shadow: 0 2px 14px rgba(43, 33, 24, .6);
  z-index: 2; isolation: isolate;
}
.hero-text:before {
  --plate-ramp: 10px;
  content: ''; position: absolute; left: -6%; right: -6%;
  top: calc(-1 * var(--plate-ramp)); bottom: -2.6rem;
  background: linear-gradient(180deg, rgba(61, 50, 41, 0) 0, rgba(61, 50, 41, .80) var(--plate-ramp), rgba(61, 50, 41, .80) calc(100% - 2rem), rgba(61, 50, 41, 0) 100%);
  z-index: -1; pointer-events: none;
}
/* The plate's upward ramp must not reach the beagles' face band (source rows
   600-750 of photo-02.jpg). Clearance between the band bottom and the kicker's
   first glyph row is 11px @375, 31px @768, 53px @1280/1920, so the ramp is
   sized per breakpoint to fade in below the band. */
@media (min-width: 480px) { .hero-text:before { --plate-ramp: 30px; } }
@media (min-width: 1024px) { .hero-text:before { --plate-ramp: 42px; } }
.hero-kicker {
  font-size: clamp(.8rem, 2.4vw, 1rem);
  letter-spacing: .12em; text-transform: uppercase;
  color: #f7e9cf; margin-bottom: .5rem;
}
.hero-text h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); letter-spacing: .02em; }
.hero-sub { font-size: clamp(1rem, 3vw, 1.35rem); color: #f3e9d8; margin-top: .3rem; }

/* ---- shared section shell ---- */
section { max-width: 980px; margin: 0 auto; padding: 2.2rem 1.4rem; }
h2 { color: var(--amber-ink); margin-bottom: 1.2rem; text-align: center; font-size: 1.5rem; }
.section-intro {
  max-width: 62ch; margin: 0 auto 1.6rem; text-align: center;
  color: var(--ink); font-size: 1.02rem;
}

/* ---- intro / prose ---- */
.intro {
  max-width: 680px; margin: 0 auto; padding: 2.2rem 1.4rem .4rem;
  text-align: center; font-size: 1.06rem; color: var(--ink);
}
.intro h2 { margin-bottom: 1rem; }
.intro p + p { margin-top: 1rem; }

/* ---- gallery ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.grid figure {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  transition: transform .18s ease;
}
.grid figure:hover { transform: translateY(-3px); }
.grid img { width: 100%; height: 220px; object-fit: cover; display: block; }
.grid figcaption {
  text-align: center; font-size: .8rem; color: var(--muted);
  padding: .55rem .6rem; letter-spacing: .04em;
}
.hint { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .9rem; }

/* ---- video ---- */
.video video {
  width: 100%; max-width: 720px; display: block; margin: 0 auto;
  border-radius: 12px; border: 1px solid var(--line); background: #2b2118;
}
.video video + video {
  margin-top: 14px;
}

/* ---- peanut gallery quotes ---- */
.quote-list {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.quote {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 12px; padding: 1.1rem 1.2rem;
}
.quote p { font-size: 1rem; color: var(--ink); }
.quote-by {
  margin-top: .7rem; font-size: .82rem; color: var(--muted);
  font-family: Poppins, 'Segoe UI', sans-serif; font-weight: 600;
}

/* ---- badges ---- */
.badge-grid {
  list-style: none; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}
.badge-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.05rem 1.1rem;
}
.badge-name { color: var(--amber-ink); font-size: 1.05rem; margin-bottom: .35rem; }
.badge-desc { font-size: .92rem; color: var(--muted); }

.callout-strip {
  list-style: none; margin-top: 1.6rem; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.callout {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: .85rem 1rem;
  font-size: .95rem; color: var(--ink);
}
.callout-by { color: var(--muted); font-size: .85rem; }

/* ---- newsletter ---- */
.newsletter { text-align: center; }
.signup {
  display: flex; flex-direction: column; gap: .7rem;
  align-items: center; max-width: 30rem; margin: 0 auto;
}
.field-label {
  align-self: flex-start; font-size: .88rem; font-weight: 600; color: var(--ink);
}
.field {
  width: 100%; padding: .7rem .9rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px;
}
.field:focus { outline: 2px solid var(--amber-ink); outline-offset: 2px; }
.btn {
  font: inherit; font-family: Fredoka, Poppins, sans-serif; font-weight: 600;
  font-size: 1.05rem; padding: .75rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; width: 100%;
}
.btn-primary { background: var(--amber-ink); color: #fffaf2; }
.btn-primary:hover { background: #6f4210; }
.follow { margin-top: 1rem; font-size: .95rem; }
.follow a { color: var(--amber-ink); }
.microcopy { margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.confirm {
  margin-top: 1.2rem; font-size: .95rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem 1rem; display: inline-block;
}

/* ---- footer ---- */
.foot {
  text-align: center; padding: 2.4rem 1rem 2.8rem;
  border-top: 1px solid var(--line); margin-top: 1.6rem;
}
.foot .foot-line { font-size: .8rem; color: var(--muted); }
.foot a { color: var(--amber-ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .grid, .badge-grid, .quote-list, .callout-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid img { height: 150px; }
  section { padding: 1.6rem 1rem; }
  .badge-grid, .quote-list, .callout-strip { grid-template-columns: 1fr; }
}

/* ---- desktop paw prints in the quiet gutters ----
   Pure CSS decoration (JS-free design holds). Each print sits at its own
   depth from the shell edge, own height in the section, own tilt and own
   size — an organic wander across the open space (shuffled positions per
   Jackie's ask), not a repeating pattern. Paw art bakes the amber fill +
   opacity (Gazette palette); URLs are relative to this css/ dir. Shown
   only at >=1100px so phones/tablets stay clean, and every spot still
   fits the tightest gutters (>=60px each side at 1100) so no horizontal
   scrollbar ever appears; art sized ~40% up per Jackie's 11/8 ask. */
@media (min-width: 1100px) {
  .intro, .gallery, .video, .foot { position: relative; }

  /* beside the intro: trail crossed to the right edge, tilted, riding high */
  .intro::before {
    content: ''; position: absolute; pointer-events: none;
    width: 56px; height: 185px;
    right: -104px; top: 2.6rem;
    transform: rotate(9deg);
    background: url('../img/paw-trail.svg') no-repeat center / contain;
  }

  /* by the Album: one lone paw on the left edge, low, tilted the other way */
  .gallery::before {
    content: ''; position: absolute; pointer-events: none;
    width: 48px; height: 49px;
    left: -44px; top: 72%;
    transform: rotate(-24deg);
    background: url('../img/paw.svg') no-repeat center / contain;
  }

  /* by the clips: trail stays left but leans, and moved far up */
  .video::before {
    content: ''; position: absolute; pointer-events: none;
    width: 38px; height: 125px;
    left: -37px; top: 13%;
    transform: rotate(13deg);
    background: url('../img/paw-trail.svg') no-repeat center / contain;
  }

  /* footer: single paw moved to the right side, up by the top edge, tilted */
  .foot::after {
    content: ''; position: absolute; pointer-events: none;
    width: 43px; height: 45px;
    right: 120px; top: 1rem;
    transform: rotate(18deg);
    background: url('../img/paw.svg') no-repeat center / contain;
  }
}
