@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/literata-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f6f2e8;
  --sheet: #fffdf7;
  --ink: #1a2735;
  --muted: #4b5c6e;
  --rule: #d6d0c4;
  --blue: #1688f5;
  --blue-dark: #075eaa;
  --blue-wash: #e4f1ff;
  --font-display: "Literata", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--ink);
  background: #b7dcff;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 4px;
}

.page-width {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--sheet);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner {
  display: flex;
  width: min(1240px, calc(100% - 48px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--blue);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.8vw, 36px);
  font-size: 0.92rem;
  font-weight: 600;
}

.primary-nav > a:not(.button) {
  text-decoration: none;
}

.primary-nav > a:not(.button):hover,
.site-footer nav a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-blue {
  background: var(--blue-dark);
  color: #fff;
}

.button-blue:hover {
  background: #064d8a;
}

.button-small {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--sheet);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.menu-toggle .close-icon {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  display: none;
}

.menu-toggle[aria-expanded="true"] .close-icon {
  display: block;
}

.hero {
  padding: clamp(64px, 9vw, 112px) 0 88px;
  background: var(--paper);
}

.hero-copy {
  max-width: 900px;
  margin-bottom: clamp(48px, 7vw, 82px);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7.3vw, 5.7rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero h1 span {
  color: var(--blue-dark);
}

.hero-lead {
  max-width: 60ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.text-link {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.study-example {
  position: relative;
  margin: 0;
  padding: clamp(24px, 4vw, 42px) clamp(22px, 5vw, 56px) 24px;
  border: 1px solid #e0d9cc;
  border-left: 2px solid var(--blue);
  background: var(--sheet);
  box-shadow: 0 18px 46px rgb(34 43 53 / 9%), 0 2px 6px rgb(34 43 53 / 5%);
}

.example-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

.example-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.example-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.example-mark {
  flex: 0 0 auto;
  padding: 5px 10px;
  background: var(--blue-wash);
  color: #174e7e;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: rotate(-2deg);
}

.example-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  border-bottom: 1px solid var(--rule);
}

.example-steps::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 33.333%;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: translateX(calc(var(--step-index, 0) * 100%));
  transition: transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.example-step {
  min-height: 54px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

.example-step[aria-pressed="true"] {
  color: var(--blue-dark);
}

.example-step:hover {
  color: var(--ink);
}

.example-content {
  min-height: 188px;
  padding: 26px 0 6px;
}

.example-label {
  margin-bottom: 7px;
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.example-content h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.example-text {
  max-width: 66ch;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.answer-toggle {
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.answer-toggle:hover {
  text-decoration-thickness: 2px;
}

.example-answer {
  width: fit-content;
  margin: 4px 0 0;
  padding: 8px 12px;
  background: var(--blue-wash);
  color: #173a59;
  font-weight: 600;
}

.example-disclaimer {
  margin: 0;
  color: #536273;
  font-size: 0.78rem;
}

.method-section {
  padding: clamp(72px, 10vw, 120px) 0;
  background: #e9f2fb;
}

.method-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(36px, 8vw, 104px);
}

.section-intro h2 {
  max-width: 15ch;
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.section-intro p {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
}

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid #c5d5e5;
}

.method-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.method-number {
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.method-list h3,
.tool-list h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.method-list p,
.tool-list p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tools-section {
  padding: clamp(76px, 10vw, 124px) 0;
}

.tools-intro {
  max-width: 740px;
  margin-bottom: 46px;
}

.tool-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list li {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(180px, 0.5fr);
  align-items: baseline;
  gap: 28px;
  padding: 23px 0;
  border-top: 1px solid var(--rule);
}

.tool-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.tool-list h3 {
  margin: 0;
}

.tool-annotation {
  justify-self: end;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.closing-section {
  padding: clamp(60px, 8vw, 92px) 0;
  background: #07528f;
  color: #fff;
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 48px;
}

.closing-inner h2 {
  max-width: 18ch;
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 4.6vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.closing-inner p {
  max-width: 56ch;
  margin: 0;
  color: #e3f1ff;
}

.button-paper {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--sheet);
  color: #153b5c;
}

.button-paper:hover {
  background: #e9f3ff;
}

.faq-section {
  padding: clamp(76px, 10vw, 120px) 0;
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  position: relative;
  padding: 22px 38px 22px 0;
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--blue-dark);
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 65ch;
  margin: -4px 0 22px;
  padding-right: 28px;
  color: var(--muted);
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  background: #f0ebdf;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
}

.footer-brand {
  font-size: 1.05rem;
}

.footer-brand .brand-mark {
  width: 30px;
  border-radius: 9px;
}

.footer-inner > p {
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 600;
}

.site-footer nav a {
  text-underline-offset: 3px;
}

.site-footer small {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0 14px;
  }

  .menu-toggle {
    order: 2;
    margin-left: auto;
  }

  .primary-nav {
    order: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 0 0 16px;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .primary-nav {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
  }

  .js .primary-nav.is-open {
    display: flex;
  }

  .primary-nav > a:not(.button) {
    padding: 10px 0;
  }

  .nav-download {
    align-self: flex-start;
    margin-top: 8px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .study-example {
    padding-inline: 20px;
  }

  .example-heading {
    flex-direction: column;
    gap: 12px;
  }

  .example-steps {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .example-steps::after {
    right: auto;
    bottom: 0;
    width: 3px;
    height: calc(100% / 3);
    transform: translateY(calc(var(--step-index, 0) * 100%));
  }

  .example-step {
    min-height: 46px;
    padding-left: 14px;
    text-align: left;
  }

  .method-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .section-intro h2 {
    max-width: 18ch;
  }

  .tool-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 20px;
  }

  .tool-list li p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tool-annotation {
    grid-column: 2;
    grid-row: 1;
    max-width: 18ch;
  }

  .closing-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .button-paper {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .page-width,
  .header-inner {
    width: min(100% - 32px, 1120px);
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .example-mark {
    align-self: flex-start;
  }

  .method-list li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .tool-list li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tool-list li p,
  .tool-annotation {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-inner > p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .example-steps::after {
    transition: none;
  }
}
