


:root{
  color-scheme:light;
  --page:#FAFAF6;--surface:#FFFFFF;--surface-soft:#F5F8F2;--surface-muted:#EDF3EC;
  --ink:#1E2923;--ink-strong:#14241B;--muted:#69766D;--muted-2:#566C5D;
  --forest:#103B2D;--primary:#174D3A;--primary-hover:#246549;--primary-ink:#FFFFFF;
  --sage:#DCE9DE;--sage-strong:#B8D1BB;--border:#DCE5DB;--border-strong:#BFCFC1;
  --shadow:0 12px 28px rgba(24,60,37,.055),0 2px 5px rgba(22,49,30,.025);
  --focus:#5F9972;--danger:#A84536;--danger-soft:#FFF4F0;
  --font:'DM Sans',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Consolas,monospace;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --page:#101A15;--surface:#18251D;--surface-soft:#1E2E24;--surface-muted:#273B2D;
  --ink:#EAF2E9;--ink-strong:#F7FBF5;--muted:#B4C3B5;--muted-2:#97AC9C;
  --forest:#B4DAAC;--primary:#BDDDB4;--primary-hover:#D6EDCD;--primary-ink:#173021;
  --sage:#304C37;--sage-strong:#415C47;--border:#334A3A;--border-strong:#536E59;
  --shadow:0 12px 34px rgba(0,0,0,.15);--focus:#A9DBA5;--danger:#F5A699;--danger-soft:#3E2622;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:88px}
body{margin:0;background:var(--page);color:var(--ink);font-family:var(--font);font-size:15px;-webkit-font-smoothing:antialiased;line-height:1.5}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
svg{overflow:visible}
.icon{display:inline-block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
.icon-sm{width:15px;height:15px}
.svg-defs,.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:3px solid var(--focus)!important;outline-offset:3px}
button:disabled{opacity:.42;cursor:not-allowed}
button:not(:disabled),a,input,textarea,select{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
.container{max-width:1216px;width:calc(100% - 64px);margin-inline:auto}
.skip-link{position:fixed;top:-70px;left:12px;z-index:100;background:var(--primary);color:var(--primary-ink);padding:10px 16px;border-radius:8px}.skip-link:focus{top:10px}
.site-header{border-bottom:1px solid var(--border);background:var(--surface);position:sticky;top:0;z-index:40}
.header-inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand{display:inline-flex;align-items:center;gap:17px;white-space:nowrap;font-weight:800;font-size:22px;letter-spacing:-.85px;color:var(--ink-strong)}
.brand-green{color:var(--primary)}.brand-dot{font-size:.73em;letter-spacing:-.15px}
.brand-mark{display:flex;gap:5px;align-items:center;border-right:1px solid var(--border-strong);padding-right:18px;height:27px}
.brand-mark i{display:block;width:6px;height:6px;border-radius:50%;background:var(--primary)}.brand-mark i:nth-child(2){width:19px;border-radius:4px}.brand-mark i:nth-child(3){width:13px;border-radius:4px}
.desktop-nav{display:flex;align-items:center;gap:5px;margin-left:auto}
.desktop-nav a{font-size:13px;font-weight:700;color:var(--ink);padding:10px 15px;border-radius:100px;white-space:nowrap}
.desktop-nav a:hover{background:var(--surface-soft)}.desktop-nav a.nav-current{background:var(--forest);color:var(--primary-ink)}
.header-actions{display:flex;align-items:center;gap:8px}
.icon-button{border:1px solid var(--border-strong);background:var(--surface);color:var(--ink);width:43px;height:43px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center}
.icon-button:hover:not(:disabled){background:var(--surface-soft);border-color:var(--focus)}
.mobile-menu-button{display:none}.mobile-nav{display:none}
.hero{text-align:center;padding:64px 0 37px;position:relative}
.hero-kicker{display:flex;align-items:center;justify-content:center;gap:13px;color:var(--primary);font-size:11px;font-weight:800;letter-spacing:.21em}
.hero-kicker span{height:1px;width:60px;background:var(--sage-strong)}.hero-kicker b{font-size:14px;font-weight:500;letter-spacing:0}
.hero h1{font-size:clamp(35px,5vw,61px);line-height:1.12;letter-spacing:-3.5px;font-weight:800;margin:17px 0 13px;color:var(--ink-strong)}
.hero h1 em,.learning-copy h2 em{color:var(--primary);font-style:normal}
.hero p{font-size:17px;max-width:670px;margin:0 auto;color:var(--muted);line-height:1.7}
.hero-signal{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:24px}.hero-signal i{background:var(--primary);height:6px;border-radius:5px;width:6px}.hero-signal i:nth-child(2){width:23px}.hero-signal i:nth-child(3){width:6px}.hero-signal i:nth-child(4){width:23px}.hero-signal i:nth-child(5){opacity:.25}
.workspace{background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:25px;box-shadow:var(--shadow)}
.workspace-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tool-tabs,.workspace-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tool-tab,.quiet-button,.button,.quick-examples button,.alphabet-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;border:1px solid var(--border);background:var(--surface);color:var(--ink);font-size:13px;font-weight:700;min-height:40px;padding:9px 14px}
.tool-tab:hover,.quiet-button:hover,.quick-examples button:hover,.alphabet-tabs button:hover{background:var(--surface-soft);border-color:var(--border-strong)}
.tool-tab.active,.tool-tab[aria-pressed="true"]{background:var(--primary);color:var(--primary-ink);border-color:var(--primary)}
.tool-tab .icon{height:17px;width:17px}.quiet-button{font-size:12px;border-color:var(--border);background:var(--surface-soft)}.quiet-button .icon{width:16px;height:16px}
.examples-wrap{position:relative}.examples-menu{position:absolute;z-index:12;top:calc(100% + 8px);right:0;min-width:260px;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 16px 32px rgba(0,0,0,.14)}
.examples-menu[hidden]{display:none}.examples-menu button{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;background:transparent;border:0;border-radius:9px;color:var(--ink);padding:11px 12px;text-align:left;font-weight:700}
.examples-menu button:hover{background:var(--surface-soft)}.examples-menu small{color:var(--muted);font-weight:400;font-size:11px}
.input-guidance{margin:17px 0 13px;font-size:12px;color:var(--muted)}
.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr);gap:12px;align-items:center}
.editor-field{min-width:0;border:1px solid var(--border-strong);border-radius:14px;background:var(--surface);padding:14px 16px 11px;min-height:192px;display:flex;flex-direction:column}
.editor-field:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 12%,transparent)}
.editor-top{display:flex;justify-content:space-between;align-items:center;gap:9px}
.editor-top label{font-size:12px;letter-spacing:.065em;font-weight:800;color:var(--ink-strong)}.editor-hint{font-size:11px;font-weight:500;letter-spacing:0;color:var(--muted);margin-left:5px}
.mini-action{height:24px;width:24px;display:inline-flex;align-items:center;justify-content:center;border:0;color:var(--muted);border-radius:50%;background:var(--surface-soft)}.mini-action:hover{color:var(--ink);background:var(--sage)}.mini-action .icon{height:14px;width:14px}
.editor-text{width:100%;min-height:112px;resize:vertical;border:0;outline:none!important;box-shadow:none!important;color:var(--ink-strong);background:transparent;line-height:1.68;font-family:var(--mono);font-size:17px;letter-spacing:.02em;margin:9px 0 0;padding:0;overflow-wrap:anywhere}.editor-text::placeholder{color:var(--muted-2);opacity:1}
.morse-text{font-size:15px;letter-spacing:.035em}
.editor-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted);font-size:11px;padding-top:4px}
.text-link{padding:3px 0;border:0;background:transparent;color:var(--primary);display:inline-flex;gap:5px;align-items:center;font-size:12px;font-weight:700}.text-link:hover{text-decoration:underline}
.swap-control{background:var(--sage);border:1px solid var(--border-strong);border-radius:14px;width:48px;height:48px;display:grid;place-items:center;color:var(--forest);justify-self:center;box-shadow:var(--shadow)}.swap-control .icon{width:23px;height:23px}.swap-control:hover{background:var(--sage-strong)}
.inline-warning{margin:12px 0 0;background:var(--danger-soft);color:var(--danger);border:1px solid color-mix(in srgb,var(--danger) 25%,transparent);padding:9px 12px;border-radius:9px;font-size:12px}
.controls-panel{border-top:1px solid var(--border);margin-top:22px;padding:21px 0 18px;display:flex;align-items:center;gap:16px;justify-content:space-between}
.play-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.button{background:var(--surface-soft);font-weight:800;border-radius:11px;white-space:nowrap}.button .icon{height:18px;width:18px}
.button-primary{background:var(--primary);color:var(--primary-ink);border-color:var(--primary)}.button-primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}
.button-soft{background:var(--sage);color:var(--forest);border-color:var(--sage)}.button-soft:hover{background:var(--sage-strong)}
.button-outline{background:var(--surface);color:var(--ink);border-color:var(--border-strong)}.button-outline:hover{background:var(--surface-soft)}
.play-button{min-width:150px;min-height:46px;font-size:14px}.play-actions>.icon-button{height:46px;width:45px;border-radius:11px}
.vertical-divider{height:29px;width:1px;background:var(--border);flex:none}
.control-field{display:flex;align-items:center;gap:10px;white-space:nowrap;min-width:0}
.control-field label{font-size:12px;font-weight:700}.control-field label span{color:var(--muted);font-weight:500}
select{background:var(--surface);color:var(--ink);border:1px solid var(--border-strong);border-radius:9px;padding:9px 25px 9px 11px;font-size:13px;font-weight:700;max-width:100%}
select:hover{border-color:var(--focus)}
.volume-field{flex:1;min-width:190px;justify-content:flex-end}.volume-field label{display:inline-flex;align-items:center;gap:6px}.volume-field label .icon{width:18px;height:18px}
input[type="range"]{appearance:none;-webkit-appearance:none;cursor:pointer;width:100%;min-width:55px;max-width:125px;height:5px;border-radius:99px;background:linear-gradient(90deg,var(--primary) var(--range-pct,80%),var(--border) var(--range-pct,80%))}
input[type="range"]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;background:var(--surface);border:2px solid var(--primary);width:16px;height:16px;border-radius:50%}
input[type="range"]::-moz-range-thumb{background:var(--surface);border:2px solid var(--primary);width:14px;height:14px;border-radius:50%}
#volumeValue{font-size:12px;min-width:34px;text-align:right;color:var(--muted)}
.playback-track{height:3px;background:var(--border);margin:0 0 16px;border-radius:8px;overflow:hidden}.playback-track span{height:100%;width:0;display:block;background:var(--primary);transition:width .1s linear}
.stats-bar{background:var(--surface-soft);border:1px solid var(--border);border-radius:12px;min-height:55px;padding:10px 14px;display:flex;align-items:center;gap:17px;flex-wrap:wrap}
.stats-bar>span{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:5px;white-space:nowrap}.stats-bar strong{font-weight:800;color:var(--ink)}.stats-bar .icon{width:15px;height:15px;color:var(--primary)}
.stat-actions{display:flex;gap:7px;margin-left:auto}.stat-actions .button{min-height:34px;padding:7px 10px;font-size:11px;gap:5px}.stat-actions .icon{height:15px;width:15px}
.advanced-settings{border:1px solid var(--border);border-radius:12px;margin-top:14px;overflow:hidden}
.advanced-settings summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;background:var(--surface);padding:13px 16px;font-weight:800;font-size:13px}.advanced-settings summary::-webkit-details-marker{display:none}.advanced-settings summary span{display:flex;align-items:center;gap:10px}.advanced-settings summary:hover{background:var(--surface-soft)}
.summary-chevron{transition:transform .2s ease}details[open]>.summary-chevron,details[open]>summary .summary-chevron{transform:rotate(180deg)}
.advanced-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px;background:var(--surface-soft);border-top:1px solid var(--border)}
.advanced-item{display:grid;grid-template-columns:1fr auto;column-gap:10px;row-gap:7px;align-items:center;min-width:0}.advanced-item>label:first-child{font-size:12px;font-weight:800}.advanced-item p{grid-column:1/-1;color:var(--muted);font-size:11px;margin:0;line-height:1.5}.advanced-item select{max-width:155px}
.switch{position:relative;display:inline-block;width:41px;height:24px;cursor:pointer}.switch input{opacity:0;position:absolute;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}.switch span{display:block;width:100%;height:100%;background:var(--border-strong);border-radius:25px}.switch span:after{content:'';position:absolute;width:18px;height:18px;top:3px;left:3px;background:var(--surface);border-radius:50%;box-shadow:0 1px 2px #0002;transition:transform .15s}.switch input:checked+span{background:var(--primary)}.switch input:checked+span:after{transform:translateX(17px);background:var(--primary-ink)}.switch input:focus-visible+span{outline:3px solid var(--focus);outline-offset:3px}
.light-status{margin-top:13px;padding:11px 15px;border:1px solid var(--border);border-radius:10px;display:flex;gap:14px;align-items:center;background:var(--surface-soft);font-size:12px;font-weight:700}.light-status[hidden]{display:none}.light-status .text-link{margin-left:auto}.signal-lamp{display:block;height:23px;width:23px;border-radius:50%;background:var(--surface);border:2px solid var(--border-strong);box-shadow:0 0 0 3px var(--surface)}.signal-lamp.on{background:#B4F8A6;border-color:#51B26A;box-shadow:0 0 0 4px var(--sage),0 0 20px #86EC72}
.quick-examples{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin:17px 0 25px}.quick-examples span{font-size:12px;color:var(--muted);margin-right:3px}.quick-examples button{min-height:31px;padding:5px 15px;border-radius:99px;font-size:11px;background:var(--surface)}
.features-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-bottom:1px solid var(--border);padding:0 0 34px;margin-bottom:24px}
.features-strip>div{display:flex;align-items:flex-start;gap:13px;padding:8px 22px;border-right:1px solid var(--border);min-width:0}.features-strip>div:first-child{padding-left:5px}.features-strip>div:last-child{border-right:0}.features-strip .icon{width:26px;height:26px;color:var(--primary);stroke-width:1.8}.features-strip p{display:grid;gap:3px;margin:0;min-width:0}.features-strip strong{font-size:12px;white-space:nowrap;color:var(--ink-strong)}.features-strip p span{font-size:11px;color:var(--muted);line-height:1.5}
.explore-section,.alphabet-section,.learning-section,.practice-section,.faq-section{padding-top:70px}
.section-header{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:20px}.section-header h2,.learning-copy h2,.practice-content h2{font-size:clamp(25px,3vw,34px);letter-spacing:-1.4px;line-height:1.19;color:var(--ink-strong);margin:8px 0 0;font-weight:800}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:.17em;color:var(--primary)}.section-header>p{margin:0;color:var(--muted);font-size:13px;max-width:320px}
.tool-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.link-card{min-height:114px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:23px;display:flex;align-items:center;gap:15px;text-align:left;color:var(--ink);box-shadow:var(--shadow);width:100%}
.link-card:hover{border-color:var(--focus);transform:translateY(-2px)}.card-icon{background:var(--sage);color:var(--forest);border-radius:12px;height:44px;width:44px;display:grid;place-items:center;flex:none}.card-icon .icon{width:22px;height:22px}
.link-card>span:nth-child(2){display:grid;gap:4px;flex:1}.link-card strong{font-size:15px;color:var(--ink-strong)}.link-card small{font-size:12px;color:var(--muted);line-height:1.4}.card-arrow{width:17px;height:17px;color:var(--primary)}
.reference-board{background:var(--surface);border:1px solid var(--border);border-radius:17px;padding:22px;box-shadow:var(--shadow)}.reference-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}.alphabet-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.alphabet-tabs button{padding:7px 13px;min-height:36px;font-size:12px}.alphabet-tabs button.selected{background:var(--primary);color:var(--primary-ink);border-color:var(--primary)}.reference-help{font-size:12px;color:var(--muted)}
.alphabet-grid{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:9px}.alpha-tile{border:1px solid var(--border);border-radius:11px;background:var(--surface-soft);min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--ink)}.alpha-tile:hover{background:var(--sage);border-color:var(--border-strong);transform:translateY(-1px)}.alpha-tile strong{font-size:17px;font-weight:800;color:var(--ink-strong)}.alpha-tile small{font-family:var(--mono);letter-spacing:-.07em;color:var(--primary);font-size:10px}
.learning-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.87fr);gap:35px;align-items:center}.learning-copy h2{font-size:clamp(28px,3.6vw,40px);margin-top:12px}.learning-copy>p{max-width:510px;color:var(--muted);font-size:14px;line-height:1.8;margin:20px 0 22px}.learning-steps{display:grid;gap:15px}.learning-steps>div{display:flex;gap:17px;align-items:flex-start}.learning-steps>div>span{color:var(--primary);font-size:12px;font-family:var(--mono);border:1px solid var(--border-strong);border-radius:8px;min-width:33px;height:33px;display:grid;place-items:center;background:var(--surface)}.learning-steps p{display:grid;gap:2px;margin:0}.learning-steps strong{font-size:13px}.learning-steps small{color:var(--muted);font-size:12px}
.timing-card{background:var(--forest);color:var(--primary-ink);border-radius:20px;padding:28px;min-height:362px}.timing-heading{display:flex;align-items:center;justify-content:space-between;color:var(--sage);font-size:11px;letter-spacing:.16em;font-weight:800}.timing-card h3{font-size:24px;line-height:1.22;letter-spacing:-.7px;max-width:310px;margin:21px 0 26px}.timing-example{display:grid;gap:12px}.timing-example>p{display:grid;grid-template-columns:115px 1fr 55px;align-items:center;gap:7px;margin:0;border-bottom:1px solid #ffffff25;padding-bottom:9px}.timing-example span{font-size:11px;letter-spacing:.08em;color:#D4E2D4;font-weight:800}.timing-example small{font-size:11px;text-align:right;color:#D4E2D4}.timing-example i{display:block;background:#D3EFC9;height:7px;border-radius:4px;width:8px}.timing-example i.dash{width:50px}.timing-example i.gap{background:transparent;border-top:2px dashed #BCE1B3;height:0;width:46px}.timing-example i.gap-7{width:110px}.timing-foot{font-size:11px;line-height:1.6;color:#E1EDE1;margin:20px 0 0}
.practice-section{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1fr);gap:50px;align-items:center}.practice-content>p{color:var(--muted);max-width:340px;font-size:14px;line-height:1.7}
.practice-card{padding:24px;border:1px solid var(--border);border-radius:17px;background:var(--surface);box-shadow:var(--shadow)}.practice-top{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.06em;margin-bottom:20px}.practice-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.practice-actions .button{min-height:43px}.practice-actions input{height:43px;border:1px solid var(--border-strong);background:var(--surface);color:var(--ink);border-radius:10px;max-width:135px;width:100%;padding:8px 10px;text-align:center;font-family:var(--mono);text-transform:uppercase}.practice-feedback{color:var(--muted);font-size:12px;margin:15px 0 8px;min-height:19px}
.faq-section{padding-bottom:100px}.faq-list{display:grid;gap:10px}.faq-list details{border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:0 20px}.faq-list summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:17px 0;list-style:none;font-size:14px;font-weight:800}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary .icon{width:17px;height:17px;transition:transform .15s}.faq-list details[open] summary .icon{transform:rotate(180deg)}.faq-list p{font-size:13px;color:var(--muted);line-height:1.8;margin:0;padding:0 0 18px;max-width:850px}.faq-list code{font-family:var(--mono);color:var(--primary)}
.footer{border-top:1px solid var(--border);background:var(--surface);padding:32px 0}.footer-inner{display:flex;align-items:center;gap:25px;justify-content:space-between;flex-wrap:wrap}.footer .brand{font-size:19px}.footer .brand-mark{transform:scale(.85);transform-origin:left center;margin-right:-7px}.footer-inner p{color:var(--muted);font-size:12px;margin:8px 0 0}.footer nav{display:flex;flex-wrap:wrap;gap:16px}.footer nav a{font-size:12px;color:var(--muted)}.footer nav a:hover{color:var(--primary)}.copyright{font-size:11px;color:var(--muted)}
.keyer-dialog{border:1px solid var(--border);background:var(--surface);color:var(--ink);padding:25px;max-width:510px;width:calc(100% - 26px);border-radius:19px;box-shadow:0 28px 70px #0004}.keyer-dialog::backdrop{background:#0C1B15A8;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:start;justify-content:space-between;gap:10px}.dialog-head h2{font-size:25px;margin:5px 0}.keyer-dialog>p{color:var(--muted);font-size:13px;line-height:1.7}.keyer-feedback{background:var(--surface-soft);border:1px solid var(--border);min-height:82px;padding:14px;border-radius:12px;display:grid;gap:7px;margin:17px 0;text-align:center}.keyer-feedback span{font:13px var(--mono);overflow-wrap:anywhere}.keyer-feedback strong{font-size:19px;color:var(--primary)}.tap-pad{width:100%;height:148px;border-radius:16px;border:1px solid var(--primary);background:var(--forest);color:var(--primary-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;user-select:none;touch-action:none}.tap-pad:active,.tap-pad.pressed{background:var(--primary-hover);transform:scale(.99)}.tap-pad .icon{height:29px;width:29px}.tap-pad span{font-size:15px;font-weight:800;letter-spacing:.08em}.tap-pad small{font-size:11px;opacity:.86}.keyer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.use-keyer{width:100%;min-height:45px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;visibility:hidden;pointer-events:none;z-index:100;background:var(--forest);color:var(--primary-ink);border-radius:12px;padding:12px 18px;font-size:13px;box-shadow:var(--shadow);max-width:calc(100% - 20px);text-align:center;transition:transform .2s,opacity .2s,visibility .2s}.toast.show{visibility:visible;opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.container{width:calc(100% - 48px)}.desktop-nav a{padding:9px 10px}.brand{font-size:19px}.header-inner{gap:12px}.controls-panel{gap:11px;flex-wrap:wrap;justify-content:flex-start}.volume-field{flex:0 1 210px;margin-left:auto}.stats-bar{gap:12px}.privacy-stat{display:none!important}.features-strip>div{padding:6px 13px}.features-strip strong{white-space:normal}.alphabet-grid{grid-template-columns:repeat(9,minmax(0,1fr))}}
@media(max-width:850px){.desktop-nav{display:none}.mobile-menu-button{display:inline-flex}.mobile-nav{background:var(--surface);padding:10px 24px 16px;border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.mobile-nav[hidden]{display:none}.mobile-nav a{font-size:13px;font-weight:700;padding:13px;border-radius:9px;background:var(--surface-soft);text-align:center}.mobile-nav a:hover{background:var(--sage)}.hero{padding:53px 0 28px}.editor-grid{grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);gap:8px}.editor-field{padding:13px;min-height:185px}.swap-control{height:36px;width:36px;border-radius:11px}.swap-control .icon{width:19px;height:19px}.workspace{padding:18px}.control-field{gap:7px}.volume-field{min-width:170px}.advanced-content{grid-template-columns:repeat(2,minmax(0,1fr))}.features-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.features-strip>div{border:0;padding:8px}.tool-cards{gap:9px}.link-card{padding:16px;gap:9px}.learning-section{gap:18px}.timing-card{padding:23px}.practice-section{gap:18px}.footer-inner{justify-content:center;text-align:center}.footer-inner nav{justify-content:center}}
@media(max-width:640px){.container{width:calc(100% - 30px)}.header-inner{height:63px}.brand{font-size:19px;gap:9px;letter-spacing:-.7px}.brand-mark{gap:3px;padding-right:10px;height:23px}.brand-mark i{width:5px;height:5px}.brand-mark i:nth-child(2){width:14px}.brand-mark i:nth-child(3){width:10px}.header-actions{gap:5px}.header-icon,.mobile-menu-button{width:36px;height:36px;border-radius:10px}.header-actions .icon{width:17px;height:17px}.mobile-nav{grid-template-columns:repeat(2,1fr)}
.hero{padding:41px 0 26px}.hero-kicker{font-size:9px;gap:8px;letter-spacing:.14em}.hero-kicker span{width:25px}.hero h1{font-size:36px;line-height:1.1;letter-spacing:-1.9px;margin:13px 0}.hero p{font-size:13px;line-height:1.7;max-width:335px}.hero-signal{margin-top:17px}
.workspace{padding:14px 12px;border-radius:17px}.workspace-head{gap:11px}.tool-tabs{gap:5px;width:100%}.tool-tab{flex:1;min-height:39px;padding:7px 7px;font-size:11px;border-radius:9px;gap:5px}.tool-tab .icon{height:15px;width:15px}.workspace-actions{width:100%;justify-content:space-between;gap:5px}.quiet-button{padding:7px 9px;min-height:34px;font-size:11px;gap:5px}.quiet-button .icon{width:14px;height:14px}.input-guidance{font-size:11px;line-height:1.5;margin:12px 0}
.editor-grid{grid-template-columns:1fr;gap:10px}.swap-control{transform:rotate(90deg);width:38px;height:38px}.editor-field{min-height:146px;padding:12px}.editor-text{min-height:72px;max-height:230px;font-size:16px;margin-top:7px}.morse-text{font-size:14px}.editor-top label{font-size:11px}.editor-hint{font-size:10px}.editor-footer{font-size:10px}
.controls-panel{gap:10px;padding:14px 0 16px;margin-top:16px;display:grid;grid-template-columns:1fr 1fr;align-items:center}.play-actions{grid-column:1/-1;justify-content:stretch}.play-actions .button{flex:1;min-height:44px}.play-actions>.icon-button{height:44px;width:46px}.controls-panel>.vertical-divider{display:none}.control-field{justify-content:space-between;min-width:0}.control-field label{font-size:11px}.control-field label span{font-size:10px}.control-field select{font-size:12px;padding:7px 18px 7px 9px}.volume-field{grid-column:1/-1;max-width:none;margin:0;justify-content:flex-start;gap:12px}.volume-field input[type=range]{max-width:none;flex:1}
.stats-bar{gap:10px;padding:10px;min-height:0}.stats-bar>span{font-size:10px}.stat-actions{flex-basis:100%;width:100%;margin:3px 0 0;display:grid;grid-template-columns:1fr 1fr 1.2fr}.stat-actions .button{font-size:11px;justify-content:center}.advanced-content{grid-template-columns:1fr;gap:18px;padding:16px}.advanced-settings summary{font-size:12px;padding:12px}
.quick-examples{gap:7px;margin:16px 0 22px}.quick-examples span{flex-basis:100%;text-align:center}.quick-examples button{font-size:10px;padding:5px 11px}.features-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 0 22px;margin-bottom:0}.features-strip>div{gap:8px;padding:10px 5px}.features-strip .icon{width:20px;height:20px}.features-strip strong{font-size:11px}.features-strip p span{font-size:10px}
.explore-section,.alphabet-section,.learning-section,.practice-section,.faq-section{padding-top:55px}.section-header{align-items:start;display:block}.section-header h2{font-size:26px;letter-spacing:-1px}.section-header>p{margin:10px 0 0}.tool-cards{grid-template-columns:1fr}.link-card{min-height:83px;padding:16px}.reference-board{padding:14px}.reference-top{gap:9px}.alphabet-tabs{gap:5px}.alphabet-tabs button{padding:7px 8px;font-size:11px}.alphabet-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.alpha-tile{min-height:68px}.alpha-tile strong{font-size:16px}.alpha-tile small{font-size:9px}
.learning-section,.practice-section{grid-template-columns:1fr;gap:23px}.learning-copy h2{font-size:31px}.timing-card{min-height:0}.practice-section{padding-top:58px}.practice-card{padding:15px}.practice-actions{gap:7px}.practice-actions .button{font-size:11px;min-height:40px;padding:8px}.practice-actions input{max-width:105px;height:40px}.faq-section{padding-bottom:65px}.faq-list details{padding:0 14px}.faq-list summary{font-size:13px}.footer-inner{display:flex;flex-direction:column;gap:16px}.footer nav{gap:12px}.footer nav a{font-size:11px}
}
@media(max-width:360px){.brand{font-size:16px}.brand-dot{font-size:.7em}.workspace-actions .quiet-button{font-size:10px;padding:7px}.tool-tab{font-size:10px;padding:7px 5px}.editor-top label .editor-hint{display:none}.control-field label span{display:none}.alphabet-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.practice-actions input{max-width:85px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important;scroll-behavior:auto!important}}
/* Prevent min-content grid sizing from widening small phones. */
@media(max-width:640px){
  .learning-section,.practice-section{grid-template-columns:minmax(0,1fr)}
  .learning-section>* , .practice-section>* {min-width:0}
  .timing-example>p{grid-template-columns:100px minmax(0,1fr) 45px}
  .timing-example i.gap-7{max-width:100%}
}


