/* ReLesson landing page. Twilight Indigo, the same tokens as src/constants/theme.ts. */
@font-face {
  font-family: "Newsreader";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/newsreader-600.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  src: url("fonts/newsreader-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/work-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/work-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/work-sans-700.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --indigo: #1b2a6b;
  --panel: #24357f;
  --line: rgba(255, 255, 255, 0.1);
  --ivory: #fbf6ec;
  --ink: #1a2350;
  --ink-soft: #4d5380;
  --violet: #8657d8;
  --violet-deep: #5a3aa0;
  --violet-soft: #a98cff;
  --text: #f4f2ff;
  --text-soft: #aeb5e6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:
    "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--indigo);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.center {
  text-align: center;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- wordmark */
.wm {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
.wm-ring {
  position: absolute;
  left: -0.27em;
  top: -0.4em;
  width: 1.74em;
  height: 1.74em;
  border: 1.5px solid rgba(169, 140, 255, 0.26);
  border-radius: 50%;
}
.wm-re {
  color: var(--violet-soft);
}
.wm-o {
  width: 0.567em;
  height: 0.567em;
  margin: 0 0.035em 0 0.05em;
  position: relative;
  top: 0.05em;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 26px;
  background: var(--violet);
  color: #fff;
  font: 700 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn:hover {
  background: var(--violet-deep);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}
.btn-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14.5px;
}
.btn-ivory {
  background: var(--ivory);
  color: var(--ink);
}
.btn-ivory:hover {
  background: #fff;
}

/* ------------------------------------------------------------------- header */
.top {
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 84px;
}
.home {
  display: inline-flex;
  padding: 12px 8px;
  margin-left: -2px;
  text-decoration: none;
}

/* --------------------------------------------------------------------- hero */
.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 56px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border: 1px solid rgba(169, 140, 255, 0.35);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-soft);
}
h1 {
  margin-top: 22px;
  font-size: clamp(44px, 9vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: 18px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------- email form */
.join {
  margin-top: 32px;
  max-width: 520px;
}
.join > label:not(.sr) {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.join-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.join input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(169, 140, 255, 0.4);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: 400 16px/1.2 var(--sans);
}
.join input[type="email"]::placeholder {
  color: #9aa2dc;
}
.join input[aria-invalid="true"] {
  border-color: #ffb4a8;
}
.join-msg {
  min-height: 1.5em;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #ffc9c0;
}
.join-msg:empty {
  min-height: 0;
  margin-top: 0;
}
.join.done .join-row,
.join.done > label {
  display: none;
}
.join.done .join-msg {
  margin-top: 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(169, 140, 255, 0.16);
  color: var(--text);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
}
.join-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-soft);
}
.join-msg:focus {
  outline: none;
}
.noscript {
  margin: 0;
  padding: 12px 24px;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}
.join-center {
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------- sample cards */
.stack {
  display: grid;
  gap: 16px;
}
.card {
  margin: 0;
  padding: 22px 24px 24px;
  border-radius: 18px;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 22px 44px rgba(5, 8, 35, 0.4);
}
.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}
.tag {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-deep);
}
.topic {
  color: var(--ink-soft);
}
.card blockquote {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.36;
}

/* --------------------------------------------------------------- ivory band */
.ivory {
  padding: 64px 0 76px;
  background: var(--ivory);
  color: var(--ink);
}
.facts {
  display: grid;
  gap: 28px;
  margin: 0 0 64px;
  text-align: center;
}
.facts dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.1;
}
.facts dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}
h2 {
  font-size: clamp(30px, 5vw, 38px);
  line-height: 1.15;
}
.sub {
  margin-top: 10px;
  color: var(--text-soft);
}
.ivory .sub {
  color: var(--ink-soft);
}
.steps {
  display: grid;
  gap: 36px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.steps h3 {
  font-size: 23px;
}
.steps p {
  margin-top: 8px;
  max-width: 26em;
  font-size: 16px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- topics */
.band {
  padding: 72px 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 9px 18px;
  border: 1px solid rgba(169, 140, 255, 0.4);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px;
  font-weight: 600;
}

/* ------------------------------------------------------------ two audiences */
.split {
  display: grid;
}
.split-half {
  padding: 56px 24px;
  border-top: 1px solid var(--line);
}
.split-alt {
  background: var(--panel);
}
.split-inner {
  max-width: 520px;
  margin: 0 auto;
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-soft);
}
.split h2 {
  margin-top: 10px;
  font-size: 30px;
}
.ticks {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
}
.ticks li {
  position: relative;
  padding-left: 30px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 13px;
  border: 3px solid var(--violet-soft);
  border-radius: 50%;
}

/* ------------------------------------------------------------------ closing */
.closing {
  padding: 80px 0;
  background: var(--violet-deep);
  text-align: center;
}
.closing .sub {
  color: #e2d9fb;
}
.closing .join-note {
  color: #e2d9fb;
}
.closing .join input[type="email"] {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}
.closing .join input[type="email"]::placeholder {
  color: #d9cff7;
}

/* ------------------------------------------------------------------- footer */
.foot {
  padding: 36px 0 44px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot-row > [data-wordmark] {
  padding-left: 8px;
}
.foot .wm {
  font-size: 20px;
}
.foot-note a {
  display: inline-block;
  padding: 12px 0;
  color: var(--text);
  text-underline-offset: 3px;
}
.foot-note {
  font-size: 13.5px;
  color: var(--text-soft);
}

/* ------------------------------------------------------------- wider screens */
@media (min-width: 560px) {
  .join-row {
    flex-direction: row;
  }
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 860px) {
  .wrap {
    padding: 0 48px;
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split-half {
    padding: 72px 48px;
  }
}
@media (min-width: 1020px) {
  .hero {
    padding: 76px 0 96px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
  .stack {
    display: block;
    position: relative;
    height: 520px;
  }
  .card {
    position: absolute;
    width: 320px;
  }
  .card-a {
    top: 0;
    left: 4%;
    transform: rotate(-5deg);
  }
  .card-b {
    top: 150px;
    right: 0;
    transform: rotate(4deg);
  }
  .card-c {
    top: 345px;
    left: 9%;
    transform: rotate(-2deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* The stop page for prompt emails (stop.html). */
.stop {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.stop-card {
  max-width: 420px;
}
.stop-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  margin: 0 0 12px;
}
.stop-body {
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0 0 24px;
}

/* The privacy notice (privacy.html). */
.legal-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 16px 72px;
  line-height: 1.6;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  margin: 16px 0 4px;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  margin: 32px 0 8px;
}
.legal p,
.legal li {
  color: var(--text-soft);
}
.legal p {
  margin: 0 0 14px;
}
.legal ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.legal strong {
  color: var(--text);
}
.legal a {
  color: var(--violet-soft);
}
.legal-date {
  margin: 0 0 24px;
  font-size: 14px;
}
.legal-back a {
  text-decoration: none;
  font-weight: 600;
}
.join-note a {
  color: inherit;
}
