:root{color-scheme:light}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}

/* ── Tokens ────────────────────────────────────── */
:root {
  /* Fresh sage-mint green — bright & airy, readable, accessible */
  --green:       #2E7D62;   /* vivid medium green — AA on white */
  --green-mid:   #5BAD8F;   /* bright mid-green */
  --green-light: #E8F5EF;   /* very pale mint wash */
  --green-dark:  #1A5C46;   /* hero gradient anchor — noticeably lighter than before */
  --accent:      #5C68B0;   /* periwinkle-indigo — calm complement */
  --accent-pale: #EEF0F9;   /* soft periwinkle tint */
  --bg:          #F5FAF7;   /* lightest mint-white */
  --surface:     #FFFFFF;
  --text:        #16302A;   /* very dark green-black — high contrast */
  --text-2:      #386B56;   /* medium green — AA contrast on white */
  --border:      #C0DDD2;
  --shadow:      0 2px 14px rgba(30,48,40,.08);
  --shadow-lg:   0 8px 36px rgba(30,48,40,.12);
  --r:           10px;
  --font-d: 'Cormorant Garant', Georgia, serif;
  --font-b: 'Inter', system-ui, sans-serif;
}
/* Dark mode — high contrast, clearly readable */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #1A2E24;
    --surface:     #2A4535;
    --text:        #F0FAF5;
    --text-2:      #B8E0CC;
    --border:      #4A6E5C;
    --green-light: #253C30;
    --accent-pale: #2B2845;
    --green:       #4DC994;
    --green-mid:   #7DDDB5;
    --accent:      #9DAEF0;
    --shadow:      0 2px 14px rgba(0,0,0,.4);
    --shadow-lg:   0 8px 36px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg:          #1A2E24;
  --surface:     #2A4535;
  --text:        #F0FAF5;
  --text-2:      #B8E0CC;
  --border:      #4A6E5C;
  --green-light: #253C30;
  --accent-pale: #2B2845;
  --green:       #4DC994;
  --green-mid:   #7DDDB5;
  --accent:      #9DAEF0;
  --shadow:      0 2px 14px rgba(0,0,0,.4);
  --shadow-lg:   0 8px 36px rgba(0,0,0,.5);
}

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Skip navigation link for screen readers */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 0 0 6px 6px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: top .1s;
}
.skip-link:focus { top: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 17px;   /* slightly larger base for readability */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
/* Screen-reader-only utility */
.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;
}
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--font-d); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.4rem,6vw,4.5rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 500; }
h3 { font-size: clamp(1.15rem,2.5vw,1.55rem); font-weight: 500; }
p { max-width: 68ch; }
p + p { margin-top: .85em; }
ul { padding-left: 1.3em; }
li + li { margin-top: .4em; }

