/* Baker Kwon Family Foundation — bakerkwonfoundation.org
   Matches the "Counsel" identity used by apply.bakerkwonfoundation.org.
   Hero: Option A (dark). One breakpoint (720px); everything else is fluid. */

:root {
  /* Colour */
  --bk-ink: #16181C;
  --bk-slate: #5B6167;
  --bk-hairline: #E3E6E9;
  --bk-canvas: #F5F6F7;
  --bk-surface: #FFFFFF;
  --bk-teal: #0E5E59;
  --bk-teal-dark: #0A4541;
  --bk-teal-tint: #E7F0EC;
  --bk-teal-tint-border: #C9DDD5;

  /* Type */
  --bk-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --bk-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --bk-fs-display: clamp(2.375rem, 1.4rem + 3.8vw, 4.5rem);      /* 38 → 72 */
  --bk-fs-h2: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);              /* 32 → 44 */
  --bk-fs-statement: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);   /* 26 → 36 */
  --bk-fs-h3-fund: clamp(1.625rem, 1.4rem + 0.85vw, 2.125rem);   /* 26 → 34 */
  --bk-fs-callout: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);    /* 22 → 26 */
  --bk-fs-h3-step: 1.5rem;                                       /* 24 */
  --bk-fs-lead: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);        /* 18 → 21 */
  --bk-fs-mission-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); /* 17 → 19 */
  --bk-fs-body: 1.0625rem;                                       /* 17 */

  /* Layout */
  --bk-container: 1328px;                         /* includes side padding → 1200px content */
  --bk-gutter: clamp(20px, 5vw, 64px);
  --bk-section-pad: clamp(72px, 9vw, 128px);
  --bk-rail: 320px;
  --bk-rail-gap: clamp(32px, 7vw, 96px);
  --bk-radius-button: 6px;
  --bk-radius-callout: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bk-surface);
  color: var(--bk-ink);
  font-family: var(--bk-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--bk-teal); }
a:hover { color: var(--bk-teal-dark); }
:focus-visible { outline: 2px solid var(--bk-teal); outline-offset: 3px; border-radius: 2px; }
section[id] { scroll-margin-top: 84px; }

.container {
  width: 100%;
  max-width: var(--bk-container);
  margin-inline: auto;
  padding-inline: var(--bk-gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bk-surface);
  border-bottom: 1px solid var(--bk-hairline);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 40px;
  row-gap: 6px;
  padding-block: 18px;
}
.wordmark {
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__name,
.wordmark__sub {
  font-family: var(--bk-serif);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}
/* Tracking is tuned so both lines are the same width (162px). */
.wordmark__name { font-size: 18px; letter-spacing: 0.22em; color: var(--bk-ink); }
.wordmark__sub  { font-size: 11px; letter-spacing: 0.21em; color: var(--bk-teal); }

.nav-links {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  column-gap: 32px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--bk-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--bk-slate);
  text-decoration: none;
}
.nav-link:hover {
  color: var(--bk-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.nav-cta { order: 3; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--bk-radius-button);
  background: var(--bk-teal);
  color: #FFFFFF;
  font-family: var(--bk-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.button:hover { background: var(--bk-teal-dark); color: #FFFFFF; }
.button--large { min-height: 48px; padding: 0 20px; }
.button svg { flex: 0 0 18px; }

/* ---------- Hero (Option A, dark) ---------- */
.hero { background: var(--bk-teal-dark); overflow: hidden; }
.hero__inner { padding-top: clamp(64px, 8.5vw, 120px); }
.hero__title {
  max-width: 1040px;
  font-family: var(--bk-serif);
  font-weight: 500;
  font-size: var(--bk-fs-display);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  text-wrap: wrap; /* not balance: balance strands "focused" on its own line on phones */
}
.hero__accent {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--bk-teal-tint-border);
}
.hero__intro-row {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(28px, 4vw, 56px);
}
.hero__intro {
  flex: 0 1 560px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 221, 213, 0.35);
  font-size: var(--bk-fs-lead);
  line-height: 1.6;
  color: var(--bk-teal-tint);
}
.hero__ripples {
  display: block;
  width: 100%;
  height: clamp(110px, 13vw, 180px);
  margin-top: clamp(40px, 6.5vw, 88px);
}

/* ---------- Section pattern ---------- */
.section { background: var(--bk-surface); }
.section--canvas { background: var(--bk-canvas); }
.section__inner { padding-block: var(--bk-section-pad); }
.section__inner--ruled { border-top: 1px solid var(--bk-hairline); }
.marker {
  width: 28px;
  height: 2px;
  background: var(--bk-teal);
  margin-bottom: 20px;
}
.rail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: var(--bk-rail-gap);
  row-gap: 24px;
}
.rail { flex: 0 1 var(--bk-rail); min-width: 0; }
.content { flex: 999 1 560px; min-width: 0; }
.section-title {
  font-family: var(--bk-serif);
  font-weight: 500;
  font-size: var(--bk-fs-h2);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--bk-ink);
}
.statement {
  max-width: 760px;
  font-family: var(--bk-serif);
  font-weight: 400;
  font-size: var(--bk-fs-statement);
  line-height: 1.32;
  color: var(--bk-ink);
  text-wrap: pretty;
}
.lead { font-size: var(--bk-fs-lead); line-height: 1.6; }
.body-text { font-size: var(--bk-fs-body); line-height: 1.6; color: var(--bk-slate); }

