:root {
  color-scheme: light;
  --background: #f7f7f4;
  --surface: #ffffff;
  --text: #171714;
  --muted: #5c5c55;
  --line: #d9d9d2;
  --accent: #1746a2;
  --accent-dark: #0e2f70;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 1.72;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.96);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.brand {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.84rem;
}

nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

main {
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 4.25rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.hero-answer {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(1.08rem, 2.5vw, 1.32rem);
}

.caveat {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 4px solid var(--text);
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 34px;
}

.actions a:first-child {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 6px;
  background: var(--text);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.actions a:not(:first-child) {
  align-self: center;
  font-weight: 650;
}

section {
  margin-top: 76px;
}

.story-list {
  display: grid;
  gap: 16px;
}

.story {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.story p {
  margin: 0;
  color: var(--muted);
}

.story .lesson {
  margin-top: 12px;
  color: var(--text);
}

.story-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
}

.answer-list {
  display: grid;
  gap: 34px;
}

.answer {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.answer p {
  margin: 10px 0 0;
}

.answer .direct {
  font-weight: 700;
}

.about {
  padding: 28px;
  border-radius: 8px;
  background: #ecece6;
}

.about p:last-child,
.footer p:last-child {
  margin-bottom: 0;
}

.footer {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header .shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
  }

  nav {
    justify-content: flex-start;
  }

  main {
    padding-top: 48px;
  }

  section {
    margin-top: 56px;
  }

  .story,
  .about {
    padding: 20px;
  }
}

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