/* Xiaoxiaodi model vlog — paper / concrete / light */
@font-face {
  font-family: "Smiley Sans";
  src: url("fonts/SmileySans-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3ead9;
  --paper-deep: #e9dcc4;
  --paper-light: #fbf5e8;
  --ink: #3c2d20;
  --ink-soft: #5b4837;
  --muted: #7b6853;
  --amber: #c9954a;
  --amber-light: #e0b66d;
  --sage: #6d8474;
  --line: rgba(60, 45, 32, .18);
  --shadow: 0 24px 50px rgba(57, 41, 27, .16);
  --display: "Smiley Sans", "Songti SC", "STSong", "Noto Serif SC", serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("img/paper-tile-light.jpg");
  background-size: 420px auto;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,250,240,.35), rgba(243,234,217,.08) 40%, rgba(231,218,195,.28));
  pointer-events: none;
  z-index: -1;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: .045;
  background-image: url("img/grain.png");
  background-size: 256px 256px;
  mix-blend-mode: multiply;
}

.display { font-family: var(--display); font-weight: 400; letter-spacing: .015em; }
.kicker {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--amber);
  text-transform: uppercase;
}
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--amber-light);
}

/* ---------------- top bar ---------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 46px);
  background: rgba(243, 234, 217, .82);
  border-bottom: 1px solid rgba(60,45,32,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-mark { font-family: var(--display); font-size: 21px; letter-spacing: .04em; }
.brand-sub { font-family: var(--sans); font-size: 9px; letter-spacing: .18em; color: var(--muted); }
.nav { display: flex; gap: clamp(10px, 2vw, 24px); overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: #1c1712;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(1.03);
  filter: saturate(.92) contrast(1.03);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,12,.55) 0%, rgba(20,16,12,.05) 35%, rgba(20,16,12,.2) 62%, rgba(20,16,12,.82) 100%),
    linear-gradient(90deg, rgba(20,16,12,.45), rgba(20,16,12,0) 60%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 120px clamp(22px, 6vw, 90px) 13vh;
  max-width: 900px;
  color: #fff8ea;
}
.hero h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 112px);
  line-height: .98;
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.hero-vlog {
  display: inline-block;
  margin-left: .16em;
  font-family: var(--sans);
  font-size: .42em;
  letter-spacing: .12em;
  color: var(--amber-light);
  vertical-align: .16em;
}
.lede {
  margin: 18px 0 8px;
  font-size: clamp(17px, 2.1vw, 23px);
  color: #f3e3c8;
}
.names {
  margin: 0 0 26px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255,248,234,.7);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: #2c2118;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .08em;
  border-radius: 2px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--amber-light); }
.btn.ghost {
  background: rgba(255,248,234,.06);
  color: #f8ead1;
  border-color: rgba(255,248,234,.55);
}
.btn.ghost:hover { background: rgba(255,248,234,.14); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 12px; }
.scroll-cue {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: 28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: rgba(255,248,234,.65);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .24em;
}
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--amber-light), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100%{transform:scaleY(.55);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* ---------------- common section ---------------- */
section[id] { scroll-margin-top: 80px; }
.section {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 128px) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 30px);
  margin-bottom: clamp(30px, 5vw, 52px);
}
.section-no {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--amber);
  padding-top: 8px;
  min-width: 28px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.05;
}

/* paper card */
.paper {
  position: relative;
  background-color: var(--paper-light);
  background-image: url("img/paper-tile-light.jpg");
  background-size: 460px auto;
  border: 1px solid rgba(80,58,38,.2);
  clip-path: polygon(0 1.2%, 2% 0.2%, 18% 1%, 39% .3%, 61% 1.1%, 82% .2%, 99% 1%, 100% 3%, 99.3% 20%, 100% 47%, 99.2% 72%, 100% 97%, 98% 99.4%, 76% 98.7%, 52% 99.7%, 27% 98.6%, 3% 99.2%, 0 97%, .7% 74%, 0 48%, .8% 24%);
  filter: drop-shadow(0 18px 26px rgba(57,41,27,.14));
}
.tape::before,
.tape::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 96px; height: 26px;
  background: rgba(230, 213, 178, .78);
  box-shadow: 0 2px 8px rgba(60,45,32,.08);
  pointer-events: none;
}
.tape::before { left: 6%; top: -13px; transform: rotate(-4deg); }
.tape::after { right: 7%; top: -11px; transform: rotate(5deg); }
.tilt-r { transform: rotate(1.2deg); }
.tilt-l { transform: rotate(-1.2deg); }

