@font-face {
  font-family: "Noto Sans JP Site";
  src: url("assets/notosansjp.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
  unicode-range: U+3000-30FF, U+3400-9FFF;
}
@font-face {
  font-family: "Noto Serif JP Site";
  src: url("assets/notoserifjp.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
  unicode-range: U+3000-30FF, U+3400-9FFF;
}
:root {
  color-scheme: dark;
  --background: #111313;
  --text: #f5f0ea;
  --muted: #bdbab3;
  --accent: #f47767;
  --gutter: clamp(1.25rem, 6vw, 7rem);
  font-family: "Noto Sans JP Site", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.65;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-inline: var(--gutter);
}
.masthead { min-height: 74px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font: 750 .94rem/1 system-ui, sans-serif;
  letter-spacing: .18em;
  white-space: nowrap;
  text-decoration: none;
}
.mark {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--background);
  border: 1px solid var(--accent);
}
nav { display: flex; gap: clamp(1rem, 3vw, 2.75rem); }
nav a { font-size: .875rem; text-decoration: none; }
nav a:hover { color: var(--accent); }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(31rem, 77svh, 52rem);
  background: #182321;
  overflow: hidden;
}
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 60% 49%; z-index: -2; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, #0d1212b8, #0d121200 76%),
    linear-gradient(0deg, #0d1212e6, #0d121200 63%);
  z-index: -1;
}
.hero-content { padding: 4rem var(--gutter) clamp(3rem, 10vh, 6.5rem); }
.film-meta { margin: 0 0 .75rem; color: #f3c0ae; font-size: .875rem; letter-spacing: .16em; }
h1 {
  margin: 0;
  font-family: "Noto Serif JP Site", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  font-size: clamp(2.15rem, 5.5vw, 5.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
}
.subtitle { margin: .75rem 0 1.8rem; color: #e9dfd8; font: italic 1.35rem/1.2 Georgia, serif; }
.play {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 48px;
  padding: .65rem 1.15rem;
  border-radius: 3px;
  background: var(--accent);
  color: #201310;
  font-weight: 750;
  text-decoration: none;
}
.play:hover { background: #ff9a8b; }
.play span {
  width: 0;
  height: 0;
  border-block: .35rem solid transparent;
  border-inline-start: .54rem solid currentColor;
}
.notes {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  max-width: 93rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) var(--gutter);
}
.section-label { color: var(--accent); font-size: .875rem; letter-spacing: .14em; margin: 0 0 .8rem; }
.notes h2 {
  margin: 0;
  font-family: "Noto Serif JP Site", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.35;
}
.notes-copy { align-self: end; max-width: 33rem; color: var(--muted); }
.notes-copy p { margin: 0; }
.notes-copy p + p { margin-top: 1rem; }
.footer { border-top: 1px solid #353735; padding-block: 1.3rem; color: var(--muted); font-size: .875rem; }
dialog {
  width: min(58rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  color: var(--text);
  border: 1px solid #65625d;
  border-radius: 6px;
  background: var(--background);
}
dialog::backdrop { background: #080b0bea; }
.player-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; }
.player-header h2 { margin: 0; font-size: 1rem; }
.player-header button {
  min-height: 44px;
  padding: .5rem .8rem;
  background: #292b29;
  color: inherit;
  border: 1px solid #65625d;
  border-radius: 3px;
  font: inherit;
  cursor: pointer;
}
video { display: block; width: 100%; max-height: 75dvh; aspect-ratio: 16 / 9; background: #050606; }
@media (max-width: 650px) {
  .masthead { min-height: 64px; }
  .hero { min-height: 65svh; }
  .hero-content { padding-top: 12rem; }
  .notes { grid-template-columns: 1fr; }
  .notes h2 br { display: none; }
  .footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
