:root { color-scheme: light; font-family: system-ui, sans-serif; color: #243e35; background: #f5f1e6; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 15%, #fff 0 3px, transparent 4px), radial-gradient(circle at 80% 70%, #fff 0 4px, transparent 5px), #f5f1e6; background-size: 95px 105px, 145px 160px, auto; border-top: 8px solid #8e2935; }
main { max-width: 1050px; min-height: 85vh; margin: auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 2rem; }
.illustration img { width: 100%; height: auto; display: block; }
.card { background: #fffdf8; border: 1px solid #dcd8ca; border-radius: 22px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 0 16px 45px #253e3510; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: #8e2935; }
h1 { font-family: Georgia, serif; font-size: clamp(2.7rem, 6vw, 4rem); font-weight: normal; margin: .4rem 0 1rem; }
p { line-height: 1.65; }
label { display: block; font-weight: 650; margin: 1.7rem 0 .5rem; }
input { width: 100%; padding: .8rem; border: 1px solid #7a8981; border-radius: 7px; font: 1.1rem monospace; letter-spacing: .08em; color: #243e35; background: white; }
.hint, .footnote { font-size: .83rem; color: #53675c; }
.hint { margin-top: .4rem; }
button { width: 100%; padding: .95rem; border: 0; border-radius: 7px; background: #8e2935; color: white; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { background: #70202a; }
button:disabled { opacity: .7; cursor: wait; }
:focus-visible { outline: 3px solid #b66d00; outline-offset: 4px; }
#result:not(:empty) { margin-top: 1.4rem; padding: 1rem; border: 1px solid #c7d3c8; background: #edf3ec; border-radius: 8px; overflow-wrap: anywhere; }
#result strong { display: block; font-family: Georgia, serif; font-size: 2rem; margin-top: .4rem; }
footer { text-align: center; padding: 1rem 1.5rem 2rem; font-size: .85rem; color: #53675c; }
@media (max-width: 650px) { main { grid-template-columns: 1fr; padding-top: 1.2rem; gap: .3rem; } .illustration { max-width: 170px; margin: auto; } }
