:root {
  --forest: #173f35;
  --forest-dark: #0f3029;
  --leaf: #2f6757;
  --cream: #f5f0e5;
  --paper: #fbf8f1;
  --white: #fffdf8;
  --sun: #f5c84c;
  --sun-dark: #d8a91d;
  --coral: #e66a4e;
  --ink: #17231f;
  --muted: #65736d;
  --line: rgba(23, 63, 53, 0.16);
  --shadow: 0 24px 60px rgba(15, 48, 41, 0.12);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1180px;
  --header-height: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 48px), 760px); }
.section { padding: clamp(78px, 9vw, 132px) 0; }
.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: fixed;
  left: 16px;
  top: -100px;
  z-index: 9999;
  padding: 10px 16px;
  color: var(--white);
  background: var(--forest);
}
.skip-link:focus { top: 16px; }

h1, h2, h3, h4 {
  margin: 0 0 0.55em;
  color: var(--forest-dark);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h1 { font-size: clamp(3.35rem, 7vw, 6.9rem); }
h2 { font-size: clamp(2.45rem, 5.2vw, 4.8rem); }
h3 { font-size: clamp(1.45rem, 2vw, 2rem); }
p { margin: 0 0 1.25rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow > span { width: 34px; height: 2px; flex: 0 0 auto; background: var(--coral); }
.eyebrow-light { color: rgba(255, 253, 248, 0.76); }
.eyebrow-light > span { background: var(--sun); }

.button,
button.button,
input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid var(--forest);
  border-radius: 2px;
  color: var(--white);
  background: var(--forest);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.button:hover,
.button:focus-visible,
input[type='submit']:hover,
input[type='submit']:focus-visible { transform: translateY(-2px); background: var(--leaf); box-shadow: 0 12px 28px rgba(15, 48, 41, 0.18); }
.button-small { min-height: 42px; padding: 10px 18px; font-size: 0.76rem; }
.button-sun { border-color: var(--sun); color: var(--forest-dark); background: var(--sun); }
.button-sun:hover, .button-sun:focus-visible { color: var(--forest-dark); background: #ffda68; }
.button-disabled { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.72); background: transparent; cursor: default; }
.button-disabled:hover { transform: none; box-shadow: none; background: transparent; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 34px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link span { font-size: 1.25rem; transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(4px); }
.text-link-light { color: var(--white); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: height 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled,
body:not(.home) .site-header { color: var(--ink); background: rgba(251, 248, 241, 0.97); box-shadow: 0 6px 22px rgba(23,35,31,.08); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 190px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: rotate(-4deg);
}
.brand-mark span { font-family: var(--serif); font-size: 1rem; transform: rotate(4deg); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.brand-copy small { margin-top: 5px; font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-width: 220px; max-height: 58px; }
.primary-nav { flex: 1; }
.primary-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; }
.primary-nav a { position: relative; font-size: .78rem; font-weight: 750; letter-spacing: .035em; text-decoration: none; }
.primary-nav a::after { content: ''; position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.header-cta { border-color: var(--sun); color: var(--forest-dark); background: var(--sun); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 12px; border: 0; background: none; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }

/* Hero */
.hero {
  position: relative;
  min-height: min(900px, 100svh);
  overflow: hidden;
  color: var(--white);
  background: var(--forest-dark);
}
.hero-art {
  position: absolute;
  inset: 0;
  background-color: var(--forest-dark);
  background-image: url('../images/burendag-hero.png');
  background-image: image-set(url('../images/burendag-hero.webp') type('image/webp'), url('../images/burendag-hero.png') type('image/png'));
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-shade { position: absolute; inset: 0; background: rgba(8, 37, 31, 0.14); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); align-items: center; gap: clamp(60px, 8vw, 130px); min-height: min(900px, 100svh); padding-top: calc(var(--header-height) + 54px); padding-bottom: 80px; }
.hero-copy { max-width: 730px; }
.hero h1 { max-width: 700px; margin-bottom: 26px; color: var(--white); text-wrap: balance; }
.hero-lead { max-width: 610px; margin-bottom: 0; color: rgba(255,253,248,.86); font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.65; }
.event-card {
  width: min(100%, 360px);
  justify-self: end;
  padding: 34px;
  border-top: 5px solid var(--sun);
  color: var(--ink);
  background: rgba(255, 253, 248, .96);
  box-shadow: var(--shadow);
}
.event-card-label { margin-bottom: 14px; color: var(--coral); font-size: .7rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.event-card-date { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.event-card-date strong { color: var(--forest); font-family: var(--serif); font-size: 5.2rem; font-weight: 400; line-height: .8; letter-spacing: -.07em; }
.event-card-date span { color: var(--forest); font-size: .82rem; font-weight: 850; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.event-card-date.is-pending strong { font-size: 4.4rem; }
.event-card ul { display: grid; gap: 18px; margin: 24px 0; padding: 0; list-style: none; }
.event-card li { display: flex; align-items: start; gap: 13px; }
.event-card li > span { color: var(--coral); font-size: .45rem; line-height: 3.2; }
.event-card li div { display: grid; }
.event-card li small { color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.event-card li strong { font-size: .92rem; font-weight: 700; }
.event-card-note { margin: 0; padding: 12px 14px; color: var(--forest); background: rgba(245,200,76,.25); font-size: .73rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.scroll-cue { position: absolute; bottom: 25px; left: 50%; display: grid; place-items: center; gap: 5px; color: rgba(255,255,255,.74); font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; transform: translateX(-50%); }
.scroll-cue span { display: block; width: 1px; height: 28px; background: rgba(255,255,255,.45); }
.ticker { overflow: hidden; color: var(--forest-dark); background: var(--sun); }
.ticker > div { display: flex; justify-content: center; gap: clamp(20px, 3vw, 46px); width: max-content; min-width: 100%; padding: 15px 24px; font-size: .69rem; font-weight: 900; letter-spacing: .14em; white-space: nowrap; }
.ticker i { color: var(--coral); font-style: normal; }

/* Countdown */
.countdown-section { padding: clamp(55px, 7vw, 92px) 0; color: var(--white); background: var(--forest-dark); }
.countdown-inner { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(45px, 8vw, 110px); }
.countdown-copy h2 { margin: 0; color: var(--white); font-size: clamp(2.3rem, 4vw, 4.2rem); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.countdown-grid div { display: grid; gap: 4px; padding: 24px 12px; border: 1px solid rgba(255,255,255,.18); text-align: center; }
.countdown-grid strong { color: var(--sun); font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 400; line-height: 1; }
.countdown-grid span { color: rgba(255,255,255,.68); font-size: .64rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.countdown-finished { grid-column: 2; margin: 0; color: var(--sun); font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.6rem); }

/* Intro */
.intro-section { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(60px, 10vw, 145px); }
.section-heading h2 { max-width: 800px; text-wrap: balance; }
.intro-copy { padding-top: 32px; }
.large-copy { color: var(--forest); font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.45; }
.intro-copy > p:not(.large-copy) { max-width: 630px; color: var(--muted); }
.mini-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.mini-facts div { display: grid; gap: 5px; }
.mini-facts strong { color: var(--coral); font-size: .67rem; letter-spacing: .1em; }
.mini-facts span { font-size: .77rem; font-weight: 750; line-height: 1.4; }

/* Program */
.program-section { color: var(--white); background: var(--forest); }
.program-section h2, .program-section h3 { color: var(--white); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 58px; }
.section-heading-row > p { max-width: 460px; margin-bottom: 8px; color: rgba(255,255,255,.7); }
.program-list { border-top: 1px solid rgba(255,255,255,.18); }
.program-item { display: grid; grid-template-columns: 150px 34px 1fr; gap: 30px; min-height: 160px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.program-time { display: grid; align-content: start; gap: 2px; padding-top: 4px; }
.program-time strong { color: var(--sun); font-family: var(--serif); font-size: 1.8rem; font-weight: 400; line-height: 1; }
.program-time span { color: rgba(255,255,255,.55); font-size: .75rem; }
.program-dot { position: relative; display: flex; justify-content: center; }
.program-dot::before { content: ''; position: absolute; top: 18px; bottom: -49px; width: 1px; background: rgba(255,255,255,.2); }
.program-item:last-child .program-dot::before { display: none; }
.program-dot span { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 8px; border: 3px solid var(--forest); border-radius: 50%; background: var(--sun); outline: 1px solid var(--sun); }
.program-info { display: grid; grid-template-columns: minmax(0, 1fr) 1.25fr auto; align-items: start; gap: 35px; }
.program-info > div:first-child { display: flex; align-items: baseline; gap: 20px; }
.program-number { color: rgba(255,255,255,.35); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.program-info h3 { margin: 0; }
.program-info p { max-width: 440px; margin: 3px 0 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.program-meta { display: grid; justify-items: end; gap: 8px; min-width: 120px; }
.program-meta span { padding: 5px 9px; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.78); font-size: .63rem; font-weight: 750; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; }
.program-empty { padding: 34px; border: 1px solid rgba(255,255,255,.18); }
.program-empty h3 { margin-bottom: 8px; }
.program-empty p { margin: 0; color: rgba(255,255,255,.7); }

/* Signups & forms */
.signup-section { background: var(--cream); }
.centered { max-width: 730px; margin: 0 auto 56px; text-align: center; }
.centered .eyebrow { justify-content: center; }
.centered > p:last-child { color: var(--muted); }
.signup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.signup-card { position: relative; padding: clamp(28px, 4vw, 50px); border: 1px solid var(--line); border-top: 5px solid var(--coral); background: var(--white); box-shadow: 0 14px 40px rgba(23,63,53,.07); }
.signup-card:nth-child(2) { border-top-color: var(--sun-dark); }
.signup-card-top { display: flex; justify-content: space-between; margin-bottom: 25px; color: var(--coral); font-size: .66rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.signup-card:nth-child(2) .signup-card-top { color: #a47b04; }
.signup-card > p { min-height: 54px; color: var(--muted); font-size: .9rem; }
.attendance-card { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: clamp(35px, 7vw, 90px); margin-bottom: 70px; padding: clamp(30px, 5vw, 58px); border-top: 5px solid var(--leaf); background: var(--white); box-shadow: 0 14px 40px rgba(23,63,53,.07); }
.attendance-copy h3, .activity-signup-heading h3 { font-size: clamp(2rem, 3.5vw, 3.25rem); }
.attendance-copy > p:last-child { color: var(--muted); }
.attendance-form-wrap .bpp-form { margin-top: 0; }
.activity-signup-heading { max-width: 700px; margin: 0 0 34px; }
.button-outline { border: 1px solid var(--forest); color: var(--forest); background: transparent; }
.button-outline:hover { color: var(--white); background: var(--forest); }
.signup-toggle { width: 100%; justify-content: space-between; margin-top: 12px; }
.signup-toggle span { transition: transform 160ms ease; }
.signup-toggle[aria-expanded='true'] span { transform: rotate(180deg); }
.signup-form-panel { padding-top: 8px; }
.signup-form-panel[hidden], [data-attendance-participants][hidden] { display: none !important; }
.bpp-form { display: grid; gap: 17px; margin-top: 30px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--forest); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.form-field label span { color: var(--coral); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(23,63,53,.26);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-field textarea { min-height: 118px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(47,103,87,.12); }
.form-check { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.form-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--forest); }
.form-hint { margin: -5px 0 0; color: var(--muted); font-size: .71rem; }
.bpp-form .button { width: 100%; margin-top: 2px; }
.bpp-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-notice { margin: -24px auto 36px; padding: 15px 18px; border-left: 4px solid var(--coral); background: var(--white); font-size: .88rem; }
.form-notice.is-success { border-left-color: var(--leaf); }
.form-notice.is-closed { margin: 24px 0 0; border-left-color: var(--sun-dark); background: var(--cream); }

/* News */
.news-section { background: var(--paper); }
.news-section .section-heading-row > p { color: var(--muted); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.news-card { min-width: 0; border-bottom: 3px solid var(--forest); background: var(--white); box-shadow: 0 12px 36px rgba(23,63,53,.07); transition: transform 180ms ease, box-shadow 180ms ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(23,63,53,.12); }
.news-image { display: block; aspect-ratio: 1.58; overflow: hidden; background: var(--forest); text-decoration: none; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.news-card:hover .news-image img { transform: scale(1.035); }
.news-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--sun); background: var(--forest); }
.news-placeholder span { display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 1.5rem; }
.news-card-content { position: relative; min-height: 250px; padding: 28px 30px 34px; }
.news-meta { margin-bottom: 12px; color: var(--coral); font-size: .66rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.news-card h2, .news-card h3 { padding-right: 25px; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.news-card h2 a, .news-card h3 a { text-decoration: none; }
.news-card-content > p:not(.news-meta) { color: var(--muted); font-size: .86rem; }
.card-link { position: absolute; right: 28px; bottom: 24px; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); text-decoration: none; }

/* Photo */
.photo-section { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 150px) 0; color: var(--white); background: var(--coral); }
.photo-content { position: relative; z-index: 2; text-align: center; }
.photo-content .eyebrow { justify-content: center; }
.photo-content h2 { color: var(--white); }
.photo-content p:not(.eyebrow) { max-width: 650px; margin: 0 auto 30px; color: rgba(255,255,255,.83); }
.photo-pattern { position: absolute; inset: 0; opacity: .18; }
.photo-pattern span { position: absolute; width: 190px; height: 260px; border: 1px solid var(--white); transform: rotate(9deg); }
.photo-pattern span:nth-child(1) { left: 8%; top: -50px; }
.photo-pattern span:nth-child(2) { right: 7%; bottom: -60px; transform: rotate(-8deg); }
.photo-pattern span:nth-child(3) { right: 22%; top: -120px; width: 120px; transform: rotate(16deg); }
.photo-album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; max-width: 900px; margin: 42px auto 0; }
.photo-album-card { display: grid; justify-items: center; gap: 14px; padding: 32px 24px; border: 1px solid rgba(255,255,255,.28); background: rgba(102,24,17,.16); backdrop-filter: blur(4px); }
.photo-album-card > span { font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.photo-album-card h3 { margin: 0; color: var(--white); }
.photo-album-card .button { margin-top: 4px; }

/* Contact */
.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 10vw, 140px); }
.contact-section .section-heading > p:not(.eyebrow) { max-width: 480px; color: var(--muted); }
.contact-details { display: grid; gap: 5px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-details span { color: var(--coral); font-size: .65rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.contact-details a { color: var(--forest); font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.65rem); overflow-wrap: anywhere; }
.contact-form-wrap { padding: clamp(28px, 4vw, 48px); background: var(--white); box-shadow: var(--shadow); }
.contact-form-wrap .bpp-form { margin-top: 0; }

/* Footer */
.site-footer { padding: 76px 0 24px; color: rgba(255,255,255,.73); background: var(--forest-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 80px; padding-bottom: 58px; }
.brand-light { color: var(--white); }
.footer-grid > div:first-child p { max-width: 330px; margin: 25px 0 0; font-size: .88rem; }
.site-footer h2 { margin-bottom: 19px; color: var(--white); font-family: var(--sans); font-size: .67rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255,255,255,.78); font-size: .84rem; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-grid p { font-size: .84rem; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: .71rem; }

/* Content templates */
.content-main { min-height: 70vh; padding-top: var(--header-height); }
.page-hero { padding: 105px 0 82px; color: var(--white); background: var(--forest); }
.page-hero h1 { color: var(--white); font-size: clamp(3rem, 6vw, 5.5rem); }
.page-hero p:last-child { max-width: 580px; color: rgba(255,255,255,.7); }
.archive-layout { padding-top: 84px; padding-bottom: 110px; }
.archive-grid { margin-bottom: 55px; }
.navigation.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.navigation.pagination a, .navigation.pagination span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); text-decoration: none; }
.navigation.pagination .current { color: var(--white); background: var(--forest); }
.single-header { padding: 95px 0 62px; background: var(--cream); }
.single-header h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
.single-intro { color: var(--muted); font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.5; }
.back-link { display: inline-block; margin-bottom: 35px; color: var(--forest); font-size: .73rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.single-image { margin-top: 60px; }
.single-image img { width: 100%; max-height: 680px; object-fit: cover; }
.entry-content { padding-top: 70px; padding-bottom: 100px; font-size: 1.06rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 1.4em; font-size: clamp(2rem, 4vw, 3.2rem); }
.entry-content h3 { margin-top: 1.5em; }
.entry-content p, .entry-content li { color: #34423d; }
.entry-content a { color: var(--leaf); }
.entry-content blockquote { margin: 40px 0; padding: 8px 0 8px 30px; border-left: 4px solid var(--sun); color: var(--forest); font-family: var(--serif); font-size: 1.5rem; }
.entry-content img { margin: 35px 0; }
.single-footer { padding-bottom: 90px; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-list a { padding: 6px 10px; border: 1px solid var(--line); font-size: .7rem; text-decoration: none; }
.standard-page .entry-content { min-height: 350px; }
.error-page { display: grid; min-height: 72vh; place-items: center; padding: 130px 0 80px; text-align: center; }
.error-code { margin: 0; color: var(--coral); font-family: var(--serif); font-size: 6rem; line-height: 1; }
.error-page h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.error-page p:not(.error-code) { color: var(--muted); }

/* Motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal-delay { transition-delay: 120ms; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero .reveal { animation: bpp-rise 700ms 120ms both; }
.hero .reveal-delay { animation-delay: 270ms; }
@keyframes bpp-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1040px) {
  :root { --header-height: 74px; }
  .header-cta { display: none; }
  .header-inner { gap: 20px; }
  .primary-nav ul { gap: 19px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr); gap: 45px; }
  .hero h1 { font-size: clamp(3.5rem, 7.5vw, 5.8rem); }
  .program-info { grid-template-columns: 1fr 1.2fr; }
  .program-meta { grid-column: 1 / -1; display: flex; justify-content: start; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 13px); }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 34px), var(--container)); }
  .narrow { width: min(calc(100% - 34px), 760px); }
  .site-header { color: var(--white); }
  .site-header.is-scrolled, body:not(.home) .site-header { color: var(--ink); }
  .brand { position: relative; z-index: 1002; min-width: 0; }
  .menu-toggle { position: relative; z-index: 1002; display: block; margin-left: auto; }
  .menu-toggle[aria-expanded='true'] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded='true'] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { position: fixed; inset: 0; display: grid; place-items: center; padding: 100px 30px 40px; color: var(--white); background: var(--forest-dark); visibility: hidden; opacity: 0; transition: opacity 180ms ease, visibility 180ms ease; }
  .primary-nav.is-open { visibility: visible; opacity: 1; }
  .primary-nav ul { display: grid; gap: 22px; text-align: center; }
  .primary-nav a { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
  .menu-open .site-header, .menu-open .site-header.is-scrolled { color: var(--white); background: transparent; box-shadow: none; }
  .hero { min-height: auto; }
  .hero-art { background-position: 48% center; }
  .hero-shade { background: rgba(8,37,31,.38); }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-top: 150px; padding-bottom: 110px; }
  .hero-copy { max-width: 640px; }
  .event-card { justify-self: start; }
  .scroll-cue { display: none; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .countdown-inner, .attendance-card { grid-template-columns: 1fr; }
  .countdown-finished { grid-column: 1; }
  .intro-copy { padding-top: 0; }
  .section-heading-row { align-items: start; flex-direction: column; gap: 20px; }
  .program-item { grid-template-columns: 105px 20px 1fr; gap: 18px; }
  .program-info { grid-template-columns: 1fr; gap: 12px; }
  .program-meta { grid-column: auto; }
  .signup-grid { grid-template-columns: 1fr; }
  .signup-card > p { min-height: 0; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; gap: 50px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 590px) {
  h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  h2 { font-size: clamp(2.25rem, 11vw, 3.3rem); }
  .section { padding: 74px 0; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-copy strong { font-size: 1.1rem; }
  .brand-copy small { font-size: .55rem; }
  .hero-art { background-position: 45% center; }
  .hero-shade { background: rgba(8,37,31,.48); }
  .hero-grid { padding-top: 132px; padding-bottom: 78px; }
  .hero-lead { font-size: 1rem; }
  .button-row { align-items: start; flex-direction: column; gap: 20px; }
  .event-card { padding: 27px; }
  .event-card-date strong { font-size: 4.4rem; }
  .ticker > div { justify-content: start; }
  .mini-facts { grid-template-columns: 1fr; gap: 16px; }
  .mini-facts div { grid-template-columns: 35px 1fr; align-items: center; }
  .program-item { grid-template-columns: 72px 14px 1fr; gap: 12px; padding: 26px 0; }
  .program-time strong { font-size: 1.3rem; }
  .program-info > div:first-child { display: grid; gap: 5px; }
  .program-info h3 { font-size: 1.45rem; }
  .program-meta { display: flex; align-items: start; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .news-card:last-child:nth-child(odd) { grid-column: auto; max-width: none; }
  .news-card-content { min-height: 225px; padding: 24px 24px 30px; }
  .photo-pattern span { opacity: .45; }
  .photo-album-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 8px; }
  .page-hero { padding: 75px 0 60px; }
  .single-header { padding: 70px 0 50px; }
  .entry-content { padding-top: 50px; padding-bottom: 75px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .button, .ticker, .photo-section, .contact-section, .signup-section { display: none !important; }
  body { color: #000; background: #fff; }
  .program-section { color: #000; background: #fff; }
  .program-section h2, .program-section h3 { color: #000; }
  .program-info p { color: #333; }
}
