:root {
  --mist: #e7eeea;
  --ink: #1b120e;
  --plum: #4e1633;
  --muted: #5c514a;
  --line: #d5ded8;
  --serif: "Bodoni Moda", Palatino, "Palatino Linotype", "Iowan Old Style", serif;
  --sans: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
}

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

a { color: var(--plum); }

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

::selection {
  background: var(--plum);
  color: #fff;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.9rem;
  z-index: 2;
}

.skip:focus { transform: none; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 6vw;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

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

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

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-right: auto;
}

.site-header .join-link {
  color: var(--plum);
  font-weight: 500;
}

.top {
  display: flex;
  flex-direction: column;
}

.curl {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--mist);
}

.curl img {
  width: 100%;
  height: 70vw;
  max-height: 26rem;
  object-fit: cover;
  object-position: center 42%;
}

.curl figcaption {
  margin: 0;
  padding: 0.7rem 6vw 0.2rem;
  font-size: 1rem;
  line-height: 1.4;
}

.hero { padding: 1.25rem 6vw 3rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4.7vw, 4.15rem);
  max-width: 22ch;
}

.lede {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  font-size: 1.2rem;
}

.join {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  max-width: 34rem;
}

.join label {
  flex: 1 1 100%;
  font-size: 1rem;
  font-weight: 500;
}

.join input {
  flex: 1 1 14rem;
  min-height: 3rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0 0.9rem;
  font: inherit;
  border-radius: 0;
}

.join input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--mist) inset;
}

.join button {
  flex: 1 1 auto;
  min-height: 3rem;
  padding: 0 1.2rem;
  border: 0;
  background: var(--plum);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.join button:hover { background: var(--ink); }

.form-note,
.join-status {
  flex: 1 1 100%;
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
}

.block {
  padding: 4.5rem 6vw;
  max-width: calc(42rem + 12vw);
}

.block p { max-width: 38rem; }

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 2.7rem);
  max-width: 16ch;
}

.steps {
  margin: 1.5rem 0 0;
  padding: 0 0 0 1.4rem;
  max-width: 38rem;
}

.steps li { padding: 0.85rem 0 1rem; }

.steps li::marker {
  font-family: var(--serif);
  color: var(--plum);
  font-weight: 500;
}

.steps h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.steps p { margin: 0.3rem 0 0; }

.faqs details {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
  max-width: 38rem;
}

.faqs details:last-of-type { border-bottom: 1px solid var(--line); }

.faqs summary {
  font-weight: 500;
  cursor: pointer;
}

.faqs p { margin: 0.7rem 0 0.15rem; }

.sheet {
  padding: 0.5rem 6vw 4.5rem;
  max-width: calc(42rem + 12vw);
}

.sheet h1 { max-width: 14ch; }

.sheet p { max-width: 38rem; }

.site-footer {
  padding: 2rem 6vw 3rem;
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 0 0 0.6rem; max-width: 36rem; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 520px) {
  .join input,
  .join button { flex-basis: 100%; }
}

@media (min-width: 960px) {
  .top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    align-items: stretch;
  }

  .curl {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: start;
  }

  .curl img {
    height: auto;
    max-height: none;
    flex: 1;
    min-height: 0;
  }

  .curl figcaption { padding: 0.75rem 1.25rem 1rem; }

  .site-header { grid-column: 1; grid-row: 1; }

  .hero {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    padding-bottom: 4rem;
  }
}

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