:root {
  --bg: #FFFAF7;
  --surface: #FFFFFF;
  --text: #11181C;
  --muted: #687076;
  --border: #EFE6DF;
  --tint: #FF7A45;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0E0D;
    --surface: #1A1816;
    --text: #F2EBE6;
    --muted: #9C9690;
    --border: #2C2825;
    --tint: #FF8F5C;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

header .logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

nav a:hover {
  border-color: var(--tint);
}

nav a.active {
  background: var(--tint);
  color: white;
  border-color: var(--tint);
}

article h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

article .updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

article h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}

article p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 15px;
}

article a {
  color: var(--tint);
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

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

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--tint);
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
}
