:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #efeae2;
  --ink: #1d1a16;
  --ink-2: #5d564c;
  --line: #e2dbcf;
  --accent: #e8590c;
  --accent-ink: #ffffff;
  --code-bg: #1f1d1a;
  --code-ink: #f1ece4;
  --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 8px 24px rgba(40, 30, 20, .06);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130f; --surface: #1d1b17; --surface-2: #26231e; --ink: #f1ece4; --ink-2: #a69d90;
    --line: #34302a; --accent: #ff7a33; --code-bg: #0e0d0b; --code-ink: #f1ece4;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14130f; --surface: #1d1b17; --surface-2: #26231e; --ink: #f1ece4; --ink-2: #a69d90;
  --line: #34302a; --accent: #ff7a33; --code-bg: #0e0d0b; --code-ink: #f1ece4;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "IBM Plex Sans", system-ui, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
code, pre { font-family: "JetBrains Mono", ui-monospace, monospace; }

.top, main, .foot { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .top, main, .foot { padding-left: 32px; padding-right: 32px; } }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  font: 700 15px/1 "JetBrains Mono", monospace; background: var(--accent); color: var(--accent-ink);
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
}
.brand-text { font: 600 18px/1 "JetBrains Mono", monospace; }
.brand-dim { color: var(--ink-2); font-weight: 400; }
.theme-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 18px;
}

