@charset "UTF-8";

/* Official Noto Serif SC 2.003, SIL OFL 1.1; see OFL.txt and SOURCE.txt.
   Full coverage first; this page's precise subset last. Keep both declarations. */
@font-face {
  font-family: "XXY Serif";
  src: url("../fonts/noto-serif-sc-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "XXY Serif";
  src: url("../fonts/noto-serif-sc-page.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20-7E, U+B7, U+3001-3002, U+4E00, U+4E0B, U+4E0E, U+4E2A, U+4E2D, U+4E60, U+4E86, U+4E8B, U+4E9B, U+4EBA, U+4ECB, U+4EE3, U+4EE5, U+4EF6, U+4F5C, U+4FBF, U+505A, U+5165, U+5173, U+5177, U+5199, U+51E0, U+5230, U+529F, U+53E3, U+53EF, U+53F3, U+548C, U+54C1, U+56DE, U+5728, U+5904, U+590D, U+597D, U+5B9E, U+5C0F, U+5C11, U+5C31, U+5DE5, U+5DF1, U+5E38, U+5E93-5E94, U+5F00, U+624B, U+6253, U+627E, U+628A, U+636E, U+63A5, U+63D0, U+6536, U+653E, U+6548, U+6570, U+6574, U+6587, U+6599, U+65B0, U+65B9, U+65E5, U+65F6, U+667A, U+6765, U+677F, U+67E5, U+6807, U+6863, U+7387, U+7406, U+7528, U+754C, U+7559, U+7684, U+76EE, U+76F4, U+76F8, U+770B, U+7740, U+77E5, U+7801, U+7B7E, U+7BA1, U+7EC3-7EC4, U+7ECD, U+7EDF, U+7FFB, U+80FD, U+81EA, U+8272, U+8BA1, U+8BC6, U+8BD5, U+8D44, U+8D77, U+8FB9, U+8FC7, U+91CD, U+94FE, U+95EE, U+96C6, U+9762, U+9875, U+9879-987A, U+989C, U+9996, U+9A8C, U+FF0C;
}

:root {
  color-scheme: light;
  --outside: #e8e7e2;
  --paper: #f6f4ee;
  --navy: #263245;
  --ink: #263245;
  --soft: #dfe3e6;
  --muted: #65717d;
  --line: #dddedb;
  --accent: #475e73;
  --selected: #e9ecee;
  --serif: "XXY Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--outside);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: clamp(18px, 2.5vw, 40px); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
::selection { color: white; background: var(--accent); }

.page {
  width: min(100%, 1440px);
  margin: 0 auto;
  border: 1px solid #d8dad7;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgb(38 50 69 / 6%);
  background: var(--paper);
}
.site-header {
  height: 76px;
  padding: 0 clamp(30px, 3.8vw, 60px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  border-radius: 13px 13px 0 0;
}
.brand {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.055em;
  line-height: 1;
}
.main-layout {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: stretch;
  background: var(--navy);
  border-radius: 0 0 13px 13px;
}
.preview {
  position: sticky;
  top: 24px;
  align-self: start;
  min-height: max(640px, calc(100svh - 150px));
  min-width: 0;
  padding: clamp(38px, 4.3vw, 68px) clamp(34px, 4.5vw, 72px) 35px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #f6f4ee;
  border-radius: 0 0 0 13px;
}
.preview-copy { width: 100%; }
.preview.is-too-tall { position: relative; top: auto; }
.preview-label {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 clamp(38px, 5vw, 72px);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: #b7c2cd;
}
.preview-label::before { content: ""; width: 24px; height: 1px; background: #8393a3; }
.preview-heading {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.2vw, 66px);
  line-height: 1.42;
  letter-spacing: -.015em;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.preview-description {
  max-width: 440px;
  margin: clamp(32px, 3.8vw, 52px) 0 0;
  color: #c9d1d9;
  font-size: 14px;
  line-height: 1.95;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.preview-media {
  width: 100%;
  margin: 34px 0 8px;
  position: relative;
  border: 1px solid rgb(213 220 229 / 18%);
  border-radius: 7px;
  background: #303f53;
  aspect-ratio: 1.8;
  overflow: hidden;
  box-shadow: 0 12px 28px rgb(0 0 0 / 12%);
}
.preview-media img { width: 100%; height: 100%; display: block; object-fit: contain; }
.preview-media.is-empty { display: none; }
.preview-footer {
  width: 100%;
  margin: auto 0 0;
  padding-top: 54px;
  color: #b7c2cd;
  font-size: 12px;
  letter-spacing: .06em;
  display: flex;
  gap: 20px;
  align-items: center;
}
.preview-footer::after { content: ""; flex: 1; height: 1px; background: rgb(194 204 214 / 19%); }
.project-index {
  min-width: 0;
  padding: clamp(34px, 3.7vw, 58px) clamp(26px, 3.2vw, 52px) 35px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 0 0 13px 0;
  scroll-margin-top: 24px;
}
.index-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
}
.index-heading h2 { margin: 0; font-size: 17px; line-height: 1.7; font-weight: 500; letter-spacing: .035em; }
.project-list { padding: 0; margin: 0; list-style: none; position: relative; isolation: isolate; }
.project-list.has-interactions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--selection-width, 0px);
  height: var(--selection-height, 0px);
  transform: translate3d(var(--selection-x, 0px), var(--selection-y, 0px), 0);
  border-radius: 6px;
  background: var(--selected);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 150ms ease;
}
.project-list.has-selection::before { opacity: 1; }
.project-list.selection-slides::before { transition: transform 260ms cubic-bezier(.2,.7,.2,1), width 220ms ease, height 220ms ease, opacity 150ms ease; }
.project-list li + li { margin-top: 8px; }
.project-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 130px;
  padding: 24px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.project-copy { display: block; min-width: 0; position: relative; z-index: 1; }
.project-title { display: block; font-size: clamp(21px, 1.8vw, 26px); font-weight: 500; line-height: 1.6; letter-spacing: .01em; overflow-wrap: anywhere; }
.project-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.project-action {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  color: var(--muted);
  position: relative;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(var(--magnetic-x, 0px), var(--magnetic-y, 0px), 0) scale(var(--action-scale, 1));
  transition: color 180ms ease, transform 180ms ease;
}
.project-arrow {
  display: block;
  width: 24px;
  height: 18px;
  mask: url("../icons/arrow-right.svg") center / contain no-repeat;
  background: currentColor;
  transform: translateX(0);
  transition: transform 180ms ease;
}
.project-link.is-selected, .project-link:focus-visible {
  color: var(--accent);
  background: var(--selected);
  border-bottom-color: transparent;
}
.project-list.has-interactions .project-link.is-selected,
.project-list.has-interactions .project-link:focus-visible { background: transparent; }
.project-link.is-selected .project-action, .project-link:focus-visible .project-action {
  color: var(--accent);
}
.project-link.is-selected .project-arrow, .project-link:focus-visible .project-arrow { transform: translateX(3px); }
.project-link:active, .project-link.is-pressed,
.project-list.has-interactions .project-link:active,
.project-list.has-interactions .project-link.is-pressed { background: #dce2e6; }
.project-link:active .project-action, .project-link.is-pressed .project-action { --action-scale: .94; }
.project-ripple { position: absolute; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 0; }
.index-footer { margin: auto 0 0; padding: 38px 18px 0; color: var(--muted); font-size: 12px; line-height: 1.6; display: flex; flex-wrap: wrap; row-gap: 4px; align-items: center; }
.index-footer:empty { display: none; }
.footer-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; min-height: 32px; font-size: 14px; color: #475668; text-decoration: none; overflow-wrap: anywhere; transition: color 160ms ease; }
.footer-link:visited { color: #475668; }
.footer-link-label { min-width: 0; text-decoration-line: underline; text-decoration-color: #9aa6b1; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 160ms ease; }
.footer-link-arrow { width: 14px; height: 14px; flex: 0 0 14px; mask: url("../icons/arrow-right.svg") center / contain no-repeat; background: currentColor; transform: rotate(-35deg); transition: transform 160ms ease; }
.footer-separator { width: 1px; height: 12px; margin: 0 12px; flex: 0 0 1px; background: #bcc2c7; pointer-events: none; }
.footer-link:hover, .footer-link:focus-visible { color: #34495e; }
.footer-link:hover .footer-link-label, .footer-link:focus-visible .footer-link-label { text-decoration-color: #475e73; }
.footer-link:hover .footer-link-arrow, .footer-link:focus-visible .footer-link-arrow { transform: translate(2px, -2px) rotate(-35deg); }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 10; padding: 13px 17px; background: var(--paper); color: var(--ink); border: 2px solid var(--accent); text-decoration: none; border-radius: 5px; }
.skip-link:focus { top: 12px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
.project-link:focus-visible { outline-offset: 3px; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .project-link:hover { color: var(--accent); background: var(--selected); border-bottom-color: transparent; }
  .project-list.has-interactions .project-link:hover { background: transparent; }
  .project-link:hover .project-action { color: var(--accent); }
  .project-link:hover .project-arrow { transform: translateX(3px); }
  .project-list.has-interactions .project-link:active { background: #dce2e6; }
}
@media (hover: none), (pointer: coarse) {
  .project-list.has-interactions .project-link:active:not(.is-pressed) { background: transparent; }
  .project-list.has-interactions .project-link:active:not(.is-pressed) .project-action { --action-scale: 1; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .preview { padding-left: 36px; padding-right: 36px; }
  .preview-heading { font-size: 43px; }
  .project-index { padding-left: 26px; padding-right: 26px; }
  .project-link { padding: 22px 12px; gap: 15px; }
  .project-action { width: 34px; height: 34px; flex-basis: 34px; }
}
@media (max-width: 760px), (max-height: 520px) and (hover: none) and (pointer: coarse) {
  body { padding: calc(12px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)); }
  .page { border-radius: 11px; }
  .site-header { height: 64px; padding: 0 23px; border-radius: 10px 10px 0 0; }
  .brand { font-size: 23px; }
  .main-layout { grid-template-columns: 1fr; border-radius: 0 0 10px 10px; }
  .preview { position: relative; top: auto; min-height: 330px; padding: 28px 26px 24px; border-radius: 0; }
  .preview-label { margin-bottom: 25px; font-size: 11px; }
  .preview-heading { font-size: clamp(32px, 8.3vw, 40px); line-height: 1.4; }
  .preview-description { margin-top: 24px; font-size: 12px; line-height: 1.9; }
  .preview-media { margin-top: 22px; margin-bottom: 0; }
  .preview-footer { margin-top: 25px; padding-top: 0; font-size: 11px; }
  .project-index { padding: 31px 18px 26px; border-radius: 0 0 10px 10px; scroll-margin-top: 12px; }
  .index-heading { padding: 0 10px; margin-bottom: 15px; }
  .index-heading h2 { font-size: 16px; }
  .project-link { min-height: 112px; padding: 21px 12px; gap: 14px; }
  .project-title { font-size: 21px; }
  .project-description { font-size: 12px; margin-top: 6px; }
  .project-action { width: 34px; height: 34px; flex-basis: 34px; transform: scale(var(--action-scale, 1)); }
  .index-footer { padding: 27px 12px 0; font-size: 12px; }
  .footer-link { min-height: 44px; gap: 7px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .project-action { transform: none !important; }
  .project-arrow { transform: none !important; }
  .footer-link-arrow { transform: rotate(-35deg) !important; }
  .project-ripple { display: none; }
}

