:root {
  --ink: #172338;
  --muted: #667083;
  --paper: #f7f2e8;
  --surface: #fffdf8;
  --line: #d9d2c4;
  --accent: #d39a19;
  --error: #a33b31;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--line);
}
.site-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
}
.brand strong {
  color: var(--muted);
  font-weight: 500;
}
.brand-mark {
  width: 36px;
  height: 36px;
  position: relative;
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.brand-mark::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  right: 3px;
  top: 3px;
  background: var(--accent);
  border-radius: 50%;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  right: -9px;
  bottom: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}

main {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(560px, 1.2fr);
  gap: 64px;
  align-items: start;
}
.intro {
  position: sticky;
  top: 32px;
  padding-top: 24px;
}
.kicker {
  margin: 0 0 8px;
  color: #80600f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1,
h2 {
  font-family: "Fraunces", serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 6vw, 76px);
}
h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}
.lede {
  max-width: 560px;
  margin: 24px 0 40px;
  color: var(--muted);
  font-size: 19px;
}
.method {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.method li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.method li > span {
  color: #80600f;
  font-size: 13px;
  font-weight: 700;
}
.method strong,
.method p {
  display: block;
  margin: 0;
}
.method p {
  color: var(--muted);
  font-size: 15px;
}

.forecast-card {
  min-width: 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.card-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}
form {
  padding-top: 32px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.field {
  min-width: 0;
}
label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}
input {
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #a9a498;
  border-radius: 6px;
}
input[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}
.input-suffix,
.input-prefix {
  position: relative;
}
.input-suffix span,
.input-prefix span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.input-suffix span {
  right: 15px;
}
.input-suffix input {
  padding-right: 40px;
}
.input-prefix span {
  left: 15px;
}
.input-prefix input {
  padding-left: 34px;
}
.field-hint,
.field-error {
  min-height: 24px;
  margin: 5px 0 0;
  font-size: 13px;
}
.field-hint {
  color: var(--muted);
}
.field-error {
  color: var(--error);
  font-weight: 600;
}
.field-hint + .field-error {
  min-height: 0;
}
.primary-action {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 20px;
  color: var(--ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.primary-action:hover {
  background: #e3ad2f;
}

.results {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}
.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.results-heading > p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.scenario {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.scenario.is-base {
  border: 2px solid var(--accent);
}
.scenario p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.scenario h3 {
  margin: 4px 0 18px;
  font-size: 16px;
}
.scenario strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.1;
}
.scenario dl {
  margin: 16px 0 0;
}
.scenario dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.scenario dt {
  color: var(--muted);
}
.scenario dd {
  margin: 0;
  font-weight: 700;
}
details {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-weight: 700;
  cursor: pointer;
}
.assumptions {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.assumptions p {
  margin: 4px 0;
}
.disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px max(24px, calc((100vw - 1200px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer p {
  margin: 0;
}
footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 920px) {
  main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }
  .intro {
    position: static;
  }
  .method {
    display: none;
  }
}
@media (max-width: 620px) {
  .site-header p {
    display: none;
  }
  main {
    width: min(100% - 32px, 1200px);
    padding: 40px 0 64px;
  }
  h1 {
    font-size: clamp(42px, 14vw, 58px);
  }
  .lede {
    font-size: 17px;
  }
  .forecast-card {
    padding: 24px 16px;
  }
  .field-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }
  .results-heading {
    align-items: start;
    flex-direction: column;
  }
  .results-heading > p {
    text-align: left;
  }
  footer {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.brand,
footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
