/* Oakline — site styles
   Palette
     leaf   #1d3b2a  ink and buttons
     paper  #f4f6f1  page
     slip   #f7cbd3  the message slip
     rose   #8c2f45  what the slip's printer printed
     pen    #1f2f6b  what got written on it
     moss   #56655b  quiet text
*/

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kalam";
  src: url("/fonts/kalam-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --leaf: #1d3b2a;
  --paper: #f4f6f1;
  --slip: #f7cbd3;
  --rose: #8c2f45;
  --pen: #1f2f6b;
  --moss: #56655b;
  --line: #cfd6cc;
  --white: #ffffff;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --hand: "Kalam", "Bradley Hand", "Segoe Print", cursive;

  --measure: 34rem;
  --page: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--leaf);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
}

h1,
h2,
h3 {
  font-stretch: 86%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 8.2vw, 4.75rem);
}

h2 {
  font-size: clamp(1.75rem, 4.6vw, 2.75rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
  max-width: var(--measure);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
audio:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -100rem;
  top: 0.5rem;
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.skip:focus {
  left: 0.5rem;
  z-index: 10;
}

/* Masthead */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.wordmark {
  font-stretch: 80%;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wordmark svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.masthead__place {
  color: var(--moss);
  font-size: 0.9375rem;
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--leaf);
  color: var(--white);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.95rem 1.35rem;
  border-radius: 6px;
  border: 2px solid var(--leaf);
}

.button:hover {
  background: #142a1e;
  border-color: #142a1e;
}

.button--quiet {
  background: transparent;
  color: var(--leaf);
}

.button--quiet:hover {
  background: var(--white);
  border-color: var(--leaf);
}

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

/* Hero */

.hero {
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.hero__lede {
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  line-height: 1.5;
  margin-top: 1.5rem;
}

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

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .slip-figure {
    width: min(100%, 28rem);
    font-size: 1.125em;
  }

  .slip {
    font-size: 0.9em;
    padding: 1.35rem 1.6rem 1.6rem;
  }
}

/* The message slip: the one loud thing on the page */

.slip-figure {
  margin: 0;
  justify-self: center;
  width: min(100%, 25rem);
}

.slip {
  background: var(--slip);
  color: var(--rose);
  padding: 1.1rem 1.25rem 1.35rem;
  border-radius: 3px;
  transform: rotate(-1.6deg);
  box-shadow:
    0 1px 0 rgba(140, 47, 69, 0.25),
    0 18px 30px -18px rgba(29, 59, 42, 0.45);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.slip__title {
  font-stretch: 78%;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--rose);
  margin: 0 0 0.35rem;
}

.slip__row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.75rem;
}

.slip__field {
  flex: 1 1 7rem;
  min-width: min-content;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  border-bottom: 1px solid var(--rose);
  padding-block: 0.55rem 0.15rem;
}

.slip__field dt {
  font-weight: 600;
  flex: none;
}

.slip__field dd,
.slip__message-text,
.slip__checks .is-checked::before {
  font-family: var(--hand);
  color: var(--pen);
}

.slip__field dd {
  margin: 0;
  font-size: clamp(0.9375rem, 4.3vw, 1.1875rem);
  line-height: 1;
  white-space: nowrap;
}

.slip dl {
  margin: 0;
}

.slip__checks {
  list-style: none;
  margin: 0.8rem 0 0.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  font-weight: 600;
}

.slip__checks li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.slip__checks li::before {
  content: "";
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid var(--rose);
  display: grid;
  place-items: center;
}

.slip__checks .is-checked::before {
  content: "\2713";
  font-size: 1.3rem;
  line-height: 0;
  padding-bottom: 0.35rem;
  padding-left: 0.2rem;
}

.slip__message-label {
  font-weight: 600;
  margin: 0.75rem 0 0;
  max-width: none;
}

.slip__message-text {
  font-size: 1.1875rem;
  line-height: 1.85rem;
  max-width: none;
  background-image: linear-gradient(
    to bottom,
    transparent calc(1.85rem - 1px),
    var(--rose) calc(1.85rem - 1px)
  );
  background-size: 100% 1.85rem;
  padding-bottom: 1px;
}

.slip-figure figcaption {
  color: var(--moss);
  font-size: 0.875rem;
  line-height: 1.4;
  margin-top: 1.25rem;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .slip {
    animation: slip-lands 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15) 0.15s both;
  }

  @keyframes slip-lands {
    from {
      opacity: 0;
      transform: translateY(-1.5rem) rotate(4deg);
    }
    to {
      opacity: 1;
      transform: rotate(-1.6deg);
    }
  }
}

/* Sections */

