@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/outfit-500.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-600.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-sans-sc-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/noto-sans-sc-500.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/noto-sans-sc-600.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/noto-serif-sc-600.woff2") format("woff2");
}

:root {
  --bg: #f4f1ea;
  --ink: #1b1915;
  --ink-soft: #3a352f;
  --muted: #5e584f;
  --line: #e4ddd2;
  --card: #fffcf8;
  --rust: #8c4530;
  --rust-bg: #f8eee8;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --latin: "Outfit", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --shadow: 0 18px 40px rgba(28, 26, 23, 0.06);
  --header: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 40;
}

.skip:focus { transform: none; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(16px);
}

.site-header.is-stuck {
  box-shadow: inset 0 -1px 0 rgba(27, 25, 21, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  font-family: var(--latin);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-soft);
}

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

.nav-contact {
  color: var(--bg) !important;
  background: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-contact:hover { background: #000; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  content: "";
}

.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }

.hero { padding: 28px 0 20px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 48px;
  align-items: end;
}

.eyebrow,
.en {
  font-family: var(--latin);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
}

.num {
  font-family: var(--latin);
  font-weight: 500;
  color: var(--rust);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.6rem, 8vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 10px 0 0;
}

.alt-name {
  margin: 10px 0 0;
  font-size: 1.7rem;
  color: var(--muted);
  line-height: 1.3;
}

.alt-name em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: #3f3a34;
}

.role {
  margin: 22px 0 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.role-en,
.places {
  margin: 4px 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--latin);
  font-weight: 500;
  border: 1px solid transparent;
}

.btn-dark { background: var(--ink); color: #f6f3ee; }
.btn-dark:hover { background: #000; }

.btn-light { background: #f6f3ee; color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-ghost {
  background: transparent;
  border-color: #cfc6b8;
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(246, 243, 238, 0.35);
  color: #f6f3ee;
}

.btn-ghost-light:hover { border-color: #f6f3ee; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
}

.contact-place {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.contact-card dl { margin: 8px 0 0; }

.contact-card dl > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.contact-card dt {
  font-family: var(--latin);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-card dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hint { color: var(--muted); }

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 14px 0 0;
}

.pills li {
  background: var(--rust-bg);
  color: var(--rust);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.facts {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 1.15fr) minmax(0, 0.7fr);
  margin: 56px 0 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  padding: 26px 22px 8px 0;
}

.facts > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.facts dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section { padding: 96px 0 8px; }

.section-tight { padding-top: 88px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 24px;
  margin-bottom: 28px;
}

.section-head h2,
.cta h2,
.missing h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-head .num {
  margin-right: 10px;
  font-size: 0.95rem;
}

.card-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card,
.project,
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  min-width: 0;
}

.card {
  padding: 28px 28px 30px;
  margin: 0;
}

.card p,
.project li,
.timeline p { margin: 0; }

.card strong { font-weight: 600; }

.card:hover,
.project:hover,
.product:hover {
  border-color: #d3c9bb;
  transform: translateY(-2px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  min-width: 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child { border-bottom: 1px solid var(--line); }

.when {
  margin: 4px 0 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.timeline h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.role-line {
  margin: 4px 0 8px;
  color: var(--rust);
  font-weight: 500;
}

.timeline p:last-child { color: var(--ink-soft); }

.skill-list { border-bottom: 1px solid var(--line); }

.skill-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px 28px;
  min-width: 0;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.skill-row h3 {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 500;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.tags li {
  background: #efeae2;
  border-radius: 999px;
  padding: 7px 12px;
  line-height: 1.4;
  font-size: 0.98rem;
}

.project { padding: 28px 28px 30px; }

.project-wide { grid-column: 1 / -1; }

.project-top {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
  min-width: 0;
}

.project-top > div { min-width: 0; }

.project-top .num {
  font-size: 0.95rem;
  line-height: 1.4;
}

.project h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: pretty;
  word-break: keep-all;
}

.project h3 .phrase {
  display: inline-block;
  white-space: nowrap;
}

.project h3 .phrase + .phrase::before {
  content: " ｜ ";
}

.project h3 .phrase.dot::before {
  content: " · ";
}

.meta {
  margin: 4px 0 0;
  color: var(--muted);
}

.project ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.project li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
}

.project li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rust);
  position: absolute;
  left: 0;
  top: 0.72em;
}

.early {
  margin-top: 18px;
  padding: 22px 4px 0;
}

.early-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.early ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
}

.early li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  line-height: 1.4;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 20px 22px;
  text-decoration: none;
  min-height: 96px;
}

.product-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-name {
  font-weight: 600;
  line-height: 1.4;
}

.product-url {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.arrow {
  font-family: var(--latin);
  color: var(--muted);
  line-height: 1.4;
}

.cta {
  background: var(--ink);
  color: #f6f3ee;
  border-radius: 32px;
  padding: 56px 48px 48px;
}

.cta .en { color: rgba(246, 243, 238, 0.62); }

.cta h2 {
  margin: 12px 0 0;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: #f7f4ee;
}

.cta-lead {
  margin: 12px 0 0;
  color: rgba(246, 243, 238, 0.78);
  max-width: 40rem;
  word-break: keep-all;
}

.cta-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  margin: 32px 0 8px;
}

.cta-links a {
  text-decoration: none;
  color: inherit;
  border-top: 1px solid rgba(246, 243, 238, 0.18);
  padding-top: 14px;
}

.cta-links span {
  display: block;
  color: rgba(246, 243, 238, 0.62);
  font-family: var(--latin);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.cta-links strong {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 28px 0 48px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.site-footer p { margin: 0; }

.footer-links {
  display: flex;
  gap: 18px;
}

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

.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.missing {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  gap: 8px;
}

.missing h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
}

.missing p { margin: 0 0 12px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .facts,
  .card-grid,
  .cta-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(3),
  .facts > div:nth-child(4) { border-top: 1px solid var(--line); }
  .facts > div:nth-child(even) { border-left: 1px solid var(--line); }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header) + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .nav-contact {
    justify-content: center;
    margin-top: 4px;
  }
}

@media (max-width: 720px) {
  .container,
  .missing { width: min(1120px, calc(100% - 32px)); }

  .section { padding-top: 68px; }

  .card-grid,
  .project-grid,
  .product-grid,
  .facts,
  .cta-links,
  .hero-grid,
  .timeline li,
  .skill-row { grid-template-columns: minmax(0, 1fr); }

  .facts > div,
  .facts > div + div {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }

  .facts > div:first-child { border-top: 0; }

  .project h3 .phrase { white-space: normal; }

  .project-wide { grid-column: auto; }

  .cta { padding: 36px 22px 28px; border-radius: 24px; }

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

  .hero h1 { font-size: clamp(3.1rem, 16vw, 4.4rem); }
}

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

  .card:hover,
  .project:hover,
  .product:hover { transform: none; transition: none; }
}

@media print {
  .site-header,
  .hero-actions,
  .nav-toggle { display: none; }

  body { background: #fff; }

  .cta {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
  }

  .cta h2,
  .cta-lead,
  .cta .en,
  .cta-links span { color: #000; }

  .card,
  .project,
  .product,
  .contact-card { box-shadow: none; }
}
