:root {
  color-scheme: light;
    --lumielle-navy: #0b1730; --lumielle-gold: #b99157; --lumielle-ivory: #f7f2e9;
    --lumielle-sage: #a5ad99; --lumielle-ink: #171a21; --lumielle-white: #fffcf8; --lumielle-border: #ddd3c5;
    --ink: var(--lumielle-ink); --muted: #59616b; --accent: var(--lumielle-navy); --accent-hover: #192b46;
    --line: var(--lumielle-border); --paper: var(--lumielle-ivory);
    --soft: color-mix(in srgb, var(--lumielle-sage) 20%, var(--lumielle-white));
    --lumielle-support: color-mix(in srgb, var(--lumielle-sage) 32%, var(--lumielle-white));
    --subtle: var(--lumielle-ivory); --control: #747b80; --placeholder: #626972;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button, .unit-options label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--lumielle-navy); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--lumielle-navy); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.045em; margin-bottom: 16px; font-weight: 650; }
h2 { font-size: 1.6rem; letter-spacing: -0.025em; margin-bottom: 12px; }
h3 { font-size: 1.05rem; margin-bottom: 12px; }
p { margin-bottom: 18px; }
.site-header, main, footer { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 90px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 1.05rem; min-height: 44px; }
.brand-mark { display: inline-grid; place-content: center; background: var(--accent); color: white; width: 30px; height: 30px; border-radius: 8px; font-size: 24px; }
.uk { font-size: .7rem; letter-spacing: .08em; padding: 2px 6px; border: 1px solid var(--lumielle-gold); border-radius: 4px; vertical-align: middle; }
.header-note, .muted { color: var(--muted); }
.header-note { font-size: .8rem; }
.intro { padding: 46px 0 24px; }
.intro > p:last-child { color: var(--muted); font-size: 1.1rem; }
.eyebrow { font-size: .68rem; font-weight: 750; letter-spacing: .13em; color: var(--accent); margin-bottom: 16px; }
.calculator-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.card { background: var(--lumielle-white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 8px 30px #203b3705; }
.calculator > .muted { font-size: .9rem; margin-bottom: 24px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.unit-choice legend { font-size: .85rem; font-weight: 650; margin-bottom: 8px; }
.unit-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--subtle); border-radius: 9px; margin-bottom: 24px; }
.unit-options label { position: relative; cursor: pointer; }
.unit-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.unit-options span { display: block; padding: 10px 5px; text-align: center; border: 1px solid transparent; border-radius: 6px; font-weight: 650; font-size: .9rem; }
.unit-options small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.unit-options input:checked + span { background: var(--lumielle-white); border-color: var(--lumielle-navy); box-shadow: 0 1px 3px #203b3710; color: var(--accent); }
.unit-options input:focus-visible + span { outline: 3px solid var(--lumielle-navy); outline-offset: 2px; }
.field { margin-bottom: 20px; min-width: 0; }
.field > label { display: block; font-size: .95rem; font-weight: 650; margin-bottom: 7px; }
.field > label span { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 4px; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; border: 1px solid var(--control); background: var(--lumielle-white); border-radius: 7px; padding: 13px 48px 13px 14px; color: var(--ink); font-size: 1.15rem; min-height: 56px; }
.input-wrap input::placeholder { color: var(--placeholder); opacity: 1; }
.input-wrap > span { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
button { transition: none; display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; border-radius: 7px; padding: 14px 20px; min-height: 56px; background: var(--accent); color: white; font-weight: 650; cursor: pointer; }
button:hover { background: var(--accent-hover); }
button:disabled { opacity: .6; cursor: not-allowed; }
button span { font-size: 1.3rem; }
.privacy { text-align: center; font-size: .75rem; color: var(--muted); margin: 14px 0 0; }
.context { padding-top: 30px; }
.context h2 { font-size: 2rem; margin-bottom: 20px; }
.context > p:not(.eyebrow), .context-note p { color: var(--muted); font-size: .95rem; }
.context-note { border: 1px solid var(--line); border-left: 3px solid var(--lumielle-gold); border-radius: 8px; background: var(--lumielle-support); padding: 20px; margin: 26px 0 18px; scroll-margin-top: 20px; }
.context-note p:last-child { margin-bottom: 0; }
.suitability-link { font-size: .82rem; margin: 0 0 14px; }
.context > a { font-size: .85rem; }
.context-note p { margin-bottom: 12px; }
.small { font-size: .82rem; }
.field-error { color: #a12520; font-size: .85rem; margin: 7px 0 0; }
#form-error { margin: 0 0 16px; }
input[aria-invalid="true"] { border: 2px solid #a12520; }
.notice { background: #fff2d9; padding: 16px; }
.result { margin-top: 28px; border-top: 4px solid var(--accent); scroll-margin-top: 20px; }
.result-value { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.result-value strong { font-size: 3.5rem; line-height: 1.3; letter-spacing: -.04em; }
.category { background: var(--soft); border-radius: 6px; padding: 7px 14px; font-weight: 650; }
.range { border-block: 1px solid var(--line); margin: 24px 0; padding: 20px 0 4px; }
#weight-range { font-size: 1.4rem; font-weight: 650; margin-bottom: 6px; }
.information { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 38px; }
.section-intro { max-width: 660px; margin-bottom: 30px; }
.section-intro > p:last-child, .information-grid p { color: var(--muted); font-size: .95rem; }
.information-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
table { border-collapse: collapse; width: 100%; text-align: left; margin-bottom: 14px; font-size: .9rem; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 650; }
.sources { margin: 28px 0 40px; padding: 24px; background: var(--lumielle-support); border-radius: 10px; }
.sources h2 { font-size: 1.05rem; }
.sources p { font-size: .9rem; margin: 0; }
footer { border-top: 1px solid var(--line); padding: 26px 0 32px; display: flex; justify-content: space-between; gap: 20px; align-items: start; }
footer > span { font-size: .85rem; font-weight: 650; }
footer p { font-size: .75rem; color: var(--muted); text-align: right; margin: 0; }
.parent-brand { display: block; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; top: 8px; left: 8px; z-index: 10; padding: 12px; background: var(--lumielle-white); }
@media (max-width: 720px) {
  .site-header, main, footer { width: calc(100% - 32px); }
  .site-header { min-height: 70px; }
  .header-note, .desktop-break { display: none; }
  .intro { padding: 28px 0 12px; }
  .intro > p:last-child { font-size: 1rem; }
  .calculator-layout, .information-grid { grid-template-columns: 1fr; gap: 28px; }
  .card { padding: 24px 20px; }
  .context { padding: 0 4px; }
  .context h2 { font-size: 1.65rem; }
  .context h2 br { display: none; }
  .information { margin-top: 32px; padding-top: 30px; }
  footer { flex-direction: column; gap: 12px; }
  footer p { text-align: left; }
}
