@font-face {
  font-family: "Literata";
  src: url("../assets/fonts/Literata.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("../assets/fonts/PublicSans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #f2f4f1;
  --ground-deep: #e3e8e3;
  --ink: #17211c;
  --ink-soft: #3a4942;
  --rule: #c5cdc8;
  --pine: #0c4a38;
  --pine-deep: #083026;
  --on-pine: #f3f6f3;
  --serif: "Literata", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --page: 72rem;
  --measure: 38rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 430;
  line-height: 1.65;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 4.05rem);
  font-weight: 620;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
}

h3 {
  margin: 0;
  font-size: 1.35rem;
}

p {
  margin: 0;
}

a {
  color: var(--pine);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--pine-deep);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -5rem;
  background: var(--ground);
  color: var(--ink);
  padding: var(--space-2) var(--space-3);
  z-index: 3;
}

.skip:focus {
  top: var(--space-4);
}

.visually-quiet {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  min-height: 4.5rem;
  padding-block: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
}

.brand-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 620;
  font-size: 1.28rem;
  letter-spacing: -0.015em;
  line-height: 1;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: var(--space-2);
  color: var(--ink);
  cursor: pointer;
}

.when-open {
  display: none;
}

.nav-toggle:checked + .nav-toggle-label .when-closed {
  display: none;
}

.nav-toggle:checked + .nav-toggle-label .when-open {
  display: inline;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  column-gap: var(--space-7);
  align-items: start;
  padding-block: var(--space-8) var(--space-7);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.lede {
  margin: 0;
  max-width: 36rem;
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-figure figcaption {
  margin-top: var(--space-3);
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-copy .actions {
  padding-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  padding-bottom: var(--space-7);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.05rem;
  background: var(--pine);
  color: var(--on-pine);
  text-decoration: none;
  font-weight: 550;
  transition: background-color 150ms ease;
}

.button:hover {
  background: var(--pine-deep);
  color: var(--on-pine);
}

.band {
  background: var(--ground-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.band .wrap {
  padding-block: var(--space-7);
}

.terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  margin: 0;
}

.terms dt {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.terms dd {
  margin: var(--space-3) 0 0;
  max-width: 36rem;
}

.closing {
  padding-block: var(--space-7) var(--space-8);
  max-width: var(--measure);
}

.closing p + p {
  margin-top: var(--space-4);
}

.page-title {
  max-width: 40rem;
  padding-block: var(--space-8) var(--space-6);
}

.page-title .lede {
  margin-top: var(--space-5);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-7);
  max-width: 46rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: var(--space-5);
  border-top: 1px solid var(--rule);
  padding-block: var(--space-6);
}

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

.steps li::before {
  content: counter(step);
  counter-increment: step;
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.85rem;
  font-weight: 560;
  line-height: 1;
}

.steps {
  counter-reset: step;
}

.steps h2,
.steps p {
  grid-column: 2;
}

.steps p {
  margin-top: var(--space-3);
  max-width: 38rem;
}

.note {
  max-width: var(--measure);
  padding-bottom: var(--space-6);
}

.note:last-of-type {
  padding-bottom: var(--space-8);
}

.note p + p {
  margin-top: var(--space-4);
}

.note h2 {
  margin-bottom: var(--space-4);
}

.ready {
  margin: var(--space-4) 0 0;
  padding-left: 1.15rem;
  max-width: var(--measure);
}

.ready li + li {
  margin-top: var(--space-2);
}

.letter {
  display: grid;
  grid-template-columns: 12rem minmax(0, var(--measure));
  column-gap: var(--space-7);
  padding-bottom: var(--space-8);
}

.letter-meta {
  color: var(--ink-soft);
  font-size: 1rem;
}

.letter-meta p + p {
  margin-top: var(--space-2);
}

.letter-body p + p {
  margin-top: var(--space-5);
}

.contact-block {
  max-width: var(--measure);
  padding-bottom: var(--space-8);
}

.contact-block p + p {
  margin-top: var(--space-5);
}

.email-line {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.email-line a {
  color: var(--ink);
}

.prose {
  max-width: var(--measure);
  padding-bottom: var(--space-8);
}

.prose section + section {
  margin-top: var(--space-7);
}

.prose h2 {
  margin-bottom: var(--space-4);
}

.prose p + p {
  margin-top: var(--space-4);
}

.site-footer {
  border-top: 1px solid var(--rule);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.footer-name {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.15rem;
}

.footer-meta {
  margin-top: var(--space-2);
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--ink);
}

@media (max-width: 800px) {
  .hero,
  .terms,
  .letter {
    grid-template-columns: 1fr;
  }

  .hero {
    row-gap: var(--space-5);
    padding-block: var(--space-7) var(--space-6);
  }

  .hero-figure img {
    aspect-ratio: 4 / 3;
  }

  .page-title {
    padding-block: var(--space-7) var(--space-5);
  }

  .letter-meta {
    margin-bottom: var(--space-5);
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: var(--space-3);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
}

@media (min-width: 900px) {
  .wrap {
    width: min(var(--page), calc(100% - 6rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

@media print {
  .nav-toggle-label {
    display: none !important;
  }

  .site-nav {
    display: flex !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .band {
    background: #fff;
  }

  a {
    color: #000;
  }
}
