:root {
  --obsidian: #070604;
  --black: #11100d;
  --charcoal: #1d1a14;
  --gold: #d6a84a;
  --bright-gold: #f5d77b;
  --sand: #e8d6a3;
  --papyrus: #f7efd7;
  --muted: #b9aa84;
  --line: rgba(245, 215, 123, 0.28);
  --danger: #d98c5f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(214, 168, 74, 0.08) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(214, 168, 74, 0.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(135deg, #070604 0%, #17130c 58%, #050403 100%);
  color: var(--papyrus);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

.wrap {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

header,
footer {
  border-color: var(--line);
  border-style: solid;
  background: rgba(7, 6, 4, 0.82);
}

header {
  border-width: 0 0 1px;
}

footer {
  border-width: 1px 0 0;
}

.topbar,
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff7df;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-links a {
  color: var(--bright-gold);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-links a:focus,
.legal-links a:hover {
  text-decoration: underline;
}

main {
  padding: 46px 0 64px;
}

.eyebrow {
  color: var(--bright-gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 860px;
  margin-top: 14px;
  color: #fff7df;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
}

.lead {
  max-width: 820px;
  margin-top: 18px;
  color: #d8c797;
  font-size: 19px;
  line-height: 1.55;
}

.notice {
  margin-top: 22px;
  border: 1px solid rgba(245, 215, 123, 0.34);
  background: rgba(17, 16, 13, 0.82);
  color: #d8c797;
  padding: 18px;
  line-height: 1.5;
}

.notice strong {
  color: var(--bright-gold);
}

.notice.danger {
  border-color: rgba(217, 140, 95, 0.58);
}

.sections {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

section,
.request-card {
  border: 1px solid var(--line);
  background: rgba(17, 16, 13, 0.84);
  padding: 22px;
}

h2 {
  color: #fff7df;
  font-size: 26px;
}

h3 {
  color: var(--bright-gold);
  font-size: 17px;
}

section p,
section li,
.request-card p {
  color: var(--muted);
  line-height: 1.55;
}

section p,
ul {
  margin-top: 12px;
}

li + li {
  margin-top: 8px;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.field {
  min-height: 76px;
  border: 1px solid var(--line);
  background: rgba(7, 6, 4, 0.54);
  padding: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  color: var(--bright-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.field .line {
  display: block;
  min-height: 24px;
  margin-top: 12px;
  border-bottom: 1px solid rgba(245, 215, 123, 0.36);
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.checkline {
  border: 1px solid var(--line);
  background: rgba(7, 6, 4, 0.54);
  color: var(--muted);
  padding: 12px 14px;
}

.machine-tag {
  display: inline-block;
  margin-top: 12px;
  border: 1px solid var(--gold);
  color: var(--bright-gold);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  header,
  footer,
  .legal-links {
    display: none;
  }

  main {
    padding: 0;
  }

  section,
  .request-card,
  .notice,
  .field,
  .checkline {
    border-color: #333;
    background: #fff;
    color: #111;
  }

  section p,
  section li,
  .request-card p,
  .checkline,
  .lead {
    color: #111;
  }
}

@media (max-width: 720px) {
  .topbar,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

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