:root {
  --sand: #f3ede2;
  --sand-deep: #e7dfd1;
  --teal: #14353f;
  --terracotta: #c2563a;
  --teal-soft: rgba(20, 53, 63, 0.12);
  --ok: #3f6b4a;
  --warn: #8a5a1e;
  --head: Georgia, "Times New Roman", serif;
  --body: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--sand);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--teal);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.masthead {
  padding: 44px 0 8px;
  border-bottom: 2px solid var(--terracotta);
}

.wordmark {
  margin: 0 0 18px;
  font-family: var(--head);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
}

h1 {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 14px;
}

.lede {
  max-width: 62ch;
  margin: 0 0 20px;
  font-size: 17px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
}

.chip {
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid var(--teal-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.chip--ok {
  border-color: rgba(63, 107, 74, 0.4);
  color: var(--ok);
}

.chip--warn {
  border-color: rgba(138, 90, 30, 0.45);
  color: var(--warn);
}

.card {
  background: #fbf8f2;
  border: 1px solid var(--teal-soft);
  border-radius: 4px;
  padding: 26px 24px 30px;
  margin: 26px 0;
}

.card h2 {
  font-family: var(--head);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.hint {
  color: rgba(20, 53, 63, 0.72);
  font-size: 14.5px;
  max-width: 68ch;
  margin: 0 0 18px;
}

.select-label {
  display: block;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

select {
  font-family: var(--body);
  font-size: 15px;
  color: var(--teal);
  background: #fff;
  border: 1px solid var(--teal-soft);
  border-radius: 3px;
  padding: 9px 12px;
  max-width: 100%;
  margin-bottom: 8px;
}

.subject-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin: 14px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--teal-soft);
}

.subject-line span {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(20, 53, 63, 0.6);
}

.subject-line strong {
  font-weight: 600;
}

.email-shell {
  border: 1px solid var(--teal-soft);
  border-radius: 3px;
  overflow-x: auto;
  background: var(--sand);
}

.plain {
  margin-top: 18px;
}

.plain summary {
  cursor: pointer;
  font-size: 14.5px;
  color: rgba(20, 53, 63, 0.8);
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  line-height: 1.65;
  background: #fff;
  border: 1px solid var(--teal-soft);
  border-radius: 3px;
  padding: 16px;
  margin: 12px 0 12px;
}

.button {
  font-family: var(--body);
  font-size: 14px;
  color: #fbf8f2;
  background: var(--teal);
  border: 0;
  border-radius: 3px;
  padding: 9px 15px;
  cursor: pointer;
}

.button:hover {
  background: #1d4854;
}

.copied {
  font-size: 13px;
  color: var(--ok);
  margin-left: 10px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 620px;
}

th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(20, 53, 63, 0.62);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--teal-soft);
}

td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid rgba(20, 53, 63, 0.08);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td .sub {
  display: block;
  font-size: 13px;
  color: rgba(20, 53, 63, 0.62);
}

.pill {
  display: inline-block;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--teal-soft);
  white-space: nowrap;
}

.pill--sent {
  border-color: rgba(63, 107, 74, 0.45);
  color: var(--ok);
}

.pill--held,
.pill--wait,
.pill--unknown {
  border-color: rgba(138, 90, 30, 0.45);
  color: var(--warn);
}

.pill--skipped,
.pill--suppressed {
  color: rgba(20, 53, 63, 0.6);
}

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

.list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(20, 53, 63, 0.08);
  font-size: 14.5px;
}

.list li:last-child {
  border-bottom: 0;
}

.list .empty {
  color: rgba(20, 53, 63, 0.6);
}

.list--flags li {
  border-left: 3px solid var(--terracotta);
  padding-left: 12px;
  margin-bottom: 8px;
}

.steps {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}

.steps li {
  margin-bottom: 8px;
}

.footer {
  padding: 10px 20px 50px;
}

.footer p {
  border-top: 1px solid var(--teal-soft);
  padding-top: 18px;
  font-size: 13px;
  color: rgba(20, 53, 63, 0.7);
  max-width: 72ch;
}

@media (max-width: 560px) {
  .card {
    padding: 22px 16px 24px;
  }
}
