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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #F4EFE4;
  color: #1B2A28;
  font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, p, ol, dl, dt, dd {
  margin: 0;
}

ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

.wrap {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

/* Type */
.eyebrow,
dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3D6B66;
}

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
  color: #1B2A28;
}

@media (min-width: 768px) {
  h1 {
    max-width: 9.6em;
  }
}

h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #1B2A28;
}

h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.3;
  color: #1B2A28;
}

.body {
  max-width: 65ch;
  color: rgba(27, 42, 40, 0.82);
}

.lede {
  max-width: 65ch;
  font-size: 1.25rem;
  line-height: 1.5;
  color: rgba(27, 42, 40, 0.86);
}

.measure {
  max-width: 65ch;
}

/* Header */
.site-header {
  padding-block: 0.75rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.header-inner .text-link {
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
}

.logo {
  height: 36px;
  width: auto;
  max-width: 100%;
}

@media (min-width: 768px) {
  .site-header {
    padding-block: 1rem;
  }

  .logo {
    height: 48px;
  }
}

/* Links and buttons — 44px tap targets */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #3D6B66;
  text-decoration: underline;
  text-decoration-color: rgba(196, 165, 116, 0.7);
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1.5px;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: #C4A574;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  background: #1B2A28;
  color: #F4EFE4;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover,
.btn:focus-visible {
  background: #3D6B66;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

/* Sections */
.hero,
#how .wrap,
#terms .wrap,
#about .wrap,
#book .wrap {
  padding-block: 4rem;
}

.hero {
  padding-top: 3rem;
}

.hero h1 {
  margin-top: 1.25rem;
}

.hero .lede {
  margin-top: 1.5rem;
}

.hero .body {
  margin-top: 1rem;
  color: rgba(27, 42, 40, 0.72);
}

.hero .actions {
  margin-top: 2.5rem;
}

.band {
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(27, 42, 40, 0.1);
}

#terms,
#book,
.site-footer {
  border-top: 1px solid rgba(27, 42, 40, 0.1);
}

#how h2,
#terms h2,
#about h2 {
  margin-bottom: 2.5rem;
}

#book h2 {
  margin-bottom: 1rem;
}

#book .actions {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hero,
  #how .wrap,
  #terms .wrap,
  #about .wrap,
  #book .wrap {
    padding-block: 6rem;
  }

  .hero {
    padding-top: 5rem;
    padding-bottom: 6.5rem;
  }

  #book .wrap {
    padding-block: 6.5rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* How it works */
.steps {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    column-gap: 3.5rem;
    row-gap: 3.5rem;
  }
}

.step-num {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  color: #C4A574;
  line-height: 1;
}

.steps h3 {
  margin-top: 0.75rem;
}

.steps .body {
  margin-top: 0.75rem;
}

/* Terms */
.terms {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .terms {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.terms dt {
  margin-bottom: 0.75rem;
}

.terms dd {
  max-width: 65ch;
  color: rgba(27, 42, 40, 0.85);
}

/* About */
.about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.headshot {
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 999px;
  flex-shrink: 0;
}

.name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #1B2A28;
}

.role {
  margin-top: 0.25rem;
  color: #3D6B66;
}

.about-copy .body {
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .about {
    flex-direction: row;
    gap: 2.5rem;
    align-items: flex-start;
  }

  .headshot {
    width: 10.5rem;
    height: 10.5rem;
  }

  .name {
    font-size: 1.75rem;
  }
}

.email-plain {
  margin: 0;
  font-size: 1rem;
  color: rgba(27, 42, 40, 0.6);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

a.email-plain:hover,
a.email-plain:focus-visible {
  color: #3D6B66;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Footer */
.site-footer {
  padding-block: 2rem;
}

.site-footer p {
  max-width: 65ch;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(27, 42, 40, 0.6);
}

@media (min-width: 768px) {
  .site-footer {
    padding-block: 2.5rem;
  }

  .wrap {
    width: min(68rem, calc(100% - 3.5rem));
  }
}
