:root {
  color-scheme: light;
  --ink: #13273b;
  --body: #3b4f61;
  --navy: #102b43;
  --navy-deep: #0b2034;
  --accent: #146078;
  --line: #d7e0e5;
  --paper: #fff;
  --mist: #f2f6f7;
  --measure: 74rem;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid #3882b9;
  outline-offset: 4px;
}

.wrap { max-width: var(--measure); width: calc(100% - 6rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.75rem); }
.skip { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.eyebrow { color: var(--accent); font-size: .82rem; font-weight: 750; letter-spacing: .11em; line-height: 1.45; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.03; }
h2 { font-size: clamp(2.45rem, 5vw, 4.45rem); }
h3, h4 { line-height: 1.28; }
.eyebrow + h2 { margin-top: .65rem; }

.site-header { border-bottom: 1px solid #e1e8eb; background: var(--paper); }
.header-layout { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; min-height: 4.75rem; }
.brand { display: inline-flex; justify-self: start; gap: .7rem; align-items: center; text-decoration: none; font-weight: 750; white-space: nowrap; }
.monogram { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; background: var(--navy); color: white; font-family: var(--serif); font-size: .83rem; font-weight: 400; letter-spacing: .035em; }
.site-header nav, .site-footer nav, .year-nav { display: flex; gap: clamp(.85rem, 2.2vw, 1.85rem); flex-wrap: wrap; align-items: center; }
.site-header nav a { font-size: .9rem; color: var(--body); font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { text-decoration: underline; }
.header-contact { justify-self: end; white-space: nowrap; color: var(--accent); font-size: .9rem; font-weight: 750; text-decoration: none; }
.header-contact:hover { text-decoration: underline; }

.hero { color: white; background: linear-gradient(118deg, var(--navy-deep), var(--navy) 66%, #204961); }
.hero-layout { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3.3rem, 7.5vw, 7rem); }
.hero-location { color: #a8d1e4; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(3.35rem, 7.3vw, 6.4rem); line-height: .95; }
.hero-subtitle { font-size: clamp(1.2rem, 2.05vw, 1.6rem); line-height: 1.32; margin-top: 1.45rem; max-width: 26ch; }
.hero-bio { margin-top: 1.05rem; color: #d4e3ee; max-width: 51ch; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.15rem 1.6rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; padding: .72rem 1.15rem; font-size: .92rem; font-weight: 750; border: 1px solid transparent; text-decoration: none; line-height: 1.4; min-height: 2.85rem; }
.button-light { color: var(--navy-deep); background: white; }
.button-light:hover { background: #d9e9ef; }
.button-primary { color: white; background: var(--navy); }
.button-primary:hover { background: #1b4960; }
.text-link { color: var(--accent); font-size: .92rem; font-weight: 700; }
.text-link.on-dark { color: #bce0f0; }
.hero-figure { min-width: 0; }
.hero-figure img { width: 100%; height: auto; max-height: 28rem; aspect-ratio: 1.21; object-fit: cover; object-position: 65% 44%; }
.hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .9rem; border-top: 1px solid #547088; margin-top: .65rem; padding-top: .63rem; color: #d4e3ee; font-size: .82rem; }
.hero-figure figcaption span:first-child { color: white; }

.profile-strip { background: var(--mist); border-bottom: 1px solid var(--line); }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); padding-block: 1.45rem; }
.profile-facts > div { display: grid; gap: .2rem; padding: .2rem 1.3rem; border-left: 1px solid #c9d7df; }
.profile-facts > div:first-child { border-left: 0; padding-left: 0; }
.profile-facts span { font-size: .84rem; color: var(--accent); font-weight: 750; }
.profile-facts strong { font-size: .99rem; font-weight: 650; line-height: 1.4; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.35rem; margin-bottom: 2rem; }
.year-nav { gap: .45rem; }
.year-nav a { color: var(--accent); border: 1px solid var(--line); padding: .35rem .78rem; font-size: .92rem; font-weight: 750; text-decoration: none; }
.year-nav a:hover { background: var(--mist); }
.year { display: grid; grid-template-columns: minmax(7rem, .25fr) 1fr; gap: 1rem 2.1rem; padding-block: 1.8rem 2.6rem; border-top: 1px solid #adc0ca; }
.year-label { font: 400 clamp(2rem, 4vw, 3.25rem)/1 var(--serif); letter-spacing: -.045em; }
.entries { min-width: 0; }
.entry { display: grid; grid-template-columns: 8.7rem minmax(0,1fr); gap: .5rem 1.45rem; padding-bottom: 1.35rem; }
.entry + .entry { padding-top: 1.35rem; border-top: 1px solid var(--line); }
.entry h4 { font-size: clamp(1.06rem, 2.3vw, 1.25rem); font-weight: 720; margin-bottom: .25rem; }
.entry p:not(.date), .role-list, .community-list p, .tutoring-callout p:not(.eyebrow) { color: var(--body); }
.entry p + p { margin-top: .55rem; }
.entry .date { font-size: .91rem; color: var(--accent); font-weight: 750; padding-top: .15rem; }
.entry .text-link { display: inline-block; margin-top: .35rem; }
.more-entries { margin-top: .25rem; border: 1px solid var(--line); background: var(--mist); padding: .8rem 1rem; }
.more-entries summary { cursor: pointer; font-weight: 700; }
.role-list { padding-left: 1.15rem; margin: .6rem 0 0; }
.role-list li { padding-block: .24rem; }
.photo-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; margin-top: 1.05rem; }
.photo-pair img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.photo-pair figcaption { color: var(--body); font-size: .82rem; margin-top: .3rem; }
.event-photo { margin-top: 1rem; max-width: 42rem; }
.event-photo img { width: 100%; height: auto; }
.event-photo figcaption { color: var(--body); font-size: .82rem; margin-top: .3rem; }
.entry .image-credit { font-size: .82rem; }

.projects-section { background: var(--mist); border-block: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.project { padding: 1.55rem; border-top: 2px solid #33738a; background: var(--paper); }
.project h3 { font: 400 clamp(1.4rem, 2.6vw, 2rem)/1.18 var(--serif); margin: .55rem 0 .75rem; }
.project p:not(.eyebrow) { color: var(--body); }
.speaking-layout { display: grid; grid-template-columns: .55fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); }
.speaking-stat { border-top: 3px solid var(--accent); padding: 1.4rem; background: var(--mist); }
.speaking-stat strong { display: block; font: 400 clamp(4rem, 9vw, 7rem)/1 var(--serif); letter-spacing: -.07em; }
.speaking-stat span { display: block; font-weight: 700; font-size: 1.13rem; margin: .45rem 0; }
.speaking-stat p { color: var(--body); max-width: 30ch; }
.community-list article { padding-block: .85rem; border-top: 1px solid var(--line); }
.community-list h3 { margin-bottom: .3rem; font-size: 1.13rem; }
.travel-section { background: #edf3f7; border-block: 1px solid var(--line); }
.travel-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .9rem; }
.travel-grid a { text-decoration: none; background: white; border: 1px solid var(--line); }
.travel-grid img { width: 100%; height: auto; aspect-ratio: 1.2; object-fit: cover; }
.travel-grid a > span { display: flex; justify-content: space-between; gap: .35rem; padding: .68rem .8rem; font-size: .93rem; font-weight: 700; line-height: 1.35; }
.travel-grid a:hover > span { text-decoration: underline; text-underline-offset: .22em; }
.destination-list { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 1.1rem 0 0; list-style: none; }
.destination-list li { border: 1px solid #c5d5df; padding: .34rem .72rem; font-size: .92rem; font-weight: 650; }
.tutoring-callout { display: flex; justify-content: space-between; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.tutoring-callout p:not(.eyebrow) { margin-top: .75rem; }
.site-footer { padding-top: 3.5rem; background: var(--navy-deep); color: white; }
.site-footer .eyebrow { color: #a8d1e4; }
.site-footer h2 { font-size: clamp(2.4rem,4.6vw,3.3rem); margin-bottom: .7rem; }
.footer-layout { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.35rem; padding-bottom: 2rem; }
.site-footer nav a { text-decoration: none; color: #d4e3ee; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #425c70; color: #d4e3ee; font-size: .88rem; padding-block: .9rem; }

.tutor-hero .hero-layout { grid-template-columns: 1.2fr .8fr; }
.tutor-hero h1 { font-size: clamp(3rem, 6.8vw, 5.75rem); max-width: 13ch; }
.tutor-hero .hero-figure img { aspect-ratio: 1.3; }
.tutor-details { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.5rem,5vw,4.5rem); }
.tutor-details h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.tutor-details p { color: var(--body); }
.tutor-details p + p { margin-top: .8rem; }
.course-list, .credential-list { padding: 0; margin: .7rem 0; list-style: none; }
.course-list li, .credential-list li { padding: .46rem 0; border-top: 1px solid var(--line); }
.course-list span { display: inline-block; min-width: 8rem; color: var(--accent); font-size: .88rem; font-weight: 700; }
.credential-list span { display: block; color: var(--body); }
.reviews-layout { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(1.6rem, 5vw, 5rem); align-items: start; }
.reviews-layout > div p:not(.eyebrow) { color: var(--body); margin-top: .9rem; }
.reviews-form { background: white; padding: clamp(1.1rem,3vw,2rem); border: 1px solid var(--line); min-width: 0; }
.reviews-form fieldset { border: none; padding: 0; margin: 0 0 1rem; }
.reviews-form legend, .reviews-form > label { display: block; font-weight: 700; margin-bottom: .4rem; }
.stars { display: flex; gap: .32rem; align-items: center; flex-wrap: wrap; }
.stars label { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.7rem; height: 2.7rem; cursor: pointer; border: 1px solid var(--line); }
.stars input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.star-icon { color: #516e7f; font-size: 1.46rem; line-height: 1; }
.stars label:has(input:checked) { background: #e5f0f5; border-color: var(--accent); }
.stars label:has(input:checked) .star-icon,
.stars label:has(~ label input:checked) .star-icon { color: #8b5300; }
.stars label:has(input:focus-visible) { outline: 3px solid #3882b9; outline-offset: 2px; }
.reviews-form textarea { display: block; width: 100%; resize: vertical; min-height: 6.7rem; padding: .55rem .7rem; border: 1px solid #839aab; color: var(--ink); }
.reviews-form .button { margin-top: 1rem; }
.form-help, .form-status { color: var(--body); font-size: .91rem; margin-top: .45rem; }
.form-status:empty { display: none; }
.form-status { color: var(--accent); font-weight: 650; }

@media (max-width: 58rem) {
  .wrap { width: calc(100% - 3rem); }
  .header-layout { grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: .65rem; padding-block: .85rem; }
  .site-header nav { order: 2; grid-column: 1/-1; }
  .hero-layout, .tutor-hero .hero-layout { gap: 2rem; }
  .year { grid-template-columns: 6rem minmax(0,1fr); gap: 1rem; }
  .entry { grid-template-columns: 7rem minmax(0,1fr); gap: .45rem 1rem; }
  .travel-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-layout { padding-block: .7rem; }
  .site-header nav { gap: .45rem .9rem; }
  .site-header nav a, .header-contact { font-size: .85rem; }
  .hero-layout, .tutor-hero .hero-layout { grid-template-columns: 1fr; padding-block: 3rem 2.15rem; }
  .hero-figure img { max-height: 22rem; }
  .profile-facts { grid-template-columns: 1fr; padding-block: .55rem; }
  .profile-facts > div { padding: .55rem 0; border: 0; }
  .profile-facts > div + div { border-top: 1px solid var(--line); }
  .year, .entry, .project-grid, .speaking-layout, .tutor-details, .reviews-layout { grid-template-columns: 1fr; }
  .year { padding-block: 1.2rem 1.65rem; }
  .entry { gap: .35rem; }
  .travel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-layout { align-items: start; flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .actions, .travel-section, .reviews-form { display: none; }
  .hero, .site-footer { color: #111; background: white; }
  .hero-location, .hero-bio { color: #333; }
  .hero-figure { display: none; }
  .hero-layout, .tutor-hero .hero-layout { display: block; padding-block: 1rem; }
  .section { padding-block: 1rem; }
  .wrap { width: 100%; }
  .entry, figure { break-inside: avoid; }
}

/* Impact numbers, photo grid, stage log */
.stats-section { padding-block: clamp(3rem, 6vw, 5.5rem); background: var(--navy-deep); color: white; }
.stats-section .eyebrow { color: #a8d1e4; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 0; margin: 0; list-style: none; background: #2c4a62; border: 1px solid #2c4a62; }
.stat-grid li { background: var(--navy-deep); padding: 1.4rem 1.3rem 1.5rem; }
.stat-grid strong { display: block; font: 400 clamp(2.6rem, 5vw, 3.8rem)/1 var(--serif); letter-spacing: -.05em; }
.stat-grid li > span { display: block; margin-top: .55rem; font-weight: 700; color: #e6f1f7; }
.stat-grid p { margin-top: .35rem; color: #b6cddb; font-size: .9rem; line-height: 1.5; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1.05rem; }
.photo-grid img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; background: var(--mist); }
.photo-grid figcaption { color: var(--body); font-size: .82rem; margin-top: .3rem; }
.stage-log { margin-top: 2.2rem; border-top: 3px solid var(--accent); padding-top: 1.2rem; }
.stage-log h3 { font-size: 1.13rem; margin-bottom: .6rem; }
.stage-log ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; padding: 0; margin: 0; list-style: none; }
.stage-log li { padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--body); }
.stage-log li span { display: block; color: var(--accent); font-size: .8rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
/* Draft placeholders: remove the class once each figure is confirmed */
.tbc { outline: 2px dashed #e0a100; outline-offset: 2px; }
@media (max-width: 58rem) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 42rem) { .photo-grid, .stage-log ul { grid-template-columns: 1fr; } }
.rating-summary { color: var(--body); font-weight: 650; }
.rating-stars, .review-stars { color: #b37000; letter-spacing: .08em; }
.review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.review-card { padding: 1.4rem; border-top: 2px solid #33738a; background: var(--mist); }
.review-card blockquote { margin: .6rem 0 .8rem; color: var(--ink); }
.review-by { color: var(--accent); font-size: .88rem; font-weight: 700; }
.review-empty { grid-column: 1 / -1; color: var(--body); padding: 1.2rem; border: 1px dashed #b8c8d2; }
@media (max-width: 58rem) { .review-list { grid-template-columns: 1fr; } }
.project-slot { border-top-style: dashed; background: transparent; outline: 1px dashed #b8c8d2; }
.tutor-details > article { min-width: 0; }
.grade-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; padding: 0; margin: .8rem 0; list-style: none; }
.grade-list li { padding: 1rem; background: white; border-top: 2px solid var(--accent); }
.grade-list span { display: block; color: var(--accent); font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.grade-list strong { font: 400 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--serif); }
.tutor-details { row-gap: 2.6rem; }
@media (max-width: 42rem) { .grade-list { grid-template-columns: 1fr; } }
.photo-grid .wide { grid-column: 1 / -1; }
.photo-grid .wide img { aspect-ratio: 16 / 9; }
.event-photo.small { max-width: 20rem; }
.speaking-side { display: grid; gap: 1rem; align-content: start; }
.speaking-side .event-photo img { aspect-ratio: 1; object-fit: cover; }
.project-figure { width: 100%; height: auto; margin-top: 1rem; border: 1px solid var(--line); }
.beyond-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.beyond-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .8rem; }
.beyond-grid h3 { font-size: 1.13rem; margin-bottom: .3rem; }
.beyond-grid p { color: var(--body); }
@media (max-width: 42rem) { .beyond-grid { grid-template-columns: 1fr; } }
.chess-mark { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: .8rem; background: var(--navy-deep); color: white; font-size: 6rem; line-height: 1; }
.photo-grid .wide.natural img { aspect-ratio: auto; }
.reviews-form input[type="text"] { display: block; width: 100%; padding: .55rem .7rem; margin-bottom: 1rem; border: 1px solid #839aab; color: var(--ink); font: inherit; }
.reviews-form .optional { font-weight: 400; color: var(--body); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.admin h1 { margin-bottom: 1.5rem; }
.admin .reviews-form input[type="password"] { display: block; width: 100%; max-width: 24rem; padding: .55rem .7rem; border: 1px solid #839aab; font: inherit; }
.admin-list { display: grid; gap: 1rem; margin-top: 2rem; }
.admin-actions { display: flex; gap: .6rem; margin-top: .8rem; }
.post-quote { margin: 1rem 0 0; padding: .9rem 1.1rem; border-left: 3px solid var(--accent); background: var(--mist); color: var(--body); font-style: italic; }
.post-quote cite { display: block; margin-top: .45rem; font-style: normal; font-size: .82rem; }
