:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-muted: #f0f0f2;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0066cc;
  --accent-soft: #e8f2ff;
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 102, 204, 0.06), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.hero {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 36px;
}

.mark {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: transparent url("ppl.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 6vw, 54px);
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

p,
ul {
  margin-top: 0;
}

.lede {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.card-link,
.panel,
.policy-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-link {
  position: relative;
  display: flex;
  min-height: 176px;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.card-label {
  font-size: 20px;
  font-weight: 700;
}

.card-copy {
  color: var(--muted);
}

.arrow {
  margin-top: auto;
  color: var(--accent);
  font-size: 22px;
}

.panel,
.policy-section {
  margin-bottom: 16px;
  padding: 22px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.notice {
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
}

.nav {
  display: flex;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 7px;
}

code {
  border-radius: 6px;
  background: var(--surface-muted);
  padding: 2px 6px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.92em;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 860px);
    padding-top: 36px;
  }

  .hero {
    gap: 14px;
  }

  .mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-link {
    min-height: 150px;
  }

  footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1d1d1f;
    --surface-muted: #2c2c2e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #3a3a3c;
    --accent: #2997ff;
    --accent-soft: #102a43;
    --shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(41, 151, 255, 0.09), transparent 34rem),
      var(--bg);
  }
}
