:root { color-scheme: light dark; --paper: #f4f1eb; --card: #fcfbf7; --ink: #282923; --muted: #77766c; --line: #dedbd2; --accent: #bd402b; --accent-fill: #bd402b; --accent-hover: #a53222; --on-accent: #fff8ef; --mark-ink: #f4f1eb; --stage: #282b27; --stage-ink: #f2efe2; --stage-muted: #bbbcb1; --stage-line: #474a42; --stage-dot: #d9a487; --glyph-hover: rgba(255, 255, 255, .12); --chip: #eeece5; --chip-line: #e4e1d7; --chip-ink: #64665a; --hover-bg: #edeae2; --pressed-bg: #f7eae3; --pressed-line: #d9a497; --switch-off: #d9d8cd; --switch-knob: var(--card); --switch-off-line: #c6c5ba; --warn-bg: #f8ead6; --warn-ink: #785121; --badge-ink: #686b5e; --dot: #6b795b; --art-glyph: #888b78; --shadow: rgba(40, 41, 35, .18); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
@media (prefers-color-scheme: dark) { :root { --paper: #1b1c19; --card: #232420; --ink: #ece9df; --muted: #a19f93; --line: #3a3b35; --accent: #e66c52; --accent-fill: #c2452d; --accent-hover: #d44f35; --on-accent: #fff; --stage: #121310; --stage-ink: #ece9df; --stage-muted: #a9aa9f; --stage-line: #3a3b35; --stage-dot: #d9a487; --chip: #2c2d28; --chip-line: #3a3b35; --chip-ink: #b7b5a8; --hover-bg: #2c2d28; --pressed-bg: #3a2a25; --pressed-line: #7a3f31; --switch-off: #4a4b44; --switch-off-line: #6a6b62; --switch-knob: #b9b7ab; --warn-bg: #3a2f1c; --warn-ink: #e5c58f; --badge-ink: #b0b3a3; --dot: #8fa57a; --art-glyph: #7d7f70; --shadow: rgba(0, 0, 0, .5); } }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button, input[type="checkbox"], input[type="range"], label.switch-row, label.unique-control { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, p { margin: 0; }
.page-shell { max-width: 1380px; padding: 0 max(56px, env(safe-area-inset-right)) 0 max(56px, env(safe-area-inset-left)); margin: auto; }
.masthead { display: flex; align-items: center; gap: 28px; height: 100px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-size: 31px; font-weight: 800; letter-spacing: -1.7px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; color: var(--mark-ink); background: var(--accent-fill); border-radius: 50%; font-family: Georgia, serif; font-size: 32px; font-weight: 400; line-height: 1; }
.brand-period { color: var(--accent); }
.masthead-caption, .eyebrow, .section-kicker, .art-label, .art-bottom, .stage-caption, .stage-footer, .page-footer > span:last-child { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; letter-spacing: 1.15px; }
.masthead-caption { color: var(--muted); padding-left: 26px; border-left: 1px solid var(--line); }
.local-badge { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--badge-ink); }
.local-badge i, .stage-caption i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 0 43px; }
.eyebrow { color: var(--accent); display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.eyebrow > span { font-size: 19px; line-height: 10px; }
h1 { font-weight: 500; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -3.5px; }
h1 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -2px; }
.intro { margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.hero-art { position: relative; flex: 0 0 285px; height: 218px; border: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 36px 36px; background-position: -1px -1px; overflow: hidden; }
.art-label, .art-bottom { position: absolute; left: 12px; color: var(--muted); font-size: 8px; background: var(--paper); padding: 5px; z-index: 2; }
.art-label { top: 8px; }.art-bottom { bottom: 6px; }
.art-glyph { position: absolute; line-height: 1; }.art-one { top: 30px; left: 9px; font-family: Georgia, serif; font-size: 128px; color: var(--accent); transform: rotate(-13deg); }.art-two { top: 64px; right: 14px; font-size: 115px; color: var(--ink); transform: rotate(9deg); }.art-three { font-family: Georgia, serif; left: 113px; top: 118px; font-size: 67px; color: var(--art-glyph); transform: rotate(8deg); }.art-cross { position: absolute; right: 11px; top: 8px; color: var(--accent); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 348px; align-items: start; gap: 28px; }
.result-column { min-width: 0; }
.output-card, .settings-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.output-card { padding: 26px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h2 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.section-index { font-family: ui-monospace, monospace; color: var(--muted); font-size: 11px; font-weight: 400; padding-right: 11px; }
.count-badge { color: var(--muted); font-size: 11px; border: 1px solid var(--line); padding: 5px 9px; border-radius: 3px; white-space: nowrap; }
.count-badge strong { color: var(--ink); font-weight: 600; }
.output-stage { position: relative; margin-top: 24px; padding: 22px 24px 16px; background: var(--stage); color: var(--stage-ink); border-radius: 3px; overflow: hidden; }
.stage-caption, .stage-footer { display: flex; justify-content: space-between; gap: 8px; color: var(--stage-muted); font-size: 9px; letter-spacing: .9px; }
.stage-caption > span:first-child { display: flex; align-items: center; gap: 7px; }.stage-caption i { background: var(--stage-dot); width: 5px; height: 5px; }.stage-caption > span:last-child { font-size: 16px; line-height: 1; }
.random-output { display: flex; align-items: center; width: 100%; min-height: 228px; padding: 30px 0; overflow-wrap: anywhere; font-family: "Segoe UI", sans-serif; font-size: clamp(26px, 3.2vw, 43px); font-weight: 400; line-height: 1.65; letter-spacing: 4px; white-space: pre-wrap; unicode-bidi: plaintext; }
.output-text { min-width: 0; unicode-bidi: plaintext; }.glyph { border-radius: 4px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }.glyph.is-copied { background: var(--accent-fill); color: #fff; }
.stage-footer { border-top: 1px solid var(--stage-line); padding-top: 15px; font-size: 8px; }
.output-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 20px; }
.button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 3px; font-size: 12px; font-weight: 600; transition: background .18s ease, transform .18s ease; }
.button:active:not(:disabled) { transform: translateY(1px); }.button:disabled { cursor: not-allowed; opacity: .5; }
.button-primary { background: var(--accent-fill); color: var(--on-accent); }.button-primary > span { font-size: 21px; font-weight: 400; }.button-secondary { background: transparent; border-color: var(--line); color: var(--ink); }.button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.action-hint { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 13px; font-size: 9px; line-height: 1.6; color: var(--muted); }.action-hint > span { font-family: ui-monospace, monospace; }
.status-message { min-height: 14px; margin-top: 9px; font-size: 10px; color: var(--accent); }
.studio-note { display: flex; gap: 23px; padding: 30px 0 26px; border-bottom: 1px solid var(--line); }
.note-symbol { flex: 0 0 65px; font-family: Georgia, serif; font-style: italic; color: var(--accent); font-size: 43px; line-height: 1.6; }.section-kicker { color: var(--muted); font-size: 8px; margin-bottom: 10px; }.studio-note h2 { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; }.studio-note p:last-child { margin-top: 9px; max-width: 490px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.studio-facts { display: grid; grid-template-columns: repeat(3, 1fr); padding: 23px 0; }.studio-facts > span { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 10px; padding-left: 24px; border-left: 1px solid var(--line); }.studio-facts > span:first-child { border: 0; padding-left: 0; }.studio-facts strong { color: var(--ink); font-family: Georgia, serif; font-weight: 400; font-size: 23px; }
.settings-card { padding: 23px; }.settings-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); }.settings-heading > span { color: var(--muted); font-size: 19px; line-height: 1; }
.length-control { padding: 22px 0; border-bottom: 1px solid var(--line); }.control-heading { display: flex; align-items: center; justify-content: space-between; }.control-heading label, legend, .ratio-heading label { font-size: 12px; font-weight: 600; }.length-inputs { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
input[type="number"] { width: 57px; padding: 5px 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); font-family: ui-monospace, monospace; font-weight: 600; text-align: center; font-size: 16px; }
input[type="range"] { appearance: none; display: block; width: 100%; height: 4px; margin: 21px 0 12px; background: linear-gradient(to right, var(--accent-fill) 0%, var(--accent-fill) var(--progress, 0%), var(--line) var(--progress, 0%), var(--line) 100%); border-radius: 5px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border: 3px solid var(--card); border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 0 1px var(--accent-fill); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 3px solid var(--card); border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 0 1px var(--accent-fill); }
.range-endpoints { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); font-family: ui-monospace, monospace; }.length-presets { display: flex; gap: 6px; margin-top: 15px; }.length-presets button { flex: 1; padding: 7px 4px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); font-size: 10px; }.length-presets button span { color: var(--muted); font-size: 9px; }.length-presets button[aria-pressed="true"] { color: var(--accent); border-color: var(--pressed-line); background: var(--pressed-bg); }.length-presets button[aria-pressed="true"] span { color: var(--accent); }
fieldset { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }legend { padding: 0; margin-bottom: 12px; }.switch-grid { display: grid; gap: 3px; }.switch-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }.category-icon { display: grid; place-items: center; flex: 0 0 31px; height: 31px; background: var(--chip); border: 1px solid var(--chip-line); border-radius: 3px; color: var(--chip-ink); font-family: Georgia, serif; font-size: 17px; }.category-text { flex: 1; }.category-text, .unique-control > span { display: grid; gap: 4px; }.switch-row strong, .unique-control strong { font-size: 12px; font-weight: 500; }.switch-row small, .unique-control small { color: var(--muted); font-size: 9px; line-height: 1.4; }
input[type="checkbox"] { position: relative; flex: 0 0 auto; appearance: none; width: 29px; height: 17px; margin: 0; border: 1px solid var(--switch-off-line); border-radius: 20px; background: var(--switch-off); transition: background .2s; }input[type="checkbox"]::after { position: absolute; content: ""; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--switch-knob); transition: transform .2s; }input[type="checkbox"]:checked { background: var(--accent-fill); border-color: var(--accent-fill); }input[type="checkbox"]:checked::after { transform: translateX(12px); }.switch-row:has(input:not(:checked)) .category-icon { opacity: .5; }
.ratio-control { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); }.ratio-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }.ratio-heading label { font-size: 11px; }.ratio-value { font-size: 12px; color: var(--accent); font-family: ui-monospace, monospace; }.helper-text { font-size: 9px; color: var(--muted); line-height: 1.7; margin-top: 15px; }.ratio-control.is-disabled { opacity: .45; }.ratio-control input:disabled { cursor: not-allowed; }
.unique-control { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }.message { margin-top: 12px; font-size: 11px; color: var(--accent); line-height: 1.6; }.message-warning { padding: 10px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 3px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 24px 0; margin-top: 40px; border-top: 1px solid var(--line); font-size: 12px; }.footer-muted { color: var(--muted); font-size: 10px; margin-left: 13px; }.page-footer > span:last-child { color: var(--muted); font-size: 8px; }.page-footer > span:last-child > span { color: var(--accent); margin-left: 10px; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mobile-dock { display: none; }
@media (hover: hover) { .button:hover:not(:disabled) { transform: translateY(-1px); }.button-primary:hover:not(:disabled) { background: var(--accent-hover); }.button-secondary:hover:not(:disabled) { background: var(--hover-bg); }.length-presets button:hover { border-color: var(--accent); }.glyph:hover { background: var(--glyph-hover); }.glyph.is-copied:hover { background: var(--accent-fill); } }
@media (pointer: coarse) { input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; box-sizing: border-box; }input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; }.length-presets button { min-height: 44px; }.switch-row, .unique-control { min-height: 48px; }input[type="checkbox"] { width: 40px; height: 24px; }input[type="checkbox"]::after { width: 18px; height: 18px; }input[type="checkbox"]:checked::after { transform: translateX(16px); } }
@media (min-width: 1400px) { .hero { padding-top: 58px; padding-bottom: 52px; }.hero-art { flex-basis: 320px; } }
@media (max-width: 1050px) { .page-shell { padding: 0 max(30px, env(safe-area-inset-right)) 0 max(30px, env(safe-area-inset-left)); }.workspace { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }.output-card { padding: 20px; }.settings-card { padding: 20px; }.hero-art { flex-basis: 240px; }.hero { gap: 24px; }h1 { letter-spacing: -2px; }.action-hint > span { display: none; }.output-actions { grid-template-columns: 1fr; }.random-output { min-height: 253px; } }
@media (max-width: 760px) { .page-shell { padding: 0 max(20px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }.masthead { height: 64px; gap: 14px; }.masthead-caption { display: none; }.hero { padding: 24px 0 22px; gap: 12px; }h1 { font-size: 47px; }.hero-art { flex-basis: 180px; height: 190px; }.art-one { font-size: 97px; top: 38px; left: 0; }.art-two { font-size: 80px; top: 65px; right: -2px; }.art-three { font-size: 48px; left: 63px; top: 122px; }.art-bottom { font-size: 6px; }.intro { font-size: 12px; }.desktop-break { display: none; }.workspace { grid-template-columns: 1fr; gap: 24px; }.output-actions { grid-template-columns: minmax(0, 1fr) auto; }.random-output { min-height: 180px; font-size: 36px; }.studio-facts { padding-bottom: 0; }.settings-card { padding: 24px; }.switch-grid { grid-template-columns: 1fr 1fr; gap: 8px 22px; }.page-footer { margin-top: 28px; }.footer-muted { margin-left: 6px; }.stage-caption, .stage-footer, .section-kicker, .page-footer > span:last-child, .range-endpoints, .section-index, .eyebrow { font-size: 10px; }.local-badge, .count-badge, .action-hint, .helper-text, .switch-row small, .unique-control small, .footer-muted, .length-presets button span { font-size: 11px; }.status-message { font-size: 12px; }
  .mobile-dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 10; display: flex; gap: 8px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 24px var(--shadow); transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
  .mobile-dock.is-visible { transform: none; opacity: 1; pointer-events: auto; }
  .dock-preview { flex: 1; min-width: 0; height: 48px; padding: 0 12px; overflow: hidden; background: var(--stage); color: var(--stage-ink); border-radius: 10px; font-family: "Segoe UI", sans-serif; font-size: 20px; line-height: 48px; white-space: nowrap; text-overflow: ellipsis; }
  .dock-button { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); }.dock-button:disabled { cursor: not-allowed; opacity: .5; }.dock-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }.dock-button-primary { background: var(--accent-fill); border-color: transparent; color: var(--on-accent); }.dock-button-primary > span { font-size: 24px; line-height: 1; }.dock-button.is-done svg { display: none; }.dock-button.is-done::after { content: "✓"; font-size: 20px; line-height: 1; } }