/* MORSEZONE — EXTRA CONTENT SECTIONS */
/* Works with existing EcoGauge-inspired green theme */

.content-section {
  padding-top: 80px;
  scroll-margin-top: 90px;
}

.content-section .content-title {
  margin-bottom: 23px;
}

.content-title > p {
  max-width: 405px;
}

.content-section h2 {
  max-width: 760px;
}

/* INTRODUCTION */

.reading-copy {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.reading-copy .lead {
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  margin-top: 0;
}

.reading-copy p {
  margin: 0 0 17px;
}

.inline-learn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  padding: 6px 0;
}

.inline-learn:hover {
  text-decoration: underline;
}

.intro-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr) minmax(270px, .75fr);
  gap: 45px;
  align-items: start;
}

.history-facts {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.history-facts > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 13px;
  align-items: start;
  padding: 17px 21px;
  border-bottom: 1px solid var(--border);
}

.history-facts > div:last-child {
  border-bottom: 0;
}

.history-facts strong {
  font-size: 18px;
  letter-spacing: -.7px;
  color: var(--primary);
}

.history-facts span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* PROMOTIONAL BANNER */

.editorial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--forest);
  border-radius: 17px;
  padding: 27px 32px;
  margin-top: 32px;
  color: var(--primary-ink);
  position: relative;
  overflow: hidden;
}

