:root {
  color-scheme: light;
  --ink: #1e2522;
  --paper: #f5f1e8;
  --muted: #666d67;
  --line: rgba(30, 37, 34, 0.16);
  --green: #155c45;
  --coral: #df6c4f;
  --blue: #547ea4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, serif;
  font-style: italic;
}

nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--ink); }

.hero {
  padding: clamp(84px, 13vw, 168px) 0 clamp(96px, 14vw, 176px);
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.045em; }
h1 { font-size: clamp(54px, 9.2vw, 112px); font-weight: 630; }
h1 em { color: var(--green); font-family: Georgia, "Songti SC", serif; font-weight: 400; }

.intro {
  max-width: 620px;
  margin: 34px 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 100px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.projects { padding: 80px 0 120px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 44px; }
.section-heading h2, .about h2 { font-size: clamp(38px, 5vw, 66px); }
.section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 14px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card {
  min-height: 390px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.34);
}
.project-card::after {
  content: "";
  width: 190px;
  height: 190px;
  position: absolute;
  right: -40px;
  top: -54px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.12;
}
.project-card.coral { color: var(--coral); }
.project-card.blue { color: var(--blue); }
.project-card h3 { max-width: 430px; color: var(--ink); font-size: clamp(29px, 3.3vw, 43px); }
.project-card > p:not(.eyebrow) { max-width: 450px; color: var(--muted); }
.card-number { position: absolute; right: 34px; top: 28px; font: italic 52px/1 Georgia, serif; opacity: 0.35; }
.status { width: fit-content; margin-top: auto; padding: 7px 13px; border: 1px solid currentColor; border-radius: 100px; font-size: 12px; font-weight: 750; }

.about {
  margin-bottom: 60px;
  padding: clamp(52px, 8vw, 96px);
  border-radius: 28px;
  background: var(--green);
  color: #f7f3ea;
}
.about .eyebrow { color: #b9dccb; }
.about h2 { max-width: 750px; }
.about > p:last-child { max-width: 660px; margin: 28px 0 0; color: #d9e8e0; font-size: 18px; }

footer { min-height: 100px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 700px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  nav { gap: 18px; }
  .hero { padding-top: 76px; }
  h1 { font-size: clamp(49px, 16vw, 72px); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 330px; }
  .about { border-radius: 22px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
