/* Shared document reset and theme tokens. */
:root {
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  -webkit-text-size-adjust: 100%;
}
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; }

/* Layout: one calm column on a cool sage ground. A school-years ruler drawn to scale sits under the hero and sets the chronicle idea; everything below hangs off dated entries, and one deep-green band carries the teaching approach. */
:root {
  --bg: #f9e3e4;
  --surface: #ecd2bf;
  --ink: #3b2622;
  --muted: #6b4d45;
  --rule: #d2ac9b;
  --accent: #9c3b55;
  --on-accent: #ffffff;
  --sun: #d9953f;
  --band: #70473a;
  --band-ink: #fdf0ea;
  --band-muted: #f0d6c9;
  --band-rule: #9a7262;
  --pop: #f0a9ba;
  --band-pop: #4a2c22;
  --font-display: 'Chewy', 'Comic Sans MS', 'Chalkboard SE', cursive;
  --font-body: 'Fredoka', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-label: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #2b1a1e;
    --surface: #3b2723;
    --ink: #f8e6e3;
    --muted: #d3b1a8;
    --rule: #5c3f3b;
    --accent: #f2a3b8;
    --on-accent: #2b1a1e;
    --sun: #e8a95a;
    --band: #4d3029;
    --band-ink: #fdf0ea;
    --band-muted: #e5c7bb;
    --band-rule: #6f4b41;
    --pop: #6d3a4b;
    --band-pop: #2e1b17;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #2b1a1e;
  --surface: #3b2723;
  --ink: #f8e6e3;
  --muted: #d3b1a8;
  --rule: #5c3f3b;
  --accent: #f2a3b8;
  --on-accent: #2b1a1e;
  --sun: #e8a95a;
  --band: #4d3029;
  --band-ink: #fdf0ea;
  --band-muted: #e5c7bb;
  --band-rule: #6f4b41;
  --pop: #6d3a4b;
  --band-pop: #2e1b17;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 74rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.label {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Top bar */
.top { border-bottom: 1px solid var(--rule); }
.top__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1rem; }
.top__mark { display: inline-flex; width: 2.75rem; height: 2.75rem; text-decoration: none; }
.top__logo { display: block; width: 100%; height: 100%; filter: drop-shadow(2px 2px 0 var(--ink)); transition: transform 0.15s, filter 0.15s; }
.top__mark:hover .top__logo { transform: rotate(-5deg) translateY(-1px); filter: drop-shadow(1px 1px 0 var(--ink)); }
.top__mark:focus-visible { border-radius: 18px; }
.top__nav { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.top__nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem;
  padding: 0.35rem 0.7rem; border: 1.5px solid transparent; border-radius: 0.35rem;
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}
.top__nav a:hover,
.top__nav a:focus-visible {
  border-color: var(--ink); background: var(--surface); color: var(--ink);
  text-decoration: none; transform: translateY(-1px);
}

