.feature-page .masthead a[aria-current] { color: var(--orange); text-decoration: underline; text-underline-offset: 6px; }
.feature-intro { padding: 5rem 0 3.5rem; }
.feature-intro h1, .feature-title h1 { font-size: clamp(3.2rem, 6vw, 5.3rem); }
.feature-dek { color: var(--ink-2); font-size: 1.25rem; line-height: 1.6; margin: 0; }
.feature-spotlight { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3.5rem; align-items: center; padding: 2.5rem 0 4rem; border-top: 1px solid var(--rule); }
.feature-preview { display: block; position: relative; overflow: hidden; border-radius: 10px; background: #202128; box-shadow: 0 16px 35px -20px #23180f70; }
.feature-preview img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.feature-preview:hover img { transform: scale(1.025); }
.watch-label { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.2rem; background: var(--ink); color: var(--paper); font: 500 .9rem var(--sans); }
.watch-label span:last-child { margin-left: auto; opacity: .7; }
.spotlight-copy h2, .feature-how h2 { font: 500 clamp(2rem, 3vw, 3rem)/1.12 var(--serif); letter-spacing: -.025em; margin: 0 0 1.2rem; }
.spotlight-copy > p:not(.kicker) { color: var(--ink-2); }
.text-link { font: 600 .95rem/1.5 var(--sans); }
.feature-meta { font: .8rem/1.5 var(--sans); margin-top: 1.5rem; }
.feature-note { border-block: 1px solid var(--rule); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.feature-note p { margin: 0; }
.feature-note a { font: .9rem/1.5 var(--sans); }
.feature-footer { display: flex; align-items: center; gap: 1.5rem; padding-block: 3rem; color: var(--ink-2); font: .85rem var(--sans); }
.feature-footer > a:last-child { margin-left: auto; }
.feature-breadcrumb { display: flex; justify-content: space-between; padding: 2rem 0; font: .85rem var(--sans); color: var(--ink-2); }
.feature-breadcrumb a { text-decoration: none; }
.feature-title { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem 0 2.3rem; }
.feature-title h1 { margin-bottom: 0; }
.demo { margin: 0; }
.demo video { display: block; width: 100%; aspect-ratio: 16/9; background: #202128; border-radius: 10px; box-shadow: 0 22px 50px -30px #23180f90; }
.demo figcaption { display: flex; justify-content: space-between; gap: .5rem; font: .75rem/1.5 var(--sans); color: var(--ink-2); padding: 1rem 0; }
.demo-switches { display: inline-flex; flex-wrap: wrap; gap: .75rem; }
.demo-langs { display: inline-flex; gap: .25rem; }
.demo-langs button { background: transparent; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); padding: .2rem .7rem; font: 500 .75rem var(--sans); cursor: pointer; }
.demo-langs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.demo-chapters { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--rule); margin-top: .5rem; }
.demo-chapters button { display: flex; gap: .75rem; align-items: center; background: transparent; border: 0; color: var(--ink); padding: 1.3rem 1rem; font: 500 .85rem var(--sans); cursor: pointer; text-align: left; }
.demo-chapters button + button { border-left: 1px solid var(--rule); }
.demo-chapters button:hover { background: var(--paper-2); }
.demo-chapters button > span { color: var(--orange); font: .8rem var(--mono); }
.demo-chapters time { margin-left: auto; color: var(--ink-2); font: .75rem var(--mono); }
.feature-how { display: grid; grid-template-columns: 1fr 1.35fr; gap: 4rem; padding: 4.5rem 0 2.5rem; }
.feature-how ol { list-style: none; counter-reset: steps; padding: 0; margin: 0; }
.feature-how li { counter-increment: steps; position: relative; padding: 0 0 1.5rem 2.7rem; }
.feature-how li::before { content: '0' counter(steps); position: absolute; left: 0; top: .2rem; color: var(--orange); font: .85rem var(--mono); }
.feature-how h3 { font: 600 1rem/1.5 var(--sans); margin: 0 0 .5rem; }
.feature-how li p { color: var(--ink-2); margin: 0; font-size: 1.05rem; }
.demo-transcript { border-block: 1px solid var(--rule); padding: 1.2rem 0; color: var(--ink-2); }
.demo-transcript summary { cursor: pointer; font: 500 .9rem var(--sans); color: var(--ink); }
.demo-transcript p { max-width: 45rem; }
.feature-end { text-align: center; padding: 3rem 0; border-bottom: 1px solid var(--rule); }
.feature-end p { font-size: 1.8rem; margin: 0 0 1rem; }
@media (max-width: 750px) {
 .feature-intro { padding-top: 3rem; }
 .feature-spotlight, .feature-how { grid-template-columns: 1fr; gap: 2rem; }
 .feature-title { display: block; padding-top: .5rem; }
 .feature-title .feature-dek { margin-top: 1.5rem; }
 .feature-title h1 br, .desktop-break { display: none; }
 .feature-dek { font-size: 1.1rem; }
 .demo figcaption, .feature-note { align-items: flex-start; flex-direction: column; }
 .demo-chapters { grid-template-columns: 1fr; }
 .demo-chapters button + button { border-left: 0; border-top: 1px solid var(--rule); }
 .feature-footer { flex-wrap: wrap; gap: 1rem; }
 .feature-footer p { display: none; }
 .feature-page .masthead .repo { display: none; }
 .feature-page .masthead ul { gap: .6rem; font-size: .8rem; }
 .feature-page .masthead-inner { gap: .5rem; }
 .feature-how { padding-top: 3rem; }
}
@media (max-width: 380px) { .feature-page .brand span { display: none; } }
.feature-preview { text-decoration: none; }

/* The features index: search, category chips, and the card grid. */
.feature-search { display: block; border-top: 1px solid var(--rule); padding: 2rem 0 1.5rem; }
.feature-search input { width: 100%; box-sizing: border-box; font: 1.15rem/1.4 var(--sans); color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 10px; padding: .9rem 1.1rem; }
.feature-search input:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.feature-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.feature-filters button { background: transparent; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); padding: .3rem .9rem; font: 500 .8rem var(--sans); cursor: pointer; }
.feature-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.feature-count { margin: 1rem 0 0; font: .8rem var(--sans); color: var(--ink-2); }
.feature-grid { list-style: none; margin: 0; padding: 0 0 4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 2.2rem 1.8rem; }
.feature-card[hidden] { display: none; }
.feature-card a { display: flex; flex-direction: column; gap: .45rem; text-decoration: none; color: var(--ink); }
.card-media { position: relative; display: block; overflow: hidden; border-radius: 10px; background: #202128; box-shadow: 0 16px 35px -24px #23180f70; }
.card-media img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform .25s ease; }
.feature-card a:hover .card-media img { transform: scale(1.03); }
.card-time { position: absolute; left: .7rem; bottom: .7rem; background: #15161ccc; color: #fff; font: 500 .75rem var(--sans); padding: .25rem .6rem; border-radius: 999px; }
.card-meta { margin-top: .6rem; font: .75rem var(--mono); color: var(--orange); }
.card-title { font: 500 1.45rem/1.2 var(--serif); letter-spacing: -.015em; }
.card-dek { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.feature-empty { padding: 0 0 4rem; color: var(--ink-2); }

/* Previous and next guide, at a feature page's foot. */
.feature-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--rule); padding: 2rem 0; }
.feature-pager a { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; font: 500 1.2rem/1.3 var(--serif); color: var(--ink); }
.feature-pager a span { font: .75rem var(--sans); color: var(--ink-2); }
.feature-pager a[rel="next"] { text-align: right; }

/* The basics tour atop the features index. */
.tour-demo { padding: 0 0 3rem; }
