:root {
  --bg: #f4f1eb;
  --bg-raised: #faf8f4;
  --ink: #1c1916;
  --muted: #6a645c;
  --line: #ddd6cb;
  --accent: #2f4a3e;
  --accent-hover: #24392f;
  --ok: #2f4a3e;
  --err: #8a3b2d;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header,
main,
.site-footer {
  width: min(42rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  padding: 2.25rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

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

.hero {
  padding: 3.25rem 0 1.5rem;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 2.85rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.lede {
  margin: 0;
  font-size: 1.125rem;
  color: #2b2824;
}

.cta-row {
  margin: 1.75rem 0 0;
}

.button {
  display: inline-block;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  color: #f7f4ee;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-hover);
  color: #f7f4ee;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.block {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.plain-list,
.steps {
  margin: 0;
  padding-left: 1.2rem;
}

.plain-list li + li,
.steps li + li {
  margin-top: 0.7rem;
}

.quiet {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-block p:first-of-type {
  margin-top: 0;
}

form p {
  margin: 0 0 1.1rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

@media (max-width: 640px) {
  .row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #c9c1b5;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.4rem 0 0.45rem;
  outline: none;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}

textarea {
  border: 1px solid #c9c1b5;
  padding: 0.6rem 0.7rem;
  resize: vertical;
  min-height: 6.5rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

.form-status {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.err {
  color: var(--err);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page {
  padding: 3.25rem 0 4rem;
}

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

.site-footer p {
  margin: 0 0 0.85rem;
}

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

.site-footer strong {
  color: var(--ink);
  font-weight: 500;
}
