:root {
  --bg: #090708;
  --panel: #130e0f;
  --panel-2: #1b1314;
  --line: rgba(255, 255, 255, 0.09);
  --cream: #fff3de;
  --gold: #ffb060;
  --ember: #ff9632;
  --hot: #e0420d;
  --muted: #b9ab9b;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Avenir Next", Avenir, "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ember); color: #1a0b03; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(9, 7, 8, 0.85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: 0.2px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.site-header nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--cream); background: var(--panel-2); }
.site-header nav a.btn, .site-header nav a.btn:hover { color: #1a0b03; background: var(--ember); padding: 8px 16px; }
.site-header nav a.btn:hover { background: var(--gold); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ember); color: #1a0b03; font-weight: 600; text-decoration: none; padding: 10px 18px; border-radius: 10px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--gold); color: #1a0b03; }
.btn.quiet { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(255, 150, 50, 0.6); }
.btn.quiet:hover { background: rgba(255, 150, 50, 0.16); color: var(--cream); }

/* type */
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 1.6em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 0.14em; font-size: 13px; text-transform: uppercase; margin-bottom: 10px; }
.muted { color: var(--muted); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--panel-2); padding: 0.12em 0.4em; border-radius: 6px; color: var(--gold); }

/* home hero */
.hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero video, .hero .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(9,7,8,0.92) 0%, rgba(9,7,8,0.55) 45%, rgba(9,7,8,0.05) 100%), linear-gradient(0deg, rgba(9,7,8,0.9) 0%, rgba(9,7,8,0) 40%); }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(72px, 14vw, 170px) clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 14ch; }
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 34em; color: #ffe9cc; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .actions { margin-top: 28px; }