.editorial-banner::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid #ffffff17;
  border-radius: 50%;
  top: -190px;
  right: 25%;
  pointer-events: none;
}

.editorial-banner h3 {
  margin: 4px 0 5px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.7px;
  color: var(--primary-ink);
}

.editorial-banner p {
  margin: 0;
  color: var(--sage);
  font-size: 12px;
}

.editorial-banner .button {
  flex-shrink: 0;
  background: var(--surface);
  color: var(--forest);
  border-color: transparent;
}

.editorial-banner .button:hover {
  background: var(--sage);
  border-color: transparent;
}

.signal-decoration {
  font: 18px var(--mono);
  letter-spacing: .18em;
  color: var(--sage);
  white-space: nowrap;
  display: block;
  margin-bottom: 7px;
}

/* EDITORIAL CARDS */

.editorial-grid {
  display: grid;
  gap: 14px;
}

.editorial-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editorial-grid.five-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  padding: 24px 25px;
  box-shadow: var(--shadow);
}

.editorial-card h3 {
  margin: 9px 0;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -.3px;
  color: var(--ink-strong);
}

.editorial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.editorial-card code,
.reference-table code,
.process-card code {
  font-family: var(--mono);
  font-size: .92em;
  color: var(--primary);
  overflow-wrap: anywhere;
}