main { flex: 1; padding-bottom: 48px; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero h1 { font: 700 clamp(36px, 7vw, 64px)/1.02 "Fraunces", Georgia, serif; margin: 0 0 12px; letter-spacing: -.02em; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p { margin: 0; color: var(--ink-2); font-size: 18px; }

/* Controls */
.controls { display: grid; gap: 12px; margin: 8px 0 28px; }
#search {
  width: 100%; font: inherit; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
#search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 13px/1 "IBM Plex Sans", sans-serif; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.static { cursor: default; }

/* Grid */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-img { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font: 600 11px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.card h2 { font: 700 22px/1.2 "Fraunces", Georgia, serif; margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .tag-row { margin-top: auto; padding-top: 6px; }
.card .chip { font-size: 12px; padding: 5px 10px; }
.empty { color: var(--ink-2); text-align: center; padding: 40px 0; }

/* Detail */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.back:hover { color: var(--accent); }
.detail-head { padding: 8px 0 24px; }
.detail-head h1 { font: 700 clamp(32px, 6vw, 52px)/1.05 "Fraunces", Georgia, serif; margin: 6px 0 10px; letter-spacing: -.02em; }
.detail-head .tagline { font-size: 19px; color: var(--ink-2); margin: 0 0 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }

/* Carousel */
.carousel { outline: none; }
.carousel:focus-visible .stage { outline: 2px solid var(--accent); outline-offset: 3px; }
.stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--code-bg); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.slide-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(28px) brightness(.55) saturate(1.2); }
.slide-img {
  position: relative; width: 100%; height: 100%; object-fit: contain; padding: 18px; cursor: zoom-in;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
}
@media (max-width: 600px) { .slide-img { padding: 8px; } }

.nav, .expand {
  position: absolute; border: 1px solid rgba(255, 255, 255, .18); background: rgba(16, 14, 12, .55); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer;
  display: grid; place-items: center; transition: opacity .2s ease, background .2s ease, transform .2s ease;
}
.nav { top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; font-size: 26px; line-height: 1; padding-bottom: 3px; }
.nav.prev { left: 14px; } .nav.next { right: 14px; }
.nav:hover, .expand:hover { background: var(--accent); border-color: var(--accent); }
.nav:active { transform: scale(.94); }
.expand { top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; font-size: 17px; }
.counter {
  position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 8px;
  background: rgba(16, 14, 12, .55); color: #fff; font: 600 12px/1 "JetBrains Mono", monospace;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .stage .nav, .stage .expand { opacity: 0; }
  .stage:hover .nav, .stage:hover .expand, .carousel:focus-within .nav, .carousel:focus-within .expand { opacity: 1; }
}
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.carousel.manual .progress { display: none; }

.caption { margin: 12px 2px 0; color: var(--ink-2); font-size: 15px; min-height: 1.6em; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.thumb {
  flex: 0 0 auto; width: 120px; aspect-ratio: 16 / 10; padding: 0; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; opacity: .55;
  transition: opacity .2s ease, box-shadow .2s ease, transform .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.thumb:hover { opacity: .9; transform: translateY(-1px); }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
@media (max-width: 600px) { .thumb { width: 84px; } }

/* Sections */
.cols { display: grid; gap: 32px; margin-top: 36px; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cols > *, .steps > li, .code { min-width: 0; }
.section h2 { font: 700 24px/1.2 "Fraunces", Georgia, serif; margin: 0 0 12px; }
.section p { margin: 0 0 12px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.features li { padding-left: 26px; position: relative; }
.features li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: "JetBrains Mono", monospace; }
.note {
  margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2);
  border-left: 3px solid var(--accent); font-size: 15px;
}
.note strong { display: block; font: 600 11px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 600 14px/1 "JetBrains Mono", monospace;
}
.steps h3 { margin: 2px 0 6px; font-size: 17px; }
.steps p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.code { position: relative; }
.code pre {
  margin: 0; background: var(--code-bg); color: var(--code-ink); padding: 14px 16px; padding-right: 72px;
  border-radius: 10px; overflow-x: auto; font-size: 13.5px; line-height: 1.6;
}
.copy {
  position: absolute; top: 8px; right: 8px; font: 500 12px/1 "IBM Plex Sans", sans-serif;
  padding: 6px 9px; border-radius: 7px; border: 1px solid #3b3731; background: #2a2723; color: #e9e3d9; cursor: pointer;
}
.copy:hover { border-color: var(--accent); }

.video { margin-top: 36px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10; background: rgba(8, 7, 6, .94);
  display: grid; place-items: center; padding: 56px 16px 24px; animation: lb-in .18s ease;
  touch-action: pan-y;
}
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.lightbox img { max-width: min(100%, 1600px); max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { color: #d9d2c7; font-size: 15px; text-align: center; }
.lb-nav, .lb-close {
  position: absolute; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff;
  cursor: pointer; display: grid; place-items: center;
}
.lb-nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; font-size: 30px; padding-bottom: 3px; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.lb-close { top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px; font-size: 16px; }
.lb-nav:hover, .lb-close:hover { background: var(--accent); border-color: var(--accent); }
.lb-count { position: absolute; top: 22px; left: 18px; color: #d9d2c7; font: 600 13px/1 "JetBrains Mono", monospace; }
@media (max-width: 600px) { .lb-nav { top: auto; bottom: 16px; margin-top: 0; width: 44px; height: 44px; } }

.foot { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .top, main, .foot { padding-left: 32px; padding-right: 32px; } }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  font: 700 15px/1 "JetBrains Mono", monospace; background: var(--accent); color: var(--accent-ink);
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
}
.brand-text { font: 600 18px/1 "JetBrains Mono", monospace; }
.brand-dim { color: var(--ink-2); font-weight: 400; }
.theme-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 18px;
}

main { flex: 1; padding-bottom: 48px; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero h1 { font: 700 clamp(36px, 7vw, 64px)/1.02 "Fraunces", Georgia, serif; margin: 0 0 12px; letter-spacing: -.02em; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p { margin: 0; color: var(--ink-2); font-size: 18px; }

/* Controls */
.controls { display: grid; gap: 12px; margin: 8px 0 28px; }
#search {
  width: 100%; font: inherit; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
#search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 13px/1 "IBM Plex Sans", sans-serif; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.static { cursor: default; }

/* Grid */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-img { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font: 600 11px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.card h2 { font: 700 22px/1.2 "Fraunces", Georgia, serif; margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .tag-row { margin-top: auto; padding-top: 6px; }
.card .chip { font-size: 12px; padding: 5px 10px; }
.empty { color: var(--ink-2); text-align: center; padding: 40px 0; }

/* Detail */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.back:hover { color: var(--accent); }
.detail-head { padding: 8px 0 24px; }
.detail-head h1 { font: 700 clamp(32px, 6vw, 52px)/1.05 "Fraunces", Georgia, serif; margin: 6px 0 10px; letter-spacing: -.02em; }
.detail-head .tagline { font-size: 19px; color: var(--ink-2); margin: 0 0 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }

/* Carousel */
.carousel { outline: none; }
.carousel:focus-visible .stage { outline: 2px solid var(--accent); outline-offset: 3px; }
.stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--code-bg); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.slide-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(28px) brightness(.55) saturate(1.2); }
.slide-img {
  position: relative; width: 100%; height: 100%; object-fit: contain; padding: 18px; cursor: zoom-in;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
}
@media (max-width: 600px) { .slide-img { padding: 8px; } }

.nav, .expand {
  position: absolute; border: 1px solid rgba(255, 255, 255, .18); background: rgba(16, 14, 12, .55); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer;
  display: grid; place-items: center; transition: opacity .2s ease, background .2s ease, transform .2s ease;
}
.nav { top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; font-size: 26px; line-height: 1; padding-bottom: 3px; }
.nav.prev { left: 14px; } .nav.next { right: 14px; }
.nav:hover, .expand:hover { background: var(--accent); border-color: var(--accent); }
.nav:active { transform: scale(.94); }
.expand { top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; font-size: 17px; }
.counter {
  position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 8px;
  background: rgba(16, 14, 12, .55); color: #fff; font: 600 12px/1 "JetBrains Mono", monospace;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .stage .nav, .stage .expand { opacity: 0; }
  .stage:hover .nav, .stage:hover .expand, .carousel:focus-within .nav, .carousel:focus-within .expand { opacity: 1; }
}
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.carousel.manual .progress { display: none; }

.caption { margin: 12px 2px 0; color: var(--ink-2); font-size: 15px; min-height: 1.6em; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.thumb {
  flex: 0 0 auto; width: 120px; aspect-ratio: 16 / 10; padding: 0; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; opacity: .55;
  transition: opacity .2s ease, box-shadow .2s ease, transform .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.thumb:hover { opacity: .9; transform: translateY(-1px); }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
@media (max-width: 600px) { .thumb { width: 84px; } }

/* Sections */
.cols { display: grid; gap: 32px; margin-top: 36px; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cols > *, .steps > li, .code { min-width: 0; }
.section h2 { font: 700 24px/1.2 "Fraunces", Georgia, serif; margin: 0 0 12px; }
.section p { margin: 0 0 12px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.features li { padding-left: 26px; position: relative; }
.features li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: "JetBrains Mono", monospace; }
.note {
  margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2);
  border-left: 3px solid var(--accent); font-size: 15px;
}
.note strong { display: block; font: 600 11px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 600 14px/1 "JetBrains Mono", monospace;
}
.steps h3 { margin: 2px 0 6px; font-size: 17px; }
.steps p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.code { position: relative; }
.code pre {
  margin: 0; background: var(--code-bg); color: var(--code-ink); padding: 14px 16px; padding-right: 72px;
  border-radius: 10px; overflow-x: auto; font-size: 13.5px; line-height: 1.6;
}
.copy {
  position: absolute; top: 8px; right: 8px; font: 500 12px/1 "IBM Plex Sans", sans-serif;
  padding: 6px 9px; border-radius: 7px; border: 1px solid #3b3731; background: #2a2723; color: #e9e3d9; cursor: pointer;
}
.copy:hover { border-color: var(--accent); }

.video { margin-top: 36px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10, 9, 8, .9); display: grid; place-items: center; padding: 16px; z-index: 10; cursor: zoom-out; }
.lightbox img { max-height: 92vh; border-radius: 8px; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
