/*
 * Guest Check — public site styles.
 *
 * Mirrors packages/ui/src/tokens.ts by hand. The token file is TypeScript and
 * this site has no build step on purpose: 10DLC vetting needs these pages to
 * be reachable and stable, and a static file cannot break in a deploy. If the
 * palette changes in the app, change it here too — the duplication is the
 * price of not having a pipeline in front of a compliance dependency.
 */

:root {
  --paper: #f4ecd8;
  --paper-white: #fbf6e8;
  --ink-blue: #1f3f7a;
  --ink-blue-deep: #122456;
  --ink-green: #2e5240;
  --ink-body: #2a2520;
  --ink-muted: #6b6258;
  --ink-faint: #a89d8c;
  --perforation: #c5baa1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

.sheet {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header.masthead {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

header.masthead .wordmark {
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 2.3rem);
  letter-spacing: 0.12em;
  color: var(--ink-blue);
  margin: 0;
}

header.masthead .tagline {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.5rem 0 0;
}

/* The perforated rule, as in the app. */
.perf {
  border: 0;
  border-top: 1px dashed var(--perforation);
  margin: 1.5rem 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--ink-blue);
  margin: 2rem 0;
}

h1 {
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  letter-spacing: 0.06em;
  color: var(--ink-blue);
  margin: 0 0 0.35rem;
}

h2 {
  font-size: 1.0625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-blue);
  margin: 2.25rem 0 0.6rem;
}

h3 {
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: var(--ink-green);
  margin: 1.5rem 0 0.4rem;
}

p,
li {
  margin: 0.6rem 0;
}

ul {
  padding-left: 1.15rem;
}

a {
  color: var(--ink-green);
  text-underline-offset: 2px;
}

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

.meta {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

/*
 * The call-out used for the mobile-information clause. That clause is the
 * single most common reason a 10DLC campaign is rejected, so it is set apart
 * where a reviewer skimming the page cannot miss it.
 */
.callout {
  background: var(--paper-white);
  border: 1px solid var(--ink-blue);
  border-radius: 4px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

.callout p:first-child {
  margin-top: 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--perforation);
  vertical-align: top;
}

th {
  color: var(--ink-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

nav.pages {
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav.pages a {
  margin: 0 0.6rem;
  white-space: nowrap;
}

footer {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  padding-top: 1rem;
}

footer .thanks {
  font-family: Caveat, 'Segoe Script', cursive;
  font-size: 1.5rem;
  color: var(--ink-green);
  display: block;
  margin-bottom: 0.25rem;
}
