:root {
  color-scheme: light dark;
  --page: #f4f7f9;
  --surface: #ffffff;
  --surface-muted: #e9eff3;
  --ink: #0b2238;
  --ink-soft: #526476;
  --line: #ccd7df;
  --navy: #0b2f50;
  --accent: #b54400;
  --accent-hover: #963700;
  --on-accent: #ffffff;
  --focus: #1778c8;
  --shadow: 0 24px 60px rgba(32, 62, 84, 0.16);
  --radius: 16px;
  --shell: min(1120px, calc(100% - 40px));
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #071725;
    --surface: #0d263a;
    --surface-muted: #112f46;
    --ink: #eef6fb;
    --ink-soft: #afc1ce;
    --line: #28475d;
    --navy: #dcecf6;
    --accent: #ff8a24;
    --accent-hover: #ff9e4b;
    --on-accent: #1d130a;
    --focus: #74c7ff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  transform: translateY(-160%);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 92%, transparent);
}

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

.site-name {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: min(720px, calc(100dvh - 73px));
  padding-block: clamp(72px, 10vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: clamp(64px, 10vw, 136px);
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 30rem;
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
}

.primary-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover {
  background: var(--accent-hover);
}

.primary-link:active {
  transform: translateY(1px);
}

.hero-index {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.hero-index > p {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.hero-index dl {
  margin-bottom: 0;
}

.hero-index dl > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.hero-index dt {
  font-weight: 700;
}

.hero-index dd {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.work-section {
  padding-block: clamp(72px, 10vw, 120px);
  background: var(--surface);
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(56px, 10vw, 144px);
}

.section-heading h2,
.project-copy h2,
.about-layout h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-heading p {
  color: var(--ink-soft);
}

.work-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.work-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.work-list article > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.work-list h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.work-list p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.project-section {
  padding-block: clamp(80px, 12vw, 144px);
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(56px, 9vw, 124px);
}

.project-visual {
  max-width: 560px;
}

.project-figure {
  margin: 0;
}

.project-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.project-figure-main img {
  aspect-ratio: 1;
}

.project-figure figcaption {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.project-kind {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.project-lead {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 19px;
}

.project-points {
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.project-points li {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.project-note {
  max-width: 34rem;
  margin-bottom: 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 14px;
}

.about-section {
  padding-block: clamp(72px, 10vw, 112px);
  background: var(--surface-muted);
  color: var(--ink);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(56px, 10vw, 144px);
}

.about-layout p {
  max-width: 40rem;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

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

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

.footer-inner p {
  margin-bottom: 0;
}

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

.footer-inner a:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 32px, 680px);
  }

  body {
    font-size: 16px;
  }

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

  .site-nav {
    gap: 16px;
    font-size: 13px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero,
  .work-layout,
  .project-section,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 72px;
    align-items: start;
    gap: 64px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 60px);
  }

  .work-layout,
  .project-section,
  .about-layout {
    gap: 44px;
  }

  .project-visual {
    max-width: 520px;
  }

  .footer-inner {
    padding-block: 22px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .filing-links {
    justify-content: flex-start;
    gap: 4px 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
