:root {
  color-scheme: light;
  --bg: #eef7fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-soft: rgba(14, 165, 233, 0.08);
  --text: #142238;
  --muted: #526173;
  --line: rgba(42, 67, 101, 0.16);
  --accent: #0891b2;
  --accent-dark: #0e7490;
  --teal: #0f766e;
  --pink: #a855f7;
  --warm: #f59e0b;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 8px;
  --container: 1120px;
  font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 6%, rgba(34, 211, 238, 0.28), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(216, 180, 254, 0.26), transparent 30%),
    radial-gradient(circle at 56% 34%, rgba(20, 184, 166, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(8, 145, 178, 0.045) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(225deg, rgba(15, 118, 110, 0.04) 25%, transparent 25%) 0 0 / 34px 34px,
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--container), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  background: rgba(238, 247, 251, 0.86);
  border-bottom: 1px solid rgba(8, 145, 178, 0.16);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.header-actions,
.hero-actions,
.contact-links,
.site-footer,
.status-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.22);
  border-radius: 8px;
  font-size: 15px;
}

.nav {
  gap: 26px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  transition: color 0.2s ease;
}

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

.header-actions {
  gap: 12px;
}

.language-switch,
.menu-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
}

.language-switch {
  min-width: 82px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
}

.language-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.14);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

main {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 58px;
  align-items: center;
  min-height: calc(88vh - 68px);
  padding-top: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow::before,
.section-heading .eyebrow::before,
.topics-copy .eyebrow::before,
.about-copy .eyebrow::before,
.contact .eyebrow::before {
  content: "/ ";
  color: var(--pink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.15rem, 4.6vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-description,
.section-heading > p,
.topics-copy p,
.about-copy p,
.contact p {
  color: var(--muted);
}

.hero-description {
  max-width: 660px;
  margin-bottom: 30px;
  font-size: 1.08rem;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.22);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.hero-media,
.post-card,
.topics,
.about,
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.hero-media {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  border-color: rgba(8, 145, 178, 0.2);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media img,
.post-card img,
.topics-visual,
.about img {
  filter: saturate(1.04) contrast(1.01);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.55fr);
  gap: 44px;
  align-items: end;
  padding-bottom: 28px;
}

.section-heading.compact {
  display: block;
  padding-top: 0;
  padding-bottom: 22px;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.post-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 145, 178, 0.28);
  box-shadow: var(--shadow);
}

.post-card-large {
  grid-row: span 2;
}

.post-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.post-content {
  padding: 24px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
}

.post-meta span {
  padding: 3px 8px;
  background: rgba(8, 145, 178, 0.08);
  color: var(--accent-dark);
  border-radius: 999px;
}

.post-content p,
.timeline p,
.topic-item p {
  color: var(--muted);
}

.topics {
  display: grid;
  grid-template-columns: 0.8fr 0.65fr;
  gap: 30px;
  padding: 34px;
}

.topics-copy {
  align-self: center;
}

.topics-visual {
  align-self: center;
  width: 100%;
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.12);
}

.topic-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-item {
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.04);
}

.topic-item span {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.topic-item small {
  color: var(--teal);
  font-weight: 700;
}

.updates {
  padding-top: 0;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--muted);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
}

.timeline h3 {
  margin-bottom: 6px;
}

.about {
  display: grid;
  grid-template-columns: minmax(300px, 0.45fr) minmax(0, 0.55fr);
  gap: 40px;
  align-items: center;
  padding: 34px;
}

.about img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.status-list {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.status-list span {
  padding: 7px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.45fr);
  gap: 36px;
  align-items: center;
  padding: 34px;
  margin-bottom: 72px;
}

.contact-links {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-language {
  height: 34px;
}

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 32px, var(--container));
  }

  .nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .nav a {
    padding: 12px;
  }

  .menu-toggle {
    display: flex;
  }

  main,
  .site-footer {
    width: min(100% - 32px, var(--container));
  }

  .hero,
  .section-heading,
  .featured-grid,
  .topics,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    min-height: auto;
    padding-top: 44px;
  }

  .section {
    padding: 64px 0;
  }

  .post-card-large {
    grid-row: auto;
  }

  .topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 62px;
  }

  .brand span:last-child {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .language-switch {
    min-width: 74px;
    padding: 0 10px;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .post-content,
  .topics,
  .about,
  .contact {
    padding: 20px;
  }

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

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