/* Hero */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__text { min-width: 0; }
.hero__text .label { margin-bottom: 1.25rem; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.2rem, 11vw, 6.5rem); line-height: 1; letter-spacing: 0.01em; text-shadow: 0.05em 0.05em 0 var(--pop); }
.hero h1 span { display: block; }
.hero__role { font-family: var(--font-display); font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.2; margin-top: 1.25rem; color: var(--accent); }
.hero__lede { max-width: 34rem; margin-top: 1.25rem; font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.6rem 1.25rem;
  border: 1.5px solid var(--ink); border-radius: 0.375rem; color: var(--ink);
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.top__right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.theme {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0.3rem 0.9rem;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.theme__icon { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme__icon--sun { display: none; }
.theme.is-dark .theme__icon--sun { display: block; }
.theme.is-dark .theme__icon--moon { display: none; }
.btn, .theme { border-width: 2px; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s, background-color 0.15s, color 0.15s; }
.btn:hover, .theme:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: var(--ink); color: var(--bg); }
.btn--primary:hover { border-color: var(--ink); }
.entry__when, .mark__label b, .highlights__tag { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .btn, .theme, .top__nav a, .top__logo { transition: none; }
  .btn:hover, .theme:hover, .top__nav a:hover, .top__mark:hover .top__logo { transform: none; }
}

.portrait { position: relative; justify-self: center; width: min(100%, 24rem); }
.portrait::before {
  content: ""; position: absolute; right: 0; top: -5%; width: 56%; aspect-ratio: 1;
  max-width: 100%; border-radius: 50%; background: var(--sun);
}
.portrait__frame {
  position: relative; width: 88%; aspect-ratio: 4 / 5; overflow: hidden; background: #fff;
  border: 6px solid var(--bg); border-top-left-radius: 999px; border-top-right-radius: 999px;
  box-shadow: 0 0 0 1.5px var(--ink);
}
.portrait__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { justify-self: start; width: min(100%, 20rem); }
}

/* School-years ruler, drawn to scale: 2012 to 2026 */
.ruler { margin-top: clamp(2.5rem, 6vw, 4rem); }
.ruler__track { position: relative; height: 9.5rem; margin-inline: 8px; }
.ruler__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--rule); }
.ruler__now { position: absolute; left: calc(11 / 14 * 100%); right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--accent); }
.ruler__tick { position: absolute; left: calc(var(--i) / 14 * 100%); top: calc(50% - 5px); width: 1px; height: 10px; background: var(--rule); }
.mark { position: absolute; left: calc(var(--p) * 100%); top: 50%; width: 0; height: 0; }
.mark::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--bg); }
.mark--now::before { left: -8px; top: -8px; width: 16px; height: 16px; background: var(--sun); }
.mark__label { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; text-align: center; font-size: 0.92rem; font-weight: 500; line-height: 1.3; }
.mark__label b { display: block; font-family: var(--font-label); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; color: var(--accent); }
.mark--up .mark__label { bottom: 18px; }
.mark--down .mark__label { top: 18px; }
.mark--start .mark__label { transform: none; text-align: left; }
.mark--end .mark__label { transform: translateX(-100%); text-align: right; }
.ruler__caption { margin-top: 0.25rem; font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }

/* Highlights */
.highlights { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.highlights__list { list-style: none; padding: 1.25rem 0 0; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.highlights__tag { display: block; font-family: var(--font-label); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--accent); }
.highlights__text { margin-top: 0.15rem; font-size: 1.1rem; font-weight: 500; line-height: 1.4; }
@media (max-width: 700px) { .highlights__list { grid-template-columns: minmax(0, 1fr); } }

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 5.5rem) 0; }
.section__head { display: grid; gap: 0.5rem; margin-bottom: 2.25rem; }
.section h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: 0.01em; text-wrap: balance; text-shadow: 0.04em 0.04em 0 var(--pop); }
.section__sub { max-width: 38rem; color: var(--muted); }
.section--tan { margin-top: clamp(3rem, 8vw, 5.5rem); padding-block: clamp(3rem, 8vw, 5rem); background: var(--surface); }
.section--tan + .band { margin-top: 0; }

/* Chronicle */
.chronicle { list-style: none; padding: 0; }
.entry__body { position: relative; min-width: 0; border-left: 2px solid var(--rule); padding-left: 1.75rem; padding-bottom: 2.75rem; }
.entry:last-child .entry__body { padding-bottom: 0; }
.entry__body::before { content: ""; position: absolute; left: -7px; top: 0.3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.entry--current .entry__body::before { background: var(--sun); border-color: var(--sun); }
.entry__when { font-family: var(--font-label); font-size: 0.9rem; font-weight: 500; color: var(--muted); margin-bottom: 0.25rem; }
.entry__level { font-family: var(--font-label); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.entry__school { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.2; margin-top: 0.2rem; }
.entry__program { margin-top: 0.2rem; color: var(--muted); }
.honors { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 0.55rem; }
.honors li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.15rem 1rem; align-items: baseline; padding-top: 0.55rem; border-top: 1px solid var(--rule); }
.honors__tag { font-family: var(--font-label); font-size: 0.82rem; font-weight: 500; }
@media (min-width: 641px) {
  .chronicle { padding-left: calc(9.5rem + 1.75rem + 2px); }
  .entry__when { position: absolute; right: calc(100% + 1.75rem + 2px); top: 0.15rem; width: 9.5rem; margin: 0; text-align: right; }
}
@media (max-width: 520px) { .honors li { grid-template-columns: minmax(0, 1fr); } }

/* Beyond the classroom */
.beyond { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2.5rem 3rem; }
.beyond__col { min-width: 0; border-top: 1.5px solid var(--ink); padding-top: 1rem; }
.beyond__col h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin-bottom: 1.1rem; }
.ledger { list-style: none; padding: 0; display: grid; gap: 1.15rem; }
.ledger__what { display: block; font-weight: 600; line-height: 1.4; }
.ledger__meta { display: block; margin-top: 0.15rem; font-size: 0.92rem; color: var(--muted); }

