:root {
  --background: #f5f5f7;
  --surface: #ffffff;
  --surface-muted: #fbfbfd;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-soft: #eaf3ff;
  --divider: #e5e5ea;
  --radius-card: 20px;
  --radius-chip: 14px;
  --shadow-l1: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-l2: 0 6px 16px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background:
    radial-gradient(1000px 520px at 50% -20%, #e9eef9 0%, rgba(233, 238, 249, 0) 70%),
    var(--background);
}

.site-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.site-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-l1);
}

.site-header::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 212, 255, 0.9) 0%, rgba(182, 212, 255, 0) 70%);
  pointer-events: none;
}

.site-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.8vw, 2.45rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.site-header p {
  margin: 0;
  max-width: 760px;
  color: var(--text-secondary);
}

.top-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: var(--radius-chip);
  border: 1px solid #d9e0ec;
  background: rgba(255, 255, 255, 0.85);
  color: #1f3558;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.top-nav a:hover {
  background: #f1f6ff;
  border-color: #c8d8f1;
  transform: translateY(-1px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-l1);
  margin-bottom: 16px;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.featured-card,
.quick-panel {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  box-shadow: var(--shadow-l1);
}

.featured-card {
  padding: 24px;
}

.featured-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid #d6e5fb;
  color: #2a5ca3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.featured-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.featured-title a {
  color: var(--text-primary);
}

.featured-title a:hover {
  text-decoration: none;
}

.featured-summary {
  margin: 0 0 14px;
  color: #4f5257;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f4f5f8;
  border: 1px solid #e2e5ec;
  font-size: 12px;
  font-weight: 600;
  color: #566074;
}

.quick-panel {
  padding: 18px;
}

.quick-panel h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.quick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.quick-item a {
  display: block;
  border-radius: 12px;
  padding: 11px 12px;
  border: 1px solid #d9dfe8;
  background: #fafbfe;
  color: #1f3658;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.quick-item a:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: #f1f6ff;
  border-color: #c9d8ed;
}

.topic-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lane-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #284f85;
  border: 1px solid #cfdcf1;
  background: #f2f7ff;
  transition: background-color 0.24s ease, border-color 0.24s ease;
}

.lane-link:hover {
  text-decoration: none;
  background: #e9f2ff;
  border-color: #c0d2ed;
}

article.card {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

article.card + section.card {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.meta {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
}

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

a:hover {
  text-decoration: underline;
}

h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.01em;
  line-height: 1.32;
}

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

h3 {
  font-size: 1.16rem;
}

article.card h2 {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #e7e9ef;
}

article.card h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

article.card > p.meta + p {
  font-size: 1.08rem;
  line-height: 1.72;
  color: #34373c;
}

article.card p,
section.card p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

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

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.article-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-l1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.article-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-l2);
}

.article-item h3 {
  margin: 0;
}

.article-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #cadcf5;
  background: #f3f8ff;
  color: #24579c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quote {
  border: 1px solid #d4e3fa;
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 20px 0;
  color: #1f3b5f;
}

.cta {
  background: linear-gradient(135deg, #0064cc 0%, #0071e3 58%, #218dff 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-l2);
}

.cta h3 {
  margin: 0 0 10px;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.cta a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}

.footer-links a {
  color: #385887;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header,
  .card,
  .article-item,
  .cta {
    animation: fade-slide-up 280ms ease-in-out both;
  }

  .article-item:nth-child(2) { animation-delay: 40ms; }
  .article-item:nth-child(3) { animation-delay: 80ms; }
  .article-item:nth-child(4) { animation-delay: 120ms; }
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 28px 22px;
  }

  .card {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-wrap {
    padding: 16px 12px 48px;
  }

  .site-header {
    border-radius: 20px;
    padding: 24px 16px;
    margin-bottom: 16px;
  }

  .site-header p {
    font-size: 15px;
  }

  .top-nav a {
    width: 100%;
  }

  .card {
    border-radius: 16px;
    padding: 18px 16px;
  }

  .cta {
    border-radius: 16px;
    padding: 18px;
  }
}
