@font-face {
  font-family: "Chapter Hand";
  src: url("./assets/title-chapter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202126;
  background: #fff;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: #fff; background: #2520cf; }

.page {
  width: min(100% - 112px, 1060px);
  margin: 0 auto;
  padding: 72px 0 80px;
}

.introduction { max-width: 940px; }
h1 {
  margin: 0 0 26px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.introduction-lead {
  margin: 0;
  max-width: 880px;
  font-size: clamp(1.375rem, 2.05vw, 1.75rem);
  font-weight: 500;
  line-height: 1.75;
  text-wrap: pretty;
}
.introduction-note {
  margin: 21px 0 0;
  color: #60636b;
  font-size: 1rem;
  line-height: 1.9;
}

.works { margin-top: 52px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 20px;
  border-top: 1px solid #dfe0e5;
  margin-bottom: 27px;
}
.section-heading h2 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 0;
}
.section-heading > span { font-size: 0.875rem; color: #73767f; font-variant-numeric: tabular-nums; }

.work {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}
.work-cover {
  background: #0500fc;
  height: 432px;
  position: relative;
  overflow: hidden;
}
.cover-lettering {
  position: absolute;
  width: 128px;
  height: 408px;
  top: 11px;
  left: calc(50% - 62px);
}
.cover-lettering span {
  position: absolute;
  writing-mode: vertical-rl;
  font-family: "Chapter Hand", "KaiTi", "STKaiti", serif;
  font-weight: 400;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.title-back { color: #00009b; top: 0; left: 0; filter: blur(0.35px); }
.title-front { color: #ff0192; top: 28px; left: 38px; }
.work-information { padding-top: 3px; }
.work-kind { margin: 0 0 12px; font-size: 0.875rem; color: #686b74; letter-spacing: 0.06em; }
.work-information h3 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 2.5vw, 2.125rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.35;
}
.work-description { font-size: 1rem; line-height: 1.95; color: #4e515b; }
.work-description p { margin: 0 0 16px; text-wrap: pretty; }
.work-description p:last-child { margin-bottom: 0; }
.enter-work {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  min-height: 50px;
  margin-top: 28px;
  padding: 12px 21px;
  background: #202126;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  border: 1px solid #202126;
  touch-action: manipulation;
}
.enter-work:hover { background: #363943; }
.enter-work:active { background: #0500cb; border-color: #0500cb; }
.enter-work:focus-visible { outline: 3px solid #0500fc; outline-offset: 5px; }

@media (max-width: 850px) {
  .page { width: min(100% - 64px, 1060px); padding-top: 44px; }
  .work { grid-template-columns: 214px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .page { width: calc(100% - 44px); padding: 34px 0 44px; }
  h1 { margin-bottom: 20px; }
  .introduction-lead { font-size: 1.3125rem; line-height: 1.8; }
  .introduction-note { margin-top: 17px; }
  .works { margin-top: 34px; }
  .section-heading { padding-top: 18px; margin-bottom: 22px; }
  .work { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .work-cover { height: 300px; }
  .cover-lettering { top: 8px; transform: scale(0.695); transform-origin: top center; }
  .work-information { padding-top: 0; }
  .work-information h3 { margin-bottom: 20px; }
  .enter-work { width: 100%; min-height: 54px; margin-top: 25px; }
}

@media (forced-colors: active) {
  .work-cover { border: 1px solid CanvasText; }
  .cover-lettering span { color: CanvasText; }
}
