:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --surface: #17171a;
  --border: #2a2a2f;
  --text: #f5f5f6;
  --muted: #b4b4bb;
  --accent: #e5242b;
  --accent-text: #ff5a60;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header.hero {
  padding: 72px 0 48px;
  border-bottom: 4px solid var(--accent);
  background: linear-gradient(180deg, #1b0a0b 0%, var(--bg) 100%);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sub {
  margin: 0;
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  color: var(--muted);
}

main {
  flex: 1;
  padding: 40px 0 24px;
}

section {
  margin: 0 0 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.2;
}

section p {
  margin: 0 0 8px;
}

section p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover {
  color: #fff;
}

a:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p {
  margin: 0;
}

.notfound {
  text-align: center;
  padding: 96px 0 48px;
}

.notfound .code {
  margin: 0;
  font-size: clamp(4rem, 22vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
