:root {
  color-scheme: light;
  --ink: #211c19;
  --muted: #655b55;
  --paper: #f7f5f1;
  --orange: #ff6a34;
  --rust: #a63311;
  --line: #d8d0c7;
  --display: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.58 var(--body); }
h1, h2, h3, p, figure, dl { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #0b7664; outline-offset: 5px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 5; padding: .7rem 1rem; background: white; }
.shell { width: min(100% - 4rem, 75rem); margin-inline: auto; }
.top { color: var(--paper); background: var(--ink); border-bottom: 1px solid #4c413b; }
.top-inner, .foot-inner { min-height: 4.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 740 1.45rem/1 var(--display); letter-spacing: -.045em; text-decoration: none; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.3rem); }
nav a { text-decoration: none; font-weight: 600; }
nav a:hover, nav a:focus-visible { color: #ff9d7b; }
.hero { background: var(--ink); color: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 1.01fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 7.4rem); }
.eyebrow { color: var(--rust); font: 700 .84rem/1.45 var(--body); letter-spacing: .09em; text-transform: uppercase; }
.hero .eyebrow { color: #ff9b76; }
h1, h2, h3 { font-family: var(--display); font-weight: 750; }
h1 { margin: .75rem 0 1.1rem; font-size: clamp(3.6rem, 6.1vw, 6.25rem); line-height: .97; letter-spacing: -.064em; }
h1 span { color: var(--orange); }
h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.04; letter-spacing: -.048em; }
.hero-copy > p:not(.eyebrow) { max-width: 31rem; color: #ddd0c6; font-size: 1.125rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.05rem; padding: .6rem 1rem; border: 1px solid transparent; border-radius: .25rem; font-weight: 750; text-decoration: none; text-align: center; }
.primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.primary:hover { background: #ff895e; border-color: #ff895e; }
.hero .primary, .workbook .primary { margin-top: 1.65rem; }
.hero-visual img { width: 100%; aspect-ratio: 1.25; object-fit: cover; object-position: 50% 59%; border-radius: .45rem .45rem 0 0; }
.hero-visual figcaption, .sheet-head { display: flex; justify-content: space-between; gap: .75rem; padding: .7rem .9rem; color: #e3d8cf; background: #342a24; font-size: .875rem; }
.hero-visual figcaption { border-radius: 0 0 .45rem .45rem; }
.calculator, .faq { padding-block: clamp(3.4rem, 7vw, 6.1rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.1rem 3rem; margin-bottom: 2rem; }
.section-head h2, .workbook h2 { margin: .4rem 0 0; }
.section-head > p { max-width: 25rem; color: var(--muted); }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); align-items: start; }
.form-card { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .5rem; background: #fff; }
fieldset { border: 0; margin: 0; min-inline-size: 0; padding: 0; }
legend, summary { font-weight: 750; }
.form-card legend, .form-card summary { font-size: 1.14rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
legend + .fields { margin-top: .6rem; }
.fields label { display: grid; grid-template-rows: 1fr auto; align-items: end; gap: .2rem; color: #443a34; font-size: .9rem; font-weight: 650; }
.fields input, .fields select { width: 100%; min-width: 0; height: 2.8rem; border: 1px solid #b8aca2; border-radius: .23rem; background: #fdfcfb; color: var(--ink); padding-inline: .65rem; font-size: 1rem; font-weight: 590; }
.fields select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg, transparent 48%, var(--ink) 50%, var(--ink) 70%, transparent 72%) calc(100% - 15px) 51% / 5px 6px no-repeat, linear-gradient(135deg, transparent 48%, var(--ink) 50%, var(--ink) 70%, transparent 72%) calc(100% - 10px) 51% / 5px 6px no-repeat, #fdfcfb; }
.fields input[aria-invalid="true"] { border: 2px solid #ad3411; background: #fff2e9; }
.partial { background: #fcf1e9; border-radius: .25rem; margin-top: .95rem; padding: .75rem; }
.partial > p { margin-bottom: .55rem; font-size: .875rem; color: #75452f; }
.help, .file-note, .result-note { margin-top: .7rem; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.form-card details { border-top: 1px solid var(--line); margin-top: 1.05rem; padding-top: .85rem; }
summary { cursor: pointer; }
.inside { margin-top: .65rem; }
.outline { margin-top: 1.3rem; background: #fff; border-color: #9d8f83; color: var(--ink); }
.outline:hover { background: #f7efe7; }
.result-card { position: sticky; top: 1rem; min-width: 0; border-radius: .5rem; overflow: hidden; background: var(--ink); color: var(--paper); }
.result-top { background: var(--orange); color: var(--ink); padding: clamp(1.2rem, 3vw, 2rem); }
.result-top h3 { font-size: 1.15rem; }
.price { display: block; font: 770 clamp(2.35rem, 5vw, 4.6rem)/1.02 var(--display); letter-spacing: -.052em; margin-block: .25rem; overflow-wrap: anywhere; }
.result-top p { font-size: .875rem; }
#result-details, .validation { padding: clamp(1rem, 3vw, 1.55rem); }
.validation, .notice { background: #ffe9db; color: #722907; }
.notice { margin-bottom: 1rem; padding: .7rem 1rem; }
.results > div { display: grid; grid-template-columns: 1fr auto; gap: .65rem; border-bottom: 1px solid #51423b; padding-block: .58rem; font-size: .95rem; }
.results > div:nth-last-child(-n+3) { font-weight: 700; }
.results > div:last-child { color: #ffb99e; }
.results dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.result-button { margin-top: 1rem; background: #fff6ed; color: var(--ink); }
.result-button:hover { background: #ffddcb; }
.result-note { color: #e4d4c8; }
.workbook { padding-block: clamp(3.1rem, 6vw, 5.4rem); background: #efe4d7; }
.workbook-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 7vw, 6rem); align-items: center; }
.workbook h2 + p { margin-top: .8rem; max-width: 34rem; }
.sample-sheet { background: #fffaf5; border: 1px solid #c3b6aa; border-radius: .4rem; overflow: hidden; }
.sample-sheet table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.sample-sheet th, .sample-sheet td { padding: .75rem; border-bottom: 1px solid #dfd4ca; }
.sample-sheet th { text-align: left; }
.sample-sheet th:not(:first-child), .sample-sheet td { text-align: right; }
.sample-sheet thead { background: #f7ece2; }
.sample-sheet tbody tr:last-child { background: #ffddca; font-weight: 750; }
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.4rem 3.5rem; }
.faq details { padding: .75rem 0 1rem; border-bottom: 1px solid var(--line); }
.faq details p { margin-top: .6rem; color: var(--muted); }
.foot { border-top: 1px solid var(--line); }
.foot p { color: var(--muted); font-size: .875rem; }
@media (max-width: 59rem) {
  .hero-inner { gap: 1.75rem; }
  h1 { font-size: clamp(3.2rem, 7.25vw, 4.7rem); }
  .wide-only { display: none; }
  .result-card { position: static; }
}
@media (max-width: 48rem) {
  .shell { width: min(100% - 2rem, 75rem); }
  .hero-inner, .calculator-layout, .workbook-grid, .faq { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 2.8rem; }
  .hero-visual img { aspect-ratio: 1.55; }
  .section-head { display: grid; }
}
@media (max-width: 25rem) {
  .top-inner .brand { font-size: 1.2rem; }
  .top-inner .brand img { width: 1.6rem; height: 1.6rem; }
  nav { gap: .7rem; font-size: .88rem; }
  .fields { gap: .75rem .55rem; }
  .foot-inner { align-items: flex-start; flex-direction: column; padding-block: .8rem; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; color: black; }
  .top, .hero, .section-head > p, .form-card, .workbook, .faq, .foot, .result-button, .result-note, .skip { display: none !important; }
  .shell { width: 100%; }
  .calculator { padding: 0; }
  .calculator-layout { display: block; }
  .result-card, .result-top { position: static; color: black; background: white; }
  .result-card { border: 1px solid #555; }
  .results > div { border-color: #aaa; }
  .results > div:last-child { color: black; }
}
