/* Lemon + Aid — shared design system (static site, no PHP)
   Palette + rules live in AGENTS.md — keep them in sync. */

@font-face {
    font-family: 'Garet';
    src: url('../fonts/Garet-Book.ttf') format('truetype');
}

:root {
    --blue: #5765d8;        /* 4.93:1 on white — WCAG AA for nav text */
    --blue-dark: #4c5fd4;
    --green: #1e5c2e;
    --green-bright: #2e7d3b;
    --lemon: #fdf0c6;
    --lemon-deep: #f9d648;
    --cream: #fef8e2;
    --ink: #17182b;
    --muted: #5a5c74;
    --white: #ffffff;
    /* pastel card palette (Rise and Rest poster) */
    --mint: #d3f0dd;
    --rose: #ffd9ea;
    --sky: #cfe8f5;
    --magenta: #d63384;
    --radius: 16px;
    /* type scale — nothing below --fs-small anywhere */
    --fs-hero: clamp(1.9rem, 3.4vw, 2.4rem);
    --fs-h1: clamp(1.8rem, 4vw, 2.3rem);
    --fs-h2: 1.5rem;
    --fs-h3: 1.15rem;
    --fs-body: 1rem;
    --fs-small: .9rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17.5px; }

body {
    font-family: 'Garet', 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
    overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); }

/* keyboard focus — AA accessibility */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--magenta);
    outline-offset: 2px;
    border-radius: 4px;
}
.container { max-width: 1360px; margin: 0 auto; padding: 0 2rem; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--lemon-deep); color: var(--ink);
    padding: .6rem 1rem; z-index: 200; font-weight: 700;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ================= blue band: brand + nav ================= */
.band-blue {
    background: var(--blue);
    color: var(--white);
    padding: 1.25rem 1.5rem 1.5rem;
}
.band-blue .inner {
    max-width: 1360px; margin: 0 auto;
    display: flex; align-items: center; gap: 1.5rem;
    flex-wrap: wrap; justify-content: space-between;
}
.brand-lockup { display: flex; align-items: center; gap: 1rem; }
.brand-lockup img { width: 144px; height: 144px; object-fit: contain; }
.brand-word {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800; letter-spacing: -0.02em; line-height: 1;
}
.brand-word .plus { color: var(--lemon-deep); }
.brand-sub {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 300; margin-left: .75rem; vertical-align: baseline;
}
.brand-sub .init { color: var(--lemon-deep); font-weight: 600; }

.nav-strip {
    max-width: 1360px; margin: 1.4rem auto 0;
    display: flex; flex-wrap: nowrap; gap: .25rem;
    justify-content: center;
    justify-content: safe center;
    overflow-x: auto; scrollbar-width: none;
    padding: 0 .5rem;
}
.nav-strip::-webkit-scrollbar { display: none; }
.nav-strip a {
    color: var(--white); text-decoration: none;
    font-weight: 700; font-size: .92rem; white-space: nowrap;
    padding: .5rem .75rem; border-radius: 999px;
    border: 1px solid transparent;
    transition: background .15s;
    flex: 0 0 auto;
}
.nav-strip a:hover { background: rgba(255,255,255,.14); }
.nav-strip a.active { background: var(--lemon-deep); color: var(--ink); }

/* ================= green emphasis band ================= */
.band-green {
    background: var(--green);
    color: var(--white);
    padding: 1.1rem 1.5rem;
}
.band-green .inner {
    max-width: 1360px; margin: 0 auto;
    display: flex; align-items: center; gap: .9rem;
}
.band-green .badge {
    flex: 0 0 auto;
    width: 44px; height: 44px; border-radius: var(--radius);
    border: 2px solid var(--lemon-deep);
    display: grid; place-items: center;
    font-size: 1.4rem; color: var(--lemon-deep);
}
.band-green h2 {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 700; margin: 0;
}
.band-green h2 em { color: var(--lemon-deep); font-style: normal; }
.band-green .sub { margin: 0; opacity: .85; font-size: var(--fs-body); white-space: nowrap; }

