:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6878;
  --line: #dce2e8;
  --surface: #ffffff;
  --soft: #f4f7f9;
  --green: #14845f;
  --green-dark: #0f654a;
  --blue: #2463d4;
  --amber: #b75d0a;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner,
.content,
.footer-inner {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--green-dark);
}

.intro-band {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.intro-content {
  min-height: 570px;
  padding: 98px 0 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: 58px;
  line-height: 1.18;
}

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.3;
}

h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
}

.intro-copy {
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.intro-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-action {
  min-height: 44px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--green-dark);
}

.text-action {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.project-facts {
  max-width: 820px;
  margin: 66px 0 0;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
}

.project-facts div {
  min-width: 0;
}

.project-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.project-facts dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.media-band {
  padding: 80px 0;
  background: var(--soft);
}

.media-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 48px;
}

.media-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-preview {
  margin: 42px 0 0;
  display: grid;
  grid-template-columns: minmax(260px, 440px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.product-preview img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #cfd7df;
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.14);
}

.product-preview figcaption {
  max-width: 460px;
  color: var(--muted);
  font-size: 18px;
}

.works-band,
.notes-band,
.about-band {
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.work-list {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.work-list article {
  min-width: 0;
  padding: 26px 26px 0 0;
  border-right: 1px solid var(--line);
}

.work-list article + article {
  padding-left: 26px;
}

.work-list article:last-child {
  border-right: 0;
}

.work-index {
  margin: 0 0 44px;
  color: var(--amber);
  font-weight: 700;
}

.work-list article > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.notes-band {
  background: #172033;
  color: #fff;
}

.notes-band .section-label {
  color: #70d6b0;
}

.notes-layout,
.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 72px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.timeline li {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.timeline time {
  color: #70d6b0;
  font-weight: 700;
}

.timeline p {
  margin: 7px 0 0;
  color: #c8d0dc;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.about-copy p + p {
  margin-top: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.document-main {
  min-height: calc(100vh - 153px);
  padding: 72px 24px 96px;
}

.document-content {
  width: min(100%, 820px);
  margin: 0 auto;
}

.document-content h1 {
  font-size: 44px;
}

.document-date {
  margin: 12px 0 52px;
  color: var(--muted);
  font-size: 14px;
}

.document-content h2 {
  margin-top: 38px;
  font-size: 22px;
}

.document-content h2 + p {
  margin: 12px 0 0;
  color: var(--muted);
}

.error-main {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-main h1 {
  font-size: 44px;
}

.error-main p:not(.section-label) {
  margin: 16px 0 28px;
  color: var(--muted);
}

@media (max-width: 780px) {
  .header-inner,
  .content,
  .footer-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .header-inner {
    min-height: 62px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a:not(:last-child) {
    display: none;
  }

  .intro-content {
    min-height: 0;
    padding: 56px 0 42px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .intro-copy {
    font-size: 18px;
  }

  .intro-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-facts,
  .media-heading,
  .product-preview,
  .work-list,
  .notes-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .project-facts {
    margin-top: 42px;
    gap: 14px;
  }

  .media-band,
  .works-band,
  .notes-band,
  .about-band {
    padding: 60px 0;
  }

  .media-heading,
  .product-preview,
  .notes-layout,
  .about-layout {
    gap: 34px;
  }

  .product-preview img {
    max-width: 390px;
    margin: 0 auto;
  }

  .work-list article,
  .work-list article + article {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .work-index {
    margin-bottom: 18px;
  }

  .footer-inner {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .document-main {
    padding: 56px 18px 72px;
  }

  .document-content h1 {
    font-size: 36px;
  }

  .error-main h1 {
    font-size: 34px;
  }
}

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