:root {
  --paper: #fffaf0;
  --sand: #f8efe2;
  --ink: #2d261f;
  --muted: #766c60;
  --line: #ead8bd;
  --orange: #ff8e6e;
  --orange-deep: #d96343;
  --jade: #6bc5a0;
  --jade-soft: #e7f5ee;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 142, 110, 0.14), transparent 34%),
    linear-gradient(220deg, rgba(107, 197, 160, 0.18), transparent 38%),
    var(--paper);
  font-family: "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", serif;
  line-height: 1.72;
}

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

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(217, 99, 67, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 44px;
  align-items: center;
  padding: 58px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-deep);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  max-width: 760px;
  font-size: clamp(40px, 7vw, 78px);
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-weight: 700;
}

.button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.portrait {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 232, 0.72)),
    var(--sand);
  box-shadow: 0 24px 70px rgba(110, 83, 52, 0.16);
  overflow: hidden;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(217, 99, 67, 0.18);
  border-radius: 18px;
}

.portrait img {
  position: absolute;
  width: 138px;
  height: 138px;
  left: 50%;
  top: 54px;
  transform: translateX(-50%);
  border-radius: 30px;
  box-shadow: 0 20px 48px rgba(217, 99, 67, 0.24);
}

.portrait .caption {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(234, 216, 189, 0.86);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0 66px;
}

.tile {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.tile h2 {
  font-size: 20px;
}

.tile p {
  margin: 12px 0 0;
  color: var(--muted);
}

.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 0 70px;
}

.doc-card {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 60px rgba(110, 83, 52, 0.12);
}

.doc h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.meta {
  margin: 16px 0 32px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--jade-soft);
  color: #3e725f;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 14px;
}

.doc h2 {
  margin-top: 34px;
  font-size: 24px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc ol {
  padding-left: 1.3em;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 38px;
  color: var(--muted);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 13px;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    padding-top: 34px;
  }
}