/* ================= page head (inner pages) ================= */
.page-head {
    max-width: 1360px; margin: 0 auto; padding: 2.5rem 2rem 1rem;
}
.page-head p {
    color: var(--ink); margin-top: .4rem; max-width: 65ch;
    font-size: 1.1rem; line-height: 1.7; /* same reading size as the homepage hero */
}
/* intro/body paragraphs inside band sections match the homepage too */
.band-section .container > p { font-size: 1.1rem; line-height: 1.7; }

/* ONE page-title convention — every page h1 uses .page-title:
   ink + magenta bar. .section-hd is the h2-level section heading. */
.page-title, .section-hd {
    position: relative; padding-bottom: .55rem; margin-bottom: 1.25rem;
}
.page-title::after, .section-hd::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 64px; height: 4px; border-radius: 2px;
    background: var(--magenta);
}
.page-title { color: var(--ink); font-size: var(--fs-h1); }
.section-hd { font-size: var(--fs-h2); }
.hero-title { font-size: var(--fs-hero); font-weight: 800; margin-bottom: .8rem; }
/* centred headings get a centred underline */
.page-title.t-center::after, .section-hd.t-center::after,
.page-title[style*="center"]::after,
.section-hd[style*="center"]::after { left: 50%; transform: translateX(-50%); }

