:root {
  --court-night: #071619;
  --court-panel: #0d2427;
  --court-line: #b8d458;
  --chalk: #edf5ef;
  --chalk-muted: #a7bdb7;
  --danger: #fa725d;
  --danger-dark: #411d1a;
  --aqua: #66d9d0;
  --line: #275057;
  --focus: #f5d45d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--court-night);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--chalk);
  background:
    linear-gradient(90deg, transparent 49.85%, #16393e 50%, transparent 50.15%),
    var(--court-night);
  font-family: Avenir, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--court-night);
  background: var(--focus);
  border-radius: 6px;
  transform: translateY(-180%);
}

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

.court-line {
  position: fixed;
  z-index: -1;
  background: color-mix(in srgb, var(--court-line) 26%, transparent);
  pointer-events: none;
}

.court-line--top {
  top: 108px;
  right: 0;
  left: 0;
  height: 1px;
}

.site-header,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 108px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chalk);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.wordmark__ball {
  width: 23px;
  height: 23px;
  border: 2px solid var(--court-line);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 33% 35%,
      var(--court-night) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 67% 63%,
      var(--court-night) 0 1px,
      transparent 2px
    ),
    var(--court-line);
}

.header-note,
.scoreboard-label,
.service-time {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-note {
  color: var(--chalk-muted);
  font-size: 12px;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 54px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: start;
}

.request-panel {
  padding: 28px 0 0;
}

.eyebrow,
.scoreboard-label {
  margin: 0 0 14px;
  color: var(--court-line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 650px;
  margin-bottom: 26px;
  color: var(--chalk-muted);
  font-size: 18px;
  line-height: 1.65;
}

.permanence-note {
  max-width: 650px;
  margin-bottom: 34px;
  padding: 16px 18px;
  color: #ffd5ce;
  background: var(--danger-dark);
  border-left: 4px solid var(--danger);
  line-height: 1.55;
}

.permanence-note strong {
  display: block;
  margin-bottom: 3px;
  color: #fff2ef;
}

.request-form {
  max-width: 720px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.request-form--code {
  margin-top: 6px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

input,
button {
  min-height: 52px;
  border-radius: 4px;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 14px;
  color: var(--chalk);
  background: #081e22;
  border: 1px solid #3a676c;
}

input:disabled {
  opacity: 0.65;
}

button {
  padding: 0 18px;
  color: #071619;
  background: var(--court-line);
  border: 1px solid #d3eb76;
  font-weight: 800;
  cursor: pointer;
}

button:hover:not(:disabled) {
  filter: brightness(1.08);
}

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

.button--danger {
  color: #24100e;
  background: var(--danger);
  border-color: #ff9c8d;
}

.button--text {
  min-height: auto;
  margin-top: 14px;
  padding: 4px 0;
  color: var(--aqua);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-help,
.support-note {
  color: var(--chalk-muted);
  font-size: 13px;
  line-height: 1.55;
}

.field-help {
  margin: 10px 0 0;
}

.status-message {
  max-width: 720px;
  margin-top: 10px;
  padding: 14px 16px;
  color: var(--chalk);
  background: #0c2d31;
  border: 1px solid var(--line);
  line-height: 1.5;
}

.status-message[data-kind="error"] {
  color: #ffd5ce;
  background: var(--danger-dark);
  border-color: #8f473e;
}

.completion {
  max-width: 720px;
  margin-top: 24px;
  padding: 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  background: #102f30;
  border: 1px solid #34716d;
}

.completion[hidden] {
  display: none;
}

.completion__mark {
  width: 42px;
  height: 42px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--court-night);
  background: var(--court-line);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}

.completion h2 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.completion p:last-child {
  margin-bottom: 0;
  color: var(--chalk-muted);
  line-height: 1.55;
}

.service-panel {
  position: sticky;
  top: 28px;
  padding: 30px;
  background: var(--court-panel);
  border: 1px solid var(--line);
  box-shadow: 16px 16px 0 #051012;
}

.service-panel h2 {
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.service-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 0 0 28px;
}

.service-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 5px;
  left: 39px;
  width: 2px;
  background: var(--line);
}

.service-time {
  position: relative;
  z-index: 1;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--court-night);
  background: var(--court-line);
  font-size: 10px;
  font-weight: 900;
}

.service-steps strong {
  display: block;
  margin: 2px 0 5px;
}

.service-steps p,
.retention-card p {
  margin-bottom: 0;
  color: var(--chalk-muted);
  font-size: 14px;
  line-height: 1.55;
}

.retention-card {
  margin-top: 4px;
  padding: 18px;
  background: #0a1e21;
  border: 1px dashed #3f6869;
}

.retention-card h3 {
  margin-bottom: 7px;
  color: var(--chalk);
  font-size: 15px;
}

.support-note {
  margin: 24px 0 0;
}

footer {
  min-height: 92px;
  padding: 24px 0;
  color: var(--chalk-muted);
  border-top: 1px solid #16393e;
  font-size: 13px;
}

footer nav {
  display: flex;
  gap: 18px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  body {
    background: var(--court-night);
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .service-panel {
    position: static;
    box-shadow: 10px 10px 0 #051012;
  }
}

@media (max-width: 620px) {
  .site-header,
  .page-shell,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 84px;
  }

  .header-note {
    display: none;
  }

  .court-line--top {
    top: 84px;
  }

  .page-shell {
    margin-top: 26px;
  }

  h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .service-panel {
    padding: 24px 20px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
