/* Plast Calgary site styles
   Dark, cinematic theme. Colours follow the Plast brand book: green #007932, yellow #FFE600. */

:root {
  --bg: #06231a;
  --bg-2: #0b3424;
  --bg-3: #041911;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f4f1e8;
  --muted: rgba(244, 241, 232, 0.72);
  --yellow: #ffe600;
  --yellow-hover: #fff04d;
  --yellow-dim: rgba(255, 230, 0, 0.55);
  --green: #007932;
  --paper: #faf8f2;
  --ink: #0e2219;
  --ink-2: #3d4e44;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 150px);
  --header-h: 80px;
  --radius: 6px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: transparent; color: var(--text); font: 400 1.125rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.25; }
h2 em, h1 .accent { font-style: italic; font-weight: 500; color: var(--yellow); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--radius); background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.form-card :focus-visible { outline-color: var(--green); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ornament: a diamond border in the spirit of Ukrainian embroidery ---------- */
.motto::before, .motto::after {
  content: ""; display: block; height: 16px;
  background: var(--orn, var(--yellow-dim));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20'%3E%3Cpath fill-rule='evenodd' d='M16 1l8 9-8 9-8-9zM16 6l3.5 4-3.5 4-3.5-4z'/%3E%3Cpath d='M0 7.5l2.5 2.5-2.5 2.5-2.5-2.5zM32 7.5l2.5 2.5-2.5 2.5-2.5-2.5z'/%3E%3C/svg%3E") repeat-x center / auto 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20'%3E%3Cpath fill-rule='evenodd' d='M16 1l8 9-8 9-8-9zM16 6l3.5 4-3.5 4-3.5-4z'/%3E%3Cpath d='M0 7.5l2.5 2.5-2.5 2.5-2.5-2.5zM32 7.5l2.5 2.5-2.5 2.5-2.5-2.5z'/%3E%3C/svg%3E") repeat-x center / auto 100%;
}
.motto::before, .motto::after { --orn: var(--ink); }
.site-footer { position: relative; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 56px; padding: 0 2rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 700 1rem/1.1 var(--font-head);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-sm { min-height: 48px; padding: 0 1.4rem; font-size: 0.98rem; }
.btn-primary, .btn-green { background: var(--yellow); color: var(--ink); }
.btn-primary:hover, .btn-green:hover { background: var(--yellow-hover); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-dark:hover { background: var(--bg-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--text); border-color: var(--text); color: var(--ink); }
.btn-ghost-dark { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost-dark:hover { background: var(--green); color: #fff; }
.form-card .btn-green { background: var(--green); color: #fff; }
.form-card .btn-green:hover { background: #005f27; }

.link { color: var(--yellow); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.link:hover { text-decoration-thickness: 2px; }
.form-card .link { color: var(--green); }
.link-text {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  color: var(--yellow); font: 700 1rem/1.3 var(--font-head); text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; text-decoration-color: var(--yellow-dim);
  transition: color 0.15s, text-decoration-color 0.15s;
}
.link-text .icon { width: 1.05em; height: 1.05em; }
.link-text:hover { color: var(--text); text-decoration-color: currentColor; }
.lang-note { font: 600 0.82em/1 var(--font-body); color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s; }
.site-header.is-scrolled, .site-header.is-static { background: rgba(6, 35, 26, 0.88); border-color: var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-scrolled, .site-header.is-static { background: rgba(6, 35, 26, 0.72); backdrop-filter: saturate(1.3) blur(14px); } }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { font: 500 1.55rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a { display: block; padding: 10px 12px; font: 600 1rem/1.2 var(--font-body); color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s; }
.site-nav ul a:hover { color: var(--yellow); }
.site-nav ul a[aria-current] { border-color: var(--yellow); }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-link { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); font: 800 0.82rem/1 var(--font-head); letter-spacing: 0.08em; text-decoration: none; transition: border-color 0.2s; }
.lang-link:hover { border-color: var(--text); }
.menu-toggle { display: none; }

@media (max-width: 1020px) {
  .header-inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-block: 12px; }
  .site-nav { order: 3; width: 100%; }
  .site-nav ul { flex-wrap: wrap; }
  .js .header-inner { flex-wrap: nowrap; height: var(--header-h); padding-block: 0; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; }
  .js .menu-toggle .icon { width: 24px; height: 24px; }
  .menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 8px var(--gutter) 28px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
  .js .site-nav ul a[aria-current] { color: var(--yellow); }
  .js .nav-extra { display: flex; margin-top: 20px; }
  .js .nav-extra .btn { width: 100%; }
  .site-header.menu-open { background: var(--bg-3); }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.3rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-start; color: var(--text); }
.hero-media { position: fixed; inset: 0; height: 100svh; z-index: -1; background: var(--bg-3); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; filter: saturate(0.95); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(4, 25, 17, 0.5) 0%, rgba(4, 25, 17, 0.2) 45%, rgba(4, 25, 17, 0.05) 75%), linear-gradient(to bottom, rgba(4, 25, 17, 0.6) 0%, rgba(4, 25, 17, 0.2) 40%, rgba(6, 35, 26, 0.3) 75%, var(--bg) 100%); }
.hero-inner { position: relative; width: 100%; padding-block: calc(var(--header-h) + 40px) 110px; }
.hero-copy { max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; color: var(--yellow); font: 800 0.8rem/1.3 var(--font-head); letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 44px; height: 1.5px; background: currentColor; }
.hero h1 { margin-bottom: 24px; font-size: clamp(2.8rem, 6.4vw, 5.8rem); line-height: 1.02; letter-spacing: -0.015em; text-shadow: 0 2px 30px rgba(4, 25, 17, 0.5); }
.hero h1 .accent { display: block; }
.hero-lead { max-width: 36ch; margin-bottom: 40px; font-size: clamp(1.15rem, 1.5vw, 1.35rem); text-shadow: 0 1px 16px rgba(4, 25, 17, 0.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 36px; display: flex; align-items: center; gap: 14px; color: var(--text); font: 700 0.82rem/1 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.scroll-cue::after { content: ""; width: 1.5px; height: 44px; background: linear-gradient(var(--yellow), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: 0.5; } }
.hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

@media (max-width: 760px) {
  /* On phones the group sits in the upper half and the words sit on the grass below it. */
  .hero { align-items: flex-end; }
  .hero-media img { object-position: 50% 38%; }
  .hero-media::after { background: linear-gradient(to bottom, rgba(4, 25, 17, 0.55) 0%, rgba(4, 25, 17, 0.1) 30%, rgba(4, 25, 17, 0.25) 50%, rgba(6, 35, 26, 0.85) 72%, var(--bg) 100%); }
  .hero-inner { padding-block: 40vh 72px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero-lead { margin-bottom: 28px; }
  .scroll-cue { bottom: 20px; }
}

/* Everything after the hero scrolls over the fixed photo. */
.page-body { position: relative; z-index: 1; background: var(--bg); }

/* Side index: chapter numbers along the right edge on wide screens. */
.side-index { display: none; }
@media (min-width: 1180px) {
  .side-index { position: fixed; right: 36px; top: 50%; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 20px; transform: translateY(-50%); padding-right: 22px; border-right: 2px solid var(--line-strong); }
  .side-index a { position: relative; padding: 6px 0; color: var(--muted); font: 700 0.82rem/1 var(--font-head); letter-spacing: 0.1em; text-decoration: none; transition: color 0.2s; }
  .side-index a::after { content: ""; position: absolute; right: -24px; top: 50%; width: 2px; height: 0; background: var(--yellow); transform: translateY(-50%); transition: height 0.25s; }
  .side-index a:hover, .side-index a[aria-current] { color: var(--text); }
  .side-index a[aria-current]::after { height: 26px; }
}

/* ---------- facts strip ---------- */
.facts { padding-inline: var(--gutter); }
.facts-list { max-width: var(--container); margin: 0 auto; padding: 8px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fact { display: flex; align-items: flex-start; gap: 16px; padding: 28px 0; }
.fact .icon { width: 28px; height: 28px; margin-top: 2px; color: var(--yellow); stroke-width: 1.6; }
.fact-label { display: block; margin-bottom: 4px; color: var(--muted); font: 800 0.74rem/1.2 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; }
.fact-value { display: block; font: 600 1.1rem/1.35 var(--font-body); }
@media (max-width: 900px) {
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 12px 0; }
}
@media (max-width: 520px) {
  .facts-list { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section); }
.section-sand { background: var(--bg-2); }
.section-dark { background: var(--bg-3); }
.section-head { position: relative; max-width: 880px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-head h2:last-child { margin-bottom: 0; }
.kicker { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; color: var(--yellow); font: 800 0.8rem/1.3 var(--font-head); letter-spacing: 0.18em; text-transform: uppercase; }
.kicker::before { display: none; }
.lead { color: var(--muted); font-size: clamp(1.15rem, 1.5vw, 1.3rem); }
.section-head .lead { margin-bottom: 0; }
/* Chapter numerals ghosted behind the heading, as in a magazine. */
.ghost { display: none; }
.icon-badge { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--yellow); }
.icon-badge .icon { width: 24px; height: 24px; stroke-width: 1.6; }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-text > p { color: var(--muted); }
.about-text .lead { color: var(--text); }
.about-text .section-head { margin-bottom: 28px; }
.about-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; }
.about-photo img { object-position: 50% 60%; }
.about-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 24px 22px; background: linear-gradient(transparent, rgba(4, 25, 17, 0.85)); font-size: 0.98rem; }
.pillars { display: grid; gap: 28px; margin-top: 48px; }
.pillar { display: flex; gap: 20px; }
.pillar h3 { margin-bottom: 6px; font-size: 1.15rem; }
.pillar p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.history { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-top: clamp(56px, 7vw, 96px); padding: clamp(32px, 4vw, 48px); border-radius: var(--radius); background: var(--bg-2); }
.timeline { display: grid; flex: 1 1 640px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.timeline li { padding: 0 24px 0 0; }
.timeline strong { display: block; margin-bottom: 6px; color: var(--yellow); font: 500 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-display); white-space: nowrap; }
.timeline span { color: var(--muted); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { display: flex; align-items: baseline; gap: 16px; padding: 0; }
  .timeline strong { min-width: 6.2ch; margin: 0; font-size: 2rem; }
}

/* ---------- duties ---------- */
.duty-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.duty { padding: 0; }
.duty-num { display: block; margin-bottom: 18px; color: var(--yellow); font: italic 500 clamp(3.6rem, 7vw, 5.8rem)/1 var(--font-display); }
.duty p { margin: 0; font: 500 clamp(1.35rem, 2vw, 1.7rem)/1.3 var(--font-display); text-wrap: balance; }
@media (max-width: 800px) {
  .duty-list { grid-template-columns: 1fr; }
  .duty-list { gap: 28px; }
  .duty { display: flex; align-items: baseline; gap: 20px; }
  .duty-num { margin: 0; min-width: 1ch; font-size: 3rem; }
}

/* ---------- programs ---------- */
.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.program { display: flex; flex-direction: column; }
.program-media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.program:hover .program-media img { transform: scale(1.04); }
.program-body { display: flex; flex: 1; flex-direction: column; padding-top: 26px; }
.badge { align-self: flex-start; margin: 0 0 14px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--yellow); font: 800 0.76rem/1.2 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; }
.program h3 { margin: 0 0 4px; font: 500 2.1rem/1.1 var(--font-display); }
.unit { margin-bottom: 14px; color: var(--muted); font: 600 0.95rem/1.35 var(--font-body); }
.program-text { color: var(--muted); }
.checklist { display: grid; gap: 10px; margin-bottom: 26px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 1.03rem; line-height: 1.45; }
.checklist .icon { width: 1.1em; height: 1.1em; margin-top: 0.2em; color: var(--yellow); stroke-width: 2.4; }
.program-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: auto; padding-top: 8px; }
@media (max-width: 1000px) {
  .programs { grid-template-columns: 1fr; gap: 56px; }
  .program { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: start; }
  .program-body { padding-top: 0; }
}
@media (max-width: 640px) {
  .program { grid-template-columns: 1fr; }
  .program-media { aspect-ratio: 4 / 3; }
}

/* ---------- camps ---------- */
.camp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.collage-main { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
.collage-sub { aspect-ratio: 1 / 1; }
.collage-sub:nth-of-type(2) { transform: translateY(18px); }
.collage-sub:nth-of-type(3) { transform: translateY(-4px); }
.camp-copy .section-head { margin-bottom: 32px; }
.camp-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-bottom: 32px; }
.camp-group h3 { margin-bottom: 10px; color: var(--yellow); font-size: 1.15rem; }
.camp-group .checklist { gap: 0; margin: 0; }
.camp-group .checklist { gap: 12px; }
.camp-group .checklist li { color: var(--muted); font-size: 1rem; }
.camp-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .camp-grid { grid-template-columns: 1fr; }
  .collage-sub:nth-of-type(2), .collage-sub:nth-of-type(3) { transform: none; }
}
@media (max-width: 600px) { .camp-groups { grid-template-columns: 1fr; } }

/* ---------- year in Plast ---------- */
.year-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.year-item { padding: 0; }
.year-when { display: block; margin-bottom: 10px; color: var(--yellow); font: 800 0.78rem/1.2 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; }
.year-item h3 { margin-bottom: 8px; font: 500 1.5rem/1.2 var(--font-display); }
.year-item p { margin: 0; color: var(--muted); font-size: 1.02rem; }
@media (max-width: 900px) {
  .year-list { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- stories ---------- */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.story { display: flex; flex-direction: column; }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: transform 0.7s ease; }
.story:hover img { transform: scale(1.02); }
.story-body { display: flex; flex: 1; flex-direction: column; padding-top: 22px; }
.story-date { margin-bottom: 10px; color: var(--yellow); font: 800 0.76rem/1.2 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; }
.story h3 { margin-bottom: 10px; font: 500 1.5rem/1.2 var(--font-display); }
.story p { color: var(--muted); font-size: 1.02rem; }
.story .link-text { margin-top: auto; }
.credit { margin: 28px 0 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 1000px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stories { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- motto ---------- */
.motto { background: var(--yellow); color: var(--ink); }
.motto-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 7vw, 96px); }
.motto .kicker { color: var(--ink); }
.motto-word { margin: 0; font: 500 clamp(4.6rem, 13vw, 11rem)/0.9 var(--font-display); letter-spacing: -0.03em; }
.motto-words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.motto-words li { padding: 16px 16px 16px 0; border-bottom: 1px solid rgba(14, 34, 25, 0.25); }
.motto-words strong { display: block; font: 500 clamp(1.5rem, 2.4vw, 2.1rem)/1.15 var(--font-display); }
.motto-words span { display: block; margin-top: 2px; font-weight: 600; }
.motto-note { margin: 18px 0 0; font-weight: 600; }
@media (max-width: 760px) { .motto-inner { grid-template-columns: 1fr; } }

/* ---------- parents ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; align-items: flex-start; }
.step-num { display: block; margin-bottom: 18px; color: var(--yellow); font: italic 500 3rem/1 var(--font-display); }
.step h3 { font: 500 1.6rem/1.2 var(--font-display); }
.step p { color: var(--muted); font-size: 1.04rem; }
.step .btn, .step .link-text { margin-top: auto; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: clamp(72px, 9vw, 120px); }
.faq-title { font-size: clamp(2rem, 3.2vw, 2.7rem); }
.help-card { margin-top: 28px; padding: 28px; border-radius: var(--radius); background: var(--bg-3); }
.help-card h3 { font-size: 1.25rem; }
.help-card p { color: var(--muted); }
.help-email { margin: 16px 0 0; font-size: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font: 600 1.2rem/1.35 var(--font-body); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--yellow); }
.faq-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform 0.25s, background-color 0.25s, color 0.25s; }
.faq-icon .icon { width: 18px; height: 18px; }
.faq details[open] .faq-icon { transform: rotate(45deg); background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.faq-answer p { margin: 0; padding: 0 56px 24px 0; color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-answer p { padding-right: 0; }
}

/* ---------- get involved ---------- */
.involve-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.involve-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--bg-2); }
.involve-card p { flex: 1; }
.involve-card h3 { margin-top: 24px; font: 500 1.8rem/1.15 var(--font-display); }
.involve-card p { color: var(--muted); }
.involve-donate { background: var(--bg-2); }
.involve-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; }
@media (max-width: 800px) { .involve-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; }
.contact-card > .icon { width: 26px; height: 26px; color: var(--yellow); stroke-width: 1.6; }
.contact-card h3 { margin: 18px 0 8px; color: var(--muted); font: 800 0.76rem/1.2 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; }
.contact-card p { margin: 0 0 8px; font-size: 1.05rem; overflow-wrap: anywhere; }
.social { display: grid; gap: 2px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 56px; padding: 36px clamp(24px, 4vw, 48px); background: var(--yellow); color: var(--ink); border-radius: var(--radius); }
.cta-band h3 { margin-bottom: 4px; font: 500 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--font-display); }
.cta-band p { margin: 0; font-weight: 600; }
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { gap: 32px; }
}
@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band .btn { width: 100%; }
}

