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

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

:root {
  color-scheme: light;
  --ink: #202522;
  --secondary: #555c57;
  --muted: #656d67;
  --rule: #daddda;
  --focus: #2b644d;
  --ground: #ffffff;
  --soft: #f4f5f2;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--ground);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: #d9e6de; }
::selection { background: #dce8df; color: #163526; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.wrap { width: min(100% - 64px, 1376px); margin-inline: auto; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px 32px; }
.brand-mark { display: block; flex: 0 0 auto; width: 40px; height: 40px; }
.intro-copy { min-width: 0; }
h1 { margin: 0; font-size: clamp(30px, 2.6vw, 36px); line-height: 1.35; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.intro h1 { font-size: 32px; line-height: 1.25; letter-spacing: 0; }
.intro p { margin: 8px 0 0; color: var(--secondary); font-size: 15px; line-height: 1.6; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; margin: 0; padding: 0; list-style: none; }
.project { min-width: 0; }
.project-link { display: flex; flex-direction: column; height: 100%; }
.preview { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); border-radius: 2px; background: var(--soft); color: var(--secondary); font-size: 14px; }
.preview-placeholder { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.project-heading { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; margin-top: 10px; }
.project h2 { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.note { color: var(--secondary); font-size: 12px; line-height: 1.6; }
.description { margin: 3px 0 0; color: var(--secondary); font-size: 14px; line-height: 1.8; }
.destination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.destination span { overflow-wrap: anywhere; }
.arrow { width: 17px; height: 17px; flex: 0 0 auto; color: var(--ink); transition: transform 180ms cubic-bezier(.16, 1, .3, 1); }
.project-link:hover h2, .project-link:focus-visible h2 { text-decoration-line: underline; }
.project-link:hover .arrow { transform: translate(2px, -2px); }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; min-height: 64px; margin-top: 28px; padding-block: 18px; border-top: 1px solid var(--rule); color: var(--secondary); font-size: 13px; }
.coding-usage { display: flex; align-items: center; gap: 12px; max-width: 100%; }
.coding-usage > span { white-space: nowrap; }
.coding-usage img { display: block; width: 320px; max-width: 100%; height: auto; }
.coding-usage:hover > span { text-decoration: underline; text-underline-offset: 4px; }
.skip-link { position: fixed; z-index: 10; inset: 10px auto auto 16px; padding: 10px 16px; transform: translateY(-160%); background: var(--ground); border: 1px solid var(--focus); }
.skip-link:focus { transform: translateY(0); }
.error-page { padding-block: 64px; }
.error-page p { color: var(--secondary); line-height: 1.8; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 1000px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 40px); }
  .intro { gap: 16px; padding-block: 32px 24px; }
  .brand-mark { width: 32px; height: 32px; }
  .intro h1 { font-size: 28px; }
  .intro p { font-size: 14px; }
  .projects { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  .project h2 { font-size: 18px; }
  .description { font-size: 14px; }
  .site-footer { align-items: flex-start; flex-direction: column; margin-top: 30px; }
  .coding-usage { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .arrow { transition: none; }
  .project-link:hover .arrow { transform: none; }
}
