:root {
  --bg: #ffffff;
  --fg: #0f0f0f;
  --muted: #6f6f6f;
  --box: #f7f7f7;
  --line: #dedede;
  --lime: #d3da54;
  --btn-bg: #000000;
  --btn-fg: #ffffff;
  --btn-off: #6f6f6f;
  --ok: #1b6e2d;
  --error: #b3141f;
  --font: "proxima-nova", "Proxima Nova", Helvetica, Arial, Tahoma, Verdana, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #f2f2f2;
    --muted: #a3a3a3;
    --box: #1e1e1e;
    --line: #333333;
    --btn-bg: #d3da54;
    --btn-fg: #000000;
    --btn-off: #4a4a4a;
    --ok: #8fd694;
    --error: #ff8a93;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 22px;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.masthead,
footer {
  background: #000000;
  padding: 22px 20px;
}

.masthead-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.logo {
  display: block;
  width: 26px;
  height: 26px;
  flex: none;
}

.dept {
  color: var(--lime);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.accent {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--lime);
}

.masthead .accent {
  margin-top: 18px;
}

main {
  flex: 1;
  padding: 28px 20px 24px;
}

.chip {
  display: inline-block;
  padding: 6px 11px;
  background: var(--lime);
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 10px;
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.lead {
  margin: 0 0 20px;
}

.details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--box);
  border-left: 3px solid var(--lime);
}

.details[hidden] {
  display: none;
}

.details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  line-height: 20px;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

button:disabled {
  background: var(--btn-off);
  color: #ffffff;
  cursor: default;
}

#status {
  margin: 12px 0 0;
  min-height: 22px;
  font-size: 14px;
}

.debug {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

#status.ok {
  color: var(--ok);
}

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

hr {
  margin: 24px 0 14px;
  border: 0;
  border-top: 1px solid var(--line);
}

.signoff {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.signoff a {
  color: var(--fg);
}

footer .accent {
  margin-bottom: 14px;
}

footer p {
  margin: 0;
  color: #c4c4c4;
  font-size: 11px;
  line-height: 17px;
}