/* Teaching approach band */
.band { margin-top: clamp(3rem, 8vw, 5.5rem); padding-block: clamp(3rem, 8vw, 5rem); background: var(--band); color: var(--band-ink); }
.band .label { color: var(--band-muted); margin-bottom: 1rem; }
.band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4.8vw, 3.1rem); line-height: 1.15; letter-spacing: 0.01em; max-width: 24ch; text-wrap: balance; text-shadow: 0.04em 0.04em 0 var(--band-pop); }
.principles { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem; }
.principles li { min-width: 0; border-top: 1px solid var(--band-rule); padding-top: 1rem; }
.principles h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.principles p { margin-top: 0.4rem; color: var(--band-muted); }

/* Skills */
.skills { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0 2rem; }
.skills li { padding: 0.8rem 0; border-top: 1px solid var(--rule); font-weight: 500; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem 4rem; align-items: start; }
.contact__intro { min-width: 0; display: grid; gap: 1rem; }
.contact__intro p { max-width: 28rem; color: var(--muted); font-size: 1.1rem; }
.contact__list { min-width: 0; }
.contact__row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.5rem 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--rule); }
.contact__row:last-child { border-bottom: 1px solid var(--rule); }
.contact__row dt { font-family: var(--font-label); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact__row dd { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; min-width: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.social-link {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--accent); font-weight: 500; text-underline-offset: 4px;
}
.social-link__icon { width: 1.45rem; height: 1.45rem; fill: currentColor; flex: 0 0 auto; }
@media (max-width: 820px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .contact__row { grid-template-columns: minmax(0, 1fr); } }

.foot { padding-block: clamp(3rem, 8vw, 5rem) 2.5rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.25rem; border-top: 1.5px solid var(--ink); font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }

@media (max-width: 600px) {
  .wrap {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }

  .top__in {
    align-items: flex-start;
    gap: 1rem;
    padding-block: 0.85rem;
  }
  .top__right {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
  }
  .top__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; width: 100%; }
  .top__nav a {
    min-height: 2.75rem;
    padding-inline: 0.35rem;
    text-align: center;
  }
  .theme {
    min-height: 2.75rem;
  }

  .hero {
    padding-top: 2.5rem;
  }
  .hero h1 {
    font-size: clamp(2.85rem, 14vw, 4.25rem);
  }
  .hero__lede {
    font-size: 1.05rem;
  }
  .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .btn {
    justify-content: center;
    width: 100%;
    min-height: 2.9rem;
  }

  .portrait {
    width: min(100%, 18rem);
  }
  .ruler {
    margin-top: 2.75rem;
  }
  .ruler__track {
    height: 10.5rem;
    margin-inline: 0;
  }
  .mark__label {
    font-size: 0.8rem;
  }
  .mark__label b {
    font-size: 0.7rem;
  }
  .ruler__caption {
    font-size: 0.72rem;
  }

  .section {
    padding-top: 3.5rem;
  }
  .section__head {
    margin-bottom: 1.75rem;
  }
  .section h2 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }
  .entry__body {
    padding-left: 1.25rem;
    padding-bottom: 2.25rem;
  }
  .honors li {
    gap: 0.15rem;
  }
  .beyond {
    gap: 2rem;
  }
  .band {
    padding-block: 3.5rem;
  }
  .principles {
    gap: 1.75rem;
    margin-top: 2rem;
  }
  .contact__row {
    padding-block: 0.85rem;
  }
  .social-link {
    min-height: 2.75rem;
  }
  .foot {
    padding-top: 3.5rem;
  }
}

@media (max-width: 360px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .top__nav { gap: 0.3rem; }
  .top__nav a {
    font-size: 0.86rem;
    padding-inline: 0.2rem;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
  .mark__label {
    font-size: 0.72rem;
  }
}