:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #111;
  --secondary: #565656;
  --line: #e9e9e9;
  --mist: #f7f7f6;
  --gutter: clamp(1rem, 4vw, 4rem);
  --section-gap: clamp(5rem, 10vw, 10rem);
  --display: clamp(2.9rem, 1.45rem + 6.4vw, 6.5rem);
  --statement: clamp(2.35rem, 1.35rem + 4.25vw, 4.9rem);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, h2 { text-wrap: balance; }
:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
[id] { scroll-margin-top: 7.75rem; }
main:focus { outline: none; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  background: var(--paper);
}

.site-header {
  position: sticky;
  top: .9rem;
  z-index: 5;
  padding-inline: clamp(.65rem, 3vw, 2.5rem);
  margin-top: .9rem;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(.35rem, 2vw, 1.25rem);
  max-width: 92rem;
  min-height: 4.15rem;
  margin-inline: auto;
  padding: .55rem .65rem .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 100vw;
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  justify-self: start;
  width: fit-content;
  color: #000;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: 1;
  text-decoration: none;
}

.brand img { flex: none; }
.brand-dot { margin-left: .02em; }
.nav-links { display: flex; gap: clamp(.65rem, 2.85vw, 2.45rem); align-items: center; }
.nav-links a { padding-block: .45rem; text-decoration: none; font-weight: 560; }
.nav-links a:hover, .nav-links [aria-current] { text-decoration: underline; text-underline-offset: .28em; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .9rem;
  min-height: 3.75rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 1.22rem;
  background: #000;
  color: #fff;
  font-size: 1.04rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: #303030; }
.button span { font-size: 1.2em; line-height: 1; }
.nav > .button { min-height: 2.8rem; padding: .45rem .95rem; border-radius: 100vw; justify-self: end; font-size: .88rem; white-space: nowrap; }

.hero {
  display: grid;
  justify-items: center;
  padding: clamp(4.5rem, 6.45vw, 7rem) var(--gutter) clamp(3.25rem, 4.6vw, 5.75rem);
  text-align: center;
}

.eyebrow { font-size: clamp(.95rem, 1.65vw, 1.23rem); font-weight: 700; letter-spacing: -.025em; }
.hero h1 { margin-top: 1.15rem; font-size: var(--display); font-weight: 620; letter-spacing: -.073em; line-height: .99; }
.hero h1 span { display: block; }
.hero-description { max-width: 33rem; margin-top: 1.5rem; color: var(--secondary); font-size: clamp(1rem, .75rem + .65vw, 1.3rem); text-wrap: balance; }
.hero .button { margin-top: 1.75rem; }

.showcase { margin-inline: clamp(.875rem, 3.34vw, 4.5rem); border-radius: clamp(1.5rem, 4.1vw, 3.75rem); overflow: hidden; background: var(--mist); }
.showcase img { width: 100%; height: clamp(23rem, 48vw, 53rem); object-fit: cover; object-position: center 60%; }

.home-section, .close-section { padding: var(--section-gap) var(--gutter) 0; text-align: center; }
.statement { max-width: 13ch; margin: .8rem auto 0; font-size: var(--statement); letter-spacing: -.065em; font-weight: 620; line-height: 1.01; }
.close-section { padding-bottom: var(--section-gap); }
.close-section .button { margin-top: 2rem; }

.tool-links, .index-list {
  width: min(100%, 48rem);
  padding: 0;
  margin: clamp(2.2rem, 5vw, 3.75rem) auto 0;
  text-align: left;
  list-style: none;
}

.tool-links li, .index-list li { border-top: 1px solid var(--line); }
.tool-links li:last-child, .index-list li:last-child { border-bottom: 1px solid var(--line); }
.tool-links a, .index-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem .45rem;
  text-decoration: none;
}
.tool-links a:hover, .index-list a:hover { background: var(--mist); }
.tool-links strong, .index-list strong { display: block; font-size: clamp(1.14rem, 1rem + .85vw, 1.55rem); font-weight: 650; letter-spacing: -.03em; }
.tool-links small, .index-list small { display: block; color: var(--secondary); font-size: .9rem; }
.tool-links small { margin-top: .2rem; }
.index-list small { margin-bottom: .2rem; }
.tool-links a > span:last-child, .index-list a > span:last-child { font-size: 1.3rem; }

.page-intro, .article-intro {
  max-width: 67rem;
  margin-inline: auto;
  padding: clamp(3.6rem, 8vw, 7.5rem) var(--gutter) clamp(2.4rem, 5vw, 4.5rem);
  text-align: center;
}
.page-intro h1, .article-intro h1 { font-size: var(--statement); letter-spacing: -.065em; font-weight: 620; line-height: 1.02; }
.page-intro p, .direct-answer { max-width: 44rem; margin: 1.5rem auto 0; color: var(--secondary); font-size: clamp(1rem, .82rem + .65vw, 1.3rem); }
.page-intro .button { margin-top: 1.5rem; }
.back { display: inline-block; margin-bottom: 1.45rem; color: var(--secondary); font-size: .95rem; text-decoration: none; }
.back:hover { text-decoration: underline; }
.byline { margin-top: 1.3rem; color: var(--secondary); font-size: .88rem; }
.article-intro .button { margin-top: 1.45rem; }
.index-page { padding-bottom: var(--section-gap); }
.index-page .index-list { width: min(calc(100% - 2 * var(--gutter)), 48rem); margin-top: 0; }