.card-index {
  font: 700 11px var(--mono);
  letter-spacing: .05em;
  color: var(--primary);
}

/* FEATURES TABLE */

.feature-table {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-row {
  display: grid;
  grid-template-columns:
    minmax(240px, .42fr) minmax(0, .58fr);
  gap: 24px;
  align-items: center;
  padding: 15px 23px;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row:nth-child(even) {
  background: var(--surface-soft);
}

.feature-row h3 {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* READING AND WRITING */

.process-card {
  display: flex;
  flex-direction: column;
  min-height: 215px;
}

.process-card .code-sample {
  margin-top: auto;
  padding: 13px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface-soft);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.code-sample span {
  font-size: 11px;
  color: var(--muted);
}

.code-sample strong {
  font: 600 12px var(--mono);
  color: var(--primary);
  overflow-wrap: anywhere;
}

.process-card .inline-learn {
  margin-top: auto;
  padding-top: 24px;
}

/* MORSE TIMING AND SOS */

.rhythm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.rhythm-lesson,
.sos-spotlight {
  border-radius: 17px;
  padding: 29px;
  min-width: 0;
}

.rhythm-lesson {
  background: var(--forest);
  color: var(--primary-ink);
}

.rhythm-lesson .timing-heading {
  color: var(--sage);
}

.timing-table {
  border-collapse: collapse;
  width: 100%;
  margin: 23px 0 16px;
  font-size: 12px;
}

.timing-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sage);
  padding: 0 0 10px;
  text-align: left;
}

.timing-table td {
  border-top: 1px solid #ffffff30;
  padding: 11px 0;
  color: var(--primary-ink);
}

.timing-table td:last-child {
  font-family: var(--mono);
  text-align: right;
  color: var(--sage);
}

.rhythm-lesson > p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--sage);
  margin: 0;
}