/* ── Layout helpers ────────────────────────────── */
.container { max-width: 1100px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 72px; border-top: 1px solid var(--border); }
.section-label {
  font-family: var(--font-b);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title { margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }

/* ── Header / Nav ──────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 13px;
}
.site-name {
  font-family: var(--font-d);
  font-size: 1.3rem; font-weight: 600;
  color: var(--green); letter-spacing: -.01em;
  white-space: nowrap; cursor: pointer;
}
.site-name span { color: var(--accent); }
nav { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
nav button {
  background: none; border: none;
  padding: 5px 11px; border-radius: 20px;
  font-family: var(--font-b); font-size: .76rem; font-weight: 500;
  color: var(--text-2); cursor: pointer;
  transition: background .15s, color .15s;
}
nav button:hover { background: var(--green-light); color: var(--green); }
nav button.active { background: var(--green); color: #fff; }
#hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
#hamburger svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
#mobile-nav {
  display: none; flex-direction: column; gap: 2px;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
#mobile-nav button {
  text-align: left; background: none; border: none;
  padding: 10px 12px; border-radius: 8px;
  font-family: var(--font-b); font-size: .9rem; font-weight: 500;
  color: var(--text); cursor: pointer; transition: background .15s;
}
#mobile-nav button:hover { background: var(--green-light); }
#mobile-nav button.active { color: var(--green); font-weight: 600; }
@media (max-width: 820px) { nav { display: none; } #hamburger { display: block; } }

/* ── Pages ─────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ── Hero ───────────────────────────────────────── */
.hero {
  padding-block: 80px 60px;
  background: linear-gradient(140deg, #1A5C46 0%, #2E7D62 55%, #4AAF88 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(107,91,138,.2) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(107,91,138,.22);
  border: 1px solid rgba(107,91,138,.45);
  color: #C4B8E0;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero-subtitle {
  font-family: var(--font-d);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-style: italic; color: rgba(255,255,255,.75);
  margin-bottom: 1.8rem; font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 6px;
  font-family: var(--font-b); font-size: .85rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-green   { background: var(--green); color: #fff; }
.btn-sm      { font-size: .78rem; padding: 7px 14px; }

/* AHA strip on hero */
.aha-strip {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; margin-top: 48px;
  background: rgba(0,0,0,.2); border-radius: 12px; overflow: hidden;
}
.aha-pillar {
  padding: 26px 22px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.aha-pillar:last-child { border-right: none; }
.aha-letter {
  font-family: var(--font-d); font-size: 3.2rem; font-weight: 300;
  color: #C4B8E0; line-height: 1; display: block; margin-bottom: 4px;
}
.aha-word {
  display: block; font-size: .76rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.9); margin-bottom: 7px;
}
.aha-desc { font-size: .78rem; color: rgba(255,255,255,.6); line-height: 1.4; max-width: none; }
@media (max-width: 500px) {
  .aha-strip { grid-template-columns: 1fr; }
  .aha-pillar { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .aha-pillar:last-child { border-bottom: none; }
}

/* Home quick-link cards */
.home-links { padding-block: 56px; }
.link-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px;
  transition: box-shadow .15s, transform .15s, border-color .15s;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
}
.link-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--green-mid); }
.link-card-icon { font-size: 1.5rem; margin-bottom: 4px; }
.link-card h3 { font-size: 1.05rem; color: var(--green); }
.link-card p  { font-size: .82rem; color: var(--text-2); max-width: none; }
.link-card .arrow { margin-top: auto; padding-top: 8px; font-size: .78rem; color: var(--accent); font-weight: 600; }

/* Pill links */
.pill-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--green-light); color: var(--green);
  border: 1px solid var(--border); border-radius: 20px;
  font-size: .78rem; font-weight: 500;
  transition: background .15s, color .15s; text-decoration: none;
}
.pill-link:hover { background: var(--green); color: #fff; }

/* ── About / Profile ───────────────────────────── */
.profile-grid {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 48px; align-items: start;
}
@media (max-width: 640px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-photo {
  width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--green);
  background: var(--green-light); flex-shrink: 0;
}
.avatar-circle {
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--green-light); border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 4rem; color: var(--green);
}
.profile-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.appointments {
  margin-top: 24px; background: var(--accent-pale);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0; padding: 18px 20px;
}
.appointments h4 {
  font-size: .78rem; font-weight: 600; color: var(--accent);
  letter-spacing: .07em; margin-bottom: 10px; text-transform: uppercase;
  font-family: var(--font-b);
}
.appointments ul { list-style: none; padding: 0; }
.appointments li {
  font-size: .81rem; color: var(--text-2);
  padding: 4px 0; border-bottom: 1px solid rgba(194,120,74,.12);
}
.appointments li:last-child { border-bottom: none; }
.quote-block {
  border-left: 3px solid var(--green-mid);
  padding: 14px 20px; margin: 24px 0;
  font-family: var(--font-d); font-style: italic;
  font-size: 1.25rem; color: var(--green);
  background: var(--green-light); border-radius: 0 8px 8px 0;
}

