:root {
  --text: #0f172a;
  --muted: #475569;
  --muted-strong: #1e293b;
  --bg: #f8fafc;
  --card: #ffffff;
  --accent: #0d9488;
  --accent-2: #0369a1;
  --line: #e2e8f0;
  --focus: #f59e0b;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body-size: 1.125rem;
  --line-height: 1.65;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--line-height);
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: #0f172a;
  color: #fff;
  z-index: 100;
}

.banner {
  background: #0f172a;
  color: #f1f5f9;
  padding: 14px 20px;
  text-align: center;
  font-size: 1rem;
}

.header-bar {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 1.05rem;
  font-weight: 600;
}

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

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

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 20px 64px;
}

.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px 32px;
  margin-bottom: 28px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 52ch;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.topic {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 24px;
}

.topic h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.topic p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.topic a {
  font-weight: 700;
  font-size: 1.05rem;
}

.article {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 20px 72px;
}

.article h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted-strong);
  margin-bottom: 24px;
}

.article h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.4rem;
}

.article p,
.article li {
  font-size: 1.15rem;
}

.article ul,
.article ol {
  padding-left: 1.25rem;
}

.article ol li {
  margin-bottom: 0.5rem;
}

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--accent);
  background: rgba(13, 148, 136, 0.08);
  border-radius: 0 10px 10px 0;
  font-size: 1.1rem;
}

footer {
  padding: 28px 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--muted-strong);
  border-top: 1px solid var(--line);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 8px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 24px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.article-card h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.article-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-card a {
  font-weight: 700;
  font-size: 1.05rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.static-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.static-panel h2 {
  margin-top: 0;
}

.section-title {
  font-size: 1.35rem;
  margin: 0 0 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.header-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav a {
  text-decoration: none;
  border-radius: 8px;
  padding: 6px 4px;
}

.nav a:hover {
  background: rgba(13, 148, 136, 0.08);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 400px at 10% -10%, rgba(13, 148, 136, 0.12), transparent 55%),
    radial-gradient(800px 300px at 100% 0%, rgba(3, 105, 161, 0.1), transparent 50%);
  pointer-events: none;
}

.hero h1,
.hero p {
  position: relative;
  z-index: 1;
}

.article-hero {
  margin: 0 0 26px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.08);
  background: #0f172a;
}

.article-hero img {
  width: 100%;
  height: auto;
  max-height: min(48vh, 380px);
  object-fit: cover;
  display: block;
}

.article-hero figcaption {
  padding: 12px 16px 14px;
  font-size: 1rem;
  color: var(--muted-strong);
  background: var(--card);
  border-top: 1px solid var(--line);
}

.article-byline {
  font-size: 1.02rem;
  color: var(--muted-strong);
  margin: -6px 0 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
  border-color: rgba(13, 148, 136, 0.35);
}

.article-card .card-thumb {
  order: -1;
  margin: -22px -22px 16px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
}

.article-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topic-grid .topic {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topic-grid .topic:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

footer {
  background: #fff;
}

@media print {
  .banner,
  .header-bar,
  footer {
    position: static;
  }

  .article-hero {
    break-inside: avoid;
  }
}
