/* Three Forests — B1 "Night". Instrument Serif + Instrument Sans + Noto Serif Thai.
   Plates are softened here in CSS (blur / desaturate / slow zoom / grain); the source
   images in /assets/img are plain downscaled stills. */
:root {
  --night: #0e131a;
  --night-2: #141b25;
  --mist: #dfe4e6;
  --mist-dim: #98a3aa;
  --bamboo: #8fb08a;
  --ember: #d98a45;
  --line: rgba(223, 228, 230, .14);
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --thai: 'Noto Serif Thai', 'Thonburi', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { background: var(--night); color: var(--mist); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--mist); color: var(--night); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* fixed plate layer */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--night); }
.sky img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; opacity: 0; filter: blur(2.2px) saturate(.7) brightness(.62) contrast(.95); transition: opacity 2.4s ease; transform: scale(1); will-change: opacity, transform; }
.sky img.on { opacity: 1; animation: zoom 28s linear forwards; }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(14, 19, 26, 0) 30%, rgba(14, 19, 26, .75) 80%, var(--night) 100%), linear-gradient(180deg, rgba(14, 19, 26, .55), rgba(14, 19, 26, .15) 40%, rgba(14, 19, 26, .9)); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .35; mix-blend-mode: screen; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .8 0 0 0 0 .85 0 0 0 0 .9 0 0 0 .25 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>"); }
.plate-cap { position: fixed; right: 1.4rem; top: 3.6rem; z-index: 4; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist-dim); text-align: right; line-height: 1.6; transition: opacity .8s; }
.plate-cap b { color: var(--bamboo); font-weight: 500; display: block; }

.page { position: relative; z-index: 2; }
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 2rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-dim); background: linear-gradient(180deg, rgba(14, 19, 26, .75), rgba(14, 19, 26, 0)); backdrop-filter: blur(2px); }
.top b { color: var(--mist); font-weight: 500; }
.top nav { display: flex; gap: 1.6rem; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a:focus-visible { color: var(--bamboo); }

.hero { min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 6rem 2rem 4rem; max-width: 80rem; margin: 0 auto; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(4rem, 11vw, 9.5rem); line-height: .9; letter-spacing: -.015em; color: var(--mist); text-wrap: balance; }
h1 em { font-style: italic; color: var(--bamboo); }
.hero .thai { font-family: var(--thai); font-weight: 300; font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--mist-dim); margin: 1rem 0 1.6rem; }
.hero .lede { max-width: 34rem; font-size: 1.15rem; color: var(--mist); text-wrap: balance; }

.chapter { max-width: 80rem; margin: 0 auto; padding: 9rem 2rem; display: grid; grid-template-columns: 8rem 1fr 1fr; gap: 2.5rem; align-items: start; border-top: 1px solid var(--line); scroll-margin-top: 3rem; }
.chapter .n { font-family: var(--display); font-size: 2.6rem; color: var(--ember); line-height: 1; }
.chapter .n small { display: block; font-family: var(--body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist-dim); margin-top: .5rem; }
.chapter h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -.01em; text-wrap: balance; color: var(--mist); }
.chapter h2 em { font-style: italic; color: var(--bamboo); }
.chapter h2 .th { display: block; font-family: var(--thai); font-weight: 300; font-size: 1.2rem; color: var(--mist-dim); margin-top: .8rem; letter-spacing: 0; }
.chapter .txt { max-width: 32rem; color: var(--mist); }
.chapter .txt p + p { margin-top: 1rem; }
.chapter .txt .k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bamboo); margin-bottom: 1rem; }
.chapter ul { list-style: none; margin-top: 1.4rem; border-top: 1px solid var(--line); }
.chapter li { padding: .7rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; font-size: .95rem; }
.chapter li span:first-child { color: var(--mist-dim); font-style: italic; font-family: var(--display); font-size: 1.1rem; }

.trip { max-width: 80rem; margin: 0 auto; padding: 0 2rem 8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trip article { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night-2); }
.trip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(1.4px) saturate(.75) brightness(.7); transform: scale(1.06); transition: transform 1.8s ease, filter 1.8s ease; }
.trip article:hover img { transform: scale(1.12); filter: blur(.6px) saturate(.9) brightness(.8); }
.trip .in { position: absolute; inset: 0; padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, rgba(14, 19, 26, 0) 30%, rgba(14, 19, 26, .85)); }
.trip .k { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bamboo); margin-bottom: .6rem; }
.trip h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; margin-bottom: .6rem; }
.trip p { font-size: .92rem; color: var(--mist); max-width: 26rem; }

.film { max-width: 80rem; margin: 0 auto; padding: 0 2rem 9rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; scroll-margin-top: 3rem; }
.film .frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); }
.film .frame img { width: 100%; height: 100%; object-fit: cover; filter: blur(1.2px) saturate(.8) brightness(.8); transform: scale(1.04); }
.film .frame .play { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 1.4rem; font-style: italic; color: var(--mist); text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.film .frame .play::before { content: ""; width: 5rem; height: 5rem; border: 1px solid var(--mist); border-radius: 50%; position: absolute; opacity: .7; }
.film .dish { font-family: var(--thai); font-weight: 300; font-size: 2.4rem; line-height: 1.15; }
.film .rom { font-family: var(--display); font-style: italic; font-size: 1.8rem; color: var(--bamboo); margin: .2rem 0 1.2rem; }
.film p { max-width: 30rem; color: var(--mist); }
.film .links { margin-top: 1.2rem; }
.film .links a + a { margin-left: 1.6rem; }
.film .links a { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--bamboo); text-decoration: none; border-bottom: 1px solid var(--bamboo); }
.film .links a:hover { color: var(--mist); border-color: var(--mist); }
.film .tag { display: inline-block; margin-top: 1.4rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); border: 1px solid rgba(217, 138, 69, .5); padding: .35rem .7rem; }

footer { max-width: 80rem; margin: 0 auto; padding: 4rem 2rem 9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; align-items: flex-end; }
footer .yt { font-family: var(--display); font-size: 2.2rem; text-decoration: none; color: var(--mist); }
footer .yt em { color: var(--bamboo); }
footer .mail { margin-top: .6rem; }
footer .mail a { color: var(--mist-dim); text-decoration: none; }
footer .mail a:hover, footer .mail a:focus-visible { color: var(--bamboo); }
footer .fine { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist-dim); line-height: 2; }

/* film-bar player */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; padding: .8rem 1.4rem; background: rgba(14, 19, 26, .82); backdrop-filter: blur(10px); border-top: 1px solid var(--line); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist-dim); }
.bar button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--mist); background: none; color: var(--mist); cursor: pointer; display: grid; place-items: center; font-size: .8rem; }
.bar button:focus-visible { outline: 2px solid var(--bamboo); outline-offset: 2px; }
.bar .title b { color: var(--mist); font-weight: 500; }
.bar .line { height: 1px; background: var(--line); position: relative; margin-top: .5rem; }
.bar .line i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--bamboo); transition: width .5s linear; }
.bar .time { font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; padding: 5rem 1.5rem; }
  .trip, .film { grid-template-columns: 1fr; padding-left: 1.5rem; padding-right: 1.5rem; }
  .top nav { display: none; }
  .hero { padding: 5rem 1.5rem 3rem; min-height: 70vh; }
  .chapter li { grid-template-columns: 1fr; }
  .plate-cap { display: none; }
  .bar .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  .sky img.on { animation: none; }
  .sky img { transition: opacity .4s; }
  .trip img { transition: none; }
  html { scroll-behavior: auto; }
}
