@font-face {
  font-family: Fraunces;
  src: url("/media/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Atkinson;
  src: url("/media/atkinson.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --base: #f5eee4;
  --paper: #fffaf0;
  --ink: #37271f;
  --muted: #5b473a;
  --faded: #654f42;
  --rule: #cdb9a4;
  --accent: #802d25;
  --deep: #34271f;
  --soft: #ece0d3;
  --headline: Fraunces, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--ink);
  background: var(--base);
  font-family: Atkinson, system-ui, sans-serif;
  line-height: 1.54;
  font-size: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--headline); font-weight: 540; letter-spacing: -.04em; line-height: 1.04; }
h1 { font-size: clamp(3.05rem, 8.5vw, 8.7rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.5rem); }
h3 { font-size: 1.55rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #943e2b; outline-offset: 3px; }
.measure { width: min(100% - clamp(1.8rem, 8.7vw, 10rem), 1190px); margin-inline: auto; }
.visually-hidden, .file-input { position: absolute; overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 7; top: .7rem; left: .65rem; transform: translateY(-175%); padding: .7rem 1rem; background: var(--paper); }
.skip:focus { transform: none; }
.site-head { border-bottom: 1px solid var(--rule); }
.top, .foot { display: flex; align-items: center; justify-content: space-between; gap: .9rem; }
.top { min-height: 76px; padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .58rem; font-family: var(--headline); font-weight: 620; font-size: clamp(1.2rem, 2.6vw, 1.5rem); letter-spacing: -.045em; text-decoration: none; }
.brand img { flex: 0 0 auto; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: .4rem 1rem; font-size: .98rem; font-weight: 650; }
.button, .text-button, .text-link { font-weight: 680; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  min-height: 46px;
  padding: .63rem .95rem;
  border: 1px solid var(--accent);
  border-radius: .32rem;
  color: #fff8ed;
  background: var(--accent);
  text-align: center;
  line-height: 1.18;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #641d16; border-color: #641d16; color: white; }
.button.secondary { color: var(--ink); background: transparent; border-color: #987c65; }
.button.secondary:hover { background: var(--soft); border-color: var(--ink); color: var(--ink); }
.button.small { min-height: 41px; padding: .55rem .72rem; font-size: .92rem; }
button:disabled, input:disabled, select:disabled { opacity: .55; cursor: default; }
.text-button { border: 0; background: none; padding: .33rem 0; text-decoration: underline; text-underline-offset: .2em; text-align: left; }
.text-button:hover, .text-link:hover { color: var(--accent); }
.text-link[for] { cursor: pointer; text-decoration: underline; text-underline-offset: .22em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .62rem .9rem; }
.kicker { font-family: var(--mono); font-size: .77rem; letter-spacing: .085em; text-transform: uppercase; font-weight: 670; color: var(--accent); }
.hero { background: #f0e5d7; border-bottom: 1px solid var(--rule); }
.hero-inner { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(13rem,.68fr); gap: clamp(.75rem, 2.2vw, 1.65rem) clamp(1rem, 5.4vw, 5rem); align-items: center; padding-block: clamp(2rem,6vw,4.4rem) clamp(2rem,6vw,4rem); }
.hero-head { grid-column: 1/-1; }
.hero-head .kicker { margin-bottom: .45rem; }
.hero-head h1 { font-size: clamp(3.15rem,7.8vw,6.65rem); text-wrap: balance; }
.hero-photo { position: relative; margin-right: .45rem; }
.hero-photo::before { position: absolute; content: ""; inset: .55rem -.55rem -.55rem .55rem; border: 1px solid #8d4938; }
.hero-photo img { width: 100%; aspect-ratio: 1.76; max-height: 450px; object-fit: cover; object-position: 60% 56%; position: relative; }
.hero-copy .intro { color: var(--muted); font-size: clamp(1.07rem,2.2vw,1.43rem); line-height: 1.44; max-width: 24rem; }
.hero-copy .actions { margin-top: 1.05rem; align-items: start; flex-direction: column; }
.listening-intro { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .8fr); gap: 2rem clamp(2rem,7.2vw,7rem); align-items: start; padding-block: clamp(2.3rem,6.5vw,5.1rem); }
.listening-intro h2 { margin-block: .4rem .75rem; max-width: 29rem; }
.listening-intro p:not(.kicker) { margin-top: .58rem; color: var(--muted); }
.practice-index { padding: 1.15rem 1.4rem; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--rule); background: var(--paper); }
.practice-index h3 { margin-top: .55rem; }
.practice-index ol { padding-left: 1.2rem; }
.practice-index li { padding: .2rem 0; color: var(--muted); }
.guide-band { background: #eaddcf; border-block: 1px solid var(--rule); }
.guide-call { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-block: 1.45rem; gap: .6rem 1.5rem; }
.guide-call h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
.guide-call p { color: var(--muted); margin-top: .3rem; }
.foot { min-height: 78px; padding-block: .6rem; color: var(--muted); font-size: .91rem; }
.foot a:first-child { font-family: var(--headline); font-weight: 650; font-size: 1.1rem; color: var(--ink); }
.foot p { text-align: center; }
.page-title { padding: clamp(1.65rem,4.7vw,3.7rem) 0 clamp(1.3rem,3.9vw,2.35rem); }
.page-title h1 { font-size: clamp(3rem, 6.3vw, 6rem); }
.page-title p:not(.kicker) { max-width: 45rem; font-size: clamp(1.06rem,1.8vw,1.2rem); color: var(--muted); margin-top: .6rem; }
.page-title .kicker { margin-bottom: .46rem; }
.desk-page { background: #f7f0e7; }
.desk { padding-bottom: clamp(2.8rem,6vw,5rem); }
.desk + .site-foot, .field-guide + .site-foot { border-top: 1px solid var(--rule); }
.intake { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(12rem,1fr) auto; gap: .65rem 1.5rem; align-items: end; padding: .8rem 0; border-block: 1px solid var(--rule); }
.intake:has(.file-input:focus-visible) { outline-offset: 4px; }
.open-source { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; }
.open-source:has(.file-input:focus-visible) > label, .import-slot:has(.file-input:focus-visible) > label { outline: 3px solid #943e2b; outline-offset: 3px; }
.open-source #start-over { flex-basis: 100%; font-size: .91rem; }
.open-session label { display: block; font-size: .88rem; }
.input-row { display: flex; align-items: end; gap: .45rem; }
.open-session .button { flex: 0 0 auto; }
.import-slot { padding: .48rem 0; }
.status-line { min-height: 1.65rem; margin: .5rem 0 .12rem; color: var(--accent); font-weight: 640; }
.status-line:empty { min-height: .6rem; }
.empty-desk { border: 1px solid var(--rule); background: var(--paper); padding: 1.3rem; margin-top: .55rem; }
.empty-desk h2 { font-size: 1.7rem; }
.empty-desk p { margin-top: .25rem; color: var(--muted); }
.desk-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.86fr); gap: 1rem clamp(1rem,3.7vw,2.7rem); align-items: start; }
.player { color: #f8ead9; background: var(--deep); border-top: 3px solid #a54c38; border-radius: .34rem; padding: clamp(.88rem, 2.2vw, 1.52rem); box-shadow: 0 8px 18px #4323191a; }
.player-heading { display: flex; align-items: start; justify-content: space-between; gap: .63rem .9rem; flex-wrap: wrap; }
.player-heading h2 { font-size: clamp(1.65rem, 3.7vw, 2.7rem); margin-top: .38rem; overflow-wrap: anywhere; }
.player-heading .kicker { color: #fcbd9f; }
.player-heading #session-byline:not(:empty) { color: #ebd3be; font-size: .9rem; margin-top: .22rem; }
.time-display { display: flex; flex-direction: column; align-items: end; margin-left: auto; }
.time-display output { font: 600 clamp(1.55rem,4vw,2.12rem)/1.07 var(--mono); color: #ffd0a5; letter-spacing: -.08em; }
.time-display span { color: #e2c8b3; font: 500 .78rem var(--mono); }
.timeline { position: relative; margin: 1.04rem 0 .6rem; padding-top: .45rem; }
#chapter-markers { position: absolute; z-index: 1; pointer-events: none; top: .06rem; left: .45rem; right: .45rem; height: .58rem; border-bottom: 1px solid #725746; }
#chapter-markers span { position: absolute; left: var(--position); width: 2px; height: .48rem; background: #f5a57f; }
#seek { width: 100%; margin: 0; accent-color: #ffaa7f; }
.transport { display: flex; align-items: end; flex-wrap: wrap; gap: .48rem; }
.player .button { color: var(--ink); background: #f9b18d; border-color: #f9b18d; }
.player .button:hover { background: #ffd0a5; color: var(--ink); border-color: #ffd0a5; }
.player .button.secondary { color: #fcf0df; background: transparent; border-color: #8e735e; }
.player .button.secondary:hover { background: #523b2e; border-color: #fbd4ad; }
.player :focus-visible { outline-color: #fab78f; }
.player select { min-width: 4.45rem; background: #4b362a; border-color: #936f58; color: #fff0dc; }
.player label { display: flex; align-items: center; font-weight: 630; gap: .46rem; margin-left: auto; font-size: .91rem; }
.player .help { color: #ead3be; margin-top: .58rem; overflow-wrap: anywhere; }
#player { display: none; }
.help { color: var(--faded); font-size: .89rem; line-height: 1.47; }
label { font-size: .94rem; font-weight: 650; }
input:not([type="range"]):not([type="file"]), textarea, select { display: block; width: 100%; min-width: 0; min-height: 41px; border: 1px solid #ad9682; padding: .49rem .57rem; border-radius: .28rem; background: var(--paper); font-size: 1rem; margin-top: .24rem; }
.player select { background: #47352c; color: #fff0dc; border-color: #986f58; }
textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.session-details { border-bottom: 1px solid var(--rule); padding-block: .62rem; }
summary { font-weight: 680; }
.session-details form { margin-top: .65rem; }
.session-details label { display: block; }
.session-details .field-row + label, .session-details > form > label + label, .session-details .button { margin-top: .56rem; }
.session-details #meta-recorded { max-width: 15rem; min-inline-size: 0; }
.chapter-log { margin-top: .82rem; }
.log-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem .8rem; margin-bottom: .48rem; }
.log-heading h2, .right-desk h2 { font-size: clamp(1.45rem,2.9vw,2.1rem); }
#chapters-empty:not(:empty) { margin-top: .45rem; }
#chapters { margin: .5rem 0 0; padding: 0; list-style: none; }
#chapters li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .55rem; align-items: start; border-bottom: 1px solid var(--rule); padding: .58rem .45rem; }
#chapters li.current { background: #ede0d2; border-inline-start: 2px solid var(--accent); padding-inline-start: .33rem; }
.chapter-jump { border: 0; border-radius: .25rem; margin: .05rem 0; padding: .46rem .32rem; color: #782b20; background: #f0dfd2; font: 600 .83rem/1.1 var(--mono); }
.chapter-jump:hover { background: #e8cbb9; }
.chapter-copy { overflow-wrap: anywhere; }
.chapter-copy h3 { font: 690 1.04rem/1.22 Atkinson,system-ui,sans-serif; letter-spacing: 0; }
.chapter-copy p { color: var(--muted); margin-top: .15rem; white-space: pre-wrap; font-size: .92rem; }
.chapter-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .28rem .57rem; font-size: .87rem; }
.right-desk { min-width: 0; }
.chapter-editor, .exports { padding: .86rem clamp(.79rem,2vw,1.4rem); border: 1px solid var(--rule); border-radius: .23rem; background: var(--paper); }
.chapter-editor > p, .exports > p { margin-top: .35rem; }
.chapter-editor form { margin-top: .63rem; }
.chapter-editor label { display: block; margin-bottom: .55rem; }
.time-row { display: flex; align-items: end; gap: .5rem; margin-bottom: .55rem; }
.time-row label { flex: 1 1 auto; margin: 0; }
.time-row button { flex: 0 0 auto; }
.chapter-error { color: #821d19; margin: .3rem 0 .6rem; padding: .42rem .56rem; border-left: 2px solid #923b2e; background: #f7e2db; }
.notice { color: #65241c; background: #f4e1d5; padding: .65rem .88rem; margin-top: .6rem; border-inline-start: 3px solid var(--accent); }
.notice h2 { font-size: 1.43rem; }
.notice .actions { margin-top: .48rem; }
.exports { margin-top: .76rem; }
.export { display: block; border-bottom: 1px solid var(--rule); padding: .47rem 0; font-weight: 680; }
.exports details { margin-top: .55rem; }
.exports textarea { font: .81rem/1.43 var(--mono); }
.field-guide { padding-bottom: clamp(2.5rem,7vw,5rem); }
.guide-grid { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,.68fr); align-items: start; gap: 1.4rem clamp(1.3rem,6vw,4rem); }
.guide-grid h2 { font-size: clamp(1.61rem,3.5vw,2.6rem); margin: 1.3rem 0 .55rem; }
.guide-grid h2:first-child { margin-top: 0; }
.guide-grid p { color: var(--muted); margin-bottom: .65rem; line-height: 1.58; }
.guide-grid ul { padding-left: 1.2rem; }
.source-note { background: #ebded0; border-top: 3px solid var(--accent); padding: .83rem 1rem; }
.source-note h2 { font-size: 1.35rem; }
.source-note li { margin-bottom: .45rem; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0,1.32fr) minmax(11.5rem,.79fr); }
  .intake { grid-template-columns: 1fr 1fr; }
  .import-slot { grid-column: 1/-1; padding: 0; }
}
@media (max-width: 740px) {
  .hero-inner, .listening-intro, .desk-grid, .guide-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: .95rem; }
  .hero-copy { grid-row: 2; }
  .hero-copy .actions { flex-direction: row; align-items: center; margin-top: .7rem; }
  .hero-photo { margin-top: .27rem; }
  .hero-photo img { max-height: none; aspect-ratio: 1.55; }
}
@media (max-width: 510px) {
  .intake { grid-template-columns: 1fr; gap: .65rem; }
  .open-source #start-over { flex-basis: auto; }
  .top nav { row-gap: .44rem; column-gap: .55rem; }
  .top nav a { font-size: .88rem; }
  .top { min-height: 67px; }
  .brand img { width: 29px; }
  #chapters li { grid-template-columns: auto minmax(0,1fr); }
  .chapter-tools { grid-column: 2; }
  .foot { flex-wrap: wrap; justify-content: start; }
  .foot p { order: 3; text-align: start; flex-basis: 100%; }
}
@media (max-width: 355px) {
  .transport label { margin-left: 0; }
  .time-row { flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; }
}
