:root { color-scheme: light; --ink: #173c38; --muted: #536660; --paper: #f5f3ea; --line: #cbd3c8; --accent: #c6e579; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 'Segoe UI', sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, input:focus-visible { outline: 3px solid #51851c; outline-offset: 4px; }
.wrap { width: min(1100px, calc(100% - 48px)); margin: auto; }
header { border-bottom: 1px solid var(--line); }
.header-row { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font: bold 25px Georgia, serif; text-decoration: none; letter-spacing: -.7px; }
.brand span { display: inline-block; width: 13px; height: 13px; margin-right: 10px; background: var(--ink); transform: rotate(45deg); }
.header-note, .eyebrow, .status { font: 12px/1.5 Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.header-note { color: var(--muted); }
main { padding-top: 54px; padding-bottom: 70px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 20px; font: normal clamp(38px, 6.5vw, 70px)/1.08 Georgia, serif; letter-spacing: -.045em; }
h2 { font: normal 31px/1.2 Georgia, serif; letter-spacing: -.025em; }
h3 { font-size: 18px; line-height: 1.4; }
.eyebrow { margin-bottom: 22px; color: var(--muted); }
.intro { max-width: 660px; font-size: 19px; color: var(--muted); margin-bottom: 36px; }
.hero { padding: 18px 0 28px; }
.hero h1 { max-width: 760px; }
.hero em { font-weight: normal; color: #54782e; }
.directory-heading { display: flex; gap: 20px; justify-content: space-between; align-items: baseline; margin-top: 35px; }
.directory-heading p { font: 13px Consolas, monospace; color: var(--muted); }
.directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tool-entry { padding: 19px 16px 19px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; min-width: 0; }
.tool-entry:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.tool-entry .number { color: var(--muted); font: 12px Consolas, monospace; flex: 0 0 25px; }
.tool-entry h3 { margin-bottom: 4px; }
.tool-entry p { margin: 0; font-size: 14px; color: var(--muted); }
.status { font-size: 10px; white-space: nowrap; }
.live { background: var(--accent); padding: 3px 7px; }
.calculator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 48px; }
.calculator-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calculator-grid.one { grid-template-columns: minmax(0, 720px); }
.calculator { min-width: 0; padding: 25px; border: 1px solid var(--line); background: #fffef9; border-top: 4px solid var(--ink); }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 17px; }
input { display: block; width: 100%; min-width: 0; border: 1px solid #9caea1; border-radius: 0; background: #fff; color: var(--ink); padding: 11px 12px; font: 19px 'Segoe UI', sans-serif; margin-top: 6px; }
.result-box { margin: 25px -25px -25px; padding: 20px 25px; background: #edf2df; min-height: 132px; }
.result-label { color: var(--muted); font: 11px Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 9px; }
output { display: block; font: 28px/1.3 Georgia, serif; overflow-wrap: anywhere; }
.error { color: #a03522; font: 17px/1.5 'Segoe UI', sans-serif; }
[data-note] { font-size: 13px; color: var(--muted); margin: 9px 0 0; }
.unit-field { max-width: 360px; margin-bottom: 25px; }
.content-section { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 35px; max-width: 850px; }
.content-section p { max-width: 740px; }
code { font: .88em/1.7 Consolas, monospace; background: #e7ebdf; padding: 3px 5px; overflow-wrap: anywhere; }
.faq { margin: 25px 0; }
.faq h3 { margin-bottom: 7px; }
.faq p { color: var(--muted); }
.related { padding: 0; list-style: none; display: flex; gap: 14px 26px; flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .calculator-grid, .calculator-grid.two { grid-template-columns: minmax(0, 1fr); } .header-note { max-width: 120px; text-align: right; } }
@media (max-width: 560px) { .wrap { width: calc(100% - 32px); } main { padding-top: 34px; } .directory { grid-template-columns: minmax(0, 1fr); } .tool-entry:nth-child(even) { padding-left: 0; border-left: 0; } .directory-heading { display: block; } .header-row { min-height: 74px; } h1 { font-size: 40px; } .intro { font-size: 17px; } }

select { display: block; width: 100%; min-width: 0; margin-top: 6px; padding: 11px 8px; background: white; color: var(--ink); border: 1px solid #9caea1; font: inherit; }
select:focus-visible { outline: 3px solid #51851c; outline-offset: 4px; }
h1, h3, .intro { overflow-wrap: anywhere; }
