:root {
  --ink: #171713;
  --paper: #f1eee3;
  --paper-light: #f8f6ee;
  --blue: #102e5e;
  --blue-light: #d9e0ea;
  --red: #8f2720;
  --rule: 2px solid var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(23, 23, 19, .035) 1px, transparent 1px);
  background-size: 100% 32px;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  border-radius: 0;
  color: var(--ink);
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .5;
}

.site-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: var(--rule);
  background: var(--paper-light);
}

.identity {
  display: flex;
  align-items: center;
  min-width: 315px;
  padding-right: 24px;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
}

.identity-mark {
  align-self: stretch;
  display: grid;
  place-items: center;
  margin-right: 16px;
  padding: 0 22px;
  color: white;
  background: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -.06em;
}

nav {
  display: flex;
  align-items: stretch;
}

nav a {
  display: grid;
  place-items: center;
  min-width: 180px;
  padding: 18px 24px;
  border-left: 1px solid var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .76rem;
  font-weight: bold;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
nav a[aria-current="page"] {
  color: white;
  background: var(--ink);
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.masthead {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px 72px;
  padding: 80px 0 64px;
  border-bottom: var(--rule);
}

.document-code {
  margin: 0 0 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .7rem;
  font-weight: bold;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 7.7rem);
  font-weight: normal;
  letter-spacing: -.055em;
  line-height: .82;
}

.masthead .document-code {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.lead {
  align-self: end;
  grid-column: 2;
  grid-row: 2;
  margin-bottom: 0;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  font-size: 1.2rem;
  line-height: 1.5;
}

.masthead.compact {
  padding-bottom: 48px;
}

.update-line {
  grid-column: 2;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75rem;
  text-transform: uppercase;
}

.paper {
  display: grid;
  grid-template-columns: 100px 1fr;
  margin: 64px 0 88px;
  border: var(--rule);
  background: var(--paper-light);
  box-shadow: 9px 9px 0 rgba(23, 23, 19, .14);
}

.section-number {
  padding: 24px;
  border-right: var(--rule);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: bold;
}

.form-section > div:last-child,
.results-section > div:last-child {
  padding: 40px clamp(24px, 6vw, 72px) 56px;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: normal;
  letter-spacing: -.035em;
}

.instructions {
  max-width: 680px;
  margin-bottom: 42px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.field,
fieldset {
  margin: 0 0 34px;
}

.field label,
fieldset legend,
.section-heading label {
  display: block;
  margin-bottom: 9px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .76rem;
  font-weight: bold;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.optional {
  color: #555;
  font-weight: normal;
}

input[type="number"],
input[type="text"],
input[type="password"],
input:not([type]),
textarea,
select {
  width: 100%;
  border: 1px solid var(--ink);
  padding: 13px 14px;
  background: white;
  outline: none;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #f0a82f;
  outline-offset: 2px;
}

input[type="number"] {
  max-width: 280px;
  font-family: "Courier New", monospace;
  font-size: 1.4rem;
  font-weight: bold;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

.field small {
  display: block;
  margin-top: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
}

fieldset {
  border: 0;
  padding: 0;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.radio-grid label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 10px 13px;
  background: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .8rem;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 28px;
  font-size: .95rem;
  line-height: 1.4;
}

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

.turnstile-space {
  min-height: 12px;
  margin-bottom: 20px;
}

.development-notice {
  border: 1px dashed var(--ink);
  padding: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
}

.primary-button {
  border: 2px solid var(--ink);
  padding: 15px 24px;
  color: white;
  background: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.status-message {
  min-height: 1.3em;
  margin: 12px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .8rem;
}

.status-message.error,
.page-state.error {
  color: var(--red);
}

.status-message.success {
  color: #285d31;
  font-weight: bold;
}

footer {
  display: flex;
  justify-content: space-between;
  border-top: var(--rule);
  padding: 28px max(24px, calc((100% - 1180px) / 2));
  background: var(--blue);
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.page-state {
  margin: 42px 0;
  font-family: Arial, Helvetica, sans-serif;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 64px 0;
  border-top: var(--rule);
  border-left: var(--rule);
}

.stat-cell {
  min-height: 210px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  padding: 24px;
  background: var(--paper-light);
}

.stat-cell.featured {
  color: white;
  background: var(--blue);
}

.stat-label {
  display: block;
  margin-bottom: 46px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stat-cell strong {
  display: block;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: normal;
  line-height: 1;
}

.results-section {
  margin-top: 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .82rem;
}

th,
td {
  border-bottom: 1px solid var(--ink);
  padding: 14px 10px;
  text-align: left;
}

th {
  border-top: var(--rule);
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.empty-message {
  padding: 18px 0;
  font-style: italic;
}

.testimonies-section {
  margin: 88px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
  border-bottom: var(--rule);
  padding-bottom: 24px;
}

.section-heading label {
  width: 240px;
}

.section-heading select {
  margin-top: 8px;
}

.testimony {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  border-bottom: 1px solid var(--ink);
  padding: 32px 0;
}

.testimony-meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .7rem;
  font-weight: bold;
  letter-spacing: .05em;
  line-height: 1.5;
  text-transform: uppercase;
}

blockquote {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.5;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75rem;
}

.pagination button {
  border: 1px solid var(--ink);
  padding: 10px 14px;
  background: var(--paper-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .7rem;
  font-weight: bold;
  text-transform: uppercase;
}

.pagination button:hover {
  color: white;
  background: var(--ink);
}

@media (max-width: 760px) {
  .site-header {
    display: block;
  }

  .identity {
    min-height: 80px;
    min-width: 0;
  }

  nav a {
    flex: 1;
    min-width: 0;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  nav a + a {
    border-left: 1px solid var(--ink);
  }

  main {
    width: min(100% - 28px, 1180px);
  }

  .masthead {
    display: block;
    padding: 54px 0 40px;
  }

  .masthead h1 {
    margin-bottom: 34px;
  }

  .lead,
  .update-line {
    margin-top: 22px;
  }

  .paper {
    display: block;
    margin: 38px 0 60px;
  }

  .section-number {
    border-right: 0;
    border-bottom: var(--rule);
  }

  .form-section > div:last-child,
  .results-section > div:last-child {
    padding: 28px 20px 40px;
  }

  .radio-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    min-height: 150px;
  }

  .stat-label {
    margin-bottom: 28px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading label {
    width: 100%;
  }

  .testimony {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  footer {
    gap: 20px;
    flex-direction: column;
  }

}
