:root {
  --paper: #f4f0e7;
  --ink: #242827;
  --muted: #68706b;
  --line: #d8d0c0;
  --green: #2f705d;
  --deep: #16201e;
  --clay: #9d513d;
  --gold: #b18135;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #d9d2c3;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  letter-spacing: 0;
}

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

.book {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.page {
  position: relative;
  width: 297mm;
  height: 210mm;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 112, 93, 0.06), transparent 36%),
    var(--paper);
  page-break-after: always;
  break-after: page;
  padding: 17mm 18mm;
}

.page footer {
  position: absolute;
  right: 16mm;
  bottom: 10mm;
  color: rgba(36, 40, 39, 0.45);
  font-size: 10px;
  font-weight: 800;
}

.dark footer,
.cover footer {
  color: rgba(255, 255, 255, 0.66);
}

.kicker,
.page-head p,
.project-head p,
.chapter {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 900;
}

h2 {
  margin-bottom: 20px;
  max-width: 720px;
  font-size: 31px;
  line-height: 1.18;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.24;
}

p,
li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.72;
}

.cover {
  padding: 0;
  background: var(--deep);
}

.bleed-photo,
.cover-shade {
  position: absolute;
  inset: 0;
}

.bleed-photo img {
  object-position: center;
  filter: saturate(0.88) contrast(0.94);
}

.cover-shade {
  background:
    linear-gradient(90deg, rgba(18, 27, 25, 0.94), rgba(18, 27, 25, 0.62) 52%, rgba(18, 27, 25, 0.1)),
    linear-gradient(0deg, rgba(18, 27, 25, 0.74), transparent 48%);
}

.cover-copy {
  position: absolute;
  left: 22mm;
  bottom: 25mm;
  width: 165mm;
  color: #fffaf0;
}

.cover-copy .kicker,
.cover-subtitle {
  color: #a8ded0;
}

.cover-subtitle {
  margin-bottom: 28px;
  font-size: 17px;
  font-weight: 800;
}

.cover-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cover-meta span,
.capability span {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 800;
}

.profile-grid {
  display: grid;
  grid-template-columns: 72mm 1fr 64mm;
  gap: 12mm;
  align-items: stretch;
}

.portrait {
  margin: 0;
  min-height: 128mm;
}

.portrait img,
.stacked-photos img,
.image-grid figure,
.caption-panel,
.role-card {
  border-radius: 8px;
  overflow: hidden;
}

.profile-copy {
  padding-top: 10mm;
}

.profile-copy h3 {
  color: var(--deep);
  font-size: 28px;
}

.profile-copy p {
  max-width: 102mm;
  font-size: 13px;
}

.capability {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.capability span {
  border-color: var(--line);
  color: var(--deep);
}

.role-card,
.caption-panel {
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  padding: 12mm;
}

.role-card {
  align-self: end;
}

.role-card b,
.caption-panel b {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 13px;
}

.tight h2 {
  margin-bottom: 13mm;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8mm;
}

.toc-list article {
  min-height: 54mm;
  padding: 9mm;
  border-top: 3px solid var(--green);
  background: rgba(255, 253, 247, 0.7);
}

.toc-list span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.toc-list h3 {
  font-size: 17px;
}

.project-page {
  display: grid;
  grid-template-columns: 1fr 86mm;
  gap: 14mm;
  padding: 0;
  background: var(--deep);
}

.project-page.split {
  grid-template-columns: 92mm 1fr;
  padding: 17mm 18mm;
  background: var(--paper);
}

.project-page .hero-image {
  min-height: 210mm;
}

.project-intro {
  align-self: end;
  padding: 0 16mm 23mm 0;
  color: #fffdf6;
}

.project-intro.light {
  align-self: center;
  padding: 0;
  color: var(--ink);
}

.project-intro h2 {
  color: inherit;
  font-size: 35px;
}

.project-intro p,
.project-intro li {
  color: rgba(255, 255, 255, 0.74);
}

.project-intro.light p,
.project-intro.light li {
  color: var(--muted);
}

.project-intro ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.stacked-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8mm;
  min-height: 156mm;
}

.stacked-photos.tall {
  grid-template-columns: 1.08fr 0.92fr;
}

.stacked-photos img {
  background: #ddd;
}

.gallery-page {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 7mm;
}

.project-head {
  display: flex;
  justify-content: space-between;
  gap: 18mm;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7mm;
}

.project-head h2 {
  margin: 0;
  max-width: 170mm;
  font-size: 26px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 50mm;
  gap: 5mm;
}

.image-grid figure {
  margin: 0;
  background: #ded7ca;
}

.image-grid .wide {
  grid-column: span 2;
}

.retail {
  grid-auto-rows: 58mm;
}

.exhibition-grid,
.rain-grid,
.square-grid,
.residence-grid {
  grid-auto-rows: 52mm;
}

.community-grid {
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 44mm;
}

.community-grid figure:nth-child(5) {
  grid-column: span 2;
}

.caption-panel {
  position: absolute;
  right: 18mm;
  bottom: 18mm;
  width: 73mm;
  padding: 8mm;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 16px 48px rgba(22, 32, 30, 0.12);
}

.closing {
  display: grid;
  grid-template-columns: 1fr 102mm;
  gap: 14mm;
  align-items: center;
  background: var(--deep);
}

.closing-copy h2 {
  color: #fffaf0;
  font-size: 33px;
}

.closing-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.closing-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5mm;
}

.closing-strip img {
  height: 62mm;
  border-radius: 8px;
}

@page {
  size: A4 landscape;
  margin: 0;
}

@media print {
  html,
  body {
    background: white;
  }

  .book {
    display: block;
    padding: 0;
  }

  .page {
    margin: 0;
    box-shadow: none;
  }
}
