:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --paper-strong: #fffdf8;
  --ink: #1d2a28;
  --ink-soft: #52605c;
  --line: #cbd3c8;
  --green: #2f5d50;
  --green-deep: #214439;
  --accent: #c7764e;
  --shadow: 0 22px 70px rgba(30, 54, 46, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: var(--green-deep); text-underline-offset: .2em; }
a:hover { color: #9b5637; }
.nowrap { white-space: nowrap; }
button, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; top: -4rem; left: 1rem; z-index: 10; padding: .5rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(246, 243, 235, .96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 82px; }
.brand { color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.6rem); }
.site-nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 700; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .5rem; }
.site-nav a:hover { color: var(--green-deep); }
.eyebrow { margin: 0 0 1.25rem; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; line-height: 1.12; letter-spacing: -.045em; }
h1 { margin: 0; font-size: clamp(3.7rem, 8vw, 7.5rem); }
h2 { margin: 0 0 1rem; font-size: clamp(2.2rem, 4vw, 3.5rem); }
h3 { margin: 0 0 .8rem; font-size: 1.75rem; }
p { margin-top: 0; }
.lead { max-width: 650px; color: var(--ink-soft); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; }
.home-profile { padding: clamp(3rem, 8vw, 6rem) 0; }
.home-profile .wrap { display: grid; grid-template-columns: clamp(210px, 32vw, 300px) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.portrait-frame { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; border: 7px solid rgba(255, 253, 248, .92); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(29, 42, 40, .2); pointer-events: none; }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transform: scale(1.18); transform-origin: center 43%; }
.profile-copy { font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.5; }
.profile-copy h1, .profile-copy p { max-width: 760px; margin: 0 0 1.5em; font: inherit; }
.profile-copy a { font-size: inherit; overflow-wrap: anywhere; }
.timeline-section { padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 8rem); }
.timeline { max-width: 900px; margin: 0; padding: 0; list-style: none; }
.timeline-item { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); padding: 0 0 3.5rem 2rem; border-left: 1px solid var(--line); }
.timeline-item::before { content: ""; position: absolute; top: .4rem; left: -.4rem; width: .7rem; height: .7rem; border: 2px solid var(--paper); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date { margin: .2rem 0 0; color: var(--green); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.timeline-item h2 { margin: 0 0 .7rem; font-size: clamp(1.65rem, 3vw, 2.3rem); }
.timeline-item div > p { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.timeline-item div > p strong { color: var(--ink); }
.section { padding: 5.5rem 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.section-heading p { max-width: 520px; color: var(--ink-soft); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card { min-height: 265px; padding: clamp(1.6rem, 4vw, 2.5rem); border: 1px solid var(--line); background: var(--paper-strong); box-shadow: var(--shadow); }
.card p { max-width: 45ch; color: var(--ink-soft); }
.card a { font-weight: 700; }
.page-intro { padding: 6rem 0 4rem; }
.page-intro h1 { font-size: clamp(3.5rem, 7vw, 6rem); }
.page-intro .lead { margin: 1.5rem 0 0; }
.notice { padding: 1.5rem 1.75rem; border-left: 3px solid var(--accent); background: #f0ede4; color: var(--ink-soft); }
.notice p:last-child { margin-bottom: 0; }
.tag { display: inline-block; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 2px; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.work-card { min-height: 240px; }
.work-card .tag { margin-bottom: 2rem; }
.lesson-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 1rem; align-items: start; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 6rem; }
.panel { border: 1px solid var(--line); background: var(--paper-strong); box-shadow: var(--shadow); }
.lesson-list-panel { padding: 1.5rem; }
.lesson-list-panel h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.lesson-list { display: grid; gap: .5rem; }
.lesson-choice { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.lesson-choice:hover, .lesson-choice[aria-current="true"] { border-color: var(--green); background: #e7eee6; }
.lesson-choice strong, .lesson-choice span { display: block; }
.lesson-choice span { color: var(--ink-soft); font-size: .85rem; }
.lesson-content { min-height: 430px; padding: clamp(1.5rem, 4vw, 3rem); }
.player { width: 100%; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.script-options { min-width: 0; margin: 2rem 0 0; padding: 0; border: 0; }
.script-option-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.script-option { position: relative; min-width: 0; cursor: pointer; }
.script-option + .script-option { border-left: 1px solid var(--line); }
.script-option input { position: absolute; opacity: 0; pointer-events: none; }
.script-option span { display: flex; min-height: 3rem; align-items: center; justify-content: center; padding: .55rem .75rem; color: var(--ink-soft); font-size: .9rem; font-weight: 700; text-align: center; }
.script-option:hover span { background: #f0ede4; color: var(--ink); }
.script-option input:checked + span { background: var(--green); color: white; }
.script-option input:focus-visible + span { position: relative; z-index: 1; outline: 3px solid var(--accent); outline-offset: 3px; }
.script { max-height: 600px; overflow: auto; padding: 1rem .35rem 1rem 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: Georgia, 'Times New Roman', serif; font-size: 1.1rem; line-height: 1.65; scroll-behavior: smooth; }
.script-section-title { margin: 1.5rem 0 .55rem; color: var(--green); font-family: Arial, Helvetica, sans-serif; font-size: .75rem; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase; }
.script-section-title:first-child { margin-top: .25rem; }
.read-along-cue { display: block; width: 100%; margin: 0 0 .2rem; padding: .45rem .65rem; border: 0; border-left: 3px solid transparent; border-radius: 2px; background: transparent; color: var(--ink); font-family: inherit; font-size: inherit; line-height: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.read-along-cue:hover { background: #f0ede4; }
.read-along-cue[aria-current="true"] { border-left-color: var(--accent); background: #f4e3d9; }
.script--introductions { display: grid; min-height: 8rem; max-height: none; overflow: hidden; place-items: center; padding: 1.5rem; text-align: center; pointer-events: none; user-select: none; }
.introduced-cue { margin: 0; font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.25; }
.muted { color: var(--ink-soft); }
.hidden { display: none !important; }
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer a { font-weight: 700; }
@media (max-width: 760px) {
  .header-inner { min-height: 72px; }
  .brand { font-size: 1.16rem; }
  .site-nav { gap: .9rem; }
  .site-nav a { font-size: .85rem; }
  .section-heading { display: block; }
  .card-grid, .lesson-layout { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: .5rem; }
  .lesson-content { min-height: 320px; }
}
@media (max-width: 520px) {
  .home-profile .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .portrait-frame { width: min(100%, 260px); }
}
@media (max-width: 420px) {
  .wrap { width: min(100% - 2rem, 1120px); }
  .home-profile { padding-top: 2rem; }
  .header-inner { align-items: start; flex-direction: column; justify-content: center; gap: .15rem; padding: .8rem 0; }
  .site-nav { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .script { scroll-behavior: auto; }
  .read-along-cue { transition: none; }
}

