:root {
  --gold: #736534;
  --gold-light: #8f7d42;
  --gold-wash: #f1edde;
  --ink: #16130b;
  --ink-soft: #4a4432;
  --paper: #fbfaf5;
  --line: #dcd5c0;
  --deep: #2a2512;
  --danger: #8b2e22;
  --success: #285c3a;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
}

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

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--deep);
  color: #fff;
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 245, 0.96);
}

nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand span,
.eyebrow,
.field label,
.meta,
.footer-copy {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.brand span {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.back-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

main {
  flex: 1;
  padding: clamp(48px, 8vw, 88px) 0;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.lede {
  max-width: 52ch;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.steps {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.step-number {
  color: var(--gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.panel {
  position: relative;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  background: #fff;
}

.panel::before,
.panel::after {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--gold);
  opacity: 0.65;
  content: "";
}

.panel::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.panel::after {
  right: -1px;
  bottom: -1px;
  border-top: 0;
  border-left: 0;
}

.panel-intro {
  margin: 12px 0 28px;
  color: var(--ink-soft);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.optional {
  letter-spacing: 0;
  text-transform: none;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 0;
}

.field-note {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 20px 0;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--gold);
}

.checkbox-field label {
  color: var(--ink-soft);
  font-size: 13.5px;
}

.turnstile-wrap {
  min-height: 70px;
  margin: 20px 0;
  overflow: hidden;
}

.btn {
  display: inline-block;
  min-height: 46px;
  border: 1.5px solid var(--gold);
  border-radius: 0;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
  font: 600 14.5px "IBM Plex Sans", system-ui, sans-serif;
  padding: 11px 22px;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.btn.secondary {
  background: transparent;
  color: var(--gold);
}

.btn.secondary:hover {
  background: var(--gold);
  color: #fff;
}

.form-actions,
.verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.success-box {
  padding: 26px;
  border-left: 3px solid var(--success);
  background: #f0f6f1;
}

.success-box h2 {
  margin-bottom: 12px;
}

.success-box p {
  color: var(--ink-soft);
}

.success-box .btn {
  margin-top: 10px;
}

.privacy {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.privacy h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.privacy p,
.privacy li {
  color: var(--ink-soft);
  font-size: 13px;
}

.privacy ul {
  padding-left: 20px;
}

.privacy-contact {
  margin-bottom: 0;
}

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

.verification-layout {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
}

.verification-layout h1 {
  max-width: none;
}

.verification-layout .panel-intro {
  max-width: 58ch;
}

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: var(--gold-wash);
  color: var(--ink-soft);
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.footer-copy {
  color: var(--ink-soft);
  font-size: 12px;
}

noscript p {
  padding: 14px 16px;
  border-left: 3px solid var(--danger);
  background: #fff3f1;
  color: var(--danger);
}

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

  h1 {
    max-width: 16ch;
  }
}

@media (max-width: 520px) {
  .wrap,
  .verification-layout {
    width: min(100% - 30px, var(--max-width));
  }

  nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
  }

  main {
    padding: 38px 0 54px;
  }

  .panel {
    padding: 24px 20px;
  }

  .form-actions .btn,
  .verification-actions .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