.band {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.band > .wrap > h2 + p {
  margin-top: 1rem;
  font-size: 1.125rem;
}

/* What happens on a call: a real sequence, so it is numbered */

.steps {
  list-style: none;
  counter-reset: step;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: 2rem 3rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 0.75rem;
}

.steps li::before {
  content: counter(step);
  font-stretch: 70%;
  font-weight: 900;
  font-size: 3rem;
  line-height: 0.85;
  color: var(--rose);
  grid-row: span 2;
}

.steps p {
  margin-top: 0.4rem;
  color: var(--leaf);
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hear it */

.band--hear {
  background: var(--leaf);
  color: var(--paper);
  border-top: 0;
}

.band--hear .button {
  background: var(--slip);
  border-color: var(--slip);
  color: var(--leaf);
}

.band--hear .button:hover {
  background: var(--white);
  border-color: var(--white);
}

.band--hear a:focus-visible {
  outline-color: var(--slip);
}

.hear__number {
  display: block;
  font-stretch: 80%;
  font-weight: 900;
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-top: 1.5rem;
  width: fit-content;
}

.hear__number:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
}

.hear > div {
  margin-top: 1rem;
}

.hear > div > p:first-child {
  font-size: 1.125rem;
}

.hear .actions,
.hear audio {
  margin-top: 1.75rem;
}

.hear audio {
  display: block;
  width: min(100%, 26rem);
}

.hear__recording-label {
  margin-top: 2rem;
  font-weight: 700;
}

.hear__recording-label + audio {
  margin-top: 0.6rem;
}

[hidden] {
  display: none !important;
}

/* Straight answers */

.answers {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  display: grid;
  gap: 1.75rem 3rem;
}

.answers div {
  border-top: 2px solid var(--leaf);
  padding-top: 0.9rem;
}

.answers dd {
  margin: 0.4rem 0 0;
  max-width: var(--measure);
}

.answers dt {
  font-stretch: 86%;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
}

@media (min-width: 48rem) {
  .answers {
    grid-template-columns: 1fr 1fr;
  }
}

/* Trial */

.trial {
  display: grid;
  gap: 2rem;
}

.trial p + p {
  margin-top: 1rem;
}

.trial .actions {
  margin-top: 1.75rem;
}

@media (min-width: 56rem) {
  .trial {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 3rem;
  color: var(--moss);
  font-size: 0.9375rem;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer p {
  max-width: none;
}

/* Plain pages: privacy, terms, not found */

.prose {
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem);
}

.prose h1 {
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
}

.prose h2 {
  font-size: 1.5rem;
  line-height: 1.15;
  margin-top: 2.5rem;
}

.prose p,
.prose ul {
  max-width: 40rem;
  margin-top: 0.9rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose .updated {
  color: var(--moss);
  margin-top: 0.75rem;
}

.prose .actions {
  margin-top: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Notice bar: the offer and its limit, stated once at the very top */

.notice {
  margin: 0;
  max-width: none;
  background: var(--leaf);
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-align: center;
  padding: 0.65rem var(--gutter);
}

.notice a {
  color: var(--slip);
  font-weight: 700;
  white-space: nowrap;
  margin-left: 0.35rem;
}

.notice a:focus-visible {
  outline-color: var(--slip);
}

.button--small {
  font-size: 0.9375rem;
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
}

/* Spots left */

.spots {
  margin-top: 1.1rem;
  font-weight: 700;
  color: var(--rose);
}

.spots--large {
  margin-top: 0;
  font-stretch: 86%;
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.2;
}

.spots--onleaf {
  color: var(--slip);
}

/* What voicemail costs: the owner's own numbers, filled in like a form */

.cost {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.cost h2 + p {
  margin-top: 1rem;
  font-size: 1.125rem;
}

.calc {
  background: var(--white);
  border: 2px solid var(--leaf);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1.4rem;
  display: grid;
  gap: 1.1rem;
}

.calc__field label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
}

.calc__field input,
.calc__field select {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 2px solid var(--leaf);
  border-radius: 0;
  background: transparent;
  color: var(--pen);
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1.2;
}

.calc__field input:focus-visible,
.calc__field select:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 2px;
}

.calc__result {
  max-width: none;
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.calc__amount {
  display: block;
  font-stretch: 80%;
  font-weight: 900;
  font-size: clamp(1.75rem, 7vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--rose);
}

.calc__caption {
  display: block;
  margin-top: 0.3rem;
  font-weight: 700;
}

.calc__note {
  max-width: none;
  color: var(--moss);
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (min-width: 56rem) {
  .cost {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    gap: 4rem;
  }
}

/* The founding offer: what's included, ticked off like the slip */

.offer__why {
  margin-top: 1rem;
  font-size: 1.125rem;
  max-width: 40rem;
}

.stack {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1.6rem 3rem;
}

.stack li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 0.75rem;
}

.stack li::before {
  content: "\2713";
  grid-row: span 2;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.1rem;
  border: 2px solid var(--rose);
  display: grid;
  place-items: center;
  font-family: var(--hand);
  color: var(--pen);
  font-size: 1.7rem;
  line-height: 0;
  padding: 0 0 0.45rem 0.3rem;
}

.stack p {
  margin-top: 0.3rem;
}

.offer__close {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 2px solid var(--leaf);
  display: grid;
  gap: 1.75rem;
}

.offer__close h3 + p {
  margin-top: 0.4rem;
}

.offer__close .actions {
  margin-top: 1rem;
}

@media (min-width: 48rem) {
  .stack {
    grid-template-columns: 1fr 1fr;
  }

  .offer__close {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 64rem) {
  .stack {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Is it a fit */

.fit {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 2rem 3rem;
}

.fit > div {
  border-top: 2px solid var(--leaf);
  padding-top: 0.9rem;
}

.fit > div + div {
  border-top-color: var(--rose);
}

.fit ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  max-width: var(--measure);
}

.fit li + li {
  margin-top: 0.6rem;
}

@media (min-width: 48rem) {
  .fit {
    grid-template-columns: 1fr 1fr;
  }
}

.hear .spots {
  margin-top: 1.25rem;
}
