:root {
  --color-primary: #2f5aa8;
  --color-primary-strong: #244680;
  --color-primary-soft: rgba(47, 90, 168, 0.12);
  --color-background: #f4f7fb;
  --color-surface: #ffffff;
  --color-text: #0f0f0f;
  --color-text-muted: #6f6f6f;
  --color-border: rgba(0, 0, 0, 0.05);
  --surface-contrast: #0f172a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--color-text);
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.branding a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
}

.branding .tagline {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-nav {
  position: relative;
}

.site-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-text);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
}

main {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: radial-gradient(circle at top left, rgba(47, 90, 168, 0.2), transparent 60%), linear-gradient(135deg, rgba(47, 90, 168, 0.12), rgba(15, 15, 15, 0.04));
  border-radius: 24px;
  padding: 3rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--color-primary-strong);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.hero img {
  max-width: 320px;
  border-radius: 12px;
  filter: grayscale(20%);
  box-shadow: 0 18px 35px rgba(15, 15, 15, 0.18);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-summary {
  font-size: 1.2rem;
  line-height: 1.6;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(47, 90, 168, 0.28);
}

.cta:hover::after {
  transform: translateX(3px);
}

.timeline {
  margin-top: 3rem;
}

.timeline-track {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, rgba(47, 90, 168, 0.3), rgba(15, 15, 15, 0.05));
}

.timeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.3fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 1.6rem;
}

.timeline-row .timeline-panel {
  grid-column: 1;
}

.timeline-row--right .timeline-panel {
  grid-column: 3;
}

.timeline-row--right .timeline-marker {
  grid-column: 2;
}

.timeline-panel {
  background-color: var(--color-surface);
  padding: 1.6rem;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(15, 15, 15, 0.12);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.timeline-marker {
  grid-column: 2;
  position: relative;
  width: min(220px, 100%);
  padding: 2.1rem 1.1rem 1.1rem;
  border-radius: 18px;
  background-color: var(--color-surface);
  box-shadow: 0 12px 28px rgba(15, 15, 15, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 1;
}

.timeline-marker::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 4px solid var(--color-surface);
  box-shadow: 0 0 0 5px rgba(47, 90, 168, 0.25);
  z-index: 2;
}

.timeline-marker img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 32px rgba(15, 15, 15, 0.18);
}


.timeline-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(15, 15, 15, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-year {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-strong);
  margin: 0 0 0.35rem 0;
}

.timeline-panel h3 {
  margin: 0 0 0.45rem 0;
}

.timeline-panel p {
  margin: 0 0 0.75rem 0;
}

.timeline-panel p:last-of-type {
  margin-bottom: 0.75rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.list-page header {
  margin-bottom: 2rem;
}

.section-body {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  color: var(--color-text);
  line-height: 1.8;
  display: grid;
  gap: 1rem;
}

.section-body p {
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-grid article {
  background-color: var(--color-surface);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 15, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 15, 15, 0.12);
}

.card-grid .meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.single-page {
  background-color: var(--color-surface);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 25px 40px rgba(15, 15, 15, 0.15);
}

.article-header .meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.article-content p {
  line-height: 1.7;
}

.article-figure,
.section-figure {
  margin: 2.5rem auto;
  text-align: center;
  max-width: 940px;
}

.article-figure img,
.section-figure img {
  width: min(920px, 100%);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 15, 15, 0.16);
}

.article-figure figcaption,
.section-figure figcaption {
  margin-top: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.article-footer {
  margin-top: 2rem;
}

.article-footer ul {
  padding-left: 1.2rem;
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  background-color: var(--surface-contrast);
  color: #f3f5fa;
}

@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2.2rem;
  }

  .hero img {
    max-width: 70%;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 5vw, 2.4rem);
  }

  .hero-summary {
    font-size: 1.1rem;
  }

  .timeline-track {
    margin-top: 2.5rem;
  }

  .timeline-track::before {
    display: none;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .timeline-row .timeline-panel,
  .timeline-row--right .timeline-panel {
    grid-column: 1;
  }

  .timeline-marker {
    grid-column: 1;
    order: -1;
    width: min(360px, 100%);
    padding: 1.6rem 1rem 1rem;
    justify-self: center;
  }

  .timeline-marker::before {
    top: 0.6rem;
  }
}

@media (max-width: 880px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    background-color: var(--color-surface);
    position: absolute;
    right: 0;
    top: 3rem;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(15, 15, 15, 0.05);
    width: 220px;
  }

  .site-nav ul.is-open {
    display: flex;
  }

  main {
    padding: 1.5rem 1rem;
  }

  .hero {
    padding: 1.8rem;
  }

  .timeline-track {
    gap: 2rem;
  }
}

@media (max-width: 620px) {
  .single-page {
    padding: 1.5rem;
  }

  .single-page h1 {
    font-size: 1.8rem;
  }
}

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

  .hero {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .hero img {
    max-width: 85%;
  }

  .hero-summary {
    font-size: 1.05rem;
  }

  .timeline-marker {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .timeline-marker {
    padding: 1.4rem 0.9rem 0.9rem;
  }
}

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