@font-face {
  font-family: "Instrument Serif";
  src: local("Instrument Serif"), local("Iowan Old Style"), local("Palatino Linotype");
  font-style: normal;
  font-weight: 400;
}

:root {
  --ink: var(--green-12);
  --muted: var(--gray-7);
  --line: var(--gray-3);
  --wash: var(--gray-1);
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  max-width: 88rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(var(--size-3), 5vw, var(--size-10));
  overflow-x: hidden;
}

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

a:focus-visible {
  outline: 2px solid #28734d;
  outline-offset: 4px;
}

main {
  position: relative;
  z-index: 1;
  padding-top: clamp(var(--size-10), 14vw, 11rem);
}

.site-footer {
  padding: 1.5rem 0 3rem;
  color: var(--muted);
  font-size: .875rem;
  text-align: center;
}

.hero {
  max-width: 57rem;
}

h1 {
  max-width: 53rem;
  margin: 0;
  font: normal clamp(3.6rem, 9vw, 7.8rem)/.91 var(--display);
  letter-spacing: -.055em;
}

.intro {
  max-width: 41rem;
  margin: var(--size-8) 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: var(--size-3) var(--size-4);
  border: 1px solid var(--ink);
  border-radius: var(--radius-round);
  font-weight: 650;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: var(--green-9);
  border-color: var(--green-9);
}

@media (max-width: 42rem) {
  main {
    padding-top: 4.5rem;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5.5rem);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  max-width: none;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

.how-and-ownership {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 8vw, 7rem);
}

.join h2,
.ownership h2 {
  margin: 0 0 1.25rem;
  font: normal clamp(2.25rem, 5vw, 3.5rem)/1 var(--display);
  letter-spacing: -.035em;
}

.join {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: #fdf8e9;
  border-radius: 10px;
}

.join p {
  max-width: 32ch;
  margin: 0 0 1.5rem;
}

@media (min-width: 48rem) {
  .join {
    background-image: url("assets/invitation-fern.svg");
    background-position: right 1.5rem center;
    background-repeat: no-repeat;
    background-size: min(39%, 23rem) auto;
  }
}

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

.ownership-copy {
  max-width: 54ch;
  color: var(--muted);
}

.ownership-copy p {
  margin: 0;
}

.flow-copy p,
.join p,
.ownership-copy {
  font-size: 1.125rem;
}

@media (min-width: 62rem) {
  .how-and-ownership {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.flow-steps {
  max-width: 52rem;
  margin: 0;
  padding-left: 2rem;
  list-style: decimal-leading-zero;
}

.flow-steps > li {
  padding: 1.25rem 0 1.25rem .5rem;
}

.flow-steps > li + li {
  border-top: 1px solid var(--line);
}

.flow-steps > li::marker {
  color: var(--green-9);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.flow-copy h3 {
  margin: 0 0 .35rem;
  font: normal 1.75rem/1.1 var(--display);
}

.flow-copy p {
  max-width: 29ch;
  margin: 0;
  color: var(--muted);
}

.flow-copy .flow-audience {
  margin-bottom: .35rem;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
}

.term {
  position: relative;
  display: inline-block;
  color: var(--ink);
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: .16em;
}

.term-tooltip {
  position: absolute;
  z-index: 2;
  bottom: 100%;
  left: 0;
  width: max-content;
  max-width: min(12rem, 62vw);
  padding: .5rem .625rem;
  border-radius: .375rem;
  background: #000;
  color: #fff;
  font-size: .875rem;
  line-height: 1.4;
  visibility: hidden;
}

.term:hover .term-tooltip,
.term:focus .term-tooltip {
  visibility: visible;
}

.term:focus-visible {
  outline: 2px solid #28734d;
  outline-offset: 2px;
}

.flow-steps img {
  display: block;
  width: 100%;
  max-width: 22.5rem;
  height: auto;
}

.flow-qr {
  display: block;
  width: fit-content;
  max-width: 100%;
  border-radius: 10px;
}

@media (min-width: 42rem) {
  .flow-steps > li::after {
    display: block;
    clear: both;
    content: "";
  }

  .flow-copy {
    float: left;
    width: 48%;
  }

  .flow-steps > li > img,
  .flow-qr {
    float: right;
    width: 48%;
  }
}

@media (max-width: 41.999rem) {
  .flow-steps img,
  .flow-qr {
    margin-top: 1rem;
  }

  .flow-qr img {
    margin-top: 0;
  }
}

@media (max-width: 58rem) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 26rem;
    justify-self: center;
  }
}