/* ── AHA ────────────────────────────────────────── */
.aha-full {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-block: 36px;
}
@media (max-width: 600px) { .aha-full { grid-template-columns: 1fr; } }
.aha-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px 24px;
  border-top: 4px solid var(--green); box-shadow: var(--shadow);
}
.aha-card.agency { border-top-color: #2E6049; }
.aha-card.hope   { border-top-color: #C2784A; }
.aha-card.action { border-top-color: #4E8A68; }
.aha-card .big-letter {
  font-family: var(--font-d); font-size: 3.8rem; font-weight: 300;
  line-height: 1; margin-bottom: .3rem;
}
.agency .big-letter { color: #2E6049; }
.hope   .big-letter { color: #C2784A; }
.action .big-letter { color: #4E8A68; }
.aha-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.aha-card p  { font-size: .87rem; color: var(--text-2); max-width: none; }

.poster-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  margin-top: 28px; box-shadow: var(--shadow);
}
.poster-thumb {
  width: 120px; height: 80px; background: var(--green);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; font-family: var(--font-d);
  font-size: 1.2rem; font-weight: 300; font-style: italic;
}
.poster-text h3 { margin-bottom: .4rem; }
.poster-text p  { font-size: .84rem; color: var(--text-2); max-width: none; }
.poster-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* Story form */
.story-form-section {
  background: var(--green-light); border-radius: 12px;
  padding: 40px 36px; margin-top: 40px;
  border: 1px solid var(--border);
}
@media (max-width: 480px) { .story-form-section { padding: 28px 20px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .75rem; font-weight: 600; letter-spacing: .05em; color: var(--text-2); text-transform: uppercase; }
input, textarea, select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 9px 12px;
  font-family: var(--font-b); font-size: .9rem; color: var(--text);
  outline: none; transition: border-color .15s; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--green); }
textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none; background: var(--green); color: #fff;
  padding: 16px 20px; border-radius: 8px; text-align: center;
  font-weight: 500; margin-top: 16px;
}

/* ── Team ───────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px,1fr)); gap: 22px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.team-card-header {
  background: var(--green); display: flex; align-items: center;
  justify-content: center; height: 160px; position: relative; overflow: hidden;
}
.team-card-header img {
  width: 160px; height: 160px; object-fit: cover;
  border: 3px solid rgba(255,255,255,.25);
  position: absolute; left: 50%; transform: translateX(-50%);
}
.avatar-letter {
  font-family: var(--font-d); font-size: 3.2rem;
  color: rgba(255,255,255,.45); font-weight: 300;
}
.team-card-body { padding: 20px; }
.team-card-body h3 { font-size: 1.12rem; margin-bottom: 3px; color: var(--green); }
.team-role {
  font-size: .72rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.team-card-body p { font-size: .83rem; color: var(--text-2); max-width: none; }
.fun-fact {
  margin-top: 10px; background: var(--accent-pale);
  border-radius: 6px; padding: 8px 12px;
  font-size: .78rem; color: var(--text-2);
}
.fun-fact strong { color: var(--accent); }

/* ── Research ───────────────────────────────────── */
.research-interests {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px; margin-bottom: 32px;
}
.research-interests ul {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 6px 24px; list-style: none; padding: 0; margin-top: 16px;
}
.research-interests li {
  padding: 6px 0; border-bottom: 1px solid var(--border);
  font-size: .88rem; display: flex; align-items: center; gap: 8px;
}
.research-interests li::before { content: '▸'; color: var(--green); font-size: .7rem; }
.resource-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px;
  display: flex; gap: 16px; align-items: flex-start;
  box-shadow: var(--shadow); transition: border-color .15s;
}
.resource-card:hover { border-color: var(--green-mid); }
.resource-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.resource-card h3 { font-size: 1rem; margin-bottom: 4px; }
.resource-card p  { font-size: .82rem; color: var(--text-2); max-width: none; }
.substack-box {
  background: linear-gradient(140deg, #1A5C46 0%, #2E7D62 60%, #4AAF88 100%);
  border-radius: 14px; padding: 44px 40px; color: #fff;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin-top: 16px;
}
.substack-text { flex: 1; min-width: 220px; }
.substack-text .label { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .6rem; }
.substack-text h2 { color: #fff; margin-bottom: .5rem; }
.substack-text p  { color: rgba(255,255,255,.75); font-size: .9rem; max-width: 42ch; }

/* ── CE-DIT Science ─────────────────────────────── */
.dis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 620px) { .dis-grid { grid-template-columns: 1fr; } }
.dis-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; }
.dis-box h3 { color: var(--green); margin-bottom: 12px; }
.dis-box p, .dis-box li { font-size: .88rem; color: var(--text-2); max-width: none; }

/* ── LHON page ─────────────────────────────────── */
.lhon-intro {
  background: linear-gradient(140deg, #1A5C46 0%, #2E7D62 100%);
  border-radius: 14px; padding: 44px 40px; color: #fff; margin-bottom: 44px;
}
@media (max-width:500px) { .lhon-intro { padding: 28px 22px; } }
.lhon-intro h2 { color: #fff; margin-bottom: .6rem; }
.lhon-intro p { color: rgba(255,255,255,.8); font-size: .95rem; max-width: 60ch; }
.lhon-intro p + p { margin-top: .8em; }
.lhon-stat-row {
  display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap;
}
.lhon-stat {
  background: rgba(255,255,255,.12); border-radius: 10px;
  padding: 16px 22px; min-width: 140px; flex: 1;
}
.lhon-stat .num {
  font-family: var(--font-d); font-size: 2rem; font-weight: 600;
  color: #C4B8E0; line-height: 1;
}
.lhon-stat .lbl { font-size: .75rem; color: rgba(255,255,255,.65); margin-top: 4px; }
.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px; box-shadow: var(--shadow);
}
.info-card + .info-card { margin-top: 20px; }
.info-card h3 { color: var(--green); margin-bottom: 12px; }
.info-card p, .info-card li { font-size: .88rem; color: var(--text-2); max-width: none; }
.info-card ul { margin-top: 10px; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; font-size: .75rem; font-weight: 600;
  background: var(--green-light); color: var(--green);
  border: 1px solid var(--border);
}
.badge.warm { background: var(--accent-pale); color: var(--accent); }
.robin-note {
  background: var(--accent-pale); border: 1px solid rgba(194,120,74,.25);
  border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0;
  padding: 20px 24px; margin-top: 28px;
}
.robin-note p { font-size: .88rem; color: var(--text-2); max-width: none; }
.robin-note strong { color: var(--accent); }

/* ── Resources page ────────────────────────────── */
.resource-section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 18px; }

/* ── Footer ─────────────────────────────────────── */
footer {
  background: #1A5C46; color: rgba(255,255,255,.88);
  padding-block: 32px; font-size: .82rem; text-align: center;
}
footer a { color: rgba(255,255,255,.85); }
footer a:hover { color: #C4B8E0; }
footer strong { color: #fff; }

/* Strong, visible focus for keyboard/screen-reader users */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Ensure interactive link-cards are keyboard accessible */
.link-card { cursor: pointer; }
.link-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
/* Minimum touch/click target 44×44px for buttons */
nav button { min-height: 36px; }
.btn { min-height: 44px; }

body.page{display:block!important}