/* ---------------- film ---------------- */
.film { border-top: 0; }
.player {
  padding: clamp(12px, 2.2vw, 22px);
  max-width: 620px;
  margin: 0 auto;
}
.player-frame {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  background: #17110c;
  overflow: hidden;
  border: 1px solid rgba(20,15,10,.5);
}
.player video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 76vh;
  object-fit: contain;
  background: #17110c;
}
.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff8ea;
  background: linear-gradient(180deg, rgba(20,15,10,.08), rgba(20,15,10,.55));
  transition: opacity .35s ease;
}
.play-cover.is-hidden { opacity: 0; pointer-events: none; }
.play-ring {
  width: 86px; height: 86px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,248,234,.8);
  border-radius: 50%;
  background: rgba(20,15,10,.26);
  backdrop-filter: blur(4px);
  font-size: 22px;
  padding-left: 4px;
  transition: transform .3s ease, background .3s ease;
}
.play-cover:hover .play-ring { transform: scale(1.08); background: rgba(201,149,74,.45); }
.play-label { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; }
.player-foot {
  max-width: 430px;
  margin: 12px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted);
}
.player-foot a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(201,149,74,.45); }
.film-note {
  max-width: 720px;
  margin: 34px auto 0;
  text-align: center;
  color: var(--ink-soft);
}
.film-note p { margin: 0 0 10px; }
.tiny { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------------- split ---------------- */
.split-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split.reverse .split-grid { grid-template-columns: .95fr 1.05fr; }
.copy p { margin: 0 0 16px; }
.copy .lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.8; color: var(--ink); }
.photo {
  margin: 0;
  padding: 12px 12px 10px;
  background: var(--paper-light);
  border: 1px solid rgba(80,58,38,.18);
  box-shadow: 0 18px 36px rgba(57,41,27,.14);
}
.photo img { width: 100%; height: auto; object-fit: cover; }
.photo figcaption {
  display: block;
  padding: 10px 2px 0;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.photo figcaption span { display: block; font-size: 9px; color: rgba(90,70,50,.65); }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.facts div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--sans); font-size: 9px; letter-spacing: .16em; color: var(--amber); }
.facts dd { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

.quote {
  margin: 28px 0 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--amber);
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.65;
  color: var(--ink);
}
.quote cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: .08em; color: var(--muted); }

