:root { color-scheme: light; --paper: #f3f3ef; --surface: #fff; --ink: #252d29; --muted: #69716b; --line: #dde1da; --accent: #385a49; --accent-dark: #294435; --accent-wash: #edf3ee; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled, select:disabled, input:disabled { cursor: default; opacity: .43; }
button, select, input, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
.shell { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }
.site-header { background: #fafaf7; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 14px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { width: 52px; height: 26px; color: var(--accent); }
.brand-name { font: 600 23px/1 Georgia, serif; letter-spacing: -.6px; }
.brand-name span { margin-left: 5px; font: 400 12px/1 "Segoe UI", sans-serif; letter-spacing: 0; color: var(--muted); }
.header-note, .local-note { font-size: 12px; color: var(--muted); }
main { padding-top: 30px; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
h1 { font-size: 27px; line-height: 1.2; font-weight: 600; letter-spacing: -.7px; margin: 0 0 8px; }
.page-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.workspace { display: grid; grid-template-columns: 274px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); }
.side-panel { padding: 27px 24px; background: #fbfcf9; border-right: 1px solid var(--line); }
.section-title { margin: 0 0 13px; font-size: 13px; font-weight: 650; color: #3f4942; }
.section-heading { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.part-count { color: var(--muted); font-size: 11px; }
.dropzone { border: 1px solid transparent; margin: -5px; padding: 5px; border-radius: 5px; }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-wash); }
.button, .play-toggle, .line-edit-tools button, .score-pagination button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 7px 12px; font-size: 13px; font-weight: 500; }
.button:hover:enabled, .line-edit-tools button:hover:enabled, .score-pagination button:hover:enabled { border-color: #a3b3a6; background: #f7f9f5; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.file-button { width: 100%; justify-content: flex-start; }
.field-hint { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 7px 0 0; }
.text-button { border: 0; border-radius: 2px; padding: 3px 0; font-size: 12px; color: var(--accent); text-align: left; background: transparent; }
.text-button:hover { text-decoration: underline; }
.sample-button { margin-top: 9px; }
.file-summary { display: none; border-left: 2px solid #adbead; padding-left: 11px; margin-top: 19px; }
.file-summary.visible { display: block; }
.file-name { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.file-meta { font-size: 11px; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.warning-button { border: 0; background: none; color: #875031; padding: 6px 0 0; font-size: 11px; text-decoration: underline; }
.warning-details { margin-top: 12px; padding: 12px; max-height: 240px; overflow-y: auto; color: #684a34; background: #fcf6ed; border: 1px solid #e5d8c4; border-radius: 4px; font-size: 12px; }
.warning-details ul { padding-left: 17px; margin: 8px 0 0; }
.loading-controls { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.loading-controls button { border: 0; color: var(--accent); background: transparent; text-decoration: underline; padding: 0; }
.practice-setup { margin-top: 26px; }
.practice-setup > summary { display: none; }
.settings-section { margin-bottom: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.field label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin: 0 0 7px; }
.tonic-note { font-size: 11px; color: var(--accent); font-weight: 600; }
select { width: 100%; min-height: 38px; border: 1px solid #d3d9d1; border-radius: 4px; color: var(--ink); background: #fff; font-size: 13px; padding: 7px 30px 7px 10px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2369716b' stroke-width='1.5'/%3E%3C/svg%3E"); background-size: 10px 7px; background-repeat: no-repeat; background-position: right 11px center; text-overflow: ellipsis; }
.sound-settings { padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sound-settings summary, .score-editor summary, .notation-guide summary { color: var(--muted); font-size: 12px; font-weight: 500; }
.sound-settings[open] summary { margin-bottom: 18px; }
.bansuri-settings { margin-bottom: 18px; }
.bansuri-settings .field { margin-bottom: 12px; }
.practice-advice { padding-top: 24px; }
.practice-advice .section-title { margin-bottom: 7px; }
.practice-advice p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.toast { color: var(--accent); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.toast:not(:empty) { margin-top: 20px; }
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 650px; }
.stage-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 27px 32px 22px; }
.stage-top > div { min-width: 0; }
.track-title { font: 500 26px/1.25 Georgia, serif; letter-spacing: -.4px; margin: 0 0 7px; overflow-wrap: anywhere; }
.track-subtitle { font-size: 12px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.export-button { font-size: 12px; flex-shrink: 0; color: #566157; border-color: transparent; background: transparent; }
.transport { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 0 32px 20px; }
.play-toggle { background: var(--accent); color: white; border-color: var(--accent); min-width: 92px; }
.play-toggle:hover:enabled { background: var(--accent-dark); }
.play-toggle::before { content: "▶"; font-size: 10px; }
.play-toggle.is-playing::before { content: "Ⅱ"; font-size: 13px; }
.play-toggle.is-ended::before { content: "↻"; font-size: 15px; }
.reset-button { border-color: transparent; background: transparent; color: var(--muted); }
.transport-field { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); margin-left: 9px; }
.transport-field select { width: 82px; min-height: 36px; font-variant-numeric: tabular-nums; }
.volume-field { margin-left: auto; }
input[type="range"] { accent-color: var(--accent); cursor: pointer; }
.volume-field input { width: 79px; height: 24px; margin: 0; }
.now-playing { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 25px; margin: 0 32px; padding: 18px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.current-note { display: flex; flex-direction: column; justify-content: center; }
.now-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.now-swara { color: var(--accent); font: 500 32px/1.1 Georgia, serif; min-height: 35px; overflow-wrap: anywhere; }
.now-swara.long { font-size: 21px; }
.progress-wrap { min-width: 0; }
.progress-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
#seekBar { width: 100%; height: 26px; margin: 2px 0; }
.playback-meta { display: flex; gap: 8px 24px; justify-content: space-between; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.now-pitch { overflow-wrap: anywhere; }
.notation-area { padding: 26px 32px 22px; flex: 1; }
.notation-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.view-tabs { display: flex; gap: 24px; }
.view-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; padding: 0 0 12px; margin-bottom: -1px; font-size: 13px; color: var(--muted); }
.view-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.note-details-toggle { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; padding-bottom: 12px; white-space: nowrap; cursor: pointer; }
.note-details-toggle input { margin: 0; width: 13px; height: 13px; accent-color: var(--accent); }
.notation-hint { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0 0 22px; }
.note-grid { display: flex; flex-wrap: wrap; gap: 4px 9px; align-content: flex-start; min-height: 218px; }
.score-line-break { display: flex; align-items: center; flex: 1 0 100%; gap: 12px; min-height: 20px; margin: 10px 0 0; color: #8a9289; font: 11px/1.5 "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
.score-line-break::after { content: ""; flex: 1; height: 1px; background: #eef0e9; }
.score-line-break.is-edited { color: var(--accent); }
.note-chip { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 54px; min-height: 55px; max-width: 100%; padding: 9px 6px; border: 0; border-bottom: 2px solid transparent; border-radius: 2px; background: transparent; font: inherit; gap: 6px; }
.note-chip:hover { background: #f5f7f2; }
.note-chip.active { background: var(--accent-wash); border-bottom-color: var(--accent); }
.note-chip.selected { outline: 1px solid #859d8a; outline-offset: 2px; }
.chip-swara { font: 500 27px/1.1 Georgia, serif; color: var(--ink); white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.note-chip.active .chip-swara { color: var(--accent-dark); }
.chip-octave, .chip-duration { display: none; font-size: 10px; color: var(--muted); text-align: center; }
.show-note-details .chip-octave, .show-note-details .chip-duration { display: block; }
.show-note-details .note-chip { min-width: 80px; min-height: 92px; }
.rest-chip { min-width: 30px; }
.rest-chip .chip-swara { color: #9ba297; font-size: 23px; }
.chip-chord { max-width: 190px; font: 500 18px/1.3 Georgia, serif; overflow-wrap: anywhere; }
.bar-separator { align-self: stretch; display: grid; place-items: center; width: 13px; color: #a1aa9e; font: 26px Georgia, serif; }
.score-editor { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 15px; }
.line-edit-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.line-edit-tools button { font-size: 11px; }
.line-edit-status { flex: 1 0 100%; font-size: 11px; color: var(--muted); margin-top: 3px; }
.score-pagination { display: flex; justify-content: flex-start; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 20px; font-size: 11px; color: var(--muted); }
.score-pagination button { font-size: 12px; }
.empty-state { display: grid; place-items: center; width: 100%; padding: 28px 16px 45px; min-height: 240px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; font-size: 16px; font-weight: 500; color: #4b574c; margin: 18px 0 7px; }
.empty-state span:not(.empty-score) { display: block; font-size: 13px; max-width: 330px; }
.empty-score { display: block; font: 28px Georgia, serif; color: #bac6b9; letter-spacing: 3px; }
.playing-view { min-height: 260px; padding-top: 6px; }
.playing-view-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; margin-bottom: 22px; }
.playing-view-head strong { font-size: 13px; color: var(--ink); font-weight: 500; }
.playing-scroll { position: relative; height: 112px; overflow: hidden; border-top: 1px solid #e9ede5; border-bottom: 1px solid #e9ede5; scrollbar-width: none; }
.playing-scroll::-webkit-scrollbar { display: none; }
.playing-track { position: relative; display: flex; align-items: center; width: max-content; min-width: 100%; height: 100%; }
.notation-token { flex: 0 0 auto; display: grid; place-items: center; height: 67px; min-width: 0; padding: 0 1px; border-bottom: 2px solid transparent; color: #536053; font: 500 26px/1 Georgia, serif; overflow: hidden; }
.notation-token.is-current { background: var(--accent-wash); border-bottom-color: var(--accent); color: var(--accent-dark); }
.notation-token.is-gap { color: #9ba297; }
.notation-bar { position: absolute; top: 22px; bottom: 22px; width: 14px; margin-left: -7px; display: grid; place-items: center; color: #a1aa9e; font: 23px Georgia, serif; pointer-events: none; }
.playing-focus { position: absolute; top: 17px; bottom: 17px; left: 28%; width: 1px; background: #88a48f; pointer-events: none; }
.playing-hint { margin: 19px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.score-footer { display: flex; gap: 20px; justify-content: space-between; padding: 14px 32px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.notation-guide { padding: 20px 0; }
.notation-guide div { max-width: 760px; padding: 4px 0 5px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.notation-guide strong { color: #4d594e; }
.footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); padding: 21px 0 28px; }
.footer > span:first-child { color: #4c584d; font-weight: 500; }
.app-notice { padding: 14px; color: #684a34; background: #fcf6ed; border: 1px solid #e5d8c4; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.field label.sr-only { position: absolute; margin: -1px; }
.skip-link { position: fixed; z-index: 10; top: -100px; left: 20px; color: var(--accent); background: white; border: 1px solid var(--line); border-radius: 3px; padding: 10px 15px; }
.skip-link:focus-visible { top: 10px; }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 48px); }
  .workspace { grid-template-columns: 248px minmax(0, 1fr); }
  .side-panel { padding: 24px 20px; }
  .stage-top { padding: 24px 25px 22px; }
  .transport { padding: 0 25px 19px; }
  .now-playing { margin: 0 25px; grid-template-columns: 80px minmax(0, 1fr); gap: 15px; }
  .notation-area { padding: 25px; }
  .score-footer { padding: 14px 25px; }
  .volume-field { flex-basis: 100%; margin-left: 0; }
  .playback-meta { flex-direction: column; gap: 3px; }
  .note-details-toggle { font-size: 10px; }
  .view-tabs { gap: 15px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; }
  .header-note { font-size: 11px; }
  main { padding-top: 23px; }
  .page-intro { margin-bottom: 20px; }
  .local-note { display: none; }
  h1 { font-size: 25px; }
  .page-intro p { font-size: 13px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .side-panel { padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .source-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; align-items: start; }
  .source-section > .section-title { grid-column: 1 / -1; margin-bottom: 10px; }
  .sample-button { margin-top: 9px; }
  .file-summary, .loading-controls, .warning-details { grid-column: 1 / -1; }
  .file-summary { margin-top: 13px; }
  .practice-setup { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 13px; }
  .practice-setup > summary { display: list-item; font-size: 12px; font-weight: 600; color: #435347; }
  .practice-setup > summary span { color: var(--muted); font-weight: 400; margin-left: 10px; font-size: 11px; }
  .practice-setup .settings-section:first-child { border-top: 0; }
  .setup-content { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .sound-settings, .practice-advice { grid-column: 1 / -1; }
  .setup-content > .settings-section:nth-child(2) { border-top: 0; }
  .stage { min-height: 510px; }
  .stage-top { padding: 24px 22px 20px; }
  .track-title { font-size: 24px; }
  .transport { padding: 0 22px 17px; }
  .transport-field { margin-left: 5px; }
  .volume-field { margin-left: auto; flex-basis: auto; }
  .now-playing { margin: 0 22px; }
  .notation-area { padding: 24px 22px; }
  .score-footer { padding: 13px 22px; }
  .playback-meta { flex-direction: row; }
  .notation-head { gap: 12px; }
  .view-tabs { gap: 20px; }
  .note-details-toggle { font-size: 11px; }
  .empty-state { min-height: 200px; }
  .button, .play-toggle, select, .score-pagination button { min-height: 42px; }
}
@media (max-width: 450px) {
  .shell { width: calc(100% - 28px); }
  .brand { gap: 8px; }
  .brand-mark { width: 40px; }
  .brand-name { font-size: 21px; }
  .brand-name span { font-size: 11px; }
  .header-note { display: none; }
  .source-section { grid-template-columns: minmax(0, 1fr); }
  .sample-button { margin-top: 10px; }
  .side-panel { padding: 18px; }
  .practice-setup > summary span { display: block; margin-left: 16px; }
  .setup-content { display: block; }
  .stage-top { padding: 22px 18px 18px; gap: 12px; align-items: flex-start; }
  .track-title { font-size: 22px; }
  .export-button { width: 40px; min-height: 40px; padding: 7px; font-size: 0; gap: 0; }
  .export-button .icon { width: 19px; height: 19px; }
  .transport { padding: 0 18px 17px; gap: 6px; }
  .play-toggle { min-width: 80px; }
  .transport-field { margin-left: auto; gap: 6px; }
  .transport-field select { width: 72px; min-height: 42px; }
  .volume-field { margin: 8px 0 0; flex-basis: 100%; }
  .now-playing { margin: 0 18px; gap: 14px; grid-template-columns: 66px minmax(0, 1fr); }
  .now-label { font-size: 10px; }
  .now-swara { font-size: 29px; }
  .now-swara.long { font-size: 18px; }
  .playback-meta { flex-direction: column; font-size: 10px; }
  .notation-area { padding: 23px 18px; }
  .view-tabs { gap: 16px; }
  .view-tabs button { font-size: 12px; padding-bottom: 12px; }
  .note-details-toggle { font-size: 10px; gap: 5px; }
  .note-grid { gap: 4px 5px; }
  .note-chip { min-width: 45px; padding: 8px 5px; }
  .rest-chip { min-width: 24px; }
  .chip-swara { font-size: 25px; }
  .score-footer { padding: 13px 18px; font-size: 10px; gap: 6px; }
  .line-edit-tools button { flex: 1 1 40%; min-height: 40px; }
  .playing-view-head { flex-direction: column; gap: 5px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (max-width: 360px) {
  .reset-button { padding-left: 5px; padding-right: 5px; }
  .transport-field { font-size: 11px; gap: 5px; }
  .transport-field select { width: 66px; padding-left: 7px; padding-right: 22px; font-size: 12px; }
}

/* Shared navigation and the learning journal. */
a { color: var(--accent); text-underline-offset: 3px; }
.header-inner { gap: 24px; }
.site-nav { display: flex; gap: 28px; align-items: center; align-self: stretch; }
.site-nav a { display: flex; align-items: center; min-height: 48px; padding: 4px 0 0; color: #616b63; text-decoration: none; font-size: 13px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.content-main { max-width: 1080px; padding-top: 58px; padding-bottom: 48px; }
.editorial-intro { padding-bottom: 42px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.eyebrow { font-size: 11px; color: var(--accent); font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 16px; }
.editorial-intro h1, .article-header h1 { font: 400 46px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -1.1px; margin-bottom: 18px; }
.intro-copy { max-width: 650px; font-size: 17px; line-height: 1.75; color: #616a63; margin: 0; }
.lesson-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 60px; }
.lesson-sidebar { align-self: start; position: sticky; top: 28px; }
.lesson-sidebar ol { list-style: none; counter-reset: lesson; margin: 0; padding: 0; }
.lesson-sidebar li { counter-increment: lesson; display: flex; gap: 12px; margin: 0 0 17px; font-size: 12px; line-height: 1.6; }
.lesson-sidebar li::before { content: counter(lesson, decimal-leading-zero); color: #90988f; font-variant-numeric: tabular-nums; }
.lesson-sidebar a { color: #4d5b50; text-decoration: none; }
.lesson-sidebar a:hover { text-decoration: underline; }
.sidebar-note { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 26px; color: var(--muted); font: italic 16px/1.8 Georgia, serif; }
.lesson-section { scroll-margin-top: 28px; padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.lesson-heading { display: flex; gap: 16px; align-items: baseline; margin-bottom: 24px; }
.lesson-number { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.lesson-heading h2 { font: 400 26px/1.3 Georgia, serif; letter-spacing: -.3px; margin: 0; }
.lesson-figure { margin: 0 0 25px; }
.lesson-figure img { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.lesson-figure figcaption { font-size: 11px; line-height: 1.7; color: var(--muted); margin-top: 10px; }
.diagram-link { display: none; margin-top: 12px; font-size: 12px; text-decoration: none; }
.prose { font-size: 15px; line-height: 1.85; color: #444f47; overflow-wrap: anywhere; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: #2f3c33; }
.prose h2 { font: 400 27px/1.3 Georgia, serif; margin: 36px 0 18px; color: var(--ink); letter-spacing: -.3px; }
.prose h3, .prose h4 { font-size: 19px; margin: 28px 0 14px; }
.prose li { margin-bottom: 9px; }
.prose img { display: block; max-width: 100%; height: auto; margin: 24px auto; }
.prose pre { overflow-x: auto; background: #e9ede6; padding: 16px; font-size: 13px; border-radius: 3px; }
.prose blockquote { margin: 24px 0; padding-left: 22px; border-left: 2px solid #a9b8a9; font-style: italic; }
.references h2 { font: 400 22px Georgia, serif; margin: 0 0 14px; }
.references p { font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 550px; }
.references ul { padding-left: 18px; font-size: 13px; line-height: 2; }
.journal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 85px; }
.article-row { padding: 30px 0; border-bottom: 1px solid var(--line); }
.article-row:first-child { padding-top: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.article-meta > :first-child { color: var(--accent); font-weight: 600; }
.article-row h2 { font: 400 27px/1.3 Georgia, serif; margin: 14px 0; letter-spacing: -.5px; }
.article-row h2 a { color: var(--ink); text-decoration: none; }
.article-row h2 a:hover { color: var(--accent); text-decoration: underline; }
.article-row.lead-article h2 { font-size: 34px; }
.article-row p { color: #657067; font-size: 14px; line-height: 1.8; margin: 0 0 19px; }
.read-article { font-size: 12px; font-weight: 500; text-decoration: none; }
.read-article span[aria-hidden] { margin-left: 7px; }
.read-article:hover { text-decoration: underline; }
.journal-aside { padding: 6px 0; }
.journal-aside h2 { font: 400 21px/1.3 Georgia, serif; margin: 0 0 12px; }
.journal-aside p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0 0 16px; }
.journal-aside a { font-size: 12px; text-decoration: none; }
.journal-aside a:hover { text-decoration: underline; }
.aside-rule { height: 1px; background: var(--line); margin: 31px 0; }
.empty-journal { font-size: 16px; line-height: 1.8; color: var(--muted); }
.article-page { max-width: 720px; margin: 0 auto; }
.back-link { font-size: 12px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.article-header { padding: 38px 0 26px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 18px 0; font-size: 42px; }
.article-author { font-size: 12px; color: var(--muted); margin: 23px 0 0; }
.article-body { font-size: 16px; }
.article-end { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; }
.article-end p { font: 400 22px Georgia, serif; margin: 0 0 12px; }
.article-end a { text-decoration: none; }
@media (max-width: 900px) {
  .lesson-layout { gap: 35px; grid-template-columns: 170px minmax(0, 1fr); }
  .journal-layout { gap: 40px; grid-template-columns: minmax(0, 1fr) 200px; }
  .site-nav { gap: 22px; }
}
@media (max-width: 760px) {
  .content-main { padding-top: 36px; }
  .diagram-link { display: inline-block; }
  .editorial-intro { padding-bottom: 29px; margin-bottom: 30px; }
  .editorial-intro h1 { font-size: 36px; }
  .intro-copy { font-size: 15px; }
  .lesson-layout { display: block; }
  .lesson-sidebar { position: static; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .lesson-sidebar ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .lesson-sidebar li { margin-bottom: 10px; font-size: 12px; }
  .sidebar-note { display: none; }
  .lesson-heading h2 { font-size: 24px; }
  .journal-layout { display: block; }
  .journal-aside { margin-top: 35px; max-width: 450px; }
  .article-row.lead-article h2 { font-size: 30px; }
  .article-header h1 { font-size: 36px; }
  .prose { font-size: 14px; }
  .article-body { font-size: 15px; }
}
@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; gap: 8px; padding-top: 20px; }
  .site-nav { width: 100%; gap: 28px; padding-top: 6px; }
  .site-nav a { min-height: 44px; font-size: 12px; }
  .lesson-sidebar ol { display: block; }
  .editorial-intro h1, .article-header h1 { font-size: 32px; }
  .lesson-heading { gap: 11px; }
  .lesson-heading h2 { font-size: 23px; }
  .lesson-section { margin-bottom: 28px; padding-bottom: 28px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
