:root {
  --background: #f5f3ee;
  --surface: #ffffff;
  --text: #17161b;
  --muted: #6f6b74;
  --line: #ddd9d2;
  --violet: #6c4dff;
  --violet-soft: #e6e0ff;
  --violet-ink: #573ccf;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 2%, rgba(108, 77, 255, 0.11), transparent 24rem),
    var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--violet-ink); text-underline-offset: 3px; }

.shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark span { color: var(--violet); }

.backlink {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 620;
  text-decoration: none;
}

.backlink:hover, .backlink:focus-visible { color: var(--text); }

.hero {
  padding: clamp(74px, 13vw, 132px) 0 34px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--violet-ink);
  background: var(--violet-soft);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.035em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.75rem, 9vw, 5.9rem);
  line-height: 0.96;
}

h2 {
  margin-top: 38px;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.14;
}

h3 {
  margin-top: 24px;
  font-size: 1.05rem;
  line-height: 1.3;
}

p, li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.lede {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(1.08rem, 2.5vw, 1.28rem);
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.card:hover, .card:focus-visible {
  border-color: rgba(108, 77, 255, 0.58);
  background: var(--surface);
  transform: translateY(-2px);
}

.card strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.card span { color: var(--muted); line-height: 1.5; }
.card-arrow { color: var(--violet); font-size: 1.25rem; }

.article {
  margin-top: 28px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.article h1 {
  max-width: 700px;
  font-size: clamp(2.65rem, 8vw, 4.8rem);
}

.article ul { padding-left: 22px; }
.article li + li { margin-top: 8px; }

.summary {
  margin: 28px 0 10px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--violet-soft);
}

.summary p { margin: 0; color: #4e3cad; }

.action-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.action {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.action strong { display: block; margin-bottom: 5px; }
.action p { margin: 0; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 42px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 132px; }
  .hero { padding-top: 64px; }
  .article { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
