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

:root {
  --bg: #FAFAF8;
  --bg-alt: #F1F0EC;
  --bg-card: #FFFFFF;
  --text: #1A1A18;
  --text-secondary: #6B6B64;
  --text-tertiary: #9B9B94;
  --accent: #E8430A;
  --accent-glow: rgba(232, 67, 10, 0.12);
  --accent-soft: #FFF0EA;
  --border: #E4E3DF;
  --border-strong: #D0CFC9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', -apple-system, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 740px;
}

[data-theme="dark"] {
  --bg: #111110;
  --bg-alt: #1A1A18;
  --bg-card: #1E1E1C;
  --text: #EDEDEB;
  --text-secondary: #A0A098;
  --text-tertiary: #6B6B64;
  --accent: #F05A24;
  --accent-glow: rgba(240, 90, 36, 0.15);
  --accent-soft: #2A1810;
  --border: #2C2C28;
  --border-strong: #3A3A35;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

[data-theme="dark"] body::before { opacity: 0.04; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-mono);
  box-shadow: 0 2px 8px rgba(232, 67, 10, 0.3);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: var(--transition);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 24px 100px;
}

.page-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.last-updated {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: 48px;
}

.content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

.content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.highlight-box {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.highlight-box p {
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

.content ul {
  margin: 12px 0 20px 0;
  padding-left: 24px;
}

.content li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
}