:root { color-scheme: light; --paper: #f7f6ef; --ink: #282b25; --muted: #687062; --line: #dedfd3; --lime: #d4f56a; --charcoal: #272c25; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, a, select, summary, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #647b20; outline-offset: 4px; }
textarea:focus-visible { outline: 2px solid #91aa4e; outline-offset: -3px; border-radius: 8px; }
button:disabled { cursor: default; opacity: .48; }
.page-shell { max-width: 1240px; padding: 0 44px; margin: auto; }
.site-header { height: 112px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -.6px; }
.brand-subtitle { display: block; margin-top: 5px; font-size: 11px; font-weight: 450; letter-spacing: .05px; color: var(--muted); }
.brand-symbol { display: flex; gap: 3px; transform: rotate(-7deg); }
.brand-symbol span { width: 26px; height: 31px; background: var(--ink); color: var(--paper); border-radius: 7px; display: grid; place-items: center; box-shadow: 0 3px 0 #9b9f91; font-size: 17px; }
.brand-symbol span + span { background: var(--lime); color: var(--ink); transform: translateY(5px); }
.local-badge { font-size: 12px; display: flex; align-items: center; gap: 7px; color: #555d4e; white-space: nowrap; }
.local-badge > span, .live-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #6c8b38; display: inline-block; }
.intro { padding: 56px 0 36px; display: flex; justify-content: space-between; align-items: center; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 750; margin: 0 0 15px; color: #767d6e; }
h1 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.055; letter-spacing: -2.6px; margin: 0; font-weight: 750; }
.intro-description { font-size: 16px; line-height: 1.75; color: #62695c; margin: 20px 0 0; }
.wrong-word { text-decoration: line-through; text-decoration-color: #a3a996; color: #89907e; }
.right-word { color: var(--ink); font-weight: 650; box-shadow: inset 0 -.55em 0 #e0efa6; }
.keyboard-art { width: 300px; height: 190px; position: relative; margin-right: 30px; flex-shrink: 0; }
.keycap { width: 112px; height: 112px; position: absolute; border-radius: 22px; font-weight: 650; padding: 20px 23px; display: flex; justify-content: space-between; align-items: flex-start; border: 1px solid #d9dcca; }
.keycap span { font-size: 45px; line-height: 1; letter-spacing: -2px; }
.keycap small { align-self: flex-end; font-size: 17px; font-weight: 500; }
.keycap-back { left: 14px; top: 4px; background: #e8e9df; transform: rotate(-13deg); box-shadow: 0 8px 0 #d1d4c6, 0 17px 24px #343b2610; color: #747d65; }
.keycap-front { left: 118px; top: 42px; background: var(--lime); transform: rotate(10deg); box-shadow: 0 8px 0 #a8c24e, 0 20px 30px #343b2615; border-color: #c0db69; }
.key-arrow { position: absolute; font-size: 42px; left: 214px; top: 0; color: #818b71; transform: rotate(-19deg); }
.keyboard-caption { position: absolute; left: 12px; bottom: 0; font-size: 11px; line-height: 1.5; color: #858b7a; transform: rotate(-5deg); }
.converter { border: 1px solid #d7dacf; border-radius: 21px; background: #fffef9; overflow: hidden; box-shadow: 0 16px 42px #313a2010, 0 2px 5px #313a2003; }
.converter-toolbar { padding: 23px 26px; display: grid; grid-template-columns: minmax(200px, 1fr) 44px minmax(200px, 1fr) auto; align-items: end; column-gap: 18px; border-bottom: 1px solid var(--line); }
.layout-control > label { display: block; font-size: 11px; color: #717866; margin-bottom: 8px; }
.select-wrap { position: relative; }
.select-wrap::after { content: "⌄"; position: absolute; right: 12px; top: 8px; color: #7b836e; pointer-events: none; }
select { width: 100%; min-height: 43px; background: #f4f5ec; border: 1px solid #e1e4d8; border-radius: 9px; padding: 10px 34px 10px 12px; font-size: 13px; font-weight: 600; color: var(--ink); appearance: none; }
.swap-button { background: transparent; border: 1px solid #dfe3d7; border-radius: 50%; height: 39px; width: 39px; font-size: 24px; margin-bottom: 2px; transition: background .15s, transform .15s; }
.swap-button:hover { background: #edf3dd; transform: rotate(180deg); }
.live-badge { align-self: end; margin: 0 0 15px 18px; display: flex; align-items: center; gap: 6px; color: #748365; font-size: 10px; white-space: nowrap; }
.text-panels { display: grid; grid-template-columns: 1fr 1fr; }
.text-panel { min-width: 0; padding: 23px 26px 18px; }
.input-panel { background: #fffef9; }
.output-panel { background: var(--charcoal); color: #f2f3e9; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; margin-bottom: 14px; }
.panel-heading label { font-size: 12px; font-weight: 650; }
.text-button { padding: 5px 0 5px 8px; background: transparent; border: 0; font-size: 11px; color: #6b735f; text-decoration: underline; text-decoration-color: #ccd2be; text-underline-offset: 4px; }
.text-button:not(:disabled):hover { color: #2e4521; }
.result-state { font-size: 10px; color: #c8da9a; background: #d6ed9d10; border: 1px solid #c4df8b22; border-radius: 20px; padding: 4px 8px; }
textarea { display: block; width: 100%; min-height: 226px; resize: vertical; padding: 9px 4px; margin: 0 -4px; border: 0; background: transparent; color: inherit; line-height: 1.7; font-size: 18px; font-weight: 400; overflow-wrap: anywhere; }
textarea::placeholder { color: #b2b7a8; opacity: 1; }
.output-panel textarea::placeholder { color: #87917e; }
.output-panel textarea:focus-visible { outline-color: #cced7a; }
.panel-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; color: #8a917f; font-size: 10px; line-height: 1.5; min-height: 20px; padding-top: 12px; }
.panel-footer > span:last-child { white-space: nowrap; }
.output-panel .panel-footer { color: #a5af9b; }
.converter-bottom { padding: 17px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e5e7dd; min-height: 80px; }
.detection { font-size: 11px; color: #747e65; line-height: 1.55; margin: 0; max-width: 51%; }
.detection > span { color: #91a574; margin-right: 5px; }
.detection[data-warning="true"] { color: #7e6733; }
.copy-group { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.shortcut { font-size: 9px; color: #8e9682; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--lime); min-height: 44px; padding: 12px 19px; border-radius: 9px; border: 1px solid #c1dc67; font-size: 12px; font-weight: 700; box-shadow: 0 2px 0 #b6ce67; transition: background .15s; }
.copy-button > span:first-child { font-size: 20px; line-height: .8; }
.copy-button:not(:disabled):hover { background: #c9ee4f; }
.copy-button:not(:disabled):active { transform: translateY(1px); box-shadow: 0 1px 0 #b6ce67; }
.under-tool { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 3px; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 10px; color: #7d8571; }
.examples > span { margin-right: 2px; }
.examples button { background: transparent; border: 1px solid #dcdfd1; border-radius: 20px; padding: 6px 9px; font-size: 10px; color: #707b60; }
.examples button:hover { background: #e8eedb; border-color: #b6c69a; }
.privacy { font-size: 10px; color: #7e8771; line-height: 1.6; margin: 0; }
.privacy > span { color: #7b9159; font-size: 17px; vertical-align: -1px; margin-right: 4px; }
.explanation { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 2px; }
.explanation summary { cursor: pointer; font-size: 12px; font-weight: 550; padding: 20px 2px; color: #59634c; }
.explanation-content { max-width: 850px; padding: 0 2px 16px; color: #737b68; font-size: 12px; line-height: 1.8; }
.explanation-content p { margin: 0 0 12px; }
.more-tools { padding: 30px 0 32px; }
.more-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.more-heading h2 { font-size: 13px; font-weight: 600; margin: 0; }
.more-heading > span { font-size: 10px; color: #919781; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project-card { text-decoration: none; border: 1px solid #dde0d2; border-radius: 13px; background: #f4f4ea; padding: 18px 20px; display: flex; align-items: center; gap: 14px; transition: border-color .15s, background .15s; }
.project-card:hover { background: #eff1e3; border-color: #bac6a1; }
.project-icon { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; }
.estimate-icon { background: #e2e9d3; color: #556a38; font-size: 29px; font-weight: 400; }
.catalog-icon { background: #e9e3d5; color: #83715b; font-size: 14px; font-family: Georgia, serif; font-style: italic; }
.project-card strong { font-size: 12px; font-weight: 650; }
.project-description { display: block; color: #838b76; font-size: 10px; margin-top: 5px; }
.external-arrow { margin-left: auto; color: #8e997d; font-size: 20px; }
.site-footer { padding: 25px 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); color: #939a86; font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 5; padding: 12px 16px; border-radius: 8px; background: var(--lime); text-decoration: none; }
.skip-link:focus { top: 16px; }
.noscript { position: fixed; bottom: 0; width: 100%; background: #272c25; color: #fff; padding: 18px; text-align: center; font-size: 14px; }
@media (min-width: 1440px) { .intro { padding-top: 64px; } }
@media (max-width: 1050px) { .page-shell { padding: 0 28px; } .live-badge { display: none; } .converter-toolbar { grid-template-columns: 1fr 44px 1fr; } .keyboard-art { margin-right: 0; transform: scale(.9); transform-origin: right; width: 270px; } .shortcut { display: none; } .under-tool { align-items: flex-start; flex-direction: column; gap: 12px; } }
@media (max-width: 700px) { .page-shell { padding: 0 18px; } .site-header { height: 86px; } .brand { font-size: 18px; gap: 10px; } .brand-subtitle { font-size: 9px; } .local-badge { font-size: 0; gap: 0; } .local-badge > span { width: 8px; height: 8px; } .intro { padding: 38px 0 28px; } h1 { font-size: 39px; letter-spacing: -1.8px; } .intro-description { font-size: 14px; margin-top: 17px; } .keyboard-art { display: none; } .eyebrow { margin-bottom: 13px; font-size: 9px; } .converter { border-radius: 16px; } .converter-toolbar { padding: 17px 14px; column-gap: 9px; grid-template-columns: minmax(0,1fr) 33px minmax(0,1fr); } .layout-control > label { font-size: 10px; } select { font-size: 11px; padding-left: 9px; padding-right: 24px; min-height: 42px; } .select-wrap::after { right: 8px; } .swap-button { width: 32px; height: 32px; font-size: 21px; margin-bottom: 5px; } .text-panels { grid-template-columns: 1fr; } .text-panel { padding: 18px; } .panel-heading { margin-bottom: 7px; } textarea { min-height: 166px; font-size: 17px; } .panel-footer { font-size: 9px; padding-top: 8px; } .converter-bottom { flex-direction: column; align-items: stretch; gap: 15px; padding: 17px 18px 19px; } .detection { max-width: none; font-size: 11px; } .copy-button, .copy-group { width: 100%; } .copy-button { min-height: 47px; font-size: 13px; } .under-tool { padding: 18px 1px; } .examples { gap: 6px; line-height: 1.8; } .examples > span { width: 100%; } .privacy { font-size: 10px; } .project-grid { grid-template-columns: 1fr; gap: 10px; } .project-card { padding: 15px 16px; } .more-tools { padding-top: 25px; } .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; } }
@media (max-width: 360px) { .page-shell { padding: 0 12px; } h1 { font-size: 35px; } .converter-toolbar { column-gap: 5px; padding: 14px 10px; } select { font-size: 10px; } .panel-footer { flex-wrap: wrap; gap: 5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
/* The aggregate remains secondary to the text tool and fits narrow viewports. */
.usage-counter { margin: 1.25rem 0; padding: .9rem 1.1rem; border: 1px solid #deded2; border-radius: 14px; background: #f1f2e9; color: #49534b; }
.counter-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.counter-heading p { margin: 0; font-size: .95rem; }
#counter-value { color: #244c39; font-variant-numeric: tabular-nums; font-size: 1.2rem; }
#counter-language { width: auto; min-width: 4.5rem; padding: .35rem .5rem; font: inherit; border: 1px solid #c2c9bb; border-radius: 7px; background: #fff; }
.counter-date, .counter-note { margin: .35rem 0 0; font-size: .8rem; line-height: 1.5; }
.counter-note { max-width: 75ch; }
