:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
  color: #292f32;
  background: #f5f4f0;
  line-height: 1.55;
  --surface: #fdfcf8;
  --border: #d8dddf;
  --accent: #336579;
  --subtle: #626b70;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1.25rem;
  display: grid;
  place-items: center;
  min-height: 100svh;
}

main {
  width: min(100%, 31rem);
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
}

.marca {
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: .4rem 0 .7rem;
  line-height: 1.2;
  font-size: clamp(1.6rem, 6vw, 2rem);
}

p {
  margin: .7rem 0;
  color: var(--subtle);
}

.opciones,
nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.15rem;
}

.opciones[hidden] {
  display: none;
}

button {
  font: inherit;
  font-weight: 650;
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid var(--accent);
  border-radius: .55rem;
  color: var(--accent);
  background: var(--surface);
  cursor: pointer;
}

button:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

button:disabled {
  cursor: wait;
  opacity: .55;
}

a {
  color: var(--accent);
  text-underline-offset: .18em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #eef2f6;
    background: #12161c;
    --surface: #151b23;
    --border: #2a343f;
    --accent: #add6eb;
    --subtle: #a6b0b9;
  }
}