/* ================= split page ================= */
/* 2×3 grid: row-aligned cells so posters/headings line up across the split */
.split-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
    align-items: stretch;
    min-height: calc(100vh - 21rem); /* fill the viewport between header and footer */
}
.pane-white { background: var(--white); padding: 2.5rem 3rem; }
.pane-lemon {
    background: var(--lemon); padding: 2.5rem 3rem;
    border-left: 6px solid var(--lemon-deep);
}
/* single-row split for inner pages (text | poster) */
.split-row { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.poster-card {
    background: var(--white); border-radius: var(--radius);
    padding: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.poster-card img {
    display: block; width: 100%; height: auto;
    aspect-ratio: 1131 / 1600; /* both posters are A4 portrait — same ratio, same height */
    object-fit: cover;
    border-radius: calc(var(--radius) - 6px);
}
.poster-card .cap {
    color: var(--magenta); font-weight: 700; font-size: .85rem;
    letter-spacing: .06em; text-transform: uppercase;
    margin-top: .5rem; text-align: center;
}

/* ================= cards ================= */
.card-grid {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.pcard {
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    border: none;
    display: flex; flex-direction: column;
}
.pcard > *:last-child { margin-bottom: 0; }
.pcard h3 { font-size: var(--fs-h3); margin-bottom: .4rem; }
.pcard p, .pcard .body { font-size: var(--fs-body); color: #3c3e52; }
.pcard.mint  { background: var(--mint); }
.pcard.lemon { background: var(--lemon); }
.pcard.sky   { background: var(--sky); }
.pcard.rose  { background: var(--rose); }
.pcard.white { background: var(--white); }

/* every Nth card cycles the poster palette */
.card-grid > *:nth-child(4n+1) { background: var(--mint); }
.card-grid > *:nth-child(4n+2) { background: var(--lemon); }
.card-grid > *:nth-child(4n+3) { background: var(--sky); }
.card-grid > *:nth-child(4n+4) { background: var(--rose); }

/* ================= events ================= */
.event-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.event-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: flex; flex-direction: column;
}
.event-list .event-card:nth-child(4n+1) { background: var(--sky); }
.event-list .event-card:nth-child(4n+2) { background: var(--mint); }
.event-list .event-card:nth-child(4n+3) { background: var(--rose); }
.event-list .event-card:nth-child(4n+4) { background: var(--white); }
.event-image { width: 100%; height: 160px; object-fit: cover; }
.event-image-banner { height: auto; max-height: 160px; object-fit: contain; }
.event-body { padding: 1rem 1.2rem; }
.event-title { color: var(--green); font-size: var(--fs-h3); margin-bottom: .2rem; }
.event-meta { font-size: var(--fs-small); color: var(--muted); }
.event-actions { margin-top: .7rem; }

/* ================= buttons ================= */
.btn {
    display: inline-block; background: var(--green); color: var(--white);
    text-decoration: none; font-weight: 700; font-size: .92rem;
    padding: .6rem 1.2rem; border-radius: 999px;
    border: none; cursor: pointer; font-family: inherit;
    transition: background .15s;
}
.btn:hover { background: var(--green-bright); }
.btn-primary { background: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline {
    background: transparent; color: var(--green);
    border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--mint); }

/* ================= sections ================= */
.band-section { padding: 2.5rem 0; }
.band-section.cream { background: var(--cream); }
.band-section.white { background: var(--white); }
.band-section.lemon { background: var(--lemon); }
.band-section.mint  { background: var(--mint); }
.band-section.green { background: var(--green); }
.band-section.green > .container > h2,
.band-section.green > .container > h3,
.band-section.green > .container > p { color: var(--white); }
.band-section h2 { margin-bottom: 1.25rem; }

.info-bar { padding: 2rem 0; background: var(--sky); }
.info-bar .info-content {
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: center; justify-content: space-between;
}
.info-bar h2 { color: var(--green); margin-bottom: .3rem; }
.info-bar p { max-width: 60ch; font-size: 1.1rem; line-height: 1.7; }

/* ================= calendar grid ================= */
.schedule-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px; margin-top: 1.5rem;
}
.schedule-dow {
    text-align: center; font-weight: 700; font-size: .8rem;
    color: var(--ink); padding: .4rem 0;
    text-transform: uppercase; letter-spacing: .06em;
}
.schedule-cell {
    background: var(--white); border-radius: 10px;
    min-height: 90px; padding: .4rem .5rem;
    border: 1px solid #e4e5f2;
}
.schedule-cell.muted { background: transparent; border-color: transparent; }
.schedule-cell.today { outline: 3px solid var(--magenta); outline-offset: -3px; }
.schedule-date { font-weight: 800; font-size: .9rem; color: var(--ink); }
.schedule-items { list-style: none; margin-top: .3rem; }
.schedule-items li { margin-bottom: .25rem; }
.schedule-items a {
    display: block; font-size: .8rem; font-weight: 600;
    background: var(--lemon); border-radius: 6px;
    padding: .15rem .35rem; text-decoration: none; color: var(--ink);
}
.schedule-items a:hover { background: var(--lemon-deep); }
.calendar-nav {
    display: flex; align-items: center; gap: 1rem; justify-content: center;
}
.calendar-title { font-size: 1.3rem; display: flex; align-items: center; gap: .8rem; }

/* ================= event detail ================= */
.event-detail { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.event-detail h1 { color: var(--ink); margin-bottom: .3rem; }
.event-image-lg {
    width: 100%; border-radius: var(--radius); margin: 1rem 0;
}
.event-desc { margin: 1rem 0; font-size: 1.1rem; line-height: 1.7; }
.share-section { margin: 1.5rem 0; }
.share-label { font-size: .85rem; letter-spacing: .12em; color: var(--magenta); }
.share-row { display: flex; gap: .6rem; margin-top: .5rem; }
.share-btn {
    width: 44px; height: 44px; border-radius: 999px; border: none;
    display: grid; place-items: center; cursor: pointer;
    color: var(--white); background: var(--blue);
}
.share-btn.fb { background: #1877f2; }
.share-btn.li { background: #0a66c2; }
.share-btn.tw { background: var(--ink); }
.share-btn.copy { background: var(--green); }
.share-btn.copied { background: var(--magenta); }

/* ================= breadcrumbs ================= */
.crumbs {
    max-width: 1360px; margin: 0 auto; padding: .8rem 2rem 0;
    font-size: var(--fs-small); color: var(--muted);
}
.crumbs a { color: var(--blue-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ================= footer ================= */
.footer-section { background: var(--blue); padding: 2rem 1.5rem; }
.footer-container {
    max-width: 1360px; margin: 0 auto;
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.footer-card {
    border: 3px solid var(--lemon-deep); border-radius: var(--radius);
    padding: 1.25rem; text-align: center;
}
.footer-card:nth-child(1) { background: var(--mint); }
.footer-card:nth-child(2) { background: var(--rose); }
.footer-card:nth-child(3) { background: var(--sky); }
.footer-card img { max-width: 140px; margin-bottom: .6rem; }
.footer-card h3 { color: var(--green); font-size: 1.05rem; margin-bottom: .35rem; }
.footer-card p { font-size: .9rem; color: #3c3e52; }
.footer-card a { text-decoration: none; color: inherit; }
.footer-card a:hover h3 { color: var(--blue-dark); }
.footer-social { margin-top: .6rem; display: flex; gap: .6rem; justify-content: center; }
.social-icon { color: var(--blue-dark); }
.social-icon:hover { color: var(--green-bright); }

/* ================= misc ================= */
.phone-box {
    font-size: 1.4rem; font-weight: 800; color: var(--magenta);
    margin-bottom: .4rem;
}
.urgent-bar {
    background: var(--magenta); color: var(--white); padding: .9rem 1.5rem;
}
.urgent-bar .container {
    display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: center;
    font-weight: 700;
}
.urgent-bar a { color: var(--white); }
.phone-link { font-weight: 700; color: var(--blue-dark); }

/* ================= utilities (replace inline styles) ================= */
.t-center  { text-align: center; }
.t-muted   { color: var(--muted); }
.t-green   { color: var(--green); }
.t-magenta { color: var(--magenta); }
.lead { font-size: 1.1rem; line-height: 1.75; }
.chip {
    display: block; font-weight: 700; padding: .5rem .7rem;
    background: rgba(255,255,255,.55); border-radius: 10px; margin-top: .8rem;
}
.chip.off { background: #f0f0f0; color: var(--muted); }
.supporter-logo { max-width: 140px; margin-bottom: .6rem; }
.card-action { margin-top: auto; padding-top: 1rem; align-self: center; }
.form-card { max-width: 520px; margin: 0 auto; }
.form-input {
    width: 100%; padding: .65rem .8rem;
    border-radius: 10px; border: 1px solid #ddd; font: inherit;
}
.mot-letter { font-size: 2rem; display: block; color: var(--green); }
.photo-card-img { width: 100%; height: 320px; object-fit: cover; display: block; }
.org-entry { margin-bottom: 1.2rem; border-bottom: 1px solid rgba(0,0,0,.1); padding-bottom: .8rem; }
.hist-link { font-weight: 600; color: var(--green); text-decoration: none; }

/* ================= floating lemon slices ================= */
.lemon-slice {
    position: absolute; z-index: 3;
    pointer-events: none; will-change: transform;
}

/* ================= back to top (lemon wedge) ================= */
#to-top {
    position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
    width: 64px; height: 64px; padding: 8px;
    background: var(--white); border: none; border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer;
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: opacity .25s, transform .25s;
}
#to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#to-top:hover { transform: translateY(-3px); }
#to-top img { width: 100%; height: 100%; display: block; }

/* ================= responsive ================= */
@media (max-width: 900px) {
    .band-green .inner { flex-wrap: wrap; }
    .band-green .sub { white-space: normal; }
}
@media (max-width: 760px) {
    .split-page { grid-template-columns: 1fr; grid-template-rows: auto; }
    .split-row { grid-template-columns: 1fr; }
    .pane-lemon { border-left: none; border-top: 6px solid var(--lemon-deep); }
    .pane-lemon.spacer { display: none; }
    .pane-white, .pane-lemon { padding: 2rem 1.5rem; }
    .band-blue .inner { justify-content: center; text-align: center; }
    .brand-lockup { flex-direction: column; }
    .brand-lockup img { width: 100px; height: 100px; }
    .schedule-grid { grid-template-columns: repeat(7, 1fr); }
    .schedule-cell { min-height: 60px; }
    .schedule-items a { font-size: .75rem; }
}