.prose { max-width: 49rem; padding: 0 var(--gutter) var(--section-gap); margin-inline: auto; font-size: 1.08rem; }
.prose h2 { margin: 3.1rem 0 .85rem; font-size: clamp(1.6rem, 1.25rem + 1.45vw, 2.5rem); letter-spacing: -.045em; }
.prose p + p, .prose ul, .prose ol { margin-top: .8rem; }
.prose li + li { margin-top: .45rem; }
.prose a, .tool-notes a { text-underline-offset: .16em; }
.contents { padding: 1.25rem clamp(1rem, 3vw, 2rem); border-radius: 1.35rem; background: var(--mist); }
.contents p { font-weight: 700; }
.contents ul { margin-bottom: 0; padding-inline-start: 1.2rem; }
.prose table { width: 100%; margin: 1.45rem 0; border-collapse: collapse; text-align: left; }
.prose caption { margin-bottom: .55rem; text-align: left; color: var(--secondary); font-size: .92rem; }
.prose th, .prose td { padding: .65rem .45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead { background: var(--mist); }
.prose tbody th { font-weight: 600; }
.references p { font-size: .97rem; }
.related .index-list { padding: 0; margin-top: 1.1rem; }
.related .index-list li + li { margin-top: 0; }

.tools-page { padding-bottom: var(--section-gap); }
.tool-jumps { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; padding-inline: var(--gutter); }
.tool-jumps a { padding: .42rem .8rem; border: 1px solid var(--line); border-radius: 100vw; font-size: .9rem; text-decoration: none; }
.tool-jumps a:hover { background: var(--mist); }
.tool-section { width: min(calc(100% - var(--gutter) * 2), 58rem); margin: clamp(3.6rem, 8vw, 7.5rem) auto 0; }
.tool-section h2 { font-size: clamp(1.75rem, 1.35rem + 2vw, 3rem); font-weight: 650; letter-spacing: -.05em; }
.tool-section > p { margin-top: .55rem; color: var(--secondary); }
.tool-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1rem, 3vw, 2.3rem); align-items: start; margin-top: 1.1rem; padding: clamp(1rem, 3.5vw, 2.5rem); border-radius: clamp(1.25rem, 3vw, 2.5rem); background: var(--mist); }
.tool-panel fieldset { min-width: 0; padding: 0; margin: 0; border: none; }
.tool-panel .button { margin-top: 1rem; min-height: 2.8rem; font-size: .93rem; border-radius: .85rem; }
.tool-panel .button:disabled { cursor: default; opacity: .55; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.fields label { display: grid; align-content: space-between; gap: .35rem; font-size: .9rem; font-weight: 600; }
.select-field { display: grid; gap: .35rem; }
.fields input, .fields select { width: 100%; min-height: 2.75rem; padding: .35rem .6rem; border: 1px solid #ccc; border-radius: .6rem; background: var(--paper); color: var(--ink); }
.result { display: grid; gap: .3rem; align-content: center; min-height: 100%; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.result-label, .result-detail { color: var(--secondary); font-size: .92rem; }
.result strong { font-size: clamp(1.9rem, 1.35rem + 2.7vw, 3.25rem); line-height: 1.15; letter-spacing: -.05em; }
.planner-result h3 { font-size: 1.1rem; }
.checklist { margin: .25rem 0 0; padding-inline-start: 1.1rem; font-size: .92rem; }
.checklist li + li { margin-top: .28rem; }
.tool-notes { max-width: 53rem; margin-top: .85rem; color: var(--secondary); font-size: .95rem; }
.tool-notes p + p { margin-top: .5rem; }

.footer { display: grid; justify-items: center; gap: .85rem; padding: 1.75rem var(--gutter) 3.25rem; text-align: center; }
.footer .brand { justify-self: center; opacity: .73; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .65rem; }
.footer nav a { color: var(--secondary); text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer > p { color: var(--secondary); font-size: .88rem; }

@media (min-width: 45rem) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-reveal] {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 95%;
    }
    @keyframes reveal { from { color: #747474; filter: blur(3px); } to { color: var(--ink); filter: none; } }
  }
}

@media (max-width: 43.75rem) {
  .tool-panel { grid-template-columns: 1fr; }
  .showcase img { object-position: 47% center; }
}

@media (max-width: 27.5rem) {
  .nav { min-height: 3.55rem; padding-inline: .45rem; }
  .brand { font-size: 1.08rem; gap: .3rem; }
  .brand img { width: 26px; height: 26px; }
  .nav-links { gap: .55rem; font-size: .88rem; }
  .nav > .button { padding-inline: .55rem; font-size: .75rem; }
  .nav > .button span { display: none; }
  .hero { padding-inline: .7rem; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 3.05rem); letter-spacing: -.065em; }
}