.sos-spotlight {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sos-spotlight h3 {
  font-size: 26px;
  letter-spacing: -1px;
  margin: 19px 0 4px;
  color: var(--ink-strong);
}

.sos-signals {
  font: 600 clamp(23px, 3.4vw, 40px) var(--mono);
  color: var(--primary);
  letter-spacing: .08em;
  margin: 10px 0 15px;
  white-space: nowrap;
  max-width: 100%;
}

.sos-spotlight p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 18px;
}

.sos-spotlight .button {
  margin-top: auto;
}

/* MORSE CODE SOUNDS */

.sounds-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 34px 0 17px;
}

.sounds-header h3 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.7px;
  margin: 0;
  color: var(--ink-strong);
}

.sounds-header p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  max-width: 315px;
}

.sounds-guides .editorial-card {
  background: var(--surface-soft);
}

/* COMMON TRANSLATIONS TABLE */

.section-postscript {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.section-postscript strong {
  color: var(--primary);
}

.reference-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.reference-table thead {
  background: var(--surface-soft);
}

.reference-table th,
.reference-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}

.reference-table thead th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10px;
}

.reference-table tbody th {
  font-size: 12px;
  color: var(--ink-strong);
  font-weight: 800;
  min-width: 160px;
}

.reference-table tbody tr:last-child th,
.reference-table tbody tr:last-child td {
  border-bottom: 0;
}

