:root {
  --bg: #f6efe4;
  --bg-deep: #f0e1c7;
  --paper: rgba(255, 252, 246, 0.72);
  --ink: #182126;
  --muted: #5b605f;
  --accent: #c46a2f;
  --accent-soft: #e1a36b;
  --forest: #26443f;
  --line: rgba(24, 33, 38, 0.12);
  --shadow: 0 20px 60px rgba(37, 30, 21, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(196, 106, 47, 0.18), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(38, 68, 63, 0.14), transparent 26%),
    linear-gradient(180deg, #f7f1e7 0%, #f4ead8 55%, #efe5d4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 33, 38, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 38, 0.02) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 80%);
}

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

button,
input {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.68);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff7ed;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.brand-avatar {
  overflow: hidden;
  background: transparent;
}

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

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong,
.hero h1,
.hero h2,
.section-heading h2,
.featured-story h3,
.subscribe-card h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span,
.site-nav a,
.hero-text,
.panel-label,
.identity-text,
.section-heading p,
.featured-story p,
.subscribe-card p,
.post-meta,
.post-excerpt,
.chip {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.96rem;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

main {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.hero {
  display: block;
}

.subscribe .section-heading {
  margin-bottom: 14px;
}

.hero-copy,
.featured-story,
.subscribe-card,
.post-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy,
.featured-story,
.subscribe-card {
  background: var(--paper);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 106, 47, 0.16), transparent 68%);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
  line-height: 1;
  max-width: none;
  white-space: nowrap;
}

.hero-text {
  margin: 14px 0 0;
  max-width: none; /*42rem*/
  font-size: 0.98rem;
  line-height: 1.7;
}

.post-card strong {
  display: block;
  font-size: 1.35rem;
  color: var(--forest);
  margin-bottom: 6px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 33, 38, 0.08);
}

.identity-text,
.panel-label,
.section-heading p,
.post-meta,
.post-excerpt,
.story-note p {
  line-height: 1.7;
}

.icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  transform: translateY(-2px);
  color: var(--forest);
}

.icon-badge {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 33, 38, 0.08);
  color: var(--ink);
}

.icon-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.icon-link span:last-child {
  font-size: 0.88rem;
  color: inherit;
}

.hero-inline-link {
  font-size: 0.9rem;
  color: var(--forest);
  font-weight: 600;
}

.section-heading {
  max-width: 46rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.02;
  max-width: none;
  white-space: nowrap;
}

.featured-story {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.story-copy {
  padding: 16px;
}

.story-tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(196, 106, 47, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
}

.featured-story h3 {
  margin: 18px 0 14px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.03;
}

.featured-story p {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--forest);
  font-weight: 600;
}

.story-visual {
  min-height: 360px;
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    linear-gradient(135deg, rgba(24, 33, 38, 0.95), rgba(59, 91, 83, 0.94)),
    var(--forest);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.story-orbit {
  position: absolute;
  border: 1px solid rgba(255, 245, 232, 0.2);
  border-radius: 50%;
}

.orbit-a {
  width: 340px;
  height: 340px;
  top: -40px;
  right: -20px;
}

.orbit-b {
  width: 220px;
  height: 220px;
  left: 42px;
  bottom: 36px;
}

.story-note {
  position: absolute;
  left: 32px;
  bottom: 32px;
  max-width: 230px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 248, 236, 0.12);
  backdrop-filter: blur(12px);
  color: #fff8ee;
}

.story-note span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading-split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  max-width: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 16px;
  border: 1px solid rgba(24, 33, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.66);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.chip:hover,
.chip:focus-visible,
.chip.is-active {
  background: var(--ink);
  color: #fff6ea;
  border-color: var(--ink);
  transform: translateY(-1px);
}

.post-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.74);
  transform: translateY(20px);
  opacity: 0;
  animation: reveal 600ms ease forwards;
}

.post-card:nth-child(2) {
  animation-delay: 100ms;
}

.post-card:nth-child(3) {
  animation-delay: 180ms;
}

.post-card:nth-child(4) {
  animation-delay: 260ms;
}

.post-card:nth-child(5) {
  animation-delay: 340ms;
}

.post-card:nth-child(6) {
  animation-delay: 420ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-cover {
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.post-card h3 {
  margin: 10px 0 12px;
  font-size: 1.45rem;
  line-height: 1.18;
}

.post-card-link {
  display: block;
}

.post-card-link:hover h3,
.post-card-link:focus-visible h3 {
  color: var(--forest);
}

.post-excerpt {
  margin: 0 0 16px;
  font-size: 0.97rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.post-category {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(38, 68, 63, 0.1);
  color: var(--forest);
}

.subscribe-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--radius-xl);
}

.subscribe-card .icon-links {
  margin-top: 16px;
}

.subscribe-title {
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .featured-story,
  .subscribe-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
    padding-top: 14px;
  }

  .site-header,
  .section-heading-split {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero h1,
  .hero h2 {
    max-width: none;
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  .section-heading h2 {
    font-size: clamp(1.2rem, 5.2vw, 1.6rem);
  }

  .subscribe-title {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  }

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

  .hero-copy,
  .featured-story,
  .subscribe-card {
    border-radius: 26px;
  }

  main {
    gap: 18px;
  }
}
