:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --ink: #193b31;
  --muted: #667269;
  --line: #d1d6cb;
  --accent: #c4532b;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #d9e2cf;
  color: var(--ink);
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
  border-radius: 1px;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.page-width {
  width: min(100% - 112px, 1424px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 5;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

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

.build-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 18px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

.build-info > span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}

.build-info code {
  color: var(--ink);
  font-size: 12px;
}

.version-state {
  color: var(--accent);
}

.version-zone {
  font-size: 10px;
}

@media (max-width: 600px) {
  .build-info {
    justify-content: flex-start;
  }
}

.brand-name {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1.1px;
}

.brand-slash {
  margin-left: 17px;
  color: var(--accent);
  font-weight: 400;
}

.brand-author {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 13px;
}

.site-nav a,
.site-footer a {
  padding-block: 10px;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.nav-count {
  margin-left: 4px;
  color: var(--accent);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  vertical-align: super;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: end;
  padding-block: 66px 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.orange-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin-top: 25px;
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 68px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.04em;
}

.title-stop {
  color: var(--accent);
}

.hero-note {
  padding-bottom: 7px;
}

.hero-note > p {
  color: #5e6c61;
  font-size: 14px;
  line-height: 2;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 600;
}

.text-link:hover {
  color: var(--accent);
}

.hero-link {
  margin-top: 23px;
}

.hero-link > span {
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
}

.projects {
  padding-block: 28px 57px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 35px;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 17px;
}

.section-heading h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-en {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.section-heading > p {
  color: var(--muted);
  font-size: 12px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 48px;
}

.project,
.project-card {
  min-width: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.project-number {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.project-index > span:last-child {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.project-image {
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: #23382a;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.025);
}

.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 23px;
}

.project-category {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.project-copy h3 {
  font-family: var(--serif);
  font-size: clamp(25px, 2.15vw, 32px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.project-copy h3[lang="en"] {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.project-description {
  flex-grow: 1;
  margin-top: 14px;
  color: #58665c;
  font-size: 13px;
  line-height: 1.95;
  text-wrap: pretty;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 22px;
  padding-bottom: 19px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.project-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 57px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  transition: color 180ms ease, border-color 180ms ease;
}

.entry-arrow {
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.project-card:hover .project-entry,
.project-card:focus-visible .project-entry {
  border-color: var(--ink);
  color: var(--accent);
}

.project-card:hover .entry-arrow {
  transform: translate(2px, -2px);
}

.play-note {
  display: flex;
  gap: 9px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.note-mark {
  color: var(--accent);
  font-size: 15px;
  line-height: 1.2;
}

.about {
  display: grid;
  grid-template-columns: 1fr 2.3fr 1fr;
  gap: 38px;
  align-items: start;
  padding: 35px 0 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-label {
  padding-top: 5px;
}

.about-label .eyebrow {
  font-size: 9px;
}

.about-signature {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.about-copy h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.5;
}

.about-copy p {
  max-width: 500px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
}

.source-link {
  justify-self: end;
  gap: 16px;
  margin-top: 9px;
  white-space: nowrap;
  font-size: 11px;
}

.source-link > span {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 83px;
  color: var(--muted);
  font-size: 10px;
}

.site-footer a span {
  margin-left: 12px;
}

@media (min-width: 1680px) {
  .hero {
    padding-block: 80px;
  }
}

@media (max-width: 1180px) {
  .page-width {
    width: calc(100% - 72px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 32px;
  }

  h1 {
    font-size: clamp(38px, 4.1vw, 52px);
  }

  .hero-note > p {
    font-size: 12px;
  }

  .project-grid {
    column-gap: 22px;
  }

  .project-copy h3 {
    font-size: 26px;
  }

  .project-description {
    font-size: 12px;
  }

  .project-meta {
    font-size: 9px;
  }

  .about {
    grid-template-columns: 1fr 2.6fr;
    column-gap: 30px;
    row-gap: 24px;
  }

  .source-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .page-width {
    width: calc(100% - 56px);
  }

  .site-header {
    min-height: 90px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-block: 48px 45px;
  }

  h1 {
    font-size: clamp(34px, 6.5vw, 54px);
  }

  .hero-note {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    padding-bottom: 0;
  }

  .hero-link {
    flex-shrink: 0;
    gap: 12px;
    padding-bottom: 4px;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-index {
    margin-bottom: 14px;
  }

  .project-image {
    aspect-ratio: 8 / 5;
  }

  .project-copy {
    padding-top: 22px;
  }

  .project-copy h3 {
    font-size: 31px;
  }

  .project-description {
    max-width: 580px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.85;
  }

  .project-meta {
    margin-top: 22px;
    font-size: 11px;
  }

  .project-entry {
    font-size: 13px;
  }

  .play-note {
    margin-top: 30px;
  }

  .about {
    grid-template-columns: 1fr 2.6fr;
  }
}

@media (max-width: 540px) {
  .page-width {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 82px;
  }

  .brand {
    gap: 11px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-slash {
    margin-left: 10px;
  }

  .brand-author {
    font-size: 11px;
    letter-spacing: 0;
  }

  .site-nav {
    gap: 20px;
    font-size: 12px;
  }

  .nav-count {
    margin-left: 1px;
    font-size: 8px;
  }

  .hero {
    gap: 23px;
    padding-block: 42px 38px;
  }

  .eyebrow {
    font-size: 10px;
  }

  h1 {
    margin-top: 22px;
    font-size: clamp(29px, 7.5vw, 40px);
    letter-spacing: -0.06em;
    line-height: 1.45;
  }

  .hero-note {
    display: block;
  }

  .hero-note > p {
    font-size: 12px;
    line-height: 1.9;
  }

  .hero-link {
    margin-top: 18px;
    gap: 22px;
  }

  .projects {
    padding-block: 23px 38px;
  }

  .section-heading {
    display: block;
    margin-bottom: 29px;
  }

  .section-heading h2 {
    font-size: 17px;
  }

  .section-title-group {
    justify-content: space-between;
    gap: 12px;
  }

  .section-heading > p {
    margin-top: 10px;
    font-size: 11px;
  }

  .project-number {
    font-size: 18px;
  }

  .project-index > span:last-child {
    font-size: 8px;
  }

  .project-copy h3 {
    font-size: 29px;
  }

  .project-description {
    font-size: 13px;
    line-height: 1.9;
  }

  .project-meta {
    font-size: 10px;
  }

  .project-grid {
    row-gap: 40px;
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding-block: 28px 33px;
  }

  .about-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-top: 0;
  }

  .about-signature {
    margin-top: 0;
    font-size: 10px;
  }

  .about-copy h2 {
    font-size: 26px;
  }

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

  .source-link {
    grid-column: auto;
  }

  .site-footer {
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 9px;
    padding-block: 19px;
    min-height: 92px;
  }

  .site-footer > p:nth-child(2) {
    order: 3;
    flex-basis: 100%;
    font-size: 9px;
  }

  .site-footer a {
    padding-block: 0;
  }
}

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

  h1 {
    font-size: 27px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .project-card:hover .project-image img,
  .project-card:hover .entry-arrow {
    transform: none;
  }
}
