/* Fresh: modern design over the same content. */
:root {
  --ink: #0e1b2c;
  --ink-2: #1b2b40;
  --text: #2a3441;
  --muted: #5d6b7a;
  --ice: #f3f6f9;
  --line: #e2e7ed;
  --blue: #2b5fa8;
  --accent: #e8772e;
  --accent-dark: #c9611d;
  --radius: 10px;
  --wrap: 1160px;
  --prose: 760px;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 1.6em 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.2vw, 38px); }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 2000; background: #fff; padding: 8px 12px; }
.eyebrow { font: 600 13px/1.4 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.muted { color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .4px; background: var(--ice); color: var(--muted); border-radius: 999px; padding: 2px 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans); padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff !important; text-decoration: none; border: 2px solid transparent; transition: background .15s, transform .15s; }
.btn:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-donate { background: var(--accent); }
.btn-donate:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: currentColor; color: #fff !important; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-wrap { margin: 1.6em 0; }
.checkout-note { font-size: 14px; color: var(--muted); margin-top: -.6em; }
.sold-out { font-weight: 600; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo img { height: 52px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav button { display: inline-flex; align-items: center; gap: 6px; font: 500 15px/1 var(--sans); color: var(--ink); background: none; border: 0; padding: 12px 12px; border-radius: 8px; cursor: pointer; }
.main-nav button:hover, .nav-folder.open > button { background: var(--ice); }
.main-nav .active > button { color: var(--blue); }
.nav-folder { position: relative; }
.nav-folder > ul { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 12px 32px rgba(14,27,44,.12); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
.nav-folder:hover > ul, .nav-folder:focus-within > ul, .nav-folder.open > ul { opacity: 1; visibility: visible; transform: none; }
.nav-folder > ul a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 15px; }
.nav-folder > ul a:hover, .nav-folder > ul .active a { background: var(--ice); color: var(--blue); }
.header-donate { padding: 11px 20px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Home hero */
.home-hero { position: relative; color: #fff; background: var(--ink) var(--hero) center 40%/cover no-repeat; min-height: min(78vh, 720px); display: flex; align-items: flex-end; padding: 120px 0 72px; }
.home-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,27,44,.88) 0%, rgba(14,27,44,.55) 55%, rgba(14,27,44,.15) 100%), linear-gradient(0deg, rgba(14,27,44,.6), transparent 50%); }
.home-hero .wrap { position: relative; width: 100%; }
.home-hero h1 { color: #fff; max-width: 760px; margin: 0 0 18px; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; }
.home-hero .lede { max-width: 600px; font-size: 19px; color: rgba(255,255,255,.88); }
.home-hero .eyebrow { color: #ffb37a; }

/* Stats */
.stats { background: var(--ink); color: #fff; padding: 56px 0; }
.stats .eyebrow { color: #ffb37a; font-family: var(--sans); font-size: 13px; }
.stats ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stats li { border-top: 3px solid var(--accent); padding-top: 16px; }
.stat-value { display: block; font: 700 52px/1 var(--display); }
.stat-label { display: block; color: rgba(255,255,255,.75); font-size: 15px; margin-top: 8px; line-height: 1.5; }

/* Feature */
.feature { background: var(--ice); padding: 88px 0; }
.feature-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.feature-img img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.feature h2 { margin-top: 0; font-size: clamp(34px, 4vw, 48px); }

/* Programs */
.programs, .home-shop, .home-posts { padding: 88px 0 24px; }
.programs h2, .section-head h2 { margin: 0 0 28px; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program { display: flex; flex-direction: column; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; background: #fff; }
.program:hover { box-shadow: 0 14px 34px rgba(14,27,44,.1); transform: translateY(-2px); }
.program-img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.program-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; font-size: 15px; line-height: 1.6; }
.program-title { font: 700 24px/1.1 var(--display); color: var(--ink); }
.more { color: var(--blue); font-weight: 600; margin-top: auto; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-head h2 { margin-bottom: 12px; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin: 28px 0 8px; }
.product-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: box-shadow .15s; }
.product-card:hover { box-shadow: 0 12px 30px rgba(14,27,44,.1); }
.pc-img { background: var(--ice); }
.pc-img img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.pc-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.pc-title { font-weight: 600; line-height: 1.35; }
.pc-price { color: var(--muted); }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); }
.post-img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: var(--radius); }
.post-body { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.post-body time { font-size: 13px; color: var(--muted); font-weight: 500; }
.post-title { font: 700 24px/1.15 var(--display); color: var(--ink); }
.post-card a:hover .post-title { color: var(--blue); }
.post-excerpt { font-size: 15px; color: var(--muted); }

/* CTA */
.cta { margin-top: 88px; background: var(--blue); color: #fff; padding: 80px 0; text-align: center; }
.cta h2 { color: #fff; margin: 0 0 12px; font-size: clamp(36px, 5vw, 56px); }
.cta p { max-width: 620px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,.88); }
.cta .actions { justify-content: center; }

/* Interior pages */
.page-hero { position: relative; background: var(--ink); color: #fff; padding: 88px 0 56px; }
.page-hero.has-image { background: var(--ink) var(--hero) center/cover no-repeat; padding: 140px 0 64px; }
.page-hero.has-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,27,44,.9) 0%, rgba(14,27,44,.45) 70%, rgba(14,27,44,.3) 100%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin: 0; max-width: 900px; }
.page-hero .eyebrow { color: #ffb37a; }
.page-hero .eyebrow:empty { display: none; }
.hero-sub { font-size: 19px; color: rgba(255,255,255,.85); max-width: 720px; margin: 14px 0 0; }
.section-tabs { border-bottom: 1px solid var(--line); background: #fff; }
.section-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.section-tabs a { display: block; white-space: nowrap; padding: 16px 14px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 3px solid transparent; }
.section-tabs a:hover { color: var(--ink); }
.section-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
main > .wrap { padding-top: 56px; padding-bottom: 88px; }
.prose { max-width: calc(var(--prose) + 48px); }
.prose-wide { max-width: var(--wrap); }
.prose > :first-child, .prose > .row:first-child .col > :first-child { margin-top: 0; }
.prose h1 a, .prose h2 a, .prose h3 a, .prose h4 a { color: inherit; text-decoration: none; }
.prose h1 a:hover, .prose h2 a:hover, .prose h3 a:hover, .prose h4 a:hover { color: var(--blue); }
.col > h2:first-child, .col > h3:first-child, .col > h1:first-child { margin-top: .4em; }
.prose h1, .prose h2 { font-size: clamp(28px, 3.4vw, 40px); }
.prose img { border-radius: 6px; }
.prose a, .prose p { overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.row { display: flex; gap: 32px; }
.col { flex: 1 1 0; min-width: 0; }
.span-1 { flex-grow: 1; } .span-2 { flex-grow: 2; } .span-3 { flex-grow: 3; } .span-4 { flex-grow: 4; } .span-5 { flex-grow: 5; } .span-6 { flex-grow: 6; }
.span-7 { flex-grow: 7; } .span-8 { flex-grow: 8; } .span-9 { flex-grow: 9; } .span-10 { flex-grow: 10; } .span-11 { flex-grow: 11; } .span-12 { flex-grow: 12; }
figure { margin: 0 0 1.6em; }
figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }
.ratio { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: var(--ice); }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed iframe { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius); }
.quote { border-left: 4px solid var(--accent); padding: 4px 0 4px 24px; }
.quote blockquote { margin: 0; font: 600 24px/1.35 var(--display); color: var(--ink); }
.quote figcaption { font-size: 15px; }
.was-link { font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 1.6em; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.gallery figcaption { display: none; }
.book { display: inline-flex; flex-direction: column; width: 150px; vertical-align: top; margin: 0 18px 28px 0; font-size: 14px; line-height: 1.4; }
.book a { text-decoration: none; color: var(--ink); }
.book img { height: 200px; width: auto; object-fit: contain; margin-bottom: 10px; border-radius: 2px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.book-title { display: block; font-weight: 600; }
.book-author { color: var(--muted); font-size: 13px; }
.summary { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.contact-card { padding: 28px; border-radius: var(--radius); background: var(--ice); }
.contact-card .btn-wrap { margin-bottom: 0; }
.map { margin-top: 1.6em; }

/* Social */
.social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 16px 0 0; }
.social a { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--accent); }
.prose .social a, .contact-card .social a { background: var(--ice); color: var(--ink); }

/* Product page */
.crumb { font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.crumb a { text-decoration: none; }
.product-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.product-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.product-gallery figure { margin: 0; }
.product-gallery figure:first-child { grid-column: 1 / -1; }
.product-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--ice); }
.product-details h1 { margin-top: 0; font-size: clamp(32px, 4vw, 44px); }
.price { font-size: 22px; font-weight: 600; color: var(--ink); }
.stock { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 24px; font-size: 14px; }
.stock-head { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.stock ul { list-style: none; padding: 0; margin: 0; max-height: 280px; overflow: auto; }
.stock li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.stock li span { font-weight: 600; white-space: nowrap; }
.stock .in span { color: #1f7a45; }
.stock .out { color: var(--muted); }

/* Buy list */
.btn-buy { background: var(--accent); }
.btn-buy:hover { background: var(--accent-dark); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.buy-list { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0 8px; }
.buy-head { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.buy-list ul { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.buy-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.buy-list li.out { color: var(--muted); }
.buy-label { line-height: 1.35; }

/* Blog post */
.post header { margin-bottom: 32px; }
.post header h1 { margin: 0; }
.tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-weight: 600; }
.pagination a { text-decoration: none; }
.post-nav a { display: flex; flex-direction: column; max-width: 46%; }
.post-nav a:last-child { text-align: right; margin-left: auto; }
.post-nav small { color: var(--muted); font-weight: 500; font-size: 13px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb37a; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-mark { font: 700 26px/1 var(--display); color: #fff; margin-bottom: 10px; }
.footer-head { font-weight: 600; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 13px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(8,14,24,.94); display: none; align-items: center; justify-content: center; }
.lightbox.on { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 82vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { color: #cfd6de; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 10px 18px; }
.lb-close { top: 10px; right: 10px; } .lb-prev { left: 10px; } .lb-next { right: 10px; }

/* Tablet */
@media (max-width: 1080px) {
  .main-nav button { padding: 12px 8px; font-size: 14px; }
  .header-inner { gap: 16px; }
}
/* Phone */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
  .logo img { height: 42px; }
  .header-donate { margin-left: auto; padding: 10px 16px; font-size: 14px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; order: 5; width: 100%; margin: 0; }
  .menu-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; padding-bottom: 12px; }
  .main-nav button { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-folder > ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 8px; display: none; }
  .nav-folder.open > ul { display: block; }
  .nav-folder:hover > ul, .nav-folder:focus-within > ul { opacity: 1; }
  .stats ul { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .stat-value { font-size: 40px; }
  .feature-grid, .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .program-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .row { flex-direction: column; gap: 0; }
  .home-hero { min-height: 0; padding: 140px 0 48px; }
  .page-hero.has-image { padding: 100px 0 40px; }
  .programs, .home-shop, .home-posts, .feature { padding-top: 56px; }
  .cta { margin-top: 56px; padding: 56px 0; }
  .wrap { padding: 0 16px; }
  main > .wrap { padding-top: 36px; padding-bottom: 56px; }
  .embed iframe { min-height: 280px; }
  body { font-size: 16px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .post-nav a { max-width: 48%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