/* Mission */
.mission__body {
  margin-top: 28px;
  max-width: 600px;
  font-size: var(--bk-fs-mission-body);
  line-height: 1.65;
  color: var(--bk-slate);
}

/* ---------- What We Fund ---------- */
.fund__intro { margin-top: 16px; max-width: 300px; }
.fund-list { list-style: none; margin: 0; padding: 0; }
.fund-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 32px;
  row-gap: 14px;
  padding-block: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--bk-hairline);
}
.fund-item:last-child { border-bottom: 1px solid var(--bk-hairline); }
.fund-item__head {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.fund-item__icon { flex: 0 0 56px; display: block; }
.fund-item__title {
  font-family: var(--bk-serif);
  font-weight: 500;
  font-size: var(--bk-fs-h3-fund);
  line-height: 1.15;
  color: var(--bk-ink);
}
.fund-item__text { flex: 1 1 320px; padding-top: 6px; }

/* ---------- How We Give ---------- */
.give__intro { max-width: 640px; color: var(--bk-ink); }
.steps {
  list-style: none;
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  column-gap: 0;   /* zero gap so the top lines join into one line */
  row-gap: 48px;
}
.step { border-top: 1px solid var(--bk-teal-tint-border); padding-right: 32px; }
.step__number {
  width: 40px;
  height: 40px;
  margin-top: -21px; /* centres the disc on the line */
  border-radius: 50%;
  background: var(--bk-surface);
  border: 1px solid var(--bk-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bk-serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
  color: var(--bk-teal);
}
.step__title {
  margin-top: 24px;
  font-family: var(--bk-serif);
  font-weight: 500;
  font-size: var(--bk-fs-h3-step);
  line-height: 1.25;
  color: var(--bk-ink);
}
.step__text { margin-top: 10px; }
.give__note { margin-top: clamp(48px, 6vw, 72px); max-width: 640px; }
.callout {
  margin-top: 28px;
  background: var(--bk-teal-tint);
  border: 1px solid var(--bk-teal-tint-border);
  border-radius: var(--bk-radius-callout);
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.callout__text {
  max-width: 640px;
  font-family: var(--bk-serif);
  font-weight: 400;
  font-size: var(--bk-fs-callout);
  line-height: 1.4;
  color: var(--bk-ink);
  text-wrap: pretty;
}

/* ---------- Contact ---------- */
.contact__line { margin-top: 16px; color: var(--bk-slate); }
.email-link {
  color: var(--bk-teal);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.email-link:hover { color: var(--bk-teal-dark); text-decoration-thickness: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bk-canvas); border-top: 1px solid var(--bk-hairline); }
.site-footer__inner {
  padding-block: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  column-gap: 48px;
  row-gap: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--bk-slate);
}
.site-footer__name { font-weight: 600; color: var(--bk-ink); }

/* ---------- Phone (≤720px) ---------- */
@media (max-width: 720px) {
  .site-header { position: static; }
  .site-nav { padding-block: 14px 2px; column-gap: 12px; }
  .nav-cta { order: 2; }
  .nav-links { order: 3; flex-basis: 100%; justify-content: space-between; column-gap: 0; }
  .nav-link { font-size: 14px; }
  section[id] { scroll-margin-top: 0; }
}
