/* ───────────────────────────────────────────────
   Saydanar – site styles
   Colours are defined once here at the top.
   ─────────────────────────────────────────────── */
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url("fonts/ysabeau-office.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url("fonts/ysabeau-office-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  /* Backgrounds – cool, no beige */
  --paper:      #f8fbfa;   /* page background */
  --paper-2:    #eaf7f2;   /* light green sections */
  --card:       #ffffff;
  /* Text */
  --ink:        #14231f;   /* main text, green-black */
  --muted:      #4f625c;
  --line:       #d9e8e2;
  /* Orange – from the logo, slightly cooler */
  --orange:     #ee6a3d;   /* accents, lines */
  --orange-btn: #d9542f;   /* buttons */
  --orange-ink: #b8431f;   /* small orange text */
  /* Green – emerald */
  --green:      #006b54;   /* Deep Emerald: links, second colour */
  --green-mid:  #009b77;   /* Smaragd */
  --green-soft: #d8f7ee;   /* Glacier */
  --green-dark: #03332b;   /* Abyss: footer */
  --footer:     #03332b;

  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Ysabeau Office", "Ysabeau", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Myanmar Sangam MN", "Noto Sans Myanmar", sans-serif;
  --radius: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.65 var(--sans);
  font-feature-settings: "kern", "liga";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 1.6em 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-top: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ── Header & menu ─────────────────────────────── */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.95rem; font-weight: 600; letter-spacing: .01em; }
