:root {
  --bg0: #f7f3ea;
  --bg1: #fffdf7;
  --ink: #141414;
  --muted: rgba(20, 20, 20, 0.64);
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(20, 20, 20, 0.12);
  --shadow: 0 22px 60px rgba(20, 20, 20, 0.14);
  --accent: #1456ff;
  --accent2: #f05d23;

  --radius: 22px;
  --maxw: 980px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 15% 10%, rgba(240, 93, 35, 0.18), transparent 60%),
    radial-gradient(1100px 700px at 85% 20%, rgba(20, 86, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif TC",
    "Source Han Serif TC", serif;
}

.app {
  min-height: 100%;
  display: grid;
  place-items: start center;
  padding: 52px 18px 80px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.hero {
  padding: 34px 28px 22px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(240, 93, 35, 0.10), rgba(20, 86, 255, 0.10));
  pointer-events: none;
}

.hero > * { position: relative; }

h1 {
  margin: 0;
  font-size: clamp(28px, 3.1vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.body {
  padding: 22px 28px 30px;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: conic-gradient(from 180deg, var(--accent), var(--accent2), var(--accent));
  box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.06);
}

.prose {
  margin-top: 14px;
  line-height: 1.75;
  font-size: 16px;
}

.prose h2 {
  margin: 22px 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.prose ul {
  margin: 10px 0 10px 18px;
  padding: 0;
}

.prose li { margin: 6px 0; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.95em;
  padding: 0 0.25em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}

.prose a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 86, 255, 0.28);
}
.prose a:hover { border-bottom-color: rgba(20, 86, 255, 0.62); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  border-color: rgba(20, 86, 255, 0.28);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.10);
}

.btn.subtle {
  color: rgba(20, 20, 20, 0.70);
}

.note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px dashed rgba(20, 20, 20, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(20, 20, 20, 0.72);
  font-size: 14px;
}

.footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 520px) {
  .hero, .body { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: pop 520ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  }
  @keyframes pop {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}
