:root {
  color-scheme: light;
  --surface: #e9edef;
  --ink: #121617;
  --muted: #4f5a5e;
  --line: #9ba5a9;
  --accent: #294e53;
  --sans: "Arial Nova", "Helvetica Neue", Arial, "Noto Sans CJK SC",
    "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
  font-family: var(--sans);
  font-synthesis: none;
}

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

html {
  background: var(--surface);
}

body {
  min-height: 100svh;
  margin: 0;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--ink);
  background: var(--surface);
}

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

.site-shell {
  width: min(100%, 96rem);
  min-height: calc(100svh - clamp(1.5rem, 4vw, 3rem));
  margin-inline: auto;
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: 1fr auto;
}

.identity {
  min-height: clamp(25rem, 59svh, 42rem);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(19rem, 5fr);
}

.brand-mark {
  padding: clamp(1rem, 2.4vw, 2.25rem);
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  font-size: clamp(9rem, 27vw, 26rem);
  font-weight: 800;
  letter-spacing: -0.105em;
  line-height: 0.68;
  white-space: nowrap;
}

.identity-copy {
  border-left: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.name-en,
.description,
.project-index,
.project-status,
.projects-header,
footer {
  font-family: var(--mono);
  text-transform: uppercase;
}

.name-en {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.12em;
}

h1 {
  margin-bottom: clamp(2.5rem, 7vh, 5.5rem);
  font-size: clamp(1.65rem, 3.15vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.descriptions {
  max-width: 28rem;
}

.description-cn {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: clamp(0.78rem, 1.05vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.55;
}

.description {
  color: var(--accent);
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.65;
}

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

.projects-header {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 0.72rem clamp(1.25rem, 2.5vw, 2.25rem);
}

.projects-header h2 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: grid;
  grid-template-rows: repeat(3, auto);
  gap: clamp(1.75rem, 3vw, 2.25rem);
}

.project + .project {
  border-left: 1px solid var(--line);
}

.project-index {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.project h3 {
  align-self: center;
  font-size: clamp(1.65rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.project-status {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.09em;
}

.project-status span {
  color: var(--muted);
}

.project-status p {
  color: var(--accent);
  font-weight: 700;
}

footer {
  border-top: 1px solid var(--line);
  padding: 0.8rem clamp(1.25rem, 2.5vw, 2.25rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

@media (max-width: 48rem) {
  .identity {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .brand-mark {
    min-height: 22rem;
    padding: 1.25rem;
    font-size: clamp(8rem, 44vw, 18rem);
  }

  .identity-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 1.5rem 1.25rem;
  }

  h1 {
    margin-bottom: 2.75rem;
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .projects {
    width: 100%;
    border-inline: 0;
    grid-template-columns: 1fr;
  }

  .project {
    padding: 1.25rem;
  }

  .project + .project {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project h3 {
    font-size: 1.45rem;
  }

  footer {
    padding-inline: 1.25rem;
  }
}

@media (max-width: 22rem) {
  .brand-mark {
    font-size: 7.5rem;
  }

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