:root {
  color: #f5f5f5;
  background: #0a0a0a;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  accent-color: #fff;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

header, main {
  margin-inline: auto;
  max-width: 40rem;
  padding-inline: 1.25rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1rem;
}

header.focused {
  justify-content: center;
  padding-block: 2.5rem 0;
}

.mark {
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a, button.text {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #d4d4d4;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

button.text {
  width: fit-content;
}

main {
  padding-block: 3rem 4rem;
}

h1 {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0;
}

.lede, .note, .context, .fine {
  color: #a3a3a3;
  text-align: center;
}

.context {
  margin: 0 0 0.35rem;
}

.fine {
  font-size: 0.9rem;
}

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

.panel {
  margin-inline: auto;
  max-width: 28rem;
}

form, .stack {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.35rem;
  text-align: start;
}

input, textarea, select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #2a2a2a;
  border-radius: 0.75rem;
  background: #141414;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid #8eb6ff;
  outline-offset: 2px;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

button.primary, a.primary {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.ghost, a.ghost {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid #3a3a3a;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.codes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-block: 1.5rem;
}

.code {
  width: 2.6rem;
  height: 3.25rem;
  text-align: center;
  text-transform: uppercase;
  border-radius: 0.6rem;
  border: 1px solid #2e2e2e;
  background: #161616;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
}

.code-read {
  margin: 1.25rem 0 0.25rem;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.code:focus {
  outline: 2px solid #8eb6ff;
  border-color: transparent;
}

.dash {
  color: #737373;
  padding-inline: 0.15rem;
}

.services {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  border: 1px solid #262626;
  border-radius: 1rem;
  overflow: hidden;
}

.services li {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid #262626;
}

.services li:first-child {
  border-top: 0;
}

.services strong {
  font-weight: 600;
}

.services span, .error, .secret {
  color: #a3a3a3;
}

.error {
  color: #ffb4b4;
  text-align: center;
}

.countdown {
  margin: 1.25rem 0 0.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 2.5rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.checks {
  display: grid;
  gap: 0.4rem;
  text-align: start;
}

.checks label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.checks input {
  width: 1.1rem;
  min-height: 1.1rem;
}

.card {
  border: 1px solid #262626;
  border-radius: 1rem;
  padding: 1rem;
  margin-block: 0.75rem;
  text-align: start;
}

.secret {
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}