.reference-table code {
  white-space: normal;
  word-break: break-word;
  line-height: 1.8;
}

/* WHY CHOOSE US */

.value-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 20px;
}

.value-list > div {
  border-top: 2px solid var(--sage-strong);
  padding: 17px 4px 8px;
}

.value-list strong {
  display: block;
  color: var(--ink-strong);
  font-size: 13px;
  margin-bottom: 6px;
}

.value-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

/* LEARNING CTA */

.learn-more-banner {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 27px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.learn-more-banner h3 {
  font-size: 22px;
  letter-spacing: -.6px;
  margin: 6px 0;
  color: var(--ink-strong);
}

.learn-more-banner p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.learn-more-banner .button {
  flex-shrink: 0;
}

/* TABLET RESPONSIVENESS */

@media (max-width: 950px) {
  .content-section {
    padding-top: 65px;
  }

  .intro-layout {
    gap: 20px;
  }

  .editorial-card {
    padding: 20px;
  }

  .feature-row {
    grid-template-columns:
      minmax(180px, .4fr) minmax(0, .6fr);
  }
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 700px) {
  .content-section {
    padding-top: 55px;
  }

  .content-title > p {
    max-width: none;
  }

  .intro-layout,
  .rhythm-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-grid.three-up,
  .editorial-grid.two-up,
  .editorial-grid.five-up {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 13px 16px;
  }

  .feature-row h3 {
    font-size: 13px;
  }

  .editorial-banner,
  .learn-more-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .sounds-header {
    display: block;
  }

  .sounds-header p {
    margin-top: 8px;
  }

  .value-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-table th,
  .reference-table td {
    padding: 12px 13px;
  }
}

@media (max-width: 380px) {
  .history-facts > div {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 15px;
  }

  .sos-signals {
    font-size: 23px;
    letter-spacing: 0;
  }

  .rhythm-lesson,
  .sos-spotlight {
    padding: 19px;
  }
}

/* MorseZone Journal cards on the original homepage */
.homepage-journal{padding-top:70px}
.homepage-journal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.homepage-journal-card{display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:16px;padding:25px;min-width:0;min-height:225px;transition:border-color .15s,transform .15s}
.homepage-journal-card:hover{border-color:var(--focus);transform:translateY(-2px)}
.journal-card-category{font-size:11px;font-weight:800;color:var(--primary)}
.homepage-journal-card strong{font-size:18px;line-height:1.33;color:var(--ink-strong);letter-spacing:-.3px}
.homepage-journal-card>span:nth-of-type(2){font-size:12px;line-height:1.65;color:var(--muted)}
.homepage-journal-card b{font-size:12px;color:var(--primary);margin-top:auto;padding-top:10px}
.homepage-journal-card b span{margin-left:5px}
.homepage-journal-all{font-size:14px;font-weight:800;color:var(--primary);display:flex;align-items:center;justify-content:center;gap:9px;margin-top:23px;text-underline-offset:5px}
.homepage-journal-all:hover{text-decoration:underline}
@media(max-width:900px){.homepage-journal-grid{gap:10px}.homepage-journal-card{padding:19px}}
@media(max-width:680px){.homepage-journal{padding-top:55px}.homepage-journal-grid{grid-template-columns:1fr}.homepage-journal-card{min-height:165px}.homepage-journal-all{margin-top:19px}}

/* Homepage accessibility and responsive refinements */
:root[data-theme="dark"] .timing-card .timing-heading,
:root[data-theme="dark"] .timing-card .timing-example span,
:root[data-theme="dark"] .timing-card .timing-example small,
:root[data-theme="dark"] .timing-card .timing-foot { color: var(--primary-ink); }
:root[data-theme="dark"] .timing-card .timing-example i {background:var(--primary-ink);}
:root[data-theme="dark"] .timing-card .timing-example i.gap {background:transparent;border-color:var(--primary-ink);}
.editor-field:focus-within {outline:2px solid var(--focus);outline-offset:2px;}
.static-morse-reference {line-height:1.9;overflow-wrap:anywhere;}
:root[data-motion="reduced"] {scroll-behavior:auto;}
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after {animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
@media(max-width:1050px){.site-header .desktop-nav{display:none}.site-header .mobile-menu-button{display:inline-flex}.site-header .mobile-nav:not([hidden]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:12px 20px;background:var(--surface)}.site-header .mobile-nav a{padding:10px;text-align:center;}}
@media(max-width:640px){.mini-action{width:32px;height:32px}.stat-actions .button,.quiet-button,.quick-examples button,.alphabet-tabs button{min-height:40px}.timing-example>p{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px}.timing-example i{max-width:100%}.editor-text,.morse-text,.practice-actions input{font-size:16px}.examples-menu{max-width:calc(100vw - 54px);min-width:min(260px,calc(100vw - 54px));right:auto;left:0}.stat-actions .button{white-space:normal;min-width:0}.hero{padding-top:32px}}

/* =====================================================================
   MORSEZONE — FINAL HOMEPAGE REFINEMENTS
   Compatible with final SEO index.html and optimized script.js.
   Existing tokens, classes and interactive states remain intact.
   ===================================================================== */
:root {
  --shadow: 0 2px 8px rgba(24,60,37,.04);
  --on-forest-secondary: #E0EDE1;
  --on-forest-border: rgba(255,255,255,.24);
  --focus: #367650;
}
:root[data-theme="dark"] {
  --shadow: 0 2px 8px rgba(0,0,0,.12);
  --on-forest-secondary: #284535;
  --on-forest-border: rgba(23,48,33,.28);
  --focus: #A9DBA5;
}
/* Type and layout: retain hierarchy while improving small-text readability. */
body { font-size: 16px; line-height: 1.6; }
.hero h1 { letter-spacing: -.045em; }
.hero p { line-height: 1.7; }
.workspace { border-radius: 16px; }
.workspace-head > *, .editor-grid > *, .controls-panel > *,
.section-header > *, .footer-inner > *, .reference-top > * { min-width: 0; }
.input-guidance, .editor-footer, .stats-bar > span { font-size: 12px; }
.editor-text, .morse-text { font-size: 16px; line-height: 1.65; }
.editor-text { overflow-wrap: anywhere; }
.editor-field { align-self: stretch; }
.editor-field:focus-within { box-shadow: none; }
.tool-tab, .quiet-button, .button, .alphabet-tabs button { min-height: 44px; }
.icon-button { min-width: 44px; min-height: 44px; }
.mini-action { width: 32px; height: 32px; }
.text-link, .inline-learn { min-height: 28px; }
.stat-actions .button { min-height: 40px; }
.quick-examples button { min-height: 36px; }
.control-field select { min-height: 40px; }
.volume-field input[type="range"] { height: 8px; }
input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; }
/* Remove decorative prominence, keeping the functional light indicator. */
.card-icon { background: transparent; border-radius: 0; width: 30px; height: 34px; }
.link-card, .homepage-journal-card, .alpha-tile { transform: none; }
.link-card:hover, .homepage-journal-card:hover, .alpha-tile:hover { transform: none; }
.editorial-banner::before { display: none; }
.signal-lamp.on { box-shadow: 0 0 0 3px var(--sage); }
/* Dark/light forest panels use theme-aware secondary text. */
.timing-card .timing-heading, .timing-card .timing-example span,
.timing-card .timing-example small, .timing-card .timing-foot,
.rhythm-lesson .timing-heading, .timing-table th,
.timing-table td:last-child, .rhythm-lesson > p,
.editorial-banner p, .signal-decoration { color: var(--on-forest-secondary); }
.timing-example > p, .timing-table td { border-color: var(--on-forest-border); }
.timing-example i { background: var(--primary-ink); }
.timing-example i.gap { background: transparent; border-color: var(--primary-ink); }
/* Keep text and tables readable; wrap code rather than forcing page overflow. */
.reading-copy, .editorial-card p { line-height: 1.75; }
.editorial-card p, .feature-row p, .section-header > p,
.practice-content > p, .faq-list p { font-size: 14px; }
.section-header > p { line-height: 1.65; }
.faq-list summary { min-height: 48px; font-size: 15px; line-height: 1.5; }
.faq-list summary .icon { flex-shrink: 0; }
.faq-list p { max-width: 80ch; overflow-wrap: anywhere; }
.faq-list a, .reading-copy a:not(.button), .section-postscript a,
.static-morse-reference a { color: var(--primary); text-decoration: underline; text-underline-offset: .18em; }
.reference-table-wrap { max-width: 100%; }
.reference-table code, .static-morse-reference, .code-sample strong { overflow-wrap: anywhere; }
.static-morse-reference { margin: 0; font-size: 14px; line-height: 2; color: var(--ink); }
.static-morse-reference code { color: var(--primary); font-family: var(--mono); white-space: nowrap; }
.reference-board > .advanced-settings summary { min-height: 44px; }
.alpha-tile { min-width: 0; padding: 8px 2px; }
.alpha-tile small { letter-spacing: -.035em; font-size: 11px; overflow-wrap: anywhere; max-width: 100%; }
.alpha-tile[aria-pressed="true"] { border-color: var(--focus); }
/* Footer supports the expanded final HTML navigation. */
.footer-inner { display: grid; grid-template-columns: minmax(190px,.6fr) minmax(0,1.4fr); align-items: start; gap: 24px 36px; }
.footer nav { justify-content: flex-start; gap: 8px 20px; }
.footer nav a { font-size: 13px; line-height: 1.5; padding: 5px 0; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copyright { grid-column: 1/-1; border-top: 1px solid var(--border); padding-top: 15px; }
.keyer-dialog { max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; }
/* Navigation must not occupy horizontal space on tablet. */
@media (max-width: 1100px) {
  .site-header .desktop-nav { display: none; }
  .site-header .mobile-menu-button { display: inline-flex; }
  .site-header .mobile-nav:not([hidden]) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 12px 20px; gap: 6px; background: var(--surface); border-top: 1px solid var(--border); }
  .site-header .mobile-nav a { min-height: 44px; padding: 10px; border-radius: 8px; background: var(--surface-soft); text-align: center; overflow-wrap: anywhere; }
  .site-header .mobile-nav { max-height: calc(100dvh - 76px); overflow-y: auto; }
}
@media (min-width: 641px) and (max-width: 850px) {
  .learning-section, .practice-section { grid-template-columns: minmax(0,1fr); }
  .tool-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .alphabet-grid { grid-template-columns: repeat(7,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 78px; }
  .container { width: calc(100% - 28px); }
  .header-inner { gap: 8px; }
  .site-header .mobile-nav:not([hidden]) { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 10px 14px; }
  .site-header .mobile-nav { max-height: calc(100dvh - 63px); }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: clamp(30px,8vw,36px); }
  .hero p { font-size: 15px; }
  .workspace { padding: 14px 12px; }
  .tool-tabs { gap: 4px; }
  .tool-tab { min-width: 0; min-height: 44px; }
  .workspace-actions { justify-content: flex-start; }
  .workspace-actions .quiet-button { min-height: 44px; }
  .editor-field { min-height: 154px; }
  .editor-text { min-height: 80px; }
  .swap-control { width: 44px; height: 44px; }
  .control-field select { min-height: 44px; font-size: 16px; padding: 6px 8px; }
  .control-field label { white-space: normal; }
  .volume-field { min-width: 0; }
  .stat-actions .button, .quick-examples button, .alphabet-tabs button { min-height: 44px; }
  .advanced-content { gap: 16px; }
  .advanced-item select { max-width: 100%; font-size: 16px; }
  .practice-actions .button, .practice-actions input { min-height: 44px; }
  .features-strip p span, .features-strip strong { font-size: 12px; }
  .section-header h2 { font-size: clamp(24px,6vw,29px); }
  .section-header > p { max-width: none; }
  .reference-table tbody th { min-width: 95px; }
  .reference-table th, .reference-table td { padding: 12px 10px; }
  .alpha-tile small { font-size: 10px; }
  .footer-inner { grid-template-columns: minmax(0,1fr); text-align: left; gap: 18px; }
  .footer-inner nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 14px; justify-content: start; }
  .footer nav a { min-height: 36px; display: flex; align-items: center; }
}
@media (max-width: 380px) {
  .alphabet-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .controls-panel { column-gap: 8px; }
  .control-field { gap: 5px; }
  .tool-tab { font-size: 10px; padding: 7px 4px; }
  .tool-tab .icon { width: 14px; height: 14px; }
  .brand-mark { padding-right: 8px; }
  .brand { gap: 8px; font-size: 17px; }
  .header-actions { gap: 4px; }
  .timing-card, .rhythm-lesson, .sos-spotlight { padding: 18px; }
  .sos-signals { font-size: 21px; letter-spacing: 0; }
}
/* Honor user settings without suppressing functional progress updates. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .button, .tool-tab, .alpha-tile, .icon-button, .editor-field { border: 1px solid ButtonText; }
  :focus-visible { outline: 2px solid Highlight !important; }
  .signal-lamp.on { background: Highlight; }
}
