:root { color-scheme: dark; --ink: #0c0d0b; --bone: #f4ead8; --action: #dfa15d; --muted: #b7b5ac; --line: #343630; font-family: system-ui, sans-serif; background: var(--ink); color: var(--bone); }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { min-height: 44px; padding: 10px 17px; border: 1px solid #55584e; border-radius: 8px; background: #24261f; color: var(--bone); cursor: pointer; font-weight: 600; }
button:hover { background: #33362b; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .reader:focus-visible { outline: 3px solid var(--action); outline-offset: 4px; }
.masthead { max-width: 1440px; margin: auto; padding: 28px 5%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: inherit; text-decoration: none; display: flex; gap: 4px; align-items: center; font-family: 'Archivo Black', Inter, system-ui, sans-serif; font-size: 25px; font-weight: 900; letter-spacing: 0; }
.brand img { display: block; flex: none; }
.brand b { display: block; font-family: Archivo, Inter, system-ui, sans-serif; font-size: 15px; font-weight: 700; color: #c58749; margin-top: 1px; }
.tagline, .hint, .local-note, footer { font-size: 13px; color: var(--muted); }
main { max-width: 1440px; padding: 45px 5% 20px; margin: auto; }
.eyebrow { font-size: 11px; letter-spacing: .2em; color: var(--action); margin: 0 0 18px; font-weight: 700; }
h1 { font: 900 clamp(40px, 4.7vw, 64px)/1.08 'Archivo Black', Inter, system-ui, sans-serif; letter-spacing: 0; margin: 0; }
h1 em { color: var(--action); font-style: normal; font-weight: 900; }
.intro > p:last-child { color: var(--muted); margin: 20px 0 30px; }
.save-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.text-button { background: transparent; border-color: transparent; color: var(--action); padding: 8px; }
.workspace { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; }
.editor, .prompt-panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #151711; }
.panel-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); min-height: 64px; }
h2 { font-size: 14px; font-weight: 600; margin: 0; }
.panel-heading > :last-child { margin-left: auto; font-size: 12px; color: var(--muted); }
textarea { display: block; resize: vertical; width: 100%; height: 352px; min-height: 180px; padding: 24px; background: transparent; color: var(--bone); border: 0; line-height: 1.75; font-size: 17px; }
textarea::placeholder { color: #9a9e91; }
.local-note { padding: 0 24px; line-height: 1.5; }
.mobile-start { display: none; margin: 0 24px 8px; }
.stage { position: relative; background: #090a08; }
.reader { height: 320px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scroll-behavior: auto; overflow-anchor: none; position: relative; }
.words { max-width: 860px; margin: auto; padding: 90px 40px 230px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 40px; line-height: 1.55; font-weight: 600; }
.words.mirrored { transform: scaleX(-1); }
.guide { position: absolute; z-index: 1; pointer-events: none; top: 28%; width: 100%; height: 1px; background: #dfa15d26; }
.guide span { position: absolute; left: 10px; top: -19px; color: var(--action); font-size: 29px; }
.empty { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 0; padding: 24px; font: 28px Georgia, serif; text-align: center; }
.empty span { margin-top: 16px; color: var(--muted); font: 14px system-ui, sans-serif; }
.transport { padding: 16px 20px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.primary { background: var(--action); color: var(--ink); border-color: var(--action); min-width: 115px; }
.primary:hover { background: #efb77d; }
.hint { padding: 0 20px; line-height: 1.6; min-height: 21px; }
.settings { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: center; padding: 25px 0; }
.setting label { display: flex; justify-content: space-between; font-size: 13px; gap: 12px; }
output { color: var(--muted); }
.range-row { display: flex; gap: 12px; align-items: center; font-size: 11px; color: var(--muted); min-height: 44px; }
input[type=range] { width: 100%; min-width: 40px; min-height: 44px; accent-color: var(--action); }
.large-a { font-size: 20px; }
.mirror { display: grid; grid-template-columns: 22px auto; column-gap: 8px; font-size: 14px; cursor: pointer; min-height: 44px; align-content: center; }
.mirror input { width: 18px; height: 18px; accent-color: var(--action); margin: 0; }
.mirror span { grid-column: 2; color: var(--muted); font-size: 11px; margin-top: 6px; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 22px 0 10px; }
.notice { border: 1px solid var(--action); padding: 16px; border-radius: 10px; margin-bottom: 16px; line-height: 1.5; }
.notice p { margin-top: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }
body.reading .intro, body.reading .editor { display: none; }
body.reading main { padding-top: 20px; }
body.reading .workspace { grid-template-columns: 1fr; }
body.reading .reader { height: clamp(280px, 55dvh, 750px); }
body.reading .tagline { display: none; }
.prompt-panel:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: var(--ink); }
.prompt-panel:fullscreen .stage { flex: 1; min-height: 0; }
.prompt-panel:fullscreen .reader { height: 100%; }
@media (max-width: 800px) { .tagline { display: none; } .workspace { grid-template-columns: 1fr; gap: 18px; } main { padding-top: 30px; } textarea { height: 230px; } .mobile-start { display: inline-block; } .settings { grid-template-columns: 1fr 1fr; gap: 16px; } .mirror { grid-column: 1 / -1; } .empty span { font-size: 0; } .empty span::after { content: 'Add your script above to begin.'; font-size: 14px; } }
@media (max-width: 450px) { .masthead { padding: 18px 5%; } .settings { grid-template-columns: 1fr; } .words { padding-left: 30px; padding-right: 24px; } .panel-heading { padding: 12px 16px; } .save-line { align-items: flex-start; } .save-line > span { padding-top: 12px; } footer { flex-direction: column; gap: 8px; } .transport { padding-left: 16px; padding-right: 16px; gap: 8px; } button { padding: 10px 12px; } body.reading .reader { height: 48dvh; min-height: 220px; } }