/* cards */
.section { padding-block: 56px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .18s ease, border-color .18s ease; }
a.card:hover { transform: translateY(-3px); border-color: rgba(255, 150, 50, 0.6); color: inherit; }
.card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--panel-2); }
.card .body { padding: 16px 18px 20px; }
.card .num { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.card .mark { margin-left: 8px; padding: 1px 7px; border-radius: 6px; font-size: 11px; letter-spacing: 0.1em; color: var(--cream); background: rgba(255, 243, 222, 0.1); }
.card .mark.new { color: #1a0b03; background: var(--ember); }
.resume { margin: 12px 0 0; }
.card .card-title { margin: 4px 0 6px; font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.5; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.soon { display: flex; gap: 14px; align-items: baseline; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15px; line-height: 1.45; }
.soon-num { font-family: var(--mono); font-size: 13px; color: var(--gold); flex: none; }
.soon b { display: block; font-weight: 600; }
.soon .muted { display: block; font-size: 14px; }
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 18px; }
.steps div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps b { color: var(--gold); display: block; margin-bottom: 4px; }

/* episode page */
.ep-head { padding-block: 40px 28px; }
.ep-head .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: 14px; background: var(--panel-2); border: 1px solid var(--line); color: var(--cream); padding: 4px 12px; border-radius: 999px; }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.frame video, .frame img, .frame iframe { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; }
.embed { position: relative; }
.frame video[controls] { object-fit: contain; }
.feedurl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 12px 16px; margin-bottom: 18px; }
.feedurl code { background: none; padding: 0; font-size: 15px; overflow-wrap: anywhere; flex: 1 1 220px; }
.chapters { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.chapters button { width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; font: inherit; font-size: 15px; line-height: 1.45; color: var(--cream); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.chapters button:hover { border-color: var(--ember); }
.chapters button[aria-current] { border-color: var(--ember); background: color-mix(in srgb, var(--ember) 14%, var(--panel)); }
.chapters .at { font-family: var(--mono); font-size: 13px; color: var(--gold); flex: none; }
.chapters b { font-weight: 600; display: block; }
.chapters .muted { display: block; font-size: 13px; margin-top: 2px; }
.embed .soon { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: rgba(9,7,8,.62); padding: 24px; }
.embed .soon b { font-size: clamp(20px, 3vw, 28px); }
.prose { max-width: 720px; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }
.stage { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; margin-block: 20px 8px; }
.stage .text { max-width: 60ch; }
@media (max-width: 820px) { .stage { grid-template-columns: 1fr; } }
details.code { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-block: 14px 26px; overflow: hidden; }
details.code summary { cursor: pointer; padding: 12px 16px; font-family: var(--mono); font-size: 14px; color: var(--gold); display: flex; align-items: center; gap: 10px; list-style: none; }
details.code summary::-webkit-details-marker { display: none; }
details.code summary::before { content: "▸"; transition: transform .15s; } details.code[open] summary::before { transform: rotate(90deg); }
details.code .bar { margin-left: auto; }
pre { margin: 0; overflow-x: auto; padding: 16px 18px 20px; font: 14px/1.6 var(--mono); tab-size: 4; background: #0d0909; border-top: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
pre code { background: none; padding: 0; color: #f3e4cf; font-size: inherit; }
.tok-c { color: #8f8070; font-style: italic; } .tok-k { color: #ff9632; } .tok-t { color: #ffc98a; }
.tok-n { color: #ffe08a; } .tok-f { color: #ffb060; } .tok-p { color: #e6795a; } .tok-a { color: #ffd166; font-weight: 600; font-style: normal; }
.copy { font: inherit; font-size: 13px; color: var(--cream); background: var(--panel-2); border: 1px solid var(--line); padding: 5px 12px; border-radius: 8px; cursor: pointer; }
.copy:hover { border-color: var(--ember); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-weight: 600; background: var(--panel); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td:nth-child(2), td:nth-child(3) { white-space: nowrap; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 26px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 40px; border-top: 1px solid var(--line); margin-top: 48px; }
.pager a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; font-weight: 600; font-size: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.pager a:hover { border-color: rgba(255, 150, 50, 0.6); }
.pager a .muted { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.pager .next { text-align: right; grid-column: 2; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: 15px; margin-top: 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer .r { margin-left: auto; }

@media (max-width: 520px) {
  .actions, .downloads { gap: 20px; }
  .site-header .wrap { gap: 12px; }
  .brand { font-size: 18px; white-space: nowrap; gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .site-header nav { gap: 2px; }
  .site-header nav a { padding: 6px 8px; font-size: 15px; }
  .site-header nav a.btn, .site-header nav a.btn:hover { padding: 6px 12px; }
}


@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

a.chip { text-decoration: none; transition: border-color .15s ease; }
a.chip:hover, a.chip[aria-current] { border-color: rgba(255, 150, 50, 0.7); color: var(--cream); }
a.chip.cat { background: transparent; border-color: rgba(255, 176, 96, 0.5); color: var(--gold); }
.browse { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.browse a.chip.quiet { background: transparent; color: var(--muted); }

/* search and topic groups on the home page */
[hidden] { display: none !important; }
.search { margin: 0 0 18px; max-width: 560px; }
.search label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.search input { width: 100%; font: inherit; color: var(--cream); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.search input::placeholder { color: #8f8070; }
.search input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 150, 50, 0.25); }
.search p { margin: 6px 0 0; font-size: 14px; min-height: 1.4em; }
.group { margin-top: 34px; }
.group-head { margin-bottom: 14px; }
.group-head h3 { margin: 0; font-size: 22px; }
.group-head h3 a { color: var(--cream); text-decoration: none; }
.group-head h3 a:hover { color: var(--gold); }
.group-head p { margin: 4px 0 0; font-size: 15px; max-width: 60ch; }
.browse.tags { margin-top: 18px; }
.eyebrow a { color: inherit; text-decoration: none; } .eyebrow a:hover { color: var(--cream); }
.waiting { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.waiting li { display: flex; flex-direction: column; gap: 4px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 15px; line-height: 1.5; }
.waiting b { font-size: 18px; }
.waiting span:not(.muted) { color: var(--muted); }
.waiting .muted { color: var(--gold); font-size: 14px; }
.card p.hit { margin-top: 8px; color: var(--gold); font-size: 14px; }
.card p.hit::before { content: "↳ "; }
section[id], [id^="video-"] { scroll-margin-top: 80px; }

/* episode header and contents */
.ep-head .facts { margin: 14px 0 4px; color: var(--cream); font-weight: 500; }
.ep-head .facts a { color: var(--gold); text-decoration: none; }
.ep-head .facts a:hover { color: var(--cream); text-decoration: underline; }
.ep-head .teaches { margin: 0; }
.ep-head .teaches .muted { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.ep-head .meta { margin-top: 14px; }
.chip.tag { font-size: 13px; color: var(--muted); }
.contents { display: flex; align-items: baseline; gap: 6px 14px; margin-top: 18px; font-size: 14px; }
.contents > .muted { flex: none; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.contents ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.contents a { display: block; color: var(--cream); text-decoration: none; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.contents a:hover { border-color: rgba(255, 150, 50, 0.7); color: var(--cream); }

@media (max-width: 640px) {
  /* one scrolling line of chips instead of three wrapped rows */
  .browse, .contents ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; -webkit-overflow-scrolling: touch; }
  .browse::-webkit-scrollbar, .contents ol::-webkit-scrollbar { display: none; }
  .browse > *, .contents li { flex: none; }
  .contents { flex-direction: column; gap: 8px; }
  .contents ol { width: 100%; margin-inline: 0; padding-inline: 0; }
  /* the parameters as small cards, so the explanation is never cut off */
  .tablewrap:has(table.params) { border: 0; overflow: visible; }
  table.params { min-width: 0; }
  table.params thead { display: none; }
  table.params tr { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--panel); }
  table.params td { padding: 0; border: 0; }
  table.params td:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  table.params td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: 13px; }
  table.params td:last-child { grid-column: 1 / -1; margin-top: 6px; color: var(--muted); white-space: normal; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
@media (max-width: 640px) { .pager > span:empty { display: none; } }

/* builds on, built on later */
.ep-head .builds { margin: 6px 0 0; font-size: 15px; }
.ep-head .builds > .muted:first-child { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.ep-head .builds a { text-decoration: none; } .ep-head .builds a:hover { text-decoration: underline; }
.later { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.later li { font-size: 16px; } .later a { text-decoration: none; font-weight: 600; }

/* what changed between stages */
details.code summary .diffnote { font-family: var(--font); font-size: 13px; color: var(--muted); }
pre .add { display: inline-block; min-width: calc(100% + 36px); margin-inline: -18px; padding-inline: 15px 18px; border-left: 3px solid var(--ember);
  background: color-mix(in srgb, var(--ember) 13%, transparent); }
details.code.gone { margin-top: -14px; background: transparent; }
details.code.gone summary { color: var(--muted); }
details.code.gone pre { opacity: .7; text-decoration: line-through; text-decoration-color: rgba(255, 243, 222, .35); }
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 1.6em; }
.stage-head h2 { margin: 0; }

/* the parameter slider */
.sweep { margin: 6px 0 26px; }
.sweep .browse { margin-bottom: 14px; }
.sweep button.chip { font: inherit; font-size: 14px; cursor: pointer; font-family: var(--mono); }
.sweep button.chip[aria-pressed="true"] { border-color: var(--ember); background: color-mix(in srgb, var(--ember) 18%, var(--panel-2)); }
.sweep-frame { max-width: 720px; }
.sweep-img { aspect-ratio: 16 / 9; background: var(--panel-2) no-repeat; transition: opacity .2s; }
.sweep.loading .sweep-img { opacity: .45; }
.sweep-control { display: grid; grid-template-columns: auto 1fr 9ch; gap: 14px; align-items: center; max-width: 720px; margin-top: 12px; }
.sweep-control input { width: 100%; accent-color: var(--ember); }
.sweep-control output { font-family: var(--mono); font-size: 14px; color: var(--gold); white-space: nowrap; }
@media (max-width: 520px) { .sweep-control { grid-template-columns: 1fr auto; } .sweep-control input { grid-column: 1 / -1; grid-row: 2; } }
tr[id^="param-"] { scroll-margin-top: 80px; }

/* wallpapers */
.walls { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.wall { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--cream); }
.wall img { border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }
.wall.desktop img { width: min(480px, 100%); aspect-ratio: 16 / 9; object-fit: cover; }
.wall.desktop { flex: 0 1 480px; }
.wall.phone img { width: 160px; aspect-ratio: 1320 / 2868; object-fit: cover; }
.wall span b { display: block; } .wall span .muted { font-size: 14px; }
.wall:hover img { border-color: rgba(255, 150, 50, .7); }

/* shared functions and glossary */
.fns { margin-top: 24px; }
.fn { margin-top: 30px; }
.fn h3 { font-size: 20px; margin-bottom: 6px; }
.fn h3 code { font-size: 1em; }
.fn h3 .muted { font-weight: 500; font-size: 16px; margin-left: 6px; }
.fn p { max-width: 720px; margin-bottom: 6px; }
.fn .where, .fn .muted { font-size: 15px; }
.glossary { margin: 0; display: grid; gap: 4px; }
.term { border-top: 1px solid var(--line); padding: 18px 0 8px; scroll-margin-top: 80px; }
.term:target { background: linear-gradient(90deg, color-mix(in srgb, var(--ember) 12%, transparent), transparent 70%); }
.term dt { font-weight: 600; font-size: 20px; }
.term dt .muted { font-weight: 400; font-size: 14px; margin-left: 8px; }
.term dd { margin: 6px 0 0; max-width: 720px; }
.term .uses { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; margin-bottom: 8px; }
.term .uses > .muted { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }
.term a.chip code { background: none; padding: 0; }

/* keyboard shortcuts */
kbd { font-family: var(--mono); font-size: .85em; padding: .1em .45em; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--panel-2); color: var(--cream); }
.keys-hint { font-size: 14px; margin-top: -24px; }
dialog.keys { background: var(--panel); color: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; max-width: min(440px, calc(100% - 32px)); }
dialog.keys::backdrop { background: rgba(9, 7, 8, .7); }
dialog.keys h2 { margin: 0 0 14px; font-size: 22px; }
dialog.keys dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 14px; }
dialog.keys dd { margin: 0; }
dialog.keys p { font-size: 14px; }

/* share row */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-size: 14px; }
.share-row > .muted { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }
.share-row button.chip { font: inherit; font-size: 14px; cursor: pointer; }
.share-row a.chip:hover, .share-row button.chip:hover { border-color: rgba(255, 150, 50, 0.7); }

/* accounts: forms, notices, lists */
.narrow { max-width: 520px; }
.small { font-size: 14px; }
.form { display: grid; gap: 10px; margin: 18px 0; }
.form [data-step] { display: grid; gap: 10px; }
.form [data-step][hidden] { display: none; }
.form label { font-weight: 600; font-size: 15px; }
.form label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .mine select { font: inherit; color: var(--cream); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 150, 50, 0.25); }
.form .btn { justify-self: start; }
.form.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form.inline .at { color: var(--muted); }
.form-status { min-height: 1.4em; margin: 0; color: var(--gold); font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.notice { border: 1px solid rgba(255, 150, 50, .5); background: color-mix(in srgb, var(--ember) 10%, var(--panel)); border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.linkish { font: inherit; color: var(--gold); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mine select { padding: 4px 8px; font-size: 14px; }
details.danger { border: 1px solid rgba(224, 66, 13, .5); border-radius: var(--radius); padding: 12px 16px; margin-top: 18px; }
details.danger summary { cursor: pointer; color: #ff8a65; font-weight: 600; }
.btn.danger { background: var(--hot); color: #fff; }
.app-note { font-size: 14px; margin-top: 10px; }
button.btn[aria-pressed="true"] { background: color-mix(in srgb, var(--ember) 22%, transparent); }
.turnstile { min-height: 65px; }
dialog.keys textarea { width: 100%; }
/* The header at narrower widths: About goes first, then the app, Shaders (the brand goes home) and the gallery; Plus,
   Sign in and Follow stay. */
@media (max-width: 860px) { .site-header nav a.nav-about { display: none; } }
@media (max-width: 720px) { .site-header nav a.nav-app { display: none; } }
@media (max-width: 600px) { .site-header nav a.nav-shaders { display: none; } }
@media (max-width: 470px) { .site-header nav a.nav-gallery { display: none; } }

/* clips, forks, collections */
.wall.clip img { object-fit: cover; }
.wall.clip.square img { width: 220px; aspect-ratio: 1 / 1; }
.wall.clip.vertical img { width: 160px; aspect-ratio: 9 / 16; }
.collected { display: flex; flex-direction: column; gap: 8px; }
.collected .card { flex: 1; }
.collected .note { margin: 0; color: var(--cream); font-size: 15px; padding: 0 4px; }
.lists li { font-size: 16px; }
.collect-list { display: grid; gap: 6px; margin-bottom: 14px; max-height: 50vh; overflow: auto; }
details.collection-edit { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; background: var(--panel); }
details.collection-edit summary { cursor: pointer; }
.collection-edit .form input, .collection-edit .form textarea, .collection-edit select { font: inherit; color: var(--cream); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.collection-items { margin: 6px 0; }
.collection-items li { font-size: 15px; }
.linkish:disabled { opacity: .35; cursor: default; text-decoration: none; }

/* Ray Kiln Plus: the badge beside a handle, the buy box and the comparison on /plus/. */
.plus-badge { display: inline-block; vertical-align: 0.12em; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; color: #1a0b03; background: var(--gold); padding: 3px 6px 2px; border-radius: 999px; }
h1 .plus-badge { font-size: 13px; vertical-align: 0.4em; margin-left: 4px; }
.plus-buy { border: 1px solid rgba(255, 150, 50, .5); background: var(--panel); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0 8px; }
.plus-buy .plus-price { margin: 0 0 10px; font-size: 20px; }
.plus-buy .plus-price .muted { font-size: 15px; }
.plus-buy .notice { margin: 0; }
.plus-buy .notice p { margin: 0 0 6px; } .plus-buy .notice p:last-child { margin: 0; }
table.compare { min-width: 0; }
table.compare td { white-space: normal; }
table.compare td:nth-child(2), table.compare td:nth-child(3), table.compare th:nth-child(2), table.compare th:nth-child(3) { width: 24%; }
@media (max-width: 600px) { table.compare th, table.compare td { padding: 9px 10px; } }
dl.faq dt { font-weight: 600; margin-top: 16px; }
dl.faq dd { margin: 4px 0 0; color: var(--muted); }
.site-header nav a.nav-plus { color: var(--gold); box-shadow: inset 0 0 0 1.5px rgba(255, 176, 96, .55); }
.site-header nav a.nav-plus:hover, .site-header nav a.nav-plus[aria-current] { color: #1a0b03; background: var(--gold); box-shadow: none; }
/* The home page's app and Plus, side by side. */
.offers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 18px; }
.offer { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; }
.offer.plus { border-color: rgba(255, 150, 50, .5); background: color-mix(in srgb, var(--ember) 7%, var(--panel)); }
.offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.offer-head h3 { margin: 0; }
.offer-price { font-weight: 700; font-size: 20px; white-space: nowrap; }
.offer-price .muted { font-weight: 400; font-size: 15px; }
.offer p { margin: 12px 0 0; }
.offer-list { margin: 12px 0 0; padding-left: 1.2em; }
.offer-list li { margin: 2px 0; }
.offer .actions { margin-top: auto; padding-top: 16px; }