/* ---------- footer ---------- */
.site-footer { padding: 60px 0 32px; background: var(--bg-3); color: var(--muted); font-size: 1rem; }
.site-footer .brand-name { color: var(--text); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-bottom: 40px; }
.footer-tagline { flex-basis: 100%; order: 1; margin: -8px 0 0; color: var(--muted); font-size: 0.98rem; }
.footer-links { order: 2; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a, .footer-meta a { display: inline-block; padding: 8px 0; color: var(--text); font-weight: 600; text-decoration: none; }
.footer-links a:hover, .footer-meta a:hover { color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 20px; font-size: 0.95rem; }
.footer-bottom p { margin: 0; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-meta a { font-weight: 400; color: var(--muted); }

/* ---------- registration page ---------- */
.register { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px)); }
.register-wrap { max-width: calc(860px + 2 * var(--gutter)); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; color: var(--yellow); font: 700 1rem/1.2 var(--font-head); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; text-decoration-color: var(--yellow-dim); }
.back-link:hover { color: var(--text); text-decoration-color: currentColor; }
.page-title { font-size: clamp(2.3rem, 4.8vw, 3.6rem); margin-bottom: 0.4em; }
.register .section-head { margin-bottom: 32px; }
.form-card { padding: clamp(24px, 4vw, 48px); background: var(--paper); color: var(--ink); border-radius: var(--radius); }
.form-card h2 { color: var(--ink); }
.form-intro { margin: 0 0 8px; padding: 16px 20px; background: #e4efe5; border-radius: var(--radius); font-size: 1.04rem; }
.form-section { min-width: 0; margin: 32px 0 0; padding: 0; border: 0; }
.form-section legend { width: 100%; margin-bottom: 18px; padding: 0 0 12px; border-bottom: 2px solid var(--ink); font: 500 1.5rem/1.2 var(--font-display); }
.section-hint { margin: -4px 0 18px; color: var(--ink-2); font-size: 1rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-allergies, .field-street, .field-school { grid-column: 1 / -1; }
.field label, .check-label { margin-bottom: 6px; font: 700 1rem/1.35 var(--font-head); }
.req { color: #b3261e; }
.field-help { margin: -2px 0 8px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.4; }
.register-form input[type="text"], .register-form input[type="email"], .register-form input[type="tel"], .register-form input[type="date"], .register-form select, .register-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #8d978f; border-radius: var(--radius);
  background: #fff; color: var(--ink); font: 400 1.06rem/1.4 var(--font-body); transition: border-color 0.15s, box-shadow 0.15s;
}
.register-form textarea { min-height: 96px; resize: vertical; }
.register-form select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%230e2219' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.register-form input:hover, .register-form select:hover, .register-form textarea:hover { border-color: var(--ink); }
.register-form input:focus-visible, .register-form select:focus-visible, .register-form textarea:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 121, 50, 0.28); }
.register-form [aria-invalid="true"] { border-color: #b3261e; background-color: #fff6f5; }
.field-error { margin: 6px 0 0; color: #b3261e; font: 700 0.95rem/1.35 var(--font-body); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.second-child { margin-top: 24px; }
#add-child.is-open { display: none; }
.second-child .child-section { margin-top: 24px; padding: 8px 24px 24px; background: #f1eee4; border-radius: var(--radius); }
.second-child [hidden] { display: none; }
.consents { margin-top: 40px; }
.check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; margin-bottom: 18px; }
.check .field-error { flex-basis: 100%; margin: 0 0 0 38px; }
.check label { flex: 1 1 0; min-width: 0; cursor: pointer; font-size: 1.04rem; line-height: 1.5; }
.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
.check-group { margin: 6px 0 22px; padding: 18px 20px; background: #f1eee4; border-radius: var(--radius); }
.check-label { display: block; margin: 0 0 12px; }
.radios { display: flex; flex-wrap: wrap; gap: 12px; }
.radio { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px; background: #fff; border: 1.5px solid #8d978f; border-radius: var(--radius); font: 700 1.02rem/1 var(--font-head); cursor: pointer; }
.radio input { width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.radio:has(input:checked) { border-color: var(--green); background: #e4efe5; }
.radio:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; }
.form-actions .btn { min-width: 220px; }
.form-actions .btn:disabled { opacity: 0.6; cursor: wait; }
.form-note { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.form-status { margin-top: 18px; font-weight: 600; }
.form-status:not(:empty) { padding: 14px 18px; border-radius: var(--radius); border-left: 4px solid var(--green); background: #e4efe5; }
.form-status.is-error { border-color: #b3261e; background: #fdeceb; color: #7a1812; }
.form-success { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(8px, 3vw, 24px) 0; }
.form-success[hidden] { display: none; }
.form-success .icon-badge { border-color: var(--green); color: var(--green); }
.form-success h2 { margin-top: 20px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.form-success p { max-width: 52ch; color: var(--ink-2); }
.form-success:focus { outline: none; }
.register-contact { margin: 28px 0 0; color: var(--muted); }
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .second-child .child-section { padding: 8px 16px 20px; }
}

/* ---------- motion ---------- */
.reveal.pre:not(.in) { opacity: 0; transform: translateY(26px); }
.reveal.pre:not(.in):not(.section-head) { visibility: hidden; }
.section-head.reveal.pre:not(.in) { opacity: 1; }
.reveal { transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
.reveal.in { transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal.pre:not(.in) { opacity: 1; transform: none; }
  .hero-media { position: absolute; }
}

/* ---------- blog ---------- */
.story-link { display: block; border-radius: var(--radius); overflow: hidden; }
.story h2 a, .story h3 a { text-decoration: none; }
.story h2 { margin-bottom: 10px; font: 500 1.5rem/1.2 var(--font-display); }
.story h2 a:hover, .story h3 a:hover { color: var(--yellow); }
.stories-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; }
.stories-foot .credit { margin: 0; }
.blog-index { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 48px)); }
.blog-index h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.blog-grid { row-gap: 56px; }

.post-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.post-hero-media { position: absolute; inset: 0; }
.post-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(4, 25, 17, 0.55) 0%, rgba(4, 25, 17, 0.1) 40%, rgba(6, 35, 26, 0.75) 80%, var(--bg) 100%); }
.post-hero-inner { position: relative; width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: 20px; }
.post-hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 5vw, 4.4rem); text-shadow: 0 2px 30px rgba(4, 25, 17, 0.6); }
.post-hero .kicker { margin-bottom: 16px; }
.post-note { margin: 0; color: var(--muted); font-size: 1rem; }
.post-wrap { padding-block: clamp(32px, 5vw, 64px) var(--section); }
.post-body { max-width: 72ch; font-size: clamp(1.15rem, 1.4vw, 1.25rem); line-height: 1.7; }
.post-body p { margin-bottom: 1.25em; }
.post-body h2, .post-body h3 { margin-top: 1.6em; }
.post-body ul, .post-body ol { margin: 0 0 1.25em 1.2em; list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.4em; }
.post-body a { color: var(--yellow); text-underline-offset: 0.2em; }
.post-body > img { width: 100%; height: auto; margin: 32px 0; border-radius: var(--radius); }
.post-body .gallery { display: grid; gap: 12px; margin: 40px 0; }
.post-body .gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-body .gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-body .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.post-body .gallery img:first-child:nth-last-child(n + 4) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.post-footer { max-width: 72ch; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.post-footer p { margin: 0 0 8px; }
.post-footer-label { margin-right: 6px; }
.more-posts { background: var(--bg-2); }
.more-all { margin: 40px 0 0; }
@media (max-width: 1000px) { .post-body .gallery-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .post-body .gallery-2, .post-body .gallery-3 { grid-template-columns: 1fr; }
  .post-body .gallery img, .post-body .gallery img:first-child:nth-last-child(n + 4) { aspect-ratio: 4 / 3; }
  .post-hero { min-height: 52vh; }
}

/* ---------- lightbox ---------- */
.lightbox { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(4, 25, 17, 0.96); color: var(--text); }
.lightbox::backdrop { background: rgba(4, 25, 17, 0.96); }
.lightbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 56px 72px; }
.lightbox button { position: absolute; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(6, 35, 26, 0.7); color: var(--text); font: 400 1.8rem/1 var(--font-body); cursor: pointer; }
.lightbox button:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 600px) {
  .lightbox img { padding: 72px 8px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
}

/* ---------- adults in Plast ---------- */
.adults { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(72px, 9vw, 120px); }
.adults-title { margin-bottom: 0.5em; font: 500 clamp(1.9rem, 3.2vw, 2.7rem)/1.1 var(--font-display); }
.adults-intro .lead { font-size: 1.1rem; margin-bottom: 24px; }
.adult-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.adult { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border-radius: var(--radius); background: var(--bg-3); }
.adult h3 { margin: 0 0 4px; font: 500 1.6rem/1.15 var(--font-display); }
.adult p:last-child { margin: 0; color: var(--muted); font-size: 1.02rem; }
@media (max-width: 900px) { .adults { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .adult-list { grid-template-columns: 1fr; } }

/* ---------- decorative silhouettes ---------- */

.site-footer { overflow: hidden; }
.site-footer .container { position: relative; z-index: 1; }
.footer-decor { position: absolute; inset: 0; color: rgba(255, 255, 255, 0.055); pointer-events: none; }
.footer-decor .campfire { position: absolute; left: 50%; bottom: 8px; width: 220px; transform: translateX(-50%); color: rgba(255, 230, 0, 0.08); }
.footer-decor .footer-leaf { position: absolute; right: 14%; bottom: 40px; width: 120px; color: rgba(255, 255, 255, 0.06); }
.footer-decor .treeline { color: rgba(255, 255, 255, 0.055); gap: 40px; }
.footer-decor .treeline span { height: auto !important; }
.footer-decor .treeline span:nth-child(odd) svg { height: 150px; }
.footer-decor .treeline span:nth-child(even) svg { height: 110px; }
.footer-decor .treeline span:nth-child(3n) svg { height: 190px; }
@media (max-width: 900px) {
  .footer-decor .campfire { width: 160px; left: auto; right: 24%; transform: none; }
  .footer-decor .footer-leaf { right: 6%; width: 80px; }
}

/* Treeline: a silhouette row along the bottom edge of a section. Sections that carry one
   get extra bottom padding so content never sits on the trees. */
.treeline { position: absolute; left: -24px; right: -24px; bottom: -4px; display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; overflow: hidden; color: rgba(255, 255, 255, 0.05); pointer-events: none; }
.treeline span { display: block; flex: none; }
.treeline svg { height: 100%; width: auto; }
.section:has(> .treeline) { overflow: hidden; padding-bottom: calc(var(--section) + 120px); }
.section:has(> .treeline) .container { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .treeline span { height: 90px !important; }
  .treeline span:nth-child(n + 9) { display: none; }
  .section:has(> .treeline) { padding-bottom: calc(var(--section) + 60px); }
}

/* Hero maple leaf: large, faint, behind the headline. */
.hero-leaf { position: absolute; right: clamp(0px, 4vw, 60px); top: 50%; width: clamp(240px, 32vw, 520px); transform: translateY(-50%) rotate(8deg); color: rgba(255, 255, 255, 0.07); pointer-events: none; }
.hero-inner { position: relative; }
@media (max-width: 900px) { .hero-leaf { display: none; } }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(6, 35, 26, 0.75); color: var(--text); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s; }
.to-top .icon { width: 24px; height: 24px; stroke-width: 2.4; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s, visibility 0s; }
.to-top:hover { border-color: var(--yellow); color: var(--yellow); }
@media (min-width: 1180px) { .to-top { right: 28px; bottom: 28px; } }
