/*
 * Landing styles. Intentionally minimal:
 *  - No JavaScript, no build step — this stylesheet is served as-is.
 *  - Respects the user's light/dark preference via color-scheme so
 *    the browser picks sensible defaults; we don't fight it.
 *  - Links are tall enough (padding + line-height) to comfortably
 *    exceed the 44×44 touch-target minimum on mobile.
 *  - Keyboard navigation is the default (Tab between <a> elements,
 *    Enter to follow). We add :focus-visible outlines so that path
 *    through the page is obvious to keyboard users.
 */

:root {
  color-scheme: light dark;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

main {
  width: 100%;
  max-width: 28rem;
}

h1 {
  margin: 0 0 2rem;
  /* clamp() grows the heading with the viewport between two bounds,
   * so mobile doesn't get an oversized title and desktop doesn't
   * get a cramped one. */
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  display: block;
  padding: 0.875rem 0;
  color: inherit;
  text-decoration: none;
  font-size: 1.125rem;
  border-bottom: 1px solid currentColor;
  /* currentColor picks up body text color in whichever scheme the
   * browser selected, so the divider stays readable in both modes.
   * Soften it a bit below full weight via opacity on the border. */
  border-bottom-color: color-mix(in srgb, currentColor 20%, transparent);
}

nav li:last-child a {
  border-bottom: none;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
  border-radius: 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
