:root {
  --paper: #f7efe4;
  --card: #fffdf7;
  --ink: #211b16;
  --muted: #6b6157;
  --line: rgba(33, 27, 22, 0.16);
  --accent: #b4441f;
  --teal: #0d6f66;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.9rem, 9vw, 4.4rem);
  line-height: 1.02;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4.5vw, 1.9rem);
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--ink);
}

section {
  margin-top: 72px;
}

.lede {
  font-size: 1.3rem;
  line-height: 1.45;
  max-width: 34rem;
}

.microcopy,
.side-note,
.footer p {
  font-size: 0.95rem;
  color: var(--muted);
}

.microcopy {
  margin-top: 24px;
}

.side-note {
  margin-top: 14px;
}

/* Buttons */

.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: rgba(33, 27, 22, 0.07);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #000;
}

.button.is-copied,
.button-primary.is-copied {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Bad / good contrast */

.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.quote {
  border-left: 3px solid var(--line);
  padding: 2px 0 2px 18px;
}

.quote-bad {
  border-left-color: var(--accent);
}

.quote-good {
  border-left-color: var(--teal);
}

.quote-label {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.quote-text {
  margin-bottom: 10px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
}

.quote p:last-child {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Chat comparison */

.chat-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.chat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.chat-card h3 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.chat-bubble {
  width: fit-content;
  max-width: 92%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.5;
  font-size: 0.97rem;
}

.chat-bubble-ask {
  background: rgba(33, 27, 22, 0.05);
  border-bottom-left-radius: 4px;
}

.chat-bubble-reply {
  margin-left: auto;
  background: rgba(13, 111, 102, 0.12);
  border-bottom-right-radius: 4px;
}

.chat-attachment {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  font-size: 0.88em;
}

.chat-note {
  margin: 16px 0 0;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Checklist */

.checklist {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 0;
  padding: 0;
}

.checklist li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 46px;
  border-top: 1px solid var(--line);
}

.checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* Reasons a call is right */

.reasons {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.reasons li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.reasons li:last-child {
  border-bottom: 1px solid var(--line);
}

.reasons strong {
  color: var(--ink);
}

/* Template */

.template-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.template-head h2 {
  margin-bottom: 0;
}

.template-box {
  overflow-x: auto;
  margin: 20px 0 0;
  padding: 22px 24px;
  border-radius: 10px;
  background: #241d17;
  color: #f6ede2;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.97rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* Status lines */

.status-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.status-card .button {
  flex-shrink: 0;
}

.status-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.status-card p {
  margin: 0;
}

/* Footer */

.footer {
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .page {
    padding-top: 48px;
  }

  section {
    margin-top: 56px;
  }

  .contrast,
  .chat-compare {
    grid-template-columns: 1fr;
  }

  .contrast {
    gap: 24px;
  }

  .status-card {
    flex-direction: column;
    align-items: stretch;
  }

  .template-head {
    flex-direction: column;
  }
}

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