/* BeautiFlow — single-page lookbook.
   No webfonts, no frameworks, no external requests. */

:root {
  --paper: #FBF7F4;
  --paper-warm: #F5EDE7;
  --ink: #2B2320;
  --ink-soft: #6B5D57;
  --ink-faint: #7A6C66;   /* kept above 4.5:1 on --paper for the small Chinese captions */
  --line: #E7DCD4;
  --accent: #B4706B;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

/* <picture> is inline by default; make it a block so the img inside keeps filling its cell. */
picture { display: block; }

a { color: inherit; }

.zh {
  font-family: var(--sans);
  font-size: 0.86em;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: clamp(14px, 2.5vw, 30px);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }

/* ---------- shared ---------- */

section {
  padding: clamp(56px, 9vw, 130px) clamp(20px, 5vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.section-title .zh { font-size: 0.72em; }

.section-lede,
.lede { color: var(--ink-soft); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 34ch;
  margin: 0 0 10px;
}

.byintroduction {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-figure {
  margin: 0;
  border-radius: 3px;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: auto;      /* the height attribute would otherwise win over aspect-ratio */
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- note ---------- */

.note { border-bottom: 1px solid var(--line); }

.note-body {
  max-width: 60ch;
  font-size: 1.06rem;
}

.note-body p + p { margin-top: 12px; }

/* ---------- work ---------- */

.pullquote {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(44px, 7vw, 92px);
}

.pullquote blockquote {
  margin: 0;
  max-width: 40ch;
}

.pullquote p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.1vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
}

.pullquote p + p {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  color: var(--ink-faint);
  line-height: 1.7;
}

.collection { padding: clamp(38px, 6vw, 74px) 0 0; }

.collection + .collection { border-top: 1px dashed var(--line); margin-top: clamp(38px, 6vw, 74px); }

.collection > header { max-width: 52ch; margin-bottom: 26px; }

.collection h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  margin: 0 0 6px;
}

.collection header p { margin: 0; color: var(--ink-soft); }

.collection .post-meta {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 4px 0 8px;
}

.collection header p { max-width: 62ch; }
.collection header p.zh { margin-top: 8px; }

.grid {
  display: grid;
  gap: clamp(8px, 1.2vw, 16px);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Two-up rows sit narrower so the page keeps a rhythm instead of endless full-bleed pairs. */
.grid-2.narrow { max-width: 860px; }

.shot {
  display: block;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-warm);
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  height: auto;      /* as above: keep the intrinsic height attribute from pinning this */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 600ms ease, filter 600ms ease;
}

.shot:hover img { transform: scale(1.025); }

/* ---------- motion ---------- */

.motion { border-top: 1px solid var(--line); }

.clips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 24px);
  margin-top: 28px;
}

.clips figure { margin: 0; }

.clips video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-warm);
  border-radius: 3px;
  cursor: pointer;
}

.clips figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- details ---------- */

.details { border-top: 1px solid var(--line); }

.craft {
  max-width: 62ch;
  margin-top: 22px;
  padding: 20px 0 4px 22px;
  border-left: 2px solid var(--accent);
}

.craft p {
  margin: 0;
  font-size: 1.04rem;
}

.craft p.zh {
  margin-top: 12px;
}

.services {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px 28px;
  border-top: 1px solid var(--line);
}

.services li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- ask ---------- */

.ask {
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
  max-width: none;
}

.ask > * { max-width: 60ch; }

.ask p { margin: 0 0 12px; }

.contact-lines {
  margin-top: 26px !important;
  font-size: 1.05rem;
}

.contact-lines a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-lines .sep { color: var(--ink-faint); margin: 0 8px; }

.placeholder {
  background: #F0DFD8;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.privacy {
  margin-top: 22px !important;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding: 30px clamp(20px, 5vw, 64px);
  font-size: 0.82rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(28, 22, 20, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
}

.lb-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.lb-close:hover { opacity: 1; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero h1 br { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header nav { gap: 12px; font-size: 0.72rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .clips { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .lightbox { display: none; }
}
