/* Colours: change --accent to restyle the whole site */
:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --fg: #1b211e;
  --muted: #5f6a64;
  --line: #e2ded4;
  --accent: #1f6f5c;
  --accent-soft: #dcefe8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121614; --card: #1a201d; --fg: #e8ece9; --muted: #9aa59f; --line: #2a322e;
    --accent: #6cc7ab; --accent-soft: #1d3a31;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121614; --card: #1a201d; --fg: #e8ece9; --muted: #9aa59f; --line: #2a322e;
  --accent: #6cc7ab; --accent-soft: #1d3a31;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.mono { font-family: var(--mono); }
main, .nav, .foot { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { font-family: var(--serif); font-weight: 700; font-size: 22px; text-decoration: none; }
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--fg); }
.theme {
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--fg);
  border-radius: 999px; width: 34px; height: 34px;
}

/* Intro */
.hero { padding: 72px 0 88px; max-width: 820px; }
h1 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(38px, 6.4vw, 72px); line-height: 1.04; margin: 0 0 24px;
}
.lede { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 32px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 10px; background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.label {
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 32px;
}

/* Organization */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.org {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.org img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 10px; margin: 0 0 14px;
}
.org h3 { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin: 0 0 6px; padding: 0 4px; }
.org-role { font-size: 13px; color: var(--accent); margin: 0 0 12px; }
.org p { margin: 0 0 14px; }
.link { font-weight: 600; color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Text shown until a section is filled in */
.placeholder { color: var(--muted); font-style: italic; margin: 0; }

/* Footer */
.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line);
}
.foot a { text-decoration: none; }

/* Gentle fade-in as sections scroll into view */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Phones and small screens */
@media (max-width: 820px) {
  main, .nav, .foot { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 40px 0 56px; }
  .nav nav { gap: 14px; }
}
@media (max-width: 420px) {
  .nav nav a { display: none; }
}
