:root { --ink: #1d2733; --muted: #5b6775; --accent: #1f5fbf; --line: #e2e7ee; --soft: #f5f7fa; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.6 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: #fff; }
header, main, footer { max-width: 920px; margin: 0 auto; padding: 0 24px; }
header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.brand img { display: block; border: 0; border-radius: 0; }
nav a { margin-left: 20px; color: var(--muted); text-decoration: none; }
nav a[aria-current] { color: var(--accent); font-weight: 600; }
a { color: var(--accent); }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 48px 0 12px; }
h2 { font-size: 1.3rem; margin: 40px 0 8px; }
.lead { font-size: 1.2rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 28px 0; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 4px 22px 14px; background: var(--soft); }
.card h2 { margin-top: 18px; }
.card h2 a { text-decoration: none; }
figure { margin: 28px 0; }
img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
figcaption { color: var(--muted); font-size: .95rem; }
.button { display: inline-block; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 6px; text-decoration: none; }
footer { margin-top: 64px; padding-top: 18px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* home page slideshow: four slides, 5 s each */
.slides { position: relative; margin: 28px 0; aspect-ratio: 900 / 380; min-height: 220px; border-radius: 12px; overflow: hidden; background: #10233d; }
.slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; animation: slide 20s -1s infinite; }
.slides figure:nth-child(2) { animation-delay: 4s; }
.slides figure:nth-child(3) { animation-delay: 9s; }
.slides figure:nth-child(4) { animation-delay: 14s; }
.slides img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; animation: drift 20s linear infinite alternate; }
.slides figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 20px; color: #fff; font-size: 1rem; background: rgba(8, 18, 32, .72); }
@keyframes slide { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .slides figure, .slides img { animation: none; }
  .slides figure:first-child { opacity: 1; }
}