/* ---------------- notes ---------------- */
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.note { padding: 28px 26px 26px; min-height: 250px; }
.note-no { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; color: var(--amber); }
.note h3 { margin: 8px 0 10px; font-size: 38px; line-height: 1; }
.note p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------------- process ---------------- */
.days { display: grid; gap: 28px; }
.day {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: 18px 0;
}
.day:nth-child(even) .day-photo { order: 2; }
.day-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid var(--paper-light);
  box-shadow: 0 15px 32px rgba(57,41,27,.15);
  transform: rotate(-.8deg);
}
.day:nth-child(even) .day-photo img { transform: rotate(.8deg); }
.day-no { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--amber); }
.day h3 { margin: 6px 0 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.day p { margin: 0; color: var(--ink-soft); }

/* ---------------- gallery ---------------- */
.gallery-intro { max-width: 720px; margin: -18px 0 32px; color: var(--ink-soft); }
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot {
  position: relative;
  border: 0;
  padding: 0;
  background: #1b1510;
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
}
.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .5s ease;
  opacity: .94;
}
.shot:hover img { transform: scale(1.045); opacity: 1; }
.shot span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .06em;
  color: #fff8ea;
  background: linear-gradient(180deg, transparent, rgba(20,15,10,.72));
}
.credit { margin: 20px 0 0; font-family: var(--sans); font-size: 10px; line-height: 1.8; color: var(--muted); }
.credit a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- share ---------------- */
.share-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}
.qr-card { padding: 22px 22px 18px; text-align: center; max-width: 320px; }
.qr-card img { width: 100%; height: auto; background: #fff; padding: 10px; image-rendering: pixelated; }
.qr-card p { margin: 12px 0 0; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.btn.ghost-dark { background: transparent; color: var(--ink); border-color: rgba(60,45,32,.35); }
.btn.ghost-dark:hover { background: rgba(60,45,32,.06); }
.url-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; margin: 18px 0; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.url-line code { font-family: Consolas, monospace; font-size: 11px; color: var(--ink); word-break: break-all; background: rgba(60,45,32,.06); padding: 4px 7px; }

/* ---------------- footer ---------------- */
.footer {
  margin-top: 40px;
  padding: 64px 22px 44px;
  background: #2f251b;
  color: #efe1c8;
  background-image: linear-gradient(180deg, rgba(47,37,27,.96), rgba(38,29,21,.99)), url("img/paper-tile-light.jpg");
  background-size: auto, 420px;
}
.footer-inner { width: min(1120px, 100%); margin: 0 auto; }
.footer-title { margin: 0 0 8px; font-size: clamp(28px, 4vw, 46px); color: #f7ead3; }
.footer p { margin: 0 0 6px; font-family: var(--sans); font-size: 11px; letter-spacing: .06em; color: rgba(239,225,200,.66); }
.footer-small { margin-top: 20px !important; font-size: 9px !important; color: rgba(239,225,200,.38) !important; max-width: 680px; }
.to-top { display: inline-block; margin-top: 22px; color: var(--amber-light); text-decoration: none; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; }

/* ---------------- lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(18,13,9,.92);
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1000px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.lightbox figcaption { margin-top: 12px; font-family: var(--sans); font-size: 11px; line-height: 1.7; color: rgba(255,248,234,.7); }
.lightbox-close {
  position: absolute;
  top: 16px; right: 22px;
  border: 0; background: transparent; color: #fff8ea;
  font-size: 34px; line-height: 1; cursor: pointer;
}

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i { animation: none; }
}

/* ---------------- mobile ---------------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav a:nth-child(2), .nav a:nth-child(3), .nav a:nth-child(4), .nav a:nth-child(5) { display: none; }
  .brand-sub { display: none; }
  .hero { min-height: 94svh; }
  .hero-copy { padding: 100px 22px 11vh; }
  .hero h1 { font-size: clamp(42px, 11.4vw, 58px); }
  .scroll-cue { display: none; }
  .hero-vlog { display: block; margin: 8px 0 0; font-size: .38em; }
  .hero-actions { gap: 9px; }
  .btn { min-height: 44px; padding: 0 18px; font-size: 12px; }
  .section { width: calc(100% - 36px); padding: 72px 0; }
  .section-head { gap: 12px; margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(30px, 8.6vw, 44px); }
  .split-grid, .split.reverse .split-grid { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .photo { order: 2; }
  .facts { margin-top: 22px; }
  .note-grid { grid-template-columns: 1fr; gap: 16px; }
  .note { min-height: 0; padding: 24px 22px; }
  .note h3 { font-size: 34px; }
  .day { grid-template-columns: 1fr; gap: 14px; padding: 10px 0; }
  .day:nth-child(even) .day-photo { order: 0; }
  .day-photo img { aspect-ratio: 4 / 3; }
  .shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shot img { aspect-ratio: 1 / 1; }
  .share-grid { grid-template-columns: 1fr; gap: 28px; }
  .qr-card { max-width: 300px; }
  .player { padding: 10px; }
  .player-frame { max-width: 100%; }
  .player video { max-height: 74svh; }
  .player-foot { max-width: 100%; }
  .footer { padding: 52px 20px 36px; }
}
@media (max-width: 420px) {
  .shots { grid-template-columns: 1fr 1fr; gap: 8px; }
  .shot span { font-size: 9px; padding: 8px 9px; }
  .hero h1 { font-size: 44px; }
  .hero-actions .btn { flex: 1; }
  .facts { grid-template-columns: 1fr; }
}