.brand-sub { font-size: .95rem; color: var(--muted); margin-top: 4px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.site-nav a.nav-donate { background: var(--orange); color: #fff; padding: 7px 16px; border-radius: 999px; border: 0; font-weight: 600; }
.site-nav a.nav-donate:hover { background: var(--orange-ink); color: #fff; }

.menu-toggle { display: none; }

@media (max-width: 900px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line);
    border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; } .menu-icon::after { top: 5px; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; padding-bottom: 14px; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 12px 2px; border: 0; }
  .site-nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
  .site-nav a.nav-donate { display: inline-block; margin: 12px 0 0; padding: 9px 20px; }
}

/* ── Buttons ───────────────────────────────────── */
.button {
  display: inline-block; background: var(--orange-btn); color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 26px; border-radius: 999px; border: 0; font: inherit; font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; cursor: pointer;
}
.button:hover { background: var(--orange-ink); color: #fff; }
.button-quiet { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.button-quiet:hover { background: var(--green); color: #fff; }
.button-small { padding: 9px 18px; font-size: .95rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* ── Home: hero ────────────────────────────────── */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--orange-ink); margin-bottom: 1em; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); }
.hero .lead p:last-child { margin-bottom: 0; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 820px) {
  .hero { padding: 32px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

.lead, .lead-block p { font-size: 1.16rem; color: #2f413b; }

/* ── Sections ──────────────────────────────────── */
.section { padding: 56px 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--orange); margin-bottom: 14px; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.page-head { padding-top: 48px; padding-bottom: 8px; }
.page-head h1 { margin-bottom: .35em; }
.crumbs { margin-bottom: 1.2em; font-size: .95rem; }
.crumbs a { text-decoration: none; }
.entry-date { color: var(--muted); margin-top: -.3em; }

/* ── Cards ─────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; padding-bottom: 64px; }
.section .cards { padding-bottom: 0; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(3, 51, 43, .10); }
.card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card img, .card-noimg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.card-noimg { display: block; background: var(--green-soft) url("logo.png") center / 64px no-repeat; }
.card-body { padding: 18px 20px 22px; }
.card-meta { color: var(--muted); font-size: .88rem; margin: 0 0 .3em; }
.card h3 { margin: 0 0 .4em; font-size: 1.5rem; }
.card p:last-child { margin: 0; color: #2f413b; font-size: .97rem; }
.tag { float: right; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--green-soft); color: var(--green); padding: 3px 9px; border-radius: 999px; margin-left: 8px; }

/* ── Text pages ────────────────────────────────── */
.prose { padding-bottom: 48px; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--green-mid); }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--paper-2); border-left: 4px solid var(--green-mid); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { margin: 0; }
.inline-figure { margin: 1.8em 0; }
.inline-figure img { border-radius: var(--radius); }
.inline-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

.entry-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.entry-grid .prose { max-width: 700px; }
@media (max-width: 860px) { .entry-grid { grid-template-columns: 1fr; gap: 0; } .facts { order: -1; margin-bottom: 32px; } }

.facts { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 20px 22px; }
.facts h2 { font-size: 1.4rem; margin: 0 0 .6em; }
.facts dl { margin: 0 0 1em; }
.facts dl div { padding: 8px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; }

/* ── Photo gallery ─────────────────────────────── */
.gallery-wrap { padding-bottom: 64px; }
.gallery-wrap h2 { margin-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(3, 30, 25, .94); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #eee; margin-top: 12px; font-size: .95rem; min-height: 1.4em; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 60px 10px 20px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* ── Home: intro + donate band ─────────────────── */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.values h3 { margin-top: 0; font-size: 1.4rem; }
.values p { margin: 0; color: #2f413b; }
.values > div { border-top: 3px solid var(--green-mid); padding-top: 16px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

.band { background: var(--green); color: #e6f5ef; border-radius: var(--radius); padding: 40px 44px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.band h2 { color: #fff; margin: 0 0 .3em; }
.band p { margin: 0; color: #b9ddd1; }
@media (max-width: 700px) { .band { grid-template-columns: 1fr; padding: 30px 24px; } }

/* ── Reports ───────────────────────────────────── */
.reports { padding-bottom: 64px; }
.reports h2 { font-size: 1.6rem; margin: 1.6em 0 .4em; }
.report-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.report-list li { border-bottom: 1px solid var(--line); }
.report-list a { display: grid; grid-template-columns: 42px 1fr auto; gap: 16px; align-items: center; padding: 16px 4px; text-decoration: none; color: var(--ink); }
.report-list a:hover { background: var(--card); }
.report-list a:hover .report-title { color: var(--orange-ink); }
.pdf-icon { width: 42px; height: 50px; border-radius: 4px; background: var(--card); border: 1.5px solid var(--line); display: flex; align-items: flex-end; justify-content: center; font-size: .62rem; font-weight: 700; color: var(--orange-ink); padding-bottom: 6px; letter-spacing: .05em; }
.report-title { font-weight: 600; display: block; }
.report-desc { display: block; color: var(--muted); font-size: .94rem; }
.report-size { color: var(--muted); font-size: .85rem; white-space: nowrap; }
@media (max-width: 520px) { .report-list a { grid-template-columns: 36px 1fr; } .report-size { grid-column: 2; } }

/* ── Forms ─────────────────────────────────────── */
.form { display: grid; gap: 18px; margin-top: 8px; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 13px;
}
.form input:focus, .form textarea:focus { border-color: var(--green-mid); outline: none; box-shadow: 0 0 0 3px rgba(0, 155, 119, .2); }
.form textarea { min-height: 180px; resize: vertical; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--muted); }
.notice { padding: 16px 20px; border-radius: var(--radius); margin: 0 0 24px; }
.notice-ok { background: var(--green-soft); color: #03332b; border: 1px solid #a7f0dc; }
.notice-error { background: #fdecea; color: #8a2a14; border: 1px solid #f4c2b6; }
.notice ul { margin: .4em 0 0; padding-left: 1.2em; }

/* ── Footer ────────────────────────────────────── */
.site-footer { background: var(--footer); color: #c4e3d8; margin-top: 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #a7f0dc; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: #fff; margin-bottom: .4em; }
.footer-brand span { font-family: var(--sans); font-size: 1rem; color: #8fc4b3; margin-left: 6px; }
.footer-title { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: #8fc4b3; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { margin: 0 0 6px; }
.footer-links a { text-decoration: none; }
.footer-small { color: #8fc4b3; font-size: .87rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #1b4a40; padding-top: 18px; padding-bottom: 24px; font-size: .87rem; color: #8fc4b3; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
