@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/BodoniModa-Medium.woff2") format("woff2"),
       url("/fonts/BodoniModa-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("/fonts/NotoSerifSC-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("/fonts/NotoSerifSC-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --fg: #f4f4f4;
  --dim: rgba(244, 244, 244, 0.48);
  --serif: "Noto Serif SC", "Songti SC", "Times New Roman", serif;
  --display: "Bodoni Moda", "Times New Roman", Times, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100%;
  background: #000;
  color: var(--fg);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

body[data-scene="home"] {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

#fallback {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-weight: 500;
  font-size: clamp(2.4rem, 9vw, 8rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  pointer-events: none;
  user-select: none;
}
body.is-live #fallback { opacity: 0; }

#stage,
#stage canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}
body.has-custom-cursor #stage,
body.has-custom-cursor #stage canvas {
  cursor: none;
}
canvas { outline: none; }

.brand {
  position: fixed;
  z-index: 6;
  top: 28px;
  left: 28px;
  font-size: 12px;
  letter-spacing: 0.42em;
  color: rgba(244, 244, 244, 0.78);
}
.brand:hover { color: #fff; }

.site-nav {
  position: fixed;
  z-index: 6;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 1.75em;
  max-width: calc(100vw - 56px);
}
.site-nav a {
  color: rgba(244, 244, 244, 0.72);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  cursor: pointer;
}
.site-nav a:hover,
.site-nav a.is-on { color: #fff; }

.sheet {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  padding: 18vh 8vw 22vh;
  max-width: 1100px;
  pointer-events: none;
}
.sheet a,
.sheet button { pointer-events: auto; }

.works { list-style: none; }
.works a {
  display: grid;
  grid-template-columns: 4.8em 1fr;
  gap: 1.6rem;
  align-items: baseline;
  padding: 0.55em 0;
  color: rgba(244, 244, 244, 0.78);
}
.works .yr {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--dim);
}
.works .ttl {
  font-family: var(--serif);
  font-size: clamp(22px, 3.1vw, 40px);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.works a:hover { color: #fff; }
.works a:hover .yr { color: rgba(244, 244, 244, 0.8); }

.detail {
  max-width: 42rem;
  padding: 22vh 8vw 16vh;
}
.detail .en {
  margin-top: 10px;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.12em;
  color: var(--dim);
}
.detail h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5.2vw, 68px);
  line-height: 1.12;
  letter-spacing: 0.02em;
}
.detail .meta {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--dim);
  line-height: 1.7;
}
.detail .copy {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
  color: rgba(244, 244, 244, 0.78);
}
.detail .copy p + p { margin-top: 1em; }
.detail .cover { margin-top: 28px; }
.detail .cover img { display: block; max-width: 100%; height: auto; }
#player {
  margin-top: 28px;
  width: 100%;
}
#player iframe,
#player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}
#player audio { display: block; width: 100%; }
.detail .press {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.detail .press a { border-bottom: 1px solid rgba(244, 244, 244, 0.22); padding-bottom: 2px; }
.detail .press a:hover { color: #fff; }
.detail .press span { max-width: 36rem; letter-spacing: 0.06em; line-height: 1.7; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--dim);
  pointer-events: auto;
}
.pager a:hover { color: #fff; }

@media (max-width: 640px) {
  .brand { top: 18px; left: 18px; }
  .site-nav { right: 18px; bottom: 18px; }
  .sheet, .detail { padding: 16vh 22px 18vh; }
  .works a { grid-template-columns: 3.6em 1fr; gap: 1rem; }
  .works .ttl { font-size: 22px; }
}
