:root {
  --bg: #0c0c0d;
  --bg-2: #141416;
  --ink: #ecece8;
  --ink-soft: #b4b4ae;
  --ink-faint: #7a7a74;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --before: #8a8a84;
  --after: #c8e0c0;
  --gold: #d8c39a;
  --radius: 10px;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --max: 1080px;
  --gutter: 28px;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.mast {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.mast .kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 16px;
}
.mast h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 16ch;
}
.mast .lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 42em;
  margin: 0;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.toc a:hover { color: var(--ink); }
.toc a span { color: var(--ink-faint); font-weight: 450; margin-right: 8px; font-variant-numeric: tabular-nums; }

/* video section */
.video {
  padding: 64px 0 24px;
  border-bottom: 1px solid var(--line);
}
.video:last-of-type { border-bottom: 0; padding-bottom: 80px; }
.video-head {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 260px);
  gap: 16px 32px;
  align-items: start;
  margin-bottom: 36px;
}
.video-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}
.meta a { color: var(--ink-soft); }
.final-pkg {
  margin: 0;
}
.final-pkg img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
}
.final-pkg figcaption {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}
.final-note {
  color: var(--ink-faint);
  font-size: 13px;
  margin: 6px 0 0;
}

/* step */
.step {
  padding: 36px 0 8px;
}
.step + .step {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.step-h {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 20px;
}
.step-h .n {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 500;
  flex: 0 0 auto;
}
.step-h h3 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
}

/* before / after pair */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 22px;
}
.pair figure { margin: 0; }
.pair a.shot {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  cursor: zoom-in;
}
.pair a.shot img {
  width: 100%;
  aspect-ratio: 620 / 530;
  object-fit: cover;
  object-position: center top;
}
.pair figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.pair figcaption .tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  flex: 0 0 auto;
}
.pair figure.before .tag { color: var(--before); }
.pair figure.after .tag { color: var(--after); }
.pair figcaption .cap { text-align: left; }

/* commentary */
.commentary {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
}
.commentary blockquote {
  margin: 0 0 12px;
}
.commentary blockquote:last-of-type { margin-bottom: 0; }
.commentary p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  margin: 0;
  color: var(--ink);
}
.commentary .when {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.change {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
  padding: 0 2px;
  line-height: 1.45;
}

/* lightbox */
.lb {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 40;
  padding: 24px;
  overflow: auto;
  cursor: zoom-out;
}
.lb.open { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lb img {
  max-width: min(1080px, 100%);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}
.lb .switch {
  font-size: 13px;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
}
.lb .hint { font-size: 12px; color: var(--ink-faint); }

footer.site {
  padding: 36px 0 56px;
  color: var(--ink-faint);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .mast { padding: 36px 0 28px; }
  .video { padding: 40px 0 12px; }
  .video-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .final-pkg { max-width: 280px; }
  .pair {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .commentary { padding: 16px 16px 14px; }
  .commentary p { font-size: 18px; }

}
@media (max-width: 420px) {
  .commentary p { font-size: 17px; }
}
