:root {
  --ink: #0f1115;
  --muted: #4d5562;
  --paper: #f8f8f8;
  --paper-2: #ececec;
  --accent: #111216;
  --accent-2: #2b2f36;
  --accent-3: #0b0c0e;
  --border: rgba(18, 20, 24, 0.12);
  --shadow: 0 28px 60px rgba(18, 20, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 0, 0, 0.12), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(60, 60, 60, 0.12), transparent 40%),
    linear-gradient(135deg, #f7f7f7 0%, #e3e3e3 55%, #ffffff 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(18, 20, 24, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18, 20, 24, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 65% 85%, rgba(20, 20, 20, 0.06), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

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

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

.page {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 56px auto 72px;
  padding: 0 24px;
}

.hero {
  display: grid;
  gap: 16px;
  animation: fadeIn 0.9s ease-out both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.08);
  color: #2a2f36;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  margin: 0;
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 760px;
}

.updated {
  font-weight: 600;
  color: #2a2f36;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button {
  background: var(--accent-3);
  color: #fff;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
}

.button:hover {
  transform: translateY(-2px);
  color: #fff;
}

.ghost {
  border: 1px solid var(--border);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.ghost:hover {
  transform: translateY(-2px);
}

.toc {
  margin: 32px 0 20px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: fadeIn 1s ease-out both;
  animation-delay: 0.1s;
}

.toc p {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.toc a {
  font-weight: 600;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  animation: rise 0.8s ease-out both;
  animation-delay: calc(var(--i, 1) * 0.08s);
}

section:first-of-type {
  border-top: none;
  padding-top: 0;
}

section h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 24px;
  margin: 0 0 10px;
}

section p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

section li + li {
  margin-top: 6px;
}

.callout {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #2a2f36;
  font-weight: 600;
}

.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.notice {
  font-weight: 600;
  color: #2b323a;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .page {
    margin: 32px auto 60px;
  }

  .card {
    padding: 22px 20px;
  }

  .hero h1 {
    font-size: 32px;
  }
}
