@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #253d34;
  --muted: #626a61;
  --line: #d7dbd1;
  --forest: #17251f;
  --accent: #406250;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, summary { touch-action: manipulation; }
button, summary, select { cursor: pointer; }
button, select, input[type="number"] { min-height: 44px; }
button { padding: 10px 17px; border: 1px solid var(--line); border-radius: 5px; background: transparent; font-size: 13px; }
button:hover:not(:disabled) { background: #e6e9df; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 3px solid #ad8036; outline-offset: 4px; }
h1, h2, h3, p, li, dd, a, output { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; }
h1 { font-size: clamp(48px, 7vw, 80px); line-height: 1.08; margin: 18px 0; }
h2 { font-size: clamp(27px, 3vw, 34px); line-height: 1.2; margin: 0 0 24px; }
h3 { font-size: 22px; margin: 8px 0 12px; }
p { line-height: 1.7; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
label { display: block; font-size: 14px; font-weight: 600; line-height: 1.6; }
textarea, select, input[type="number"] { border: 1px solid #aab5a7; border-radius: 5px; background: #fcfaf5; padding: 12px; }
textarea { display: block; width: 100%; min-height: 320px; resize: vertical; line-height: 1.85; font-size: 16px; }
select { display: block; width: 100%; min-width: 0; max-width: 100%; margin: 9px 0 14px; font-size: 14px; }
input[type="checkbox"] { width: 19px; height: 19px; flex-shrink: 0; margin: 0; accent-color: var(--accent); }
input[type="range"] { width: 100%; min-height: 44px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 14px; z-index: 5; background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.masthead { background: var(--forest); color: #f5f3ed; padding: env(safe-area-inset-top, 0px) max(22px, env(safe-area-inset-right, 0px)) 0 max(22px, env(safe-area-inset-left, 0px)); }
.topbar, .intro, main { max-width: 1120px; margin-inline: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid #45544a; }
.wordmark { font-family: var(--serif); font-size: 26px; letter-spacing: -.7px; text-decoration: none; }
.wordmark span { color: #c6bb8b; }
.account { display: flex; align-items: center; gap: 18px; min-width: 0; font-size: 12px; }
#username { overflow-wrap: anywhere; max-width: 220px; }
.account button { border-color: #69776a; flex-shrink: 0; }
.account button:hover:not(:disabled) { background: #35483c; }
.intro { padding: 50px 0 42px; }
.intro > p:not(.eyebrow) { color: #c7d0c1; margin: 0 0 22px; font-size: 16px; }
.eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 13px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
main { padding: 0 22px; }
.notice { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.notice[data-error="true"] { color: #823521; border-bottom-color: #b27d61; }
#access a { display: inline-block; padding: 10px 0; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(30px, 6vw, 80px); align-items: start; }
.section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.hint { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 8px 0 18px; }
.locked-note { font-size: 11px; color: var(--muted); border-left: 2px solid #a5ae9e; padding-left: 13px; margin: 18px 0 30px; }
.duration-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.duration-row .hint { margin-bottom: 0; }
.number-with-unit { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.number-with-unit input { width: 85px; font-size: 16px; }
#voice-summary { font-size: 13px; margin: 18px 0 8px; }
#selected-voices { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0 0 0 22px; font-size: 13px; }
#selected-voices li { padding: 5px 6px 5px 0; }
.voice-picker { border-block: 1px solid var(--line); margin-top: 20px; }
.voice-picker summary { padding: 16px 0; min-height: 48px; font-size: 13px; }
#voice-count { color: var(--muted); }
.voice-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 12px; padding-bottom: 18px; }
.check-label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; font-weight: 400; }
.voice-options label { overflow-wrap: anywhere; }
.music-settings { margin-top: 24px; }
.music-settings > label { font-weight: 600; }
.gain-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-top: 22px; }
output { font-size: 14px; font-variant-numeric: tabular-nums; }
.save-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 36px; }
#draft-status { font-size: 13px; margin: 0; }
.save-bar .hint { margin: 5px 0 0; max-width: 340px; }
.primary-button { background: var(--ink); color: var(--paper); border-color: var(--ink); flex-shrink: 0; }
.primary-button:hover:not(:disabled) { background: var(--accent); }
.sidebar { padding-top: 40px; }
.side-section { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.side-section h2 { font-size: 27px; margin-bottom: 16px; }
.revision { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.status-list { margin: 0; }
dt { font-size: 11px; color: var(--muted); margin-top: 19px; }
dd { margin: 5px 0 0; font-size: 13px; line-height: 1.6; }
.warnings { padding-left: 18px; font-size: 12px; line-height: 1.8; color: #823521; }
.gallery-section { border-top: 1px solid var(--line); padding: 42px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; }
.section-heading > p { max-width: 240px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; }
.image-card { min-width: 0; }
.image-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #d7dbd1; border-radius: 5px; }
.image-card time { display: block; margin-top: 15px; font-size: 11px; color: var(--muted); }
.image-card .hint { margin: 5px 0; }
.image-links { display: flex; flex-wrap: wrap; gap: 0 14px; }
.image-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; }
.pagination .hint { text-align: center; margin: 0; }
footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 28px 0 max(35px, env(safe-area-inset-bottom, 0px)); }
footer p, footer a { color: var(--muted); font-size: 11px; }
footer a { padding-block: 12px; }
@media (max-width: 800px) {
  .editor-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 12px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  main { padding-inline: 20px; }
  .topbar { gap: 12px; }
  .account { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  #username { max-width: 140px; font-size: 11px; }
  .intro { padding-top: 35px; }
  .section { padding-block: 32px; }
  .voice-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .save-bar { flex-direction: column; align-items: stretch; }
  .save-bar button { width: 100%; }
  .sidebar, .gallery { grid-template-columns: minmax(0, 1fr); }
  .sidebar { gap: 0; }
  .section-heading { display: block; }
  .section-heading > p { max-width: none; }
  .pagination { flex-wrap: wrap; gap: 8px; }
  .pagination button { padding-inline: 10px; }
  .pagination .hint { width: 100%; order: 3; }
  footer p { order: 3; width: 100%; margin: 0; }
}
@media (forced-colors: active) { .primary-button { border: 1px solid ButtonText; } }
