:root {
  --ink: #171512;
  --paper: #f3ead9;
  --paper-deep: #e8d5b5;
  --cinnabar: #b93f2d;
  --jade: #1f6c5a;
  --gold: #b8893c;
  --line: rgba(23, 21, 18, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 21, 18, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(23, 21, 18, 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  letter-spacing: 0;
}

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

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

.home {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 76svh;
  display: grid;
  align-items: end;
  padding: 96px max(24px, calc((100vw - 1120px) / 2)) 54px;
  overflow: hidden;
  color: #fff7e7;
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background: #171512;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(0.85);
}

.hero-media::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 13, 10, 0.92), rgba(16, 13, 10, 0.52) 52%, rgba(16, 13, 10, 0.86)),
    linear-gradient(180deg, rgba(16, 13, 10, 0.04), rgba(16, 13, 10, 0.9));
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: #e6b660;
  font-family: "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.05;
}

.intro {
  width: min(660px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 247, 231, 0.82);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.actions a,
.feature-card a {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-weight: 800;
}

.primary {
  background: #fff7e7;
  color: var(--ink);
}

.secondary {
  border: 1px solid rgba(255, 247, 231, 0.34);
  color: #fff7e7;
}

.topics {
  padding: 76px max(24px, calc((100vw - 1120px) / 2)) 96px;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.78);
  box-shadow: 0 22px 70px rgba(57, 40, 19, 0.16);
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.feature-card div {
  padding: clamp(26px, 4vw, 48px);
}

.feature-card p,
.topic-grid span {
  margin: 0 0 14px;
  color: var(--cinnabar);
  font-family: "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-card h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

.feature-card span {
  display: block;
  margin-top: 20px;
  color: #3c352e;
  font-size: 18px;
  line-height: 1.8;
}

.feature-card a {
  width: fit-content;
  margin-top: 30px;
  background: var(--ink);
  color: #fff7e7;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.topic-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.72);
}

.topic-grid h3 {
  margin: 28px 0 0;
  font-size: 28px;
}

.topic-grid p {
  margin: 14px 0 0;
  color: #3c352e;
  font-size: 17px;
  line-height: 1.72;
}

@media (max-width: 860px) {
  .feature-card,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 84svh;
  }
}
