:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  --background: #ffffff;
  --surface: #f7f7f7;
  --text: #202020;
  --muted: #5a5a5a;
  --border: #dedede;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #262626;
    --surface: #333333;
    --text: #fafafa;
    --muted: #d8d8d8;
    --border: #505050;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  background: var(--background);
}

main {
  width: min(100%, 38rem);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 32px rgb(0 0 0 / 5%);
}

.brand {
  margin: 0 0 32px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { margin: 0 0 12px; }
.description { color: var(--muted); }

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 6px;
  color: var(--background);
  background: var(--text);
  font-weight: 600;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 5px;
}

a:hover { text-decoration: underline; }
