/* LocationCheck.ch — Coming Soon — Swiss editorial minimalism */

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

:root {
  --bg:          #FAFAF7;
  --fg:          #0A0A0A;
  --muted:       #6B6B66;
  --accent:      #0F766E;
  --accent-hover:#0D5F58;
  --accent-ring: rgba(15, 118, 110, 0.15);
  --border:      #E5E5E0;
  --error:       #D52B1E;
  --radius:      8px;
  --font:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:       560px;
}

@media (prefers-reduced-motion: no-preference) {
  :root { --dur: 200ms; --ease: ease-out; }
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Header ── */
header {
  padding: 56px 0 0;
  display: flex;
  justify-content: center;
}

.logo {
  height: 30px;
  width: auto;
  display: block;
}

/* ── Main ── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* ── Typography ── */
h1 {
  font-size: clamp(30px, 6vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 20ch;
}

.tagline {
  margin-top: 16px;
  font-size: clamp(17px, 3vw, 20px);
  color: var(--muted);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.description {
  margin-top: 20px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 46ch;
}

/* ── Form ── */
form {
  margin-top: 48px;
  width: 100%;
  max-width: 420px;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 16px;
  color: var(--fg);
  background: #fff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur, 0ms) var(--ease, linear),
              box-shadow var(--dur, 0ms) var(--ease, linear);
}

input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

input[type="email"]::placeholder {
  color: #A8A8A3;
}

.hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Honeypot: keep in flow but invisible */
.honey {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
  border: 0;
}

button[type="submit"] {
  margin-top: 12px;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--dur, 0ms) var(--ease, linear),
              transform var(--dur, 0ms) var(--ease, linear);
}

button[type="submit"]:hover:not(:disabled) {
  background: var(--accent-hover);
}

button[type="submit"]:active:not(:disabled) {
  transform: scale(0.98);
}

button[type="submit"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ── Status ── */
#form-status {
  margin-top: 14px;
  min-height: 22px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--accent);
  text-align: center;
}

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

/* ── Launch date ── */
.launch-date {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 0 0 40px;
  font-size: 13px;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur, 0ms) var(--ease, linear);
}

footer a:hover {
  color: var(--fg);
}

footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
