@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-serif-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-serif-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #241c14;
  --muted: #564b40;
  --line: #e4d7c4;
  --rule: #d9cbb6;
  --paper: #f4efe4;
  --card: #fffcf7;
  --navy: #1d4e89;
  --navy-bg: #e7eef4;
  --copper: #8c4a2f;
  --copper-bg: #f6e6d4;
  --sans: ui-sans-serif, system-ui, sans-serif;
  --serif: "IBM Plex Serif", "Iowan Old Style", Palatino, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image: url("paper-grain.png");
  background-repeat: repeat;
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}
main { flex: 1 0 auto; }
a { color: inherit; }
.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  padding: 8px 12px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  z-index: 2;
}
.wrap {
  width: min(42rem, calc(100% - 32px));
  margin: 0 auto;
}
.top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mark {
  width: 14px;
  height: 14px;
  background: linear-gradient(90deg, var(--navy) 50%, var(--copper) 50%);
  flex: none;
}
.nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--ink); }
.pitch {
  margin: 40px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.choices {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}
.choice {
  display: block;
  padding: 16px 16px 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(90, 58, 24, 0.04);
  text-decoration: none;
}
.choice.compare { border-left-color: var(--copper); }
.choice strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.choice span { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
.page-title {
  margin: 24px 0 14px;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.field { display: block; margin: 0 0 14px; }
fieldset.field { border: 0; margin: 0 0 14px; padding: 0; min-inline-size: 0; }
.name, legend.name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  padding: 0;
}
input, select {
  width: 100%;
  height: 44px;
  font: inherit;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0 12px;
}
input:focus-visible, select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.help { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.ages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ages label {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}
.ages input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.ages label:focus-within { outline: 2px solid var(--navy); outline-offset: 1px; }
.ages label:has(input:checked) {
  background: #f6e3c4;
  color: var(--ink);
  border-color: #7a5a38;
  box-shadow: inset 0 0 0 1px #7a5a38;
}
.result {
  margin-top: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px 10px;
  box-shadow: 0 10px 28px rgba(90, 58, 24, 0.05);
}
.result h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.piece, .figure { margin: 0; }
.piece { padding: 8px 10px; border-radius: 6px; }
.piece span, .figure span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.piece strong, .figure strong {
  display: block;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.deferral { background: var(--navy-bg); color: var(--navy); }
.employer { background: var(--copper-bg); color: var(--copper); }
.figure { padding: 4px 0 2px; }
.figure strong { font-size: 36px; color: var(--navy); }
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 8px 0 0;
  font-variant-numeric: tabular-nums;
}
.row.total {
  font-weight: 600;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 17px;
}
.row.room { color: var(--muted); font-size: 15px; }
.prompt { margin: 4px 0; }
.fine { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  caption-side: top;
  padding: 0 0 8px;
}
th, td { padding: 8px 0; border-top: 1px solid var(--line); text-align: right; }
th:first-child, td:first-child { text-align: left; font-weight: 400; }
thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-top: 0;
}
thead th:nth-child(2) { color: var(--navy); }
thead th:nth-child(3) { color: var(--copper); }
details { margin-top: 12px; }
details summary {
  cursor: pointer;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 600;
}
details[open] summary { border-radius: 6px 6px 0 0; }
details .field { margin: 0; padding: 12px; background: var(--card); border: 1px solid var(--line); border-top: 0; }
details .field:last-child { border-radius: 0 0 6px 6px; }
.ad-slot {
  display: none;
  place-items: center;
  min-height: 100px;
  margin: 20px 0 0;
  border: 1px dashed #d4c4a8;
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.explain { margin-top: 8px; padding-bottom: 8px; line-height: 1.6; }
.explain h2 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  margin: 28px 0 8px;
}
.explain h3 { font-size: 17px; line-height: 1.3; margin: 18px 0 6px; }
.explain p, .explain li { margin: 0 0 10px; }
.explain ul, .explain ol { margin: 0 0 10px; padding-left: 1.2em; }
.explain a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.about p { margin: 0 0 12px; }
.about a { color: var(--navy); }
.about .lede { font-size: 18px; line-height: 1.45; }
.about .choices { margin-bottom: 18px; }
.about .choice { color: inherit; text-decoration: none; }
.contact-card .help { margin-top: 8px; line-height: 1.4; }
.contact-card {
  margin: 28px 0 8px;
  padding: 22px 20px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(90, 58, 24, 0.04);
}
.contact-card h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.contact-card p { margin: 0 0 16px; }
.contact-card .field { margin-bottom: 14px; }
.contact-card .send { min-width: 9.5rem; }
textarea {
  width: 100%;
  min-height: 168px;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px;
  resize: vertical;
}
textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.send {
  height: 44px;
  padding: 0 18px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.send:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.foot { margin-top: 36px; border-top: 1px solid var(--line); }
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 16px 0 28px;
  font-size: 13px;
  color: var(--muted);
}
.foot p { margin: 0; }
.foot nav { display: flex; gap: 16px; font-weight: 600; }
.foot a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.foot a[aria-current="page"] { color: var(--ink); text-decoration: none; }
@media (min-width: 720px) {
  .ad-slot { min-height: 90px; }
}
@media (max-width: 640px) {
  .nav-tools { display: none; }
  .top .wrap { min-height: 44px; }
  .page-title { font-size: 22px; margin: 10px 0 6px; }
  .pitch { margin-top: 22px; font-size: 28px; }
  .field, fieldset.field { margin-bottom: 6px; }
  input, select { height: 38px; }
  .ages { gap: 6px; }
  .ages label { min-height: 32px; font-size: 14px; }
  .help { font-size: 12px; margin-top: 2px; }
  .result { padding: 8px 10px 6px; }
  .result h2 { font-size: 16px; margin-bottom: 6px; }
  .split { gap: 6px; }
  .piece { padding: 6px 8px; }
  .piece strong { font-size: 18px; }
  .figure strong { font-size: 28px; }
  .row { padding-top: 4px; }
  .row.total { margin-top: 6px; padding-top: 6px; font-size: 15px; }
  th, td { padding: 4px 0; }
  caption { font-size: 16px; padding-bottom: 4px; }
  .fine { margin-top: 4px; }
  .ad-slot { margin-top: 16px; }
  .contact-card { margin-top: 20px; padding: 16px 14px 14px; }
  .contact-card h2 { font-size: 22px; }
  .contact-card textarea { min-height: 140px; }
  .contact-card .send { width: 100%; }
  .contact-card .help { font-size: 13px; margin-top: 8px; }
  .foot .wrap { padding-bottom: 24px; }
}
