/* emotely landing page. One accent, one serif for the promise, one sans for
   everything else. Warm paper background so the page reads like a journal,
   not a dashboard. */

:root {
  --paper: #f6f1e9;
  --paper-deep: #ede5d8;
  --ink: #1f1b16;
  --ink-soft: #5a524a;
  --accent: #b5442f;
  --accent-ink: #ffffff;
  --line: #d9cfbf;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 40rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  text-wrap: balance;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25em;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Frame */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 5vw, 3rem);
}

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

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

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  max-width: none;
}

/* Page */

.page {
  width: 100%;
}

.page > section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
}

.page > section > * {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.band {
  background: var(--paper-deep);
}

.hero {
  padding-top: clamp(2rem, 6vw, 5rem);
  text-align: center;
}

.hero > * {
  max-width: 46rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.steps,
.stack {
  padding-left: 1.25rem;
  margin: 0;
}

.steps li,
.stack li {
  margin-bottom: 1.25rem;
}

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

.stack {
  list-style: none;
  padding-left: 0;
}

.stack li {
  padding-left: 1.5rem;
  position: relative;
}

.stack li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.faq dt {
  font-weight: 600;
  margin-top: 1.25rem;
}

.faq dd {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.final-call {
  text-align: center;
  background: var(--ink);
  color: var(--paper);
}

.final-call p {
  color: var(--paper-deep);
}

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

.prose h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

/* Call to action and the waitlist form */

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font: 600 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.cta:hover {
  filter: brightness(1.08);
}

.cta:disabled {
  opacity: 0.6;
  cursor: wait;
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem auto 0;
  max-width: 34rem;
}

.waitlist input[type="email"] {
  flex: 1 1 16rem;
  font: 1rem var(--sans);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.waitlist input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.waitlist .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.waitlist-message,
.waitlist-consent {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.waitlist-message {
  color: var(--accent);
  font-weight: 600;
}

.waitlist-done {
  margin-top: 1.5rem;
}

.waitlist-thanks {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 auto;
}

@media (max-width: 40rem) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
