@font-face {
  font-family: Literata;
  src: url("../fonts/Literata.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("../fonts/Nunito.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #29243a;
  --muted: #665f73;
  --paper: #fffaf7;
  --panel: #ffffff;
  --line: #e8ddd7;
  --coral: #c9405e;
  --coral-dark: #8b243f;
  --draft: #fff0bd;
  --draft-ink: #553d00;
  --focus: #174e8c;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
}

a {
  color: var(--coral-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.15em;
}

a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.draft-banner {
  background: var(--draft);
  color: var(--draft-ink);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: center;
}

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.page,
.site-footer {
  margin: 0 auto;
  max-width: 72rem;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
}

.header-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  min-height: 4.5rem;
  padding-bottom: 0.8rem;
  padding-top: 0.8rem;
}

.brand {
  color: var(--ink);
  font-family: Literata, Charter, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 700;
}

.page {
  padding-bottom: 4rem;
  padding-top: 3rem;
}

.hero {
  max-width: 50rem;
}

.eyebrow {
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Literata, Charter, Georgia, serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 550;
  margin: 0.4rem 0 1rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin-top: 2.4rem;
}

h3 {
  font-size: 1.12rem;
}

.lede {
  color: var(--muted);
  font-size: 1.16rem;
  max-width: 46rem;
}

.notice,
.card,
.review-form,
.sample {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.notice {
  border-left: 0.35rem solid var(--coral);
  margin: 1.75rem 0;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin: 1.5rem 0;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.review-form {
  margin-top: 2rem;
  max-width: 44rem;
}

.field-label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

input[type="tel"],
input[autocomplete="one-time-code"] {
  background: #f4f0ed;
  border: 1px solid #8a838f;
  border-radius: 0.55rem;
  color: var(--ink);
  font: inherit;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  width: 100%;
}

.consent-choice {
  align-items: flex-start;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.25rem 1fr;
  margin: 1.4rem 0;
}

.consent-choice input {
  height: 1.1rem;
  margin-top: 0.3rem;
  width: 1.1rem;
}

button {
  background: var(--coral-dark);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: 800 1rem Nunito, sans-serif;
  padding: 0.8rem 1.35rem;
}

button:disabled {
  background: #a7a1aa;
  cursor: not-allowed;
}

.review-form[hidden] {
  display: none;
}

.form-status {
  min-height: 1.5rem;
}

.quiet,
.meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.sample {
  margin: 0.8rem 0;
  overflow-wrap: anywhere;
}

.sample code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: normal;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

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