@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Purple and gold sampled from the cover */
:root {
  --purple-light: #534466;
  --purple-dark: #191528;
  --gold: #ebc489;
  --lavender: #8d84a3;
  --ink: #2b2340;
  --link: #5a4778;
  --paper: #faf7f2;
  --tint: #f1edf4;
  --on-dark: #f7f3ec;
  --muted-on-dark: #d9d3e3;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
}

h1, h2 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); color: var(--gold); }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.1rem); }

p, ul, ol { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 1;
}
.skip:focus { top: 1rem; }

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

section.wrap, .band { padding-top: 2.5rem; padding-bottom: 1.5rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--purple-light), var(--purple-dark));
  color: var(--on-dark);
  padding: 2rem 0 2.5rem;
  border-bottom: 3px solid var(--gold);
}
.hero-inner {
  display: grid;
  gap: 1.5rem;
  max-width: 60rem;
}
.hero h1 { margin-bottom: 0.25em; }
.subtitle {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  line-height: 1.2;
}
.lede { font-size: 1.3rem; line-height: 1.45; }
.byline { color: var(--muted-on-dark); margin: 0; }

.cover {
  justify-self: center;
  width: min(60vw, 300px);
}
.cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.45);
}

@media (min-width: 760px) {
  .hero { padding: 3.5rem 0; }
  .hero-inner {
    grid-template-columns: 1fr 300px;
    grid-template-areas: "text cover" "buy cover";
    align-items: start;
    column-gap: 3rem;
  }
  .hero-text { grid-area: text; }
  .hero .buy { grid-area: buy; }
  .cover { grid-area: cover; width: 300px; }
}

/* Buttons */
.buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-block;
  flex: 1 1 14rem;
  text-align: center;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { background: #f2d4a6; }
.btn-alt { background: transparent; color: inherit; }
.btn-alt:hover { background: rgba(235, 196, 137, 0.15); }
main .btn-alt { border-color: var(--link); }

/* First steps */
.intro { font-size: 1.25rem; }
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
}
/* Rounded diamond from the cover, with the number kept upright on top */
.steps li::before,
.steps li::after {
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  width: 1.75rem;
  height: 1.75rem;
}
.steps li::before {
  content: "";
  border-radius: 0.3rem;
  background: var(--ink);
  transform: rotate(45deg);
}
.steps li::after {
  content: counter(step);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
}

/* What the guide covers */
.band {
  background: var(--tint);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  margin-top: 1.5rem;
}
.band .buy { margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.6em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.support ul { padding-left: 1.25rem; }
.support li { margin-bottom: 0.5rem; }
a[href^="tel:"] { white-space: nowrap; }

/* Footer */
.foot {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  background: var(--purple-dark);
  color: var(--muted-on-dark);
  font-size: 1rem;
}
.foot a { color: var(--gold); }
