* { box-sizing: border-box; }

:root {
    color: #19352f;
    background: #f3eee4;
    font-family: Georgia, 'Times New Roman', serif;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 85% 10%, #d4e4d0 0, transparent 30%), #f3eee4;
}

.calculator-container {
    width: min(100%, 720px);
    padding: clamp(28px, 6vw, 58px);
    background: #fffdf8;
    border: 1px solid #d8d2c5;
    box-shadow: 12px 12px 0 #c7d7c0;
}

.intro { margin-bottom: 32px; }
.eyebrow, .result-label, .assumption { margin: 0; font: 700 0.75rem/1.2 Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow { color: #b25e3d; }
h1 { max-width: 520px; margin: 10px 0; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 0.92; font-weight: 500; letter-spacing: -0.04em; }
.description { max-width: 440px; margin: 0; color: #5d6c65; font: 1rem/1.5 Arial, sans-serif; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { color: #5d6c65; font: 700 0.78rem/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; }
label span { color: #b25e3d; }
input { display: block; width: 100%; margin-top: 8px; padding: 14px 12px; border: 1px solid #c8c9bf; border-radius: 0; color: #19352f; background: #f7f6f0; font: 1.1rem Georgia, serif; }
input:focus { outline: 2px solid #b25e3d; outline-offset: 2px; }
button { width: 100%; margin-top: 26px; padding: 16px 20px; border: 0; border-radius: 0; color: #fffdf8; background: #19352f; cursor: pointer; font: 700 0.8rem Arial, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
button:hover { background: #b25e3d; }
button span { margin-left: 8px; font-size: 1.1rem; }
#result { margin-top: 34px; padding: 24px; border-left: 5px solid #b25e3d; background: #e8f0e3; }
#result h2 { margin: 8px 0 20px; color: #19352f; font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 500; }
.result-label { color: #b25e3d; }
.result-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-details p { margin: 0; font: 0.8rem/1.4 Arial, sans-serif; }
.result-details span { display: block; color: #5d6c65; }
.result-details strong { display: block; margin-top: 4px; font: 1.25rem Georgia, serif; }
.error { margin: 0; color: #8e3e2b; font: 0.9rem/1.5 Arial, sans-serif; }
.assumption { margin-top: 18px; color: #78837b; font-size: 0.65rem; letter-spacing: 0.06em; }

@media (max-width: 520px) {
    body { padding: 12px; }
    .calculator-container { box-shadow: 6px 6px 0 #c7d7c0; }
    .input-grid, .result-details { grid-template-columns: 1fr; }
}