@media (max-width: 520px) { .output-actions { grid-template-columns: minmax(0, 1fr) 48px; }#copy-button { padding: 0; }#copy-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }#copy-button.is-done svg { display: none; }#copy-button.is-done::after { content: "✓"; font-size: 18px; line-height: 1; } .page-shell { padding: 0 max(16px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }.brand { font-size: 28px; }.local-badge { gap: 6px; }.hero { padding: 32px 0; }.hero-art { display: none; }h1 { font-size: clamp(38px, 11.5vw, 48px); letter-spacing: -2px; }.eyebrow { margin-bottom: 20px; }.intro { font-size: 12px; max-width: 340px; margin-top: 17px; }.output-card { padding: 18px 16px; }.section-index { padding-right: 6px; }h2 { font-size: 12px; }.count-badge { padding: 5px 7px; }.output-stage { padding: 19px 18px 14px; margin-top: 18px; }.random-output { min-height: 150px; font-size: 30px; letter-spacing: 2px; line-height: 1.7; }.output-actions { gap: 8px; }.button { min-height: 46px; }.studio-note { gap: 15px; padding: 24px 0; }.note-symbol { flex-basis: 45px; font-size: 34px; }.studio-note h2 { font-size: 23px; }.section-kicker { letter-spacing: .6px; }.studio-note p:last-child { font-size: 11px; }.settings-card { padding: 21px; }.switch-grid { grid-template-columns: 1fr; gap: 3px; }.switch-row { padding: 10px 0; }.switch-row strong, .unique-control strong { font-size: 13px; }.page-footer { flex-wrap: wrap; padding: 20px 0; gap: 12px; }}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
