:root {
  color-scheme: dark;
  --bg: #0e0f12;
  --surface: #16181d;
  --text: #e6e7ea;
  --muted: #9aa0aa;
  --accent: #c4413a;
  --accent-hover: #d9544c;
  --line: #262a31;
  --todo-bg: #5a4a00;
  --todo-text: #ffe58a;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

header {
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
}

main {
  flex: 1;
  padding-top: 40px;
  padding-bottom: 56px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 24px;
}

h2 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
}

p,
ul {
  margin: 0 0 16px;
}

ul {
  padding-left: 20px;
}

a {
  color: var(--accent-hover);
}

a:hover {
  color: var(--text);
}

.hero {
  padding: 48px 0 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 9vw, 3.8rem);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hero .by {
  color: var(--muted);
  margin-bottom: 24px;
}

.hero .tagline {
  font-size: 1.2rem;
  margin-bottom: 28px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
}

.button:hover {
  background: var(--accent-hover);
  color: #fff;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 32px;
}

.card h2 {
  margin-top: 0;
}

mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 4px;
  border-radius: 3px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

footer a {
  color: var(--muted);
}

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