@font-face {
  font-family: "Gowun Batang";
  src: url("/assets/gowun-batang.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("/assets/noto-sans-kr.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f3e9;
  --ink: #252a20;
  --ink-soft: #4d5345;
  --accent: #65532b;
  --rule: #d6ccba;
  --serif: "Gowun Batang", "Nanum Myeongjo", "Batang", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --page-gutter: clamp(1rem, 4vw, 3.75rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, p { margin: 0; }

a { color: inherit; }

a:focus-visible, video:focus-visible, summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.shell {
  width: min(100% - var(--page-gutter) * 2, 84rem);
  margin-inline: auto;
}

.masthead {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead a { text-decoration: none; }

.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.2;
}

.navigation { display: flex; gap: clamp(0.875rem, 3vw, 2rem); }

.navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-underline-offset: 0.3em;
}

.navigation a:hover { text-decoration: underline; }

.hero-frame {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(34rem, 49vw, 42rem);
  overflow: hidden;
  background: #2b2d1e;
  color: #f9f5e8;
}

.hero-photo, .hero-frame::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-photo {
  object-fit: cover;
  object-position: 54% 48%;
}

.hero-frame::after {
  content: "";
  background:
    linear-gradient(90deg, rgb(19 22 15 / 83%) 0%, rgb(20 23 16 / 62%) 29%, rgb(22 25 17 / 11%) 73%),
    linear-gradient(0deg, rgb(19 22 15 / 46%), transparent 55%);
}

.hero-content {
  padding: clamp(2.5rem, 6.3vw, 6.125rem);
}

.destination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #eddda9;
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  font-weight: 500;
}

.destination::before {
  content: "";
  flex: 0 0 1.5rem;
  height: 1px;
  background: #d3b875;
}

h1, h2 { font-family: var(--serif); font-weight: 400; }

h1 {
  margin-top: 1.3rem;
  font-size: clamp(3.6rem, 6.1vw, 6.05rem);
  line-height: 1.14;
  letter-spacing: -0.062em;
}

h1 span { color: #f2dfab; }

.narrow-break { display: none; }

.hero-note {
  margin-top: 1.55rem;
  color: #f8f2e3;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.75;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.15rem;
  margin-top: 1.75rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid #f8f0d8;
  border-radius: 0.1875rem;
  background: #f8f0d8;
  color: #282d20;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.watch-button:hover { background: #ead6a1; }

.watch-button:focus-visible { outline-color: #fff4d6; }

.play-icon {
  width: 0;
  height: 0;
  border-block: 0.37rem solid transparent;
  border-left: 0.57rem solid currentColor;
}

.film {
  display: grid;
  grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(3.5rem, 7.8vw, 7.5rem) clamp(0rem, 2.1vw, 2rem);
  scroll-margin-top: 0.5rem;
}

.film-intro { padding-top: clamp(0rem, 1.6vw, 1.5rem); }

.section-label {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
}

h2 {
  margin-top: 0.3rem;
  font-size: clamp(2.5rem, 4.55vw, 4.4rem);
  line-height: 1.25;
  letter-spacing: -0.063em;
}

.film-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.film-credit {
  margin-top: 1.35rem;
  color: var(--accent);
  font-size: 0.875rem;
}

.film-credit span { margin-inline: 0.22rem; }

video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #231f16;
}

.film-error { margin-top: 0.75rem; }

.transcript {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

summary {
  width: fit-content;
  min-height: 2.75rem;
  padding-block: 0.55rem;
  cursor: pointer;
}

.transcript p { max-width: 38rem; margin: 0.35rem 0 0.75rem; }

.letter { scroll-margin-top: 1rem; }

.letter-paper {
  display: grid;
  grid-template-columns: minmax(13rem, 0.48fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 6vw, 6rem);
  padding: clamp(2.25rem, 6vw, 5.75rem);
  border-top: 1px solid #a79055;
  background: #ede5d2;
}

.letter-text {
  max-width: 33rem;
  align-self: start;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.95;
}

.letter-text p + p { margin-top: 1em; }

.letter-text .letter-signature {
  margin-top: 1.6em;
  color: #5b4926;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}

.footer {
  padding-block: 1.9rem 2.7rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-align: center;
}

@media (max-width: 48rem) {
  .masthead { min-height: 4.125rem; }

  .hero-frame { min-height: clamp(31rem, 100vw, 37rem); }

  .hero-frame::after {
    background: linear-gradient(0deg, rgb(19 22 15 / 93%), rgb(19 22 15 / 75%) 44%, rgb(19 22 15 / 10%) 100%);
  }

  .hero-photo { object-position: 58% 50%; }

  .hero-content { padding: 2.5rem clamp(1.25rem, 5.5vw, 2.75rem); }

  h1 { font-size: clamp(2.7rem, 9.3vw, 4.35rem); }

  .film, .letter-paper { grid-template-columns: minmax(0, 1fr); }

  .film { padding-bottom: 3rem; }

  .film-note { margin-top: 0.55rem; }

  .film-note br { display: none; }

  .film-credit { margin-top: 0.5rem; }

  .letter-paper { padding: 2.2rem clamp(1.3rem, 5vw, 2.6rem); }
}

@media (max-width: 30rem) {
  .narrow-break { display: initial; }
}

@media (max-width: 22rem) {
  .destination::before { flex-basis: 0.75rem; }
  .destination { gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
