:root {
  --black: #0f0f0f;
  --gray-900: #202020;
  --gray-700: #555555;
  --gray-500: #8c8c8c;
  --gray-300: #d7d7d7;
  --gray-100: #f4f4f4;
  --white: #ffffff;
  --max: 1280px;
  --page-pad: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--black);
  color: var(--white);
  padding: 10px 14px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-zh {
  display: none;
}

body[data-lang="zh"] .lang-en {
  display: none;
}

body[data-lang="zh"] .lang-zh {
  display: inline;
}

body[data-lang="zh"] div.lang-zh,
body[data-lang="zh"] section.lang-zh,
body[data-lang="zh"] p.lang-zh {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding: 24px var(--page-pad);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-300);
}

.site-header > *,
.home-hero__copy,
.home-hero__image,
.work-card,
.work-detail__image,
.work-detail__content {
  min-width: 0;
}

.site-brand {
  width: fit-content;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
}

.site-nav,
.footer-links,
.language-switch {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a,
.footer-links a,
.footer-links span,
.language-switch,
.language-switch button,
.eyebrow,
.text-link,
.work-card figcaption span,
.work-meta dt,
.contact-row h2 {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-nav a,
.footer-links a,
.footer-links span,
.language-switch button {
  color: var(--gray-700);
}

.site-nav a:hover,
.footer-links a:hover,
.language-switch button:hover {
  color: var(--black);
}

.footer-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.language-switch {
  color: var(--gray-500);
}

.language-switch button,
.filter-bar button,
.nav-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.language-switch button[aria-pressed="true"] {
  color: var(--black);
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 28px;
  place-items: center;
}

.nav-toggle__line,
.nav-toggle__line::before,
.nav-toggle__line::after {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--black);
  content: "";
}

.nav-toggle__line {
  position: relative;
}

.nav-toggle__line::before,
.nav-toggle__line::after {
  position: absolute;
  left: 0;
}

.nav-toggle__line::before {
  top: -7px;
}

.nav-toggle__line::after {
  top: 7px;
}

.home-hero {
  width: min(var(--max), 100%);
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(300px, 0.9fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: center;
  padding: clamp(56px, 9vw, 120px) var(--page-pad);
}

.home-hero__copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gray-700);
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 10vw, 132px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero-line {
  max-width: 560px;
  margin-top: 30px;
  color: var(--gray-700);
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.28;
  overflow-wrap: break-word;
}

.home-hero__image {
  margin: 0;
}

.home-hero__image img {
  width: 100%;
  height: auto;
  background: transparent;
}

.home-hero__image figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  color: var(--gray-700);
  font-size: 14px;
}

.section-wrap,
.page-title,
.text-page,
.about-page,
.timeline-list,
.contact-list,
.work-detail {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.section-wrap {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--gray-300);
}

.section-wrap--tight {
  padding-top: 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(34px, 6vw, 76px);
}

.section-heading h2 {
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 400;
  line-height: 1;
}

.selected-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 42px);
  align-items: start;
}

.work-card a {
  display: grid;
  gap: 16px;
}

.work-card figure {
  margin: 0;
}

.work-card__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--white);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.work-card figcaption {
  display: grid;
  gap: 7px;
  padding-top: 14px;
}

.work-card figcaption span {
  color: var(--gray-500);
}

.work-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 400;
  line-height: 1.08;
}

.work-card p {
  color: var(--gray-700);
  font-size: 14px;
}

.work-card a:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.section-link {
  margin-top: 40px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.page-title {
  padding-top: clamp(70px, 11vw, 150px);
  padding-bottom: clamp(54px, 8vw, 100px);
}

.page-title h1 {
  max-width: 900px;
  font-size: clamp(48px, 8vw, 108px);
}

.page-title p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 28px;
  color: var(--gray-700);
  font-size: clamp(18px, 2.2vw, 27px);
  line-height: 1.35;
}

.page-title--center {
  min-height: 60svh;
  display: grid;
  align-content: center;
  text-align: center;
}

.page-title--center .text-link {
  justify-self: center;
  margin-top: 32px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.filter-bar button {
  min-height: 40px;
  border: 1px solid var(--gray-300);
  padding: 10px 14px;
  color: var(--gray-700);
}

.filter-bar button[aria-pressed="true"] {
  border-color: var(--black);
  color: var(--black);
}

.work-detail {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
  padding-top: clamp(54px, 8vw, 110px);
  padding-bottom: clamp(70px, 10vw, 130px);
}

.work-detail__image {
  margin: 0;
}

.work-detail__image img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: transparent;
}

.work-detail__content {
  display: grid;
  gap: 24px;
}

.work-detail h1 {
  font-size: clamp(38px, 6vw, 78px);
}

.work-subtitle,
.work-note {
  color: var(--gray-700);
  font-size: 18px;
}

.work-meta {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
  border-top: 1px solid var(--gray-300);
}

.work-meta div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--gray-300);
}

.work-meta dt {
  color: var(--gray-500);
}

.work-meta dd {
  margin: 0;
  color: var(--gray-900);
}

.work-description {
  display: grid;
  gap: 12px;
}

.work-description h2 {
  font-size: 15px;
  font-weight: 650;
}

.work-description p {
  color: var(--gray-700);
  font-size: 17px;
}

.work-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.work-nav a {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--gray-300);
  padding-top: 14px;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-nav span {
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.text-page {
  padding-bottom: clamp(70px, 10vw, 130px);
}

.about-page {
  display: grid;
  gap: clamp(52px, 8vw, 110px);
  padding-bottom: clamp(80px, 12vw, 160px);
}

.artist-portrait {
  width: min(920px, 100%);
  margin: 0;
}

.artist-portrait img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  object-fit: contain;
}

.text-page__block {
  max-width: 900px;
}

.text-page__block p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.13;
}

.timeline-list {
  display: grid;
  gap: clamp(64px, 9vw, 120px);
  max-width: 900px;
  padding-bottom: clamp(70px, 10vw, 130px);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 68px);
}

.timeline-item time {
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.timeline-item p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.18;
}

.timeline-item p + p {
  margin-top: 12px;
  color: var(--gray-700);
}

.contact-list {
  display: grid;
  padding-bottom: clamp(70px, 10vw, 130px);
}

.contact-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--gray-300);
}

.contact-row:last-child {
  border-bottom: 1px solid var(--gray-300);
}

.contact-row h2 {
  color: var(--gray-500);
}

.contact-row a,
.contact-row span {
  width: fit-content;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4.5vw, 56px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.contact-row span {
  color: var(--gray-700);
}

.contact-row a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 42px var(--page-pad);
  border-top: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.footer-name {
  margin-bottom: 8px;
  color: var(--black);
  font-weight: 650;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 18px;
  }

  .home-hero,
  .work-detail {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero__image {
    max-width: 680px;
  }

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

  .section-heading,
  .timeline-item,
  .contact-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .nav-toggle {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-300);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .language-switch {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    gap: 7px;
    margin-top: 0;
    white-space: nowrap;
  }

  .language-switch,
  .language-switch button {
    letter-spacing: 0.02em;
  }

  .home-hero {
    padding-top: 54px;
  }

  .hero-line {
    max-width: 20rem;
    font-size: 19px;
  }

  .selected-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .home-hero__image figcaption,
  .work-nav {
    grid-template-columns: 1fr;
  }

  .home-hero__image figcaption {
    display: grid;
  }

  .work-meta div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

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

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