:root {
  --background: #F4F4F2;
  --ink: #1A1A1A;
  --accent: #E3A008;
  --rule: 2px solid var(--ink);
  --heavy-rule: 4px solid var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

body::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--accent);
  border-bottom: 2px solid var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-style: double;
}

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

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

h1,
h2,
h3,
.brand,
.eyebrow,
.stamp,
label,
th,
.table-label,
.step-code,
dt,
.social-links,
.footer-line,
button {
  font-family: "IBM Plex Mono", monospace;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.site-header,
main {
  width: min(1440px, calc(100% - 32px));
  margin-inline: auto;
}

.status-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  border-inline: var(--rule);
  border-bottom: var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-right: var(--rule);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.status-data {
  display: flex;
  align-items: stretch;
  margin: 0;
}

.status-data > div {
  display: grid;
  align-content: center;
  min-width: 180px;
  padding: 0.65rem 1rem;
  border-right: var(--rule);
}

.status-data dt,
.contact-list dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.status-data dd {
  margin: 0;
  font-size: 0.9rem;
}

.stamp {
  align-self: center;
  margin: 0.65rem 1rem;
  padding: 0.45rem 0.7rem;
  border: 3px solid var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: rotate(-1deg);
}

.request-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  border-inline: var(--heavy-rule);
  border-bottom: var(--heavy-rule);
}

.request-intro,
.form-panel {
  padding: clamp(1.5rem, 5vw, 5rem);
}

.request-intro {
  border-right: var(--heavy-rule);
}

.request-intro > p:not(.eyebrow) {
  max-width: 64ch;
  font-size: 1.08rem;
}

.eyebrow,
.table-label {
  margin-bottom: 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.table-label::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 0.7rem;
  margin-right: 0.55rem;
  background: var(--accent);
  border: 2px solid var(--ink);
  vertical-align: -0.05rem;
}

.scope-wrap {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.scope-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.scope-table th,
.scope-table td {
  padding: 0.9rem;
  border: var(--rule);
  text-align: left;
  vertical-align: top;
}

.scope-table th {
  background: var(--ink);
  color: var(--background);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.scope-table th:first-child,
.scope-table td:first-child {
  width: 62%;
}

.scope-table td:last-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-panel {
  position: relative;
}

.form-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.form-heading p:last-child {
  max-width: 52ch;
  margin-bottom: 2rem;
}

.request-form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

input,
textarea {
  width: 100%;
  border: var(--rule);
  border-radius: 0;
  background: var(--background);
  color: var(--ink);
  font: inherit;
}

input {
  min-height: 50px;
  padding: 0.7rem 0.8rem;
}

textarea {
  min-height: 140px;
  padding: 0.8rem;
  resize: vertical;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-left: 8px solid var(--accent);
}

.field-error {
  min-height: 1.1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
}

button {
  min-height: 56px;
  padding: 0.8rem 1rem;
  border: var(--heavy-rule);
  border-radius: 0;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}

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

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 1.6rem;
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.steps-section {
  border-inline: var(--rule);
  border-bottom: var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  gap: 2rem;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-bottom: var(--rule);
}

.section-heading .eyebrow,
.section-heading h2 {
  margin-bottom: 0;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  min-height: 260px;
  padding: 1.5rem;
  border-right: var(--rule);
}

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

.step-code {
  display: inline-block;
  margin-bottom: 3.5rem;
  padding: 0.25rem 0.4rem;
  border: 2px solid var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.steps-list p {
  margin-bottom: 0;
}

.contact-section {
  border-inline: var(--heavy-rule);
  border-bottom: var(--heavy-rule);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 0.7fr;
  border-bottom: var(--rule);
}

.contact-grid > div,
.contact-list,
.social-links {
  margin: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.contact-grid > div,
.contact-list {
  border-right: var(--rule);
}

.contact-list > div + div {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: var(--rule);
}

.contact-list dd {
  margin: 0.4rem 0 0;
  max-width: 34ch;
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.social-links span {
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.privacy {
  max-width: 900px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.privacy p:not(.eyebrow) {
  max-width: 70ch;
}

.footer-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  border-top: var(--rule);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

@media (max-width: 980px) {
  .status-strip {
    grid-template-columns: auto 1fr;
  }

  .status-data {
    display: none;
  }

  .stamp {
    justify-self: end;
  }

  .request-section {
    grid-template-columns: 1fr;
  }

  .request-intro {
    border-right: 0;
    border-bottom: var(--heavy-rule);
  }

  .steps-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-list li:nth-child(odd) {
    border-bottom: var(--rule);
  }

  .steps-list li:nth-child(even) {
    border-right: 0;
    border-bottom: var(--rule);
  }

  .steps-list li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid > div {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: var(--rule);
  }

  .contact-list {
    border-right: var(--rule);
  }
}

@media (max-width: 640px) {
  body::before {
    height: 6px;
  }

  .site-header,
  main {
    width: calc(100% - 16px);
  }

  .brand {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .stamp {
    margin: 0.55rem;
    padding: 0.35rem 0.45rem;
    font-size: 0.58rem;
  }

  .request-intro,
  .form-panel {
    padding: 1.4rem;
  }

  h1 {
    font-size: clamp(2.1rem, 13vw, 3.6rem);
  }

  .scope-table,
  .scope-table tbody,
  .scope-table tr,
  .scope-table td {
    display: block;
    width: 100%;
  }

  .scope-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .scope-table tr + tr {
    border-top: var(--rule);
  }

  .scope-table td {
    border-bottom: 0;
  }

  .scope-table td:first-child {
    width: 100%;
    border-bottom: 0;
  }

  .scope-table td:last-child {
    border-top: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.4rem;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .steps-list li,
  .steps-list li:nth-child(odd),
  .steps-list li:nth-child(even),
  .steps-list li:nth-last-child(-n + 2) {
    min-height: 0;
    border-right: 0;
    border-bottom: var(--rule);
  }

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

  .step-code {
    margin-bottom: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-list {
    border-right: 0;
    border-bottom: var(--rule);
  }

  .footer-line {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
