:root {
  color-scheme: light;
  --paper: #f7f7ed;
  --ink: #142720;
  --muted: #4c5e54;
  --green: #234c3c;
  --deep: #19392e;
  --line: #d9ded0;
  --lime: #d9f47b;
  --card: #fffff8;
  --serif: Georgia, 'Times New Roman', serif;
  font: 16px/1.5 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, p, h1, h2, h3, figure { margin: 0; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #975119; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 2; background: var(--card); padding: 12px; }
.wrap { width: min(100% - 96px, 1376px); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; font-weight: 750; font-size: 1.55rem; letter-spacing: -.055em; text-decoration: none; }
.brand-dot { color: #56732e; }
.mark { display: grid; gap: 2px; place-content: center; width: 31px; height: 31px; margin-right: 10px; border-radius: 7px; background: var(--green); transform: rotate(-8deg); }
.mark i { width: 16px; height: 3px; border-radius: 4px; background: var(--lime); }
.mark i:nth-child(2) { width: 12px; }
.mark i:nth-child(3) { width: 8px; }
nav { display: flex; gap: clamp(18px, 3vw, 45px); align-items: center; }
nav a, footer a, .hero-actions a { font-weight: 650; text-underline-offset: 5px; }
nav a, footer a { text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; }
.edition, .eyebrow, figcaption { font: 750 .74rem/1.4 'Segoe UI', system-ui, sans-serif; letter-spacing: .15em; }
.edition, .eyebrow { color: var(--green); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: clamp(36px, 6vw, 110px); padding: 35px 0; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 8px 0 12px; align-self: center; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 9px; }
.hero-copy .eyebrow span, figcaption span { height: 8px; width: 8px; border-radius: 50%; background: #6f8e34; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(4rem, 7vw, 7rem); line-height: .91; letter-spacing: -.072em; margin: 14px 0 20px; }
h1 em { color: #416345; font-weight: 400; }
.hero-copy > p:not(.eyebrow) { max-width: 465px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; margin-top: 23px; }
.hero-actions a span { margin-left: 6px; }
.primary, .outline { border: 1px solid var(--green); border-radius: 8px; padding: 10px 15px; font-weight: 700; min-height: 44px; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #152f25; }
.primary span, .outline span { margin-left: 8px; }
.outline { color: var(--green); background: transparent; }
.outline:hover { background: #e9eedf; }
.hero-media { border-radius: 15px; overflow: hidden; min-height: 330px; position: relative; background: #24493c; }
.hero-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
figcaption { position: absolute; bottom: 17px; left: 17px; display: flex; align-items: center; gap: 8px; color: white; background: var(--deep); border-radius: 5px; padding: 9px 12px; }
figcaption span { background: var(--lime); }
.section { scroll-margin-top: 23px; margin-top: 28px; }
.section + .section { padding-top: 26px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
h2 { font-size: clamp(2.1rem, 3.5vw, 3.4rem); line-height: 1; letter-spacing: -.055em; margin-top: 5px; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.badge { background: #e7eddc; color: var(--green); border-radius: 100px; padding: 6px 13px; font-size: .82rem; font-weight: 700; }
.planner-grid, .replay-grid, .data-grid { display: grid; gap: 16px; }
.planner-grid { grid-template-columns: .85fr 1.15fr; }
.replay-grid, .data-grid { grid-template-columns: 1fr 1fr; }
.card, .result-card { min-width: 0; border-radius: 14px; padding: clamp(17px, 2vw, 28px); }
.card { background: var(--card); border: 1px solid var(--line); }
.settings { display: grid; grid-template-columns: 1fr 1fr; column-gap: 15px; align-content: start; }
.settings h3, .settings .sub, label[for="coverage"], #coverage, #coverage-hint, .settings .outline { grid-column: 1 / -1; }
.settings label[for="baseline"] { grid-area: 3 / 1; }
.settings label[for="grams"] { grid-area: 3 / 2; }
.sub, .subtitle { color: var(--muted); margin-top: 4px; }
.subtitle { margin-bottom: 14px; }
label { display: block; font-weight: 650; font-size: .9rem; margin: 12px 0 5px; }
input, select, textarea { color: var(--ink); border: 1px solid #899c8e; border-radius: 7px; padding: 8px 10px; width: 100%; min-width: 0; min-height: 44px; background: #fff; }
textarea { resize: vertical; }
.unit { position: relative; }
.label-unit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.unit input { padding-right: 72px; }
.unit span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: .79rem; color: var(--muted); pointer-events: none; }
.hint { font-size: .87rem; color: var(--muted); margin-top: 6px; }
.settings .outline { justify-self: start; margin-top: 12px; }
.result-card { background: var(--deep); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.result-card .eyebrow { color: var(--lime); }
.result-top { display: flex; align-items: center; justify-content: space-between; }
.result-top span { color: var(--lime); font-size: 1.6rem; line-height: 1; }
.quantity { font-family: var(--serif); line-height: 1; margin: 5px 0 9px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.quantity strong { font-weight: 400; font-size: clamp(3.65rem, 7vw, 6.5rem); letter-spacing: -.064em; }
.quantity span { font-size: clamp(1.25rem, 2vw, 2rem); color: #e5eadc; }
#plan-note { color: #e5eadc; }
.result-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; padding: 13px 0; border-block: 1px solid #587266; }
.result-metrics div { display: flex; flex-direction: column; }
.result-metrics strong { color: var(--lime); font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.1; overflow-wrap: anywhere; }
.result-metrics span, .result-foot { color: #e5eadc; font-size: .9rem; }
.result-foot { margin-top: 11px; }
.bar-group { display: grid; gap: 17px; margin-top: 21px; }
.bar-label { font-size: .88rem; font-weight: 750; margin-bottom: 5px; }
.bar-line { display: grid; grid-template-columns: 91px minmax(0, 1fr) 58px; gap: 9px; align-items: center; margin-bottom: 5px; font-size: .82rem; }
.bar-line strong { text-align: right; font-variant-numeric: tabular-nums; }
.track { height: 12px; border-radius: 8px; background: #eef0e7; overflow: hidden; }
.fill { display: block; height: 100%; background: #59675e; border-radius: inherit; }
.suggested .fill { background: #627c2c; }
.scroll-table { overflow-x: auto; max-height: 300px; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: right; }
thead th { background: #edf1e4; color: var(--green); }
thead th:first-child, tbody th { text-align: left; }
tbody th { font-weight: 550; }
.callout { padding: 13px 17px; background: #ecf0e0; border-left: 3px solid #698638; border-radius: 4px; margin-top: 13px; color: #304439; }
.callout strong { margin-right: 7px; }
.data-form .primary { margin-top: 12px; }
.error { margin-top: 7px; color: #9a2c20; font-weight: 650; }
.method ol { margin: 15px 0; padding-left: 23px; }
.method li { padding-left: 4px; }
.method li + li { margin-top: 12px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 30px; padding: 18px 0 24px; color: var(--muted); font-size: .89rem; }
footer b { margin: 0 4px; }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 28px; }
  .edition { display: none; }
  .unit input { padding-right: 10px; }
  .unit span { display: none; }
  .label-unit { position: static; width: auto; height: auto; clip-path: none; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 58px; gap: 8px 16px; flex-wrap: wrap; padding: 8px 0; }
  .brand { font-size: 1.3rem; }
  .mark { width: 24px; height: 24px; margin-right: 7px; }
  nav { gap: 13px; font-size: .84rem; }
  nav a { padding-block: 8px; }
  .hero, .planner-grid, .replay-grid, .data-grid { grid-template-columns: 1fr; }
  .hero { padding: 22px 0; gap: 14px; }
  h1 { font-size: clamp(3.4rem, 13vw, 5.4rem); margin-bottom: 14px; }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .hero-media { min-height: 0; aspect-ratio: 2 / 1; }
  .result-card { grid-row: 1; }
  .section { margin-top: 23px; }
}
@media (max-width: 390px) {
  .settings { display: block; }
  .unit input { padding-right: 72px; }
  .unit span { display: block; }
  .label-unit { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
}
