:root {
  --ink: #14231f;
  --ink-soft: #3f4c48;
  --muted: #75807c;
  --paper: #f3f2ec;
  --card: #fbfaf6;
  --line: #d5dad3;
  --pine: #0f5747;
  --mint: #cce5d9;
  --orange: #e9683b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(204, 229, 217, 0.75), transparent 25%),
    radial-gradient(circle at 90% 34%, rgba(233, 104, 59, 0.09), transparent 22%),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui,
    sans-serif;
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
  outline: 3px solid rgba(233, 104, 59, 0.45);
  outline-offset: 4px;
}

.skip-link {
  background: var(--ink);
  border-radius: 8px;
  color: white;
  left: 18px;
  padding: 9px 13px;
  position: fixed;
  top: -80px;
  z-index: 10;
}

.skip-link:focus {
  top: 16px;
}

header,
main,
footer {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 28px;
  padding-right: 28px;
}

header {
  align-items: center;
  display: flex;
  height: 86px;
  justify-content: space-between;
}

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

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 10px;
  color: white;
  display: flex;
  font-family: Georgia, serif;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.13em;
}

.brand small {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.25em;
  margin-top: 6px;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--ink-soft);
  font-size: 12px;
}

nav a:hover {
  color: var(--pine);
}

.hero {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  min-height: 540px;
  padding-bottom: 68px;
  padding-top: 60px;
}

.eyebrow {
  color: var(--pine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(48px, 6.8vw, 82px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin: 20px 0 22px;
}

.hero h1 em {
  color: var(--pine);
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  background: var(--orange);
  bottom: 2px;
  content: "";
  height: 4px;
  left: 4%;
  position: absolute;
  transform: rotate(-1.2deg);
  width: 92%;
  z-index: -1;
}

.hero-copy > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  max-width: 590px;
}

.hero-index {
  background: var(--ink);
  border-radius: 18px;
  box-shadow: 0 24px 55px rgba(20, 35, 31, 0.12);
  color: white;
  overflow: hidden;
  padding: 8px 24px;
}

.hero-index > div {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  justify-content: space-between;
  min-height: 82px;
}

.hero-index > div:first-child {
  border-top: 0;
}

.hero-index strong {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.hero-index span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.projects {
  padding: 100px 0 46px;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-head h2 {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 8px 0 0;
}

.section-head > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
  max-width: 390px;
  text-align: right;
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.project-card {
  background: rgba(251, 250, 246, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.project-card.featured {
  box-shadow: 0 18px 45px rgba(20, 35, 31, 0.06);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.project-card.featured:hover {
  border-color: #9eb4aa;
  transform: translateY(-3px);
}

.project-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.project-number {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 10px;
}

.status {
  align-items: center;
  background: rgba(15, 87, 71, 0.09);
  border-radius: 999px;
  color: var(--pine);
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.08em;
  padding: 5px 8px;
}

.status i {
  background: #2d9b74;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.status.muted,
.project-link.muted {
  background: var(--paper);
  color: var(--muted);
}

.project-icon {
  align-items: flex-end;
  background: var(--pine);
  border-radius: 13px;
  display: flex;
  gap: 4px;
  height: 54px;
  justify-content: center;
  margin: 52px 0 28px;
  padding: 12px;
  width: 54px;
}

.project-icon i {
  background: white;
  border-radius: 2px 2px 0 0;
  display: block;
  width: 5px;
}

.project-icon i:nth-child(1) {
  height: 13px;
}

.project-icon i:nth-child(2) {
  height: 28px;
}

.project-icon i:nth-child(3) {
  height: 20px;
}

.project-type {
  color: var(--pine);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-card h3 {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 39px;
  font-weight: 500;
  margin: 7px 0 12px;
}

.project-card > p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
  margin: 0;
  max-width: 540px;
}

.project-card ul {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  gap: 6px 18px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.project-link {
  align-items: center;
  color: var(--pine);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  margin-top: auto;
}

.project-link b {
  font-size: 15px;
}

.upcoming {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent),
    rgba(235, 236, 229, 0.75);
}

.placeholder-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 72px 0 54px;
  transform: rotate(-4deg);
}

.placeholder-lines i {
  background: var(--line);
  border-radius: 999px;
  height: 8px;
}

.placeholder-lines i:nth-child(1) {
  width: 82%;
}

.placeholder-lines i:nth-child(2) {
  width: 55%;
}

.placeholder-lines i:nth-child(3) {
  background: var(--mint);
  width: 69%;
}

.principles {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
}

.principles > div {
  border-left: 1px solid var(--line);
  min-height: 190px;
  padding: 30px;
}

.principles > div:first-child {
  border-left: 0;
}

.principles span {
  color: var(--orange);
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 9px;
}

.principles strong {
  display: block;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 20px;
  font-weight: 550;
  margin-top: 34px;
}

.principles p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 7px 0 0;
}

footer {
  color: var(--muted);
  display: flex;
  font-size: 9px;
  justify-content: space-between;
  letter-spacing: 0.06em;
  padding-bottom: 32px;
  padding-top: 32px;
}

@media (max-width: 760px) {
  header,
  main,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  header {
    height: 72px;
  }

  nav {
    gap: 14px;
  }

  .hero {
    gap: 42px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 48px;
    padding-top: 55px;
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 62px);
  }

  .hero-index {
    max-width: 520px;
  }

  .projects {
    padding-top: 72px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-head > p {
    text-align: left;
  }

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

  .project-card {
    min-height: 470px;
  }

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

  .principles > div {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 150px;
  }

  .principles > div:first-child {
    border-top: 0;
  }
}

@media (max-width: 430px) {
  .brand small {
    display: none;
  }

  nav a:last-child {
    display: none;
  }

  .project-card {
    padding: 22px;
  }

  .project-icon {
    margin-top: 38px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

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

  * {
    transition: none !important;
  }
}
