
/* Schibsted Grotesk，SIL OFL 1.1（assets/fonts/OFL.txt）。可变字重，一个子集一个文件 */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --wall: #1f1f23; --raised: #2a2a2f; --bone: #ecebe6; --dim: #9c9aa3; --hair: rgba(236,235,230,.12);
  --font: "Schibsted Grotesk", system-ui, "PingFang SC", sans-serif; }
* { box-sizing: border-box; }
html { background: var(--wall); }
body { margin: 0; color: var(--bone); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

nav .wrap { display: flex; align-items: center; gap: 32px; height: 72px; font-size: 15px; }
.logo { font-weight: 700; font-size: 18px; letter-spacing: -.02em; margin-right: auto; }
nav .link { color: var(--dim); }
nav .link:hover { color: var(--bone); }
nav button { all: unset; cursor: pointer; color: var(--dim); }
nav button:hover { color: var(--bone); }

header .wrap { padding-top: 96px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
h1, h2 { text-wrap: balance; }
h1 { margin: 0; font-size: clamp(48px, 7.2vw, 104px); font-weight: 500; line-height: .95; letter-spacing: -.045em; max-width: 9.5em; }
.lede { margin: 0 0 10px; max-width: 22em; color: var(--dim); font-size: 17px; }

/* 首屏的片子：每条下面一根真实的进度条和时间码 */
.reel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 72px; padding: 0 4px; }
.reel video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--raised); }
.reel .track { height: 2px; background: var(--hair); margin-top: 12px; }
.reel .track i { display: block; height: 100%; width: 0; background: var(--bone); }
.reel .cap { display: flex; justify-content: space-between; padding: 8px 2px 0; font-size: 13px; color: var(--dim); }
.reel .tc { font-variant-numeric: tabular-nums; }

section .wrap { padding-top: 144px; }
h2 { margin: 0 0 32px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }

.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 20px; }
.style video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--raised); }
.style p { display: flex; justify-content: space-between; margin: 14px 0 0; }
.style p span { color: var(--dim); font-size: 14px; }

.bench-style + .bench-style { margin-top: 112px; }
.bench-style > h3 { margin: 0 0 6px; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.prompt { margin: 0 0 32px; font-size: 14px; color: var(--dim); }
.prompt summary { cursor: pointer; list-style: none; display: inline-block; }
.prompt summary::-webkit-details-marker { display: none; }
.prompt summary:hover { color: var(--bone); }
.prompt p { margin: 12px 0 0; max-width: 64ch; white-space: pre-line; line-height: 1.6; padding-left: 14px; border-left: 1px solid var(--hair); }
.bench { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.bench h3 { margin: 0 0 16px; font-size: 17px; font-weight: 500; }
.bench h3 span { color: var(--dim); font-weight: 400; margin-left: 8px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; }
.pair p { margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.pair .with p { color: var(--bone); }

/* 声音：视频都静音自动播（浏览器只允许这样），右下角喇叭点了才出声，同一时间只响一条 */
.vid { position: relative; display: block; }
.snd { all: unset; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: rgba(31,31,35,.62); color: var(--bone); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.snd:hover { background: rgba(31,31,35,.85); }
.snd svg { width: 18px; height: 18px; }
.snd .on, .snd[aria-pressed=true] .off { display: none; }
.snd[aria-pressed=true] .on { display: block; }

.install { display: flex; align-items: center; gap: 24px; max-width: 520px; border: 1px solid var(--hair); border-radius: 10px; padding: 14px 18px; }
.install code { flex: 1; font: 15px ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto; white-space: nowrap; }
.install button { all: unset; cursor: pointer; font-weight: 500; }
footer .wrap { padding: 144px 32px 48px; display: flex; justify-content: space-between; color: var(--dim); font-size: 14px; }

/* 首屏：标题左边，右边一句话 + 安装命令 */
header .side { display: grid; gap: 22px; }
header .side .lede { margin: 0; }

/* 风格详情页 */
.back { color: var(--dim); font-size: 15px; }
.back:hover { color: var(--bone); }
.detail .wrap { padding-top: 56px; }
.detail h1 { margin-top: 28px; }
.detail .lede { margin-top: 24px; max-width: 34em; }
.demos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 56px; }
.demos video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--raised); }
.use p { margin: 0 0 14px; color: var(--dim); max-width: 64ch; }
.use .install { margin-bottom: 28px; }
.use .src { color: var(--dim); }
.use .src:hover { color: var(--bone); }
details.more { margin-top: 72px; border-top: 1px solid var(--hair); padding-top: 28px; }
details.more > summary { cursor: pointer; list-style: none; color: var(--dim); font-size: 15px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary:hover { color: var(--bone); }
details.more .bench { margin-top: 32px; }

@media (max-width: 900px) {
  header .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .reel { grid-template-columns: repeat(6, 44vw); overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 40px; }
  .reel > div { scroll-snap-align: start; }
  .bench { grid-template-columns: 1fr; gap: 48px; }
  nav .link { display: none; }
  section .wrap { padding-top: 96px; }
}
