:root {
  color-scheme: light;
  --ink: #202321;
  --muted: #7b7d77;
  --paper: #f3f2ee;
  --surface: #fbfaf7;
  --line: #d9d8d2;
  --accent: #a48e69;
  font-family: "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

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

.site-shell {
  width: min(1360px, calc(100% - 80px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 38px;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.24em;
  line-height: 1;
}

.header-note,
.eyebrow,
.project-kicker,
.cover-index,
.site-footer {
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.header-note,
.site-footer,
.eyebrow,
.project-kicker {
  color: var(--muted);
}

.intro {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2.5fr);
  gap: 48px;
  align-items: start;
  padding: 62px 0 70px;
}

.eyebrow {
  margin: 7px 0 0;
}

.intro-copy {
  max-width: 760px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(42px, 5.1vw, 76px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.intro-copy > p {
  max-width: 430px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.section-rule {
  border-top: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 34px 0 92px;
}

.project-card {
  display: block;
  min-width: 0;
}

.project-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #252a28;
}

.project-cover::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
  pointer-events: none;
}

.project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 420ms ease;
}

.project-card--night .project-cover img {
  object-position: center center;
}

.cover-index {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.project-meta {
  padding: 19px 1px 0;
}

.project-kicker {
  margin-bottom: 12px;
  font-size: 10px;
}

.project-kicker span {
  padding: 0 3px;
  color: var(--accent);
}

h2 {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.project-description {
  min-height: 52px;
  max-width: 330px;
  margin-top: 12px;
  color: #62655f;
  font-size: 14px;
  line-height: 1.8;
}

.project-cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: gap 220ms ease, color 220ms ease;
}

.project-cta span {
  font-size: 16px;
  line-height: 1;
}

.project-card:hover .project-cover img,
.project-card:focus-visible .project-cover img {
  transform: scale(1.025);
  filter: saturate(0.95) contrast(1.06);
}

.project-card:hover .project-cta,
.project-card:focus-visible .project-cta {
  gap: 16px;
  color: #756248;
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 7px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding: 19px 0 28px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.08em;
  text-transform: none;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 48px, 680px);
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 21px;
    padding: 47px 0 48px;
  }

  .eyebrow {
    margin-top: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-top: 27px;
  }

  .project-description {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: calc(100% - 40px);
  }

  .site-header {
    padding: 24px 0 30px;
  }

  .header-note {
    font-size: 9px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
    letter-spacing: -0.055em;
  }

  .intro-copy > p {
    margin-top: 21px;
    font-size: 14px;
  }

  .project-grid {
    padding-bottom: 64px;
  }

  h2 {
    font-size: 30px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-cover img,
  .project-cta {
    transition: none;
  }
}
