:root {
  color-scheme: light dark;
  --background: #f5f7f7;
  --surface: #fff;
  --text: #142725;
  --muted: #51635f;
  --line: #d7e0dd;
  --action: #146052;
  --action-text: #fff;
  font-family: system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #121818;
    --surface: #1b2322;
    --text: #ecf4f1;
    --muted: #aabeb8;
    --line: #364440;
    --action: #8ed7c4;
    --action-text: #102822;
  }
}

body {
  margin: 0;
  min-block-size: 100vh;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--background);
}

main {
  box-sizing: border-box;
  inline-size: min(100% - 32px, 432px);
  padding: clamp(24px, 6vw, 36px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.brand {
  margin: 0 0 24px;
  font-size: 1rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 8vw, 2rem);
  line-height: 1.15;
}

#status,
.destination {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

button {
  min-block-size: 48px;
  inline-size: 100%;
  margin-top: 24px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  color: var(--action-text);
  background: var(--action);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

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

.destination {
  font-size: 0.875rem;
}
