:root {
  --ink: #1d2935;
  --muted: #64727f;
  --paper: #fbfcfd;
  --surface: #ffffff;
  --soft: #edf5f2;
  --line: #d9e3e8;
  --accent: #087f7a;
  --accent-dark: #075f5c;
  --gold: #d79c2b;
  --shadow: 0 22px 70px rgba(29, 41, 53, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 253, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav,
.section-inner,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 54px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  padding: 58px 0 78px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  color: var(--accent-dark);
  background: var(--surface);
}

.hero-media {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(300px, calc(100% - 44px));
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(29, 41, 53, 0.14);
}

.hero-media strong,
.hero-media span {
  display: block;
}

.hero-media strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.hero-media span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.latest,
.notes {
  background: var(--soft);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 30px;
}

.section-title p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
}

.post-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 22px;
}

.post-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-card img {
  height: 210px;
}

.post-card.featured img {
  height: 320px;
}

.post-content {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.post-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

.post-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.meta {
  color: #7c8b98;
  font-size: 13px;
  font-weight: 800;
}

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

.column-card {
  min-height: 178px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.column-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(29, 41, 53, 0.1);
}

.column-card span {
  color: var(--gold);
  font-weight: 900;
}

.column-card h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.column-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.notes-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.notes-layout p {
  color: var(--muted);
}

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

.note-list li {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.subscribe-section {
  border-top: 0;
}

.subscribe-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 8px;
}

.subscribe-box p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.subscribe-form {
  display: flex;
  width: min(420px, 100%);
  gap: 10px;
}

.subscribe-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 8px;
  font: inherit;
}

.subscribe-form button {
  min-height: 46px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0 0;
  }

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

  .nav-links a {
    padding: 10px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 44px 0 56px;
  }

  .hero-media {
    min-height: 360px;
  }

  .section-title,
  .notes-layout,
  .subscribe-box {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-title {
    flex-direction: column;
  }

  .post-grid,
  .column-grid {
    grid-template-columns: 1fr;
  }

  .post-card.featured img,
  .post-card img {
    height: 240px;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}
