:root {
  color-scheme: dark;
  --bg: #0b0f0a;
  --text: #dfe9da;
  --accent: #4f9a48;
  --accent-hover: #63b05b;
  --on-accent: #08100a;
  font-family: system-ui, sans-serif;
}

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

body {
  margin: 0;
  /* svh ignores the mobile browser's address bar, so the content stays
     centred in the visible area. 100vh is the fallback for older browsers. */
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
}

main {
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  text-align: center;
  padding: 1.5rem max(1rem, env(safe-area-inset-left)) 1.5rem max(1rem, env(safe-area-inset-right));
}

h1 {
  font-size: clamp(1.75rem, 8vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 clamp(1.5rem, 6vw, 2.5rem);
  overflow-wrap: break-word;
}

.big-link {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  padding: clamp(1rem, 4vw, 1.25rem) clamp(1.5rem, 7vw, 2.5rem);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: clamp(1.25rem, 5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.15s;
}

/* Only lift on devices with a real pointer, so the effect doesn't stick
   after a tap on touch screens. */
@media (hover: hover) {
  .big-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
  }
}

.big-link:active {
  background: var(--accent-hover);
}

.big-link:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}
