:root {
  --bg: #0a0a0a;
  --fg: #ededed;
  --muted: rgba(237, 237, 237, 0.4);
  --line: rgba(237, 237, 237, 0.2);
  --accent: #a2bec9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

main {
  width: 100%;
  max-width: 280px;
  text-align: center;
  animation: fade 0.5s ease both;
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- form ---------- */

form { display: grid; gap: 22px; }

.field { position: relative; }

.field input,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* stops iOS zoom */
  letter-spacing: 0.06em;
  padding: 12px 0;
  text-align: left;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.field input::placeholder { color: var(--muted); }

.field input:focus { border-bottom-color: var(--fg); }

/* city suggestions */
.combo ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
  list-style: none;
  background: #111;
  border: 1px solid var(--line);
  border-top: 0;
  max-height: 260px;
  overflow-y: auto;
}

.combo li {
  padding: 11px 12px;
  text-align: left;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
}

.combo li[aria-selected="true"],
.combo li:hover { color: var(--fg); background: rgba(237, 237, 237, 0.06); }

button.go {
  justify-self: start;
  margin-top: 14px;
  display: block;
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--line);
  cursor: default;
  transition: color 0.5s ease, filter 0.5s ease;
}

button.go svg { display: block; width: 30px; height: 30px; }

/* "on" state: the arrow takes the butterfly's pale blue and glows softly */
form.ready button.go {
  color: var(--accent);
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(162, 190, 201, 0.55));
}
form.ready button.go:hover,
form.ready button.go:focus-visible { color: #d6e6ec; filter: drop-shadow(0 0 9px rgba(162, 190, 201, 0.85)); }
button.go:focus-visible { outline: none; }

/* ---------- links page ---------- */

main.wide { max-width: 480px; }

.club {
  font-size: 12px;
  letter-spacing: 0.32em;
  margin-right: -0.32em; /* re-centre after tracking */
  color: var(--muted);
  margin-bottom: 28px;
}

.icons {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 5vw, 32px);
}

.icon {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--muted);
  opacity: 0;
  animation: fade 0.5s ease forwards;
  transition: color 0.3s;
}

.icon:hover,
.icon:focus-visible { color: var(--fg); outline: none; }

.icon span {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  main, .icon { animation: none; opacity: 1; }
}

/* Stop the browser painting its own colored box over autofilled fields */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg);
  caret-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 99999s ease-in-out 0s;
}
.field input:autofill {
  color: var(--fg);
  box-shadow: 0 0 0 1000px var(--bg) inset;
}
