/* Hey Tomo resources: the hub, guides, e-books, developer docs, glossary and journey templates.
   Loaded after /blog/assets/blog.css, which gives the header, footer, icon actions, tooltips and the sign-up band.
   public/ is copied as it is (no build step). Colours avoid hues 20 to 65 (no yellow or orange). */
:root {
  --r-violet: #5A47FF; --r-mint: #0E7C52; --r-blue: #2563FF; --r-rose: #C0245E; --r-teal: #00A99D; --r-ink: #0B0D2A;
  --r-tile: #FFFFFF; --r-tile-2: #F6F5FB; --r-shadow: 0 1px 2px rgba(12, 11, 20, .04), 0 12px 32px -12px rgba(12, 11, 20, .14);
  --r-code-bg: #0E0F1F; --r-code-fg: #E6E4F7; --r-code-dim: #8E8BB5; --r-code-key: #9C8CFF; --r-code-str: #3CCB8F; --r-code-num: #6FB3FF;
}
:root[data-theme="dark"] {
  --r-violet: #9C8CFF; --r-mint: #3CCB8F; --r-blue: #6FA0FF; --r-rose: #F27BAE; --r-teal: #3CD6C8;
  --r-tile: #12121A; --r-tile-2: #181822; --r-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -18px rgba(0, 0, 0, .7);
  --r-code-bg: #0A0A12;
}
.bhdr__nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.wrap-r { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.eyebrow { margin: 0 0 14px; font: 600 .78rem/1.4 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.serif { font-family: var(--serif); font-weight: 400; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.sec-h h2 { margin: 0; font: 400 clamp(2rem, 4vw, 3rem)/1 var(--serif); letter-spacing: -.01em; }
.sec-h p { margin: 6px 0 0; color: var(--fg-2); max-width: 54ch; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.more::after { content: "→"; transition: transform .25s; }
.more:hover::after { transform: translateX(3px); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in, .is-still .reveal { opacity: 1; transform: none; }

/* ---------- hub hero: words, a search box and a floating stack of resources ---------- */
.rhero { position: relative; overflow: clip; padding: 72px 0 56px; }
.rhero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, color-mix(in srgb, var(--r-violet) 18%, transparent), transparent 70%); pointer-events: none; }
.rhero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, color-mix(in srgb, var(--r-mint) 14%, transparent), transparent 70%); pointer-events: none; }
.rhero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.rhero h1 { margin: 0 0 18px; font: 400 clamp(3rem, 7.4vw, 6.4rem)/.92 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.rhero h1 em { font-style: italic; background: linear-gradient(100deg, var(--r-violet), var(--r-rose) 55%, var(--r-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.rhero__dek { margin: 0 0 28px; max-width: 520px; color: var(--fg-2); font-size: 1.15rem; }
.rsearch { position: relative; max-width: 540px; }
.rsearch__box { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: var(--r-shadow); transition: box-shadow .3s; }
.rsearch__box:focus-within { box-shadow: var(--act-glow); }
.rsearch__box .licon { color: var(--muted); }
.rsearch input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 1rem; outline: none; padding: 8px 0; }
.rsearch input::-webkit-search-cancel-button { display: none; }
.rsearch kbd { padding: 3px 8px; border: 1px solid var(--line); border-radius: 7px; font: 500 .72rem/1 var(--mono); color: var(--muted); }
.rsearch__out { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 24px 60px -20px rgba(12, 11, 20, .35); max-height: 380px; overflow: auto; }
.rsearch__out[hidden] { display: none; }
.rsearch__out a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; }
.rsearch__out a:hover, .rsearch__out a:focus-visible, .rsearch__out a.is-on { background: var(--accent-soft); outline: none; }
.rsearch__out .k { grid-row: span 2; align-self: center; padding: 4px 8px; border-radius: 8px; font: 600 .66rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--bg-2); color: var(--accent); }
.rsearch__out b { font-weight: 600; font-size: .95rem; }
.rsearch__out small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.rsearch__none { padding: 14px; color: var(--muted); font-size: .9rem; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.quick a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--fg-2); text-decoration: none; transition: background-color .2s, color .2s, box-shadow .3s; }
.quick a:hover, .quick a:focus-visible { background: var(--accent-soft); color: var(--fg); box-shadow: var(--act-glow); outline: none; }

/* the floating stack: an e-book, a docs card, a blog card and a glossary chip, tilted in 3D, following the pointer */
.stack3d { position: relative; height: 520px; perspective: 1400px; }
.stack3d__in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(8deg + var(--ry, 0) * 1deg)) rotateY(calc(-14deg + var(--rx, 0) * 1deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.fl { position: absolute; border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(12, 11, 20, .45); animation: bob 7s ease-in-out infinite; }
.fl--book { left: 6%; top: 8%; width: 230px; height: 310px; transform: translateZ(40px) rotate(-6deg); border-radius: 6px 16px 16px 6px; overflow: hidden; background: linear-gradient(160deg, #1B1270, #4434E0 60%, #6A57FF); color: #fff; padding: 26px 22px 22px 34px; }
.fl--book::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .12) 9px, transparent 14px), linear-gradient(170deg, rgba(5, 6, 26, .4), rgba(5, 6, 26, .15) 60%, rgba(5, 6, 26, .35)); }
.fl--book > small, .fl--book > b, .fl--book > img { position: relative; z-index: 1; } .fl--book > span { z-index: 1; }
.fl--book small { display: block; font: 600 .62rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.fl--book b { display: block; margin-top: 10px; font: 400 2rem/1 var(--serif); }
.fl--book i { position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .14); }
.fl--book span { position: absolute; left: 34px; bottom: 20px; font: 500 .7rem/1 var(--mono); }
.fl--code { right: 2%; top: 4%; width: 300px; padding: 16px 18px; transform: translateZ(90px) rotate(3deg); background: var(--r-code-bg); color: var(--r-code-fg); font: 400 .74rem/1.65 var(--mono); animation-delay: -2s; }
.fl--code .dots { display: flex; gap: 6px; margin-bottom: 10px; }
.fl--code .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3A3955; }
.fl--code .dots i:first-child { background: #D9367A; } .fl--code .dots i:nth-child(2) { background: #9C8CFF; } .fl--code .dots i:nth-child(3) { background: #3CCB8F; }
.fl--code .k { color: var(--r-code-key); } .fl--code .s { color: var(--r-code-str); } .fl--code .c { color: var(--r-code-dim); }
.fl--post { right: 10%; bottom: 6%; width: 270px; overflow: hidden; transform: translateZ(130px) rotate(-2deg); background: var(--card); border: 1px solid var(--line); animation-delay: -4s; }
.fl--post img { display: block; width: 100%; height: 120px; object-fit: cover; }
.fl--post div { padding: 12px 16px 16px; }
.fl--post small { font: 600 .62rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.fl--post b { display: block; margin-top: 6px; font: 400 1.25rem/1.05 var(--serif); }
.fl--term { left: 0; bottom: 14%; padding: 14px 18px; width: 230px; transform: translateZ(170px) rotate(4deg); background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); animation-delay: -1s; }
.fl--term small { font: 600 .62rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--r-mint); }
.fl--term b { display: block; margin: 6px 0 4px; font-size: 1rem; }
.fl--term p { margin: 0; font-size: .78rem; line-height: 1.45; color: var(--fg-2); }
.fl--flow { left: 38%; top: 46%; padding: 10px 12px; display: flex; align-items: center; gap: 6px; transform: translateZ(210px) rotate(-3deg); background: var(--r-ink); color: #F4F3FA; border-radius: 999px; font: 500 .72rem/1 var(--mono); animation-delay: -3s; }
.fl--flow i { width: 8px; height: 8px; border-radius: 50%; background: #3CCB8F; box-shadow: 0 0 0 4px rgba(60, 203, 143, .22); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- bento of resource types ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--r-tile); color: inherit; text-decoration: none; box-shadow: var(--r-shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; isolation: isolate; }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: var(--act-glow); outline: none; }
.tile__k { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tile__k .n { padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); letter-spacing: 0; }
.tile h3 { margin: 0 0 8px; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--serif); letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--fg-2); font-size: .95rem; line-height: 1.55; max-width: 44ch; }
.tile .go { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--fg-2); transition: background-color .2s, color .2s, transform .35s; }
.tile:hover .go, .tile:focus-visible .go { background: var(--accent); color: #fff; border-color: transparent; transform: rotate(-45deg); }
.t-blog { grid-column: span 7; grid-row: span 2; background: linear-gradient(140deg, #EAF6EF, #EFEBFF 70%); color: #0C0B14; }
.t-blog p { color: #3B3A48; } .t-blog .tile__k { color: #5A47FF; } .t-blog .tile__k .n { background: rgba(90, 71, 255, .1); } .t-blog .go { color: #3B3A48; border-color: rgba(12, 11, 20, .12); }
.t-blog__posts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 22px; }
.t-blog__posts figure { margin: 0; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px -14px rgba(12, 11, 20, .4); }
.t-blog__posts figure:nth-child(2) { background: #0B0D2A; color: #F4F3FA; }
.t-blog__posts img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.t-blog:hover .t-blog__posts img { transform: scale(1.04); }
.t-blog__posts figcaption { padding: 10px 12px 12px; font-size: .8rem; line-height: 1.35; font-weight: 600; }
.t-docs { grid-column: span 5; grid-row: span 2; background: var(--r-ink); color: #F4F3FA; border-color: transparent; }
.t-docs p { color: #C9C6F2; } .t-docs .tile__k { color: #3CCB8F; } .t-docs .tile__k .n { background: rgba(60, 203, 143, .14); } .t-docs .go { color: #C9C6F2; border-color: rgba(244, 243, 250, .16); }
.t-docs pre { margin: auto 0 0; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font: 400 .74rem/1.7 var(--mono); color: #E6E4F7; overflow: hidden; white-space: pre; }
.t-docs pre .k { color: #9C8CFF; } .t-docs pre .s { color: #3CCB8F; } .t-docs pre .c { color: #8E8BB5; }
.t-docs__sdk { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 14px; padding: 0; list-style: none; }
.t-docs__sdk li { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(244, 243, 250, .16); font: 500 .72rem/1.3 var(--mono); color: #D3D2DE; }
.t-guides { grid-column: span 4; }
.t-ebooks { grid-column: span 4; background: linear-gradient(170deg, var(--r-tile), var(--r-tile-2)); }
.t-gloss { grid-column: span 4; }
.t-tpl { grid-column: span 4; }
.t-play { grid-column: span 4; }
.t-help { grid-column: span 4; }
.t-soon { grid-column: span 12; flex-direction: row; align-items: center; gap: 24px; padding: 20px 24px; background: transparent; box-shadow: none; border-style: dashed; }
.t-soon:hover { transform: none; }
.t-soon h3 { font-size: 1.5rem; margin: 0; }
.t-soon ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.t-soon li { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font-size: .85rem; color: var(--fg-2); }
.t-soon p { margin-left: auto; font-size: .88rem; }
.mini-books { position: relative; display: flex; align-items: end; justify-content: center; gap: 0; height: 170px; margin-top: auto; padding-top: 14px; perspective: 900px; }
.mini-books i { position: relative; width: 108px; height: 150px; border-radius: 4px 10px 10px 4px; box-shadow: -6px 14px 26px -10px rgba(12, 11, 20, .5); transform: rotateY(-18deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); margin-left: -26px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 10px 10px 16px; color: #fff; font-style: normal; }
.mini-books i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; border-radius: 4px 0 0 4px; background: rgba(0, 0, 0, .25); }
.mini-books i b { font: 400 1.02rem/1 var(--serif); }
.mini-books i small { font: 600 .5rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.mini-books i:nth-child(1) { background: linear-gradient(160deg, #0F7A50, #16A36B 60%, #4FD3A0); transform: rotateY(-18deg) translateY(6px); margin-left: 0; }
.mini-books i:nth-child(2) { background: linear-gradient(160deg, #241A8F, #5A47FF 60%, #8E7CFF); z-index: 1; transform: rotateY(-18deg) translateY(-8px); }
.mini-books i:nth-child(3) { background: linear-gradient(160deg, #8C1B4F, #D9367A 60%, #F27BAE); transform: rotateY(-18deg) translateY(10px); }
.t-ebooks:hover .mini-books i:nth-child(1) { transform: rotateY(-4deg) translate(-16px, 0) rotate(-6deg); }
.t-ebooks:hover .mini-books i:nth-child(2) { transform: rotateY(-4deg) translateY(-22px); }
.t-ebooks:hover .mini-books i:nth-child(3) { transform: rotateY(-4deg) translate(16px, 4px) rotate(6deg); }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; font: 500 .78rem/1 var(--mono); color: var(--muted); }
.az span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--bg-2); transition: background-color .2s, color .2s; }
.t-gloss:hover .az span:nth-child(4n + 1) { background: var(--accent-soft); color: var(--accent); }
.mini-flow { display: flex; align-items: center; gap: 0; margin-top: 16px; }
.mini-flow span { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font: 500 .72rem/1 var(--mono); white-space: nowrap; }
.mini-flow i { flex: 1; min-width: 10px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px); background-size: 18px 2px; animation: dash 1.2s linear infinite; }
@keyframes dash { to { background-position: 18px 0; } }
.mini-guides { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: g; font-size: .86rem; color: var(--fg-2); }
.mini-guides li { counter-increment: g; display: flex; gap: 10px; }
.mini-guides li::before { content: counter(g, decimal-leading-zero); font: 500 .74rem/1.7 var(--mono); color: var(--r-mint); }

/* ---------- three paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path { position: relative; padding: 26px; border-radius: 26px; border: 1px solid var(--line); background: var(--r-tile); }
.path__who { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.path__who .badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.path:nth-child(2) .badge { background: color-mix(in srgb, var(--r-mint) 14%, transparent); color: var(--r-mint); }
.path:nth-child(3) .badge { background: color-mix(in srgb, var(--r-rose) 14%, transparent); color: var(--r-rose); }
.path h3 { margin: 0; font: 400 1.6rem/1 var(--serif); }
.path__who small { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.path ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.path li { counter-increment: s; border-top: 1px solid var(--line); }
.path li a { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: baseline; padding: 12px 0; text-decoration: none; transition: color .2s; }
.path li a::before { content: counter(s); font: 500 .78rem/1 var(--mono); color: var(--muted); }
.path li a::after { content: "→"; color: var(--muted); transition: transform .25s, color .2s; }
.path li a:hover { color: var(--accent); }
.path li a:hover::after { transform: translateX(3px); color: var(--accent); }
.path li span { font-weight: 500; }
.path li small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }

/* ---------- featured e-book band ---------- */
.bookband { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 34px; background: radial-gradient(90% 120% at 100% 0%, rgba(156, 140, 255, .35), transparent 60%), radial-gradient(80% 100% at 0% 100%, rgba(60, 203, 143, .22), transparent 60%), #0B0D2A; color: #F4F3FA; overflow: hidden; }
.bookband .eyebrow { color: #3CCB8F; }
.bookband h2 { margin: 0 0 14px; font: 400 clamp(2.2rem, 4.4vw, 3.6rem)/1 var(--serif); }
.bookband p { margin: 0 0 18px; color: #C9C6F2; max-width: 52ch; }
.bookband ul { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; color: #D3D2DE; font-size: .95rem; }
.bookband li { display: flex; gap: 10px; }
.bookband li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .65em; border-radius: 50%; background: #3CCB8F; }
.bookband .more { color: #B9AEFF; font-size: 1rem; }
.book3d { position: relative; justify-self: center; width: min(300px, 70vw); aspect-ratio: 3 / 4; perspective: 1200px; }
.book3d__b { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(6deg); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.bookband:hover .book3d__b, .book3d:focus-within .book3d__b { transform: rotateY(-8deg) rotateX(2deg); }
.book3d__front, .book3d__pages, .book3d__back { position: absolute; inset: 0; border-radius: 4px 14px 14px 4px; }
.book3d__front { transform: translateZ(22px); background: linear-gradient(155deg, #1B1270, #4434E0 55%, #7A68FF); padding: 30px 26px 26px 38px; display: flex; flex-direction: column; box-shadow: inset 10px 0 18px -10px rgba(0, 0, 0, .5); overflow: hidden; }
.book3d__front::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .15) 11px, transparent 16px), linear-gradient(170deg, rgba(5, 6, 26, .5), rgba(5, 6, 26, .22) 55%, rgba(5, 6, 26, .45)); }
.book3d__front > :not(i) { position: relative; z-index: 1; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.book3d__front small { font: 600 .66rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.book3d__front b { margin-top: 14px; font: 400 2.5rem/.98 var(--serif); color: #fff; }
.book3d__front span { margin-top: auto; font: 500 .74rem/1.4 var(--mono); color: #fff; }
.book3d__front i { position: absolute; right: -60px; bottom: 40px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .12); }
.book3d__front i + i { right: 40px; bottom: -90px; width: 160px; height: 160px; border-color: rgba(60, 203, 143, .35); }
.book3d__pages { transform: translateZ(0); left: auto; right: 8px; width: 40px; transform-origin: right; transform: rotateY(90deg) translateZ(-24px) translateX(20px); background: linear-gradient(90deg, #DAD6EC, #F1EFF9 45%, #CFCAE4); border-radius: 0; backface-visibility: hidden; }
.book3d__back { transform: translateZ(-22px); background: #160F5C; box-shadow: 30px 40px 60px -20px rgba(0, 0, 0, .7); }

/* ---------- page heads for the sub-pages ---------- */
.phead { position: relative; padding: 56px 0 32px; overflow: clip; }
.phead::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: radial-gradient(closest-side, color-mix(in srgb, var(--hue, var(--r-violet)) 16%, transparent), transparent 70%); pointer-events: none; }
.phead > * { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.phead h1 { margin: 0 0 14px; font: 400 clamp(2.6rem, 6.4vw, 5rem)/.95 var(--serif); letter-spacing: -.02em; text-wrap: balance; max-width: 18ch; }
.phead__dek { margin: 0; max-width: 600px; color: var(--fg-2); font-size: 1.12rem; }
.phead__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; font: 500 .78rem/1.4 var(--mono); color: var(--muted); }

/* card grids (guides, e-books, templates) */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pguides { margin-top: 64px; }
.rcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--r-tile); color: inherit; text-decoration: none; box-shadow: var(--r-shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.rcard:hover, .rcard:focus-visible { transform: translateY(-3px); box-shadow: var(--act-glow); outline: none; }
.rcard__k { display: flex; flex-wrap: wrap; gap: 6px 12px; font: 600 .68rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.rcard__k span + span { color: var(--muted); }
.rcard h3 { margin: 0; font: 400 1.75rem/1.02 var(--serif); letter-spacing: -.01em; }
.rcard p { margin: 0; color: var(--fg-2); font-size: .94rem; line-height: 1.55; }
.rcard__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.rcard__num { position: absolute; right: 22px; top: 18px; font: 400 2.6rem/1 var(--serif); color: color-mix(in srgb, var(--accent) 22%, transparent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.filters button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg-2); font: 500 .86rem/1 var(--font); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .3s; }
.filters button:hover, .filters button:focus-visible { box-shadow: var(--act-glow); outline: none; }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: transparent; }
[data-filter-item][hidden], .gl-l[hidden], .gl-t[hidden] { display: none !important; }

/* ---------- long reads: guides and e-books ---------- */
.read { display: grid; grid-template-columns: 220px minmax(0, 720px) 1fr; gap: 48px; max-width: 1240px; margin: 0 auto; padding: 8px 16px 0; }
.read__toc { position: sticky; top: 84px; align-self: start; font-size: .86rem; }
.read__toc b { display: block; margin-bottom: 10px; font: 600 .72rem/1.4 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.read__toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.read__toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .2s, border-color .2s; }
.read__toc a:hover { color: var(--fg); }
.read__toc a.is-active { color: var(--fg); border-left-color: var(--accent); }
.read__acts { display: flex; gap: 8px; margin-top: 18px; }
.prose-r { font-size: 1.08rem; line-height: 1.75; color: var(--fg-2); }
.prose-r > :first-child { margin-top: 0; }
.prose-r h2 { margin: 2.2em 0 .6em; font: 400 clamp(1.8rem, 3vw, 2.3rem)/1.08 var(--serif); letter-spacing: -.01em; color: var(--fg); scroll-margin-top: 90px; }
.prose-r h3 { margin: 1.8em 0 .4em; font-size: 1.15rem; font-weight: 600; color: var(--fg); scroll-margin-top: 90px; }
.prose-r p, .prose-r ul, .prose-r ol { margin: 0 0 1.1em; }
.prose-r li { margin: 0 0 .45em; }
.prose-r strong { color: var(--fg); font-weight: 600; }
.prose-r a { color: var(--accent); text-underline-offset: 3px; }
.prose-r blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font: 400 1.5rem/1.25 var(--serif); color: var(--fg); }
.prose-r hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--line); }
.prose-r table { width: 100%; margin: 1.4em 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: .92rem; }
.prose-r tr:last-child > td, .docs__body tr:last-child > td { border-bottom: 0; }
.prose-r th, .prose-r td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose-r th { font-weight: 600; color: var(--fg); background: var(--bg-2); }
.tablewrap { overflow-x: auto; margin: 1.4em 0; }
.tablewrap table { margin: 0; min-width: 520px; }
.callout { margin: 1.6em 0; padding: 18px 20px; border-radius: 18px; background: var(--accent-soft); color: var(--fg); font-size: .98rem; }
.callout b:first-child { display: block; margin-bottom: 4px; font: 600 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.callout--ok { background: color-mix(in srgb, var(--r-mint) 12%, transparent); }
.callout--ok b:first-child { color: var(--r-mint); }
.callout--warn { background: color-mix(in srgb, var(--r-rose) 10%, transparent); }
.callout--warn b:first-child { color: var(--r-rose); }
.steps { margin: 1.4em 0; padding: 0; list-style: none; counter-reset: st; }
.steps > li { position: relative; counter-increment: st; margin: 0; padding: 0 0 1.2em 52px; }
.steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fg); color: var(--bg); font: 600 .85rem/1 var(--mono); }
.steps > li::after { content: ""; position: absolute; left: 16.5px; top: 40px; bottom: 6px; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li > b:first-child { display: block; color: var(--fg); }
.msg { max-width: 420px; margin: 1.2em 0; padding: 12px 16px; border-radius: 4px 18px 18px 18px; background: var(--bg-2); font-size: .95rem; line-height: 1.55; color: var(--fg); }
.msg small { display: block; margin-top: 6px; font: 500 .7rem/1 var(--mono); color: var(--muted); }
.read__end { max-width: 720px; }
.nextread { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 3em 0 0; }
.nextread a { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: box-shadow .3s; }
.nextread a:hover, .nextread a:focus-visible { box-shadow: var(--act-glow); outline: none; }
.nextread small { display: block; font: 600 .68rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nextread b { display: block; margin-top: 4px; font: 400 1.3rem/1.1 var(--serif); }
.nextread a:last-child { text-align: right; }

/* e-book: a cover header and chapter openers */
.ecover { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding: 48px 0 32px; }
.ecover .book3d { width: 240px; }
.chap { display: block; margin: 3em 0 .2em; font: 500 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.prose-r .chap + h2 { margin-top: .2em; }

/* ---------- developer docs ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; max-width: 1240px; margin: 0 auto; padding: 8px 16px 0; }
.docs__nav { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; padding: 4px 8px 24px 0; font-size: .88rem; }
.docs__nav p { margin: 18px 0 6px; font: 600 .7rem/1.4 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.docs__nav p:first-child { margin-top: 0; }
.docs__nav a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--fg-2); text-decoration: none; }
.docs__nav a:hover { background: var(--bg-2); color: var(--fg); }
.docs__nav a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.docs__body { min-width: 0; max-width: 820px; }
.docs__body section { scroll-margin-top: 84px; padding-bottom: 12px; }
.docs__body h2 { margin: 2.2em 0 .5em; padding-top: 1.4em; border-top: 1px solid var(--line); font: 600 1.6rem/1.2 var(--font); letter-spacing: -.02em; color: var(--fg); }
.docs__body section:first-child h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.docs__body h3 { margin: 1.6em 0 .4em; font: 600 1.08rem/1.3 var(--font); color: var(--fg); scroll-margin-top: 84px; }
.docs__body p, .docs__body li { color: var(--fg-2); font-size: 1rem; line-height: 1.7; }
.docs__body code { padding: 1px 6px; border-radius: 6px; background: var(--bg-2); font: 400 .88em/1.4 var(--mono); color: var(--fg); }
.docs__body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.docs__body table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: .9rem; }
.docs__body th, .docs__body td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs__body th { color: var(--fg); background: var(--bg-2); font-weight: 600; }
.code { position: relative; margin: 1.2em 0; border-radius: 16px; background: var(--r-code-bg); color: var(--r-code-fg); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.code__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); font: 500 .72rem/1 var(--mono); color: var(--r-code-dim); }
.code__bar .act { width: 30px; height: 30px; color: var(--r-code-dim); border-color: rgba(255, 255, 255, .1); }
.code__bar .act:hover { color: #fff; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 .84rem/1.7 var(--mono); tab-size: 2; }
.code .k { color: var(--r-code-key); } .code .s { color: var(--r-code-str); } .code .c { color: var(--r-code-dim); font-style: italic; } .code .n { color: var(--r-code-num); }
.tabs { display: flex; gap: 4px; padding: 6px 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.tabs button { padding: 8px 12px; border: 0; border-radius: 8px 8px 0 0; background: transparent; color: var(--r-code-dim); font: 500 .76rem/1 var(--mono); cursor: pointer; }
.tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .06); color: #fff; }
.tabs button:focus-visible { outline: 2px solid var(--r-code-key); outline-offset: -2px; }
.method { display: inline-block; padding: 3px 8px; border-radius: 6px; font: 600 .72rem/1.2 var(--mono); background: color-mix(in srgb, var(--r-mint) 16%, transparent); color: var(--r-mint); }
.method--get { background: color-mix(in srgb, var(--r-blue) 14%, transparent); color: var(--r-blue); }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 1em 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: 500 .88rem/1.4 var(--mono); }
.sdkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 1.2em 0; }
.sdkgrid a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: box-shadow .3s, transform .3s; }
.sdkgrid a:hover, .sdkgrid a:focus-visible { box-shadow: var(--act-glow); transform: translateY(-2px); outline: none; }
.sdkgrid b { display: block; font-size: .98rem; }
.sdkgrid small { color: var(--muted); font-size: .8rem; }

/* ---------- glossary ---------- */
.gl-bar { position: sticky; top: 56px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.gl-bar .rsearch { flex: 1 1 280px; max-width: 380px; }
.gl-bar .rsearch__box { box-shadow: none; padding-block: 3px; }
.gl-az { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gl-az a, .gl-az span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font: 500 .8rem/1 var(--mono); text-decoration: none; }
.gl-az a:hover, .gl-az a:focus-visible { background: var(--accent-soft); color: var(--accent); outline: none; }
.gl-az span { color: color-mix(in srgb, var(--muted) 45%, transparent); }
.gl { margin: 0; }
.gl-l { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.gl-l > h2 { margin: 0; font: 400 3.4rem/1 var(--serif); color: var(--accent); position: sticky; top: 130px; align-self: start; }
.gl-l dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 0; }
.gl-t { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--r-tile); scroll-margin-top: 130px; }
.gl-t:target { box-shadow: var(--act-glow); }
.gl-t dt { margin: 0 0 6px; font-weight: 600; font-size: 1.02rem; color: var(--fg); }
.gl-t dd { margin: 0; color: var(--fg-2); font-size: .94rem; line-height: 1.6; }
.gl-t dd + dd { margin-top: 8px; font-size: .82rem; color: var(--muted); }
.gl-t dd a { color: var(--accent); }
.gl-empty { padding: 40px 0; color: var(--muted); }

/* ---------- journey templates ---------- */
.tpl { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--r-tile); box-shadow: var(--r-shadow); }
.tpl h3 { margin: 0; font: 600 1.12rem/1.3 var(--font); color: var(--fg); }
.tpl p { margin: 0; color: var(--fg-2); font-size: .92rem; line-height: 1.55; }
.tpl__flow { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.tpl__flow li { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0 7px 26px; font-size: .86rem; color: var(--fg-2); }
.tpl__flow li::before { content: ""; position: absolute; left: 6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; background: var(--accent); }
.tpl__flow li::after { content: ""; position: absolute; left: 10.5px; top: calc(50% + 7px); height: calc(100% - 4px); width: 1px; background: var(--line); }
.tpl__flow li:last-child::after { display: none; }
.tpl__flow li[data-k="wait"]::before { background: transparent; border: 2px solid var(--muted); border-radius: 50%; }
.tpl__flow li[data-k="check"]::before { background: var(--r-mint); transform: rotate(45deg); border-radius: 2px; }
.tpl__flow li[data-k="end"]::before { background: var(--fg); border-radius: 50%; }
.tpl__flow code { font: 500 .74rem/1 var(--mono); color: var(--muted); }
.tpl__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tpl__tags li { padding: 3px 9px; border-radius: 999px; background: var(--bg-2); font: 500 .72rem/1.4 var(--mono); color: var(--fg-2); }

/* ---------- blog index: featured pair, then every post in a grid that grows ---------- */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--r-tile); color: inherit; text-decoration: none; box-shadow: var(--r-shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.bcard:hover, .bcard:focus-visible { transform: translateY(-3px); box-shadow: var(--act-glow); outline: none; }
.bcard__art { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.bcard__art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bcard:hover .bcard__art img { transform: scale(1.04); }
.bcard--night .bcard__art { background: #0B0D2A; }
.bcard__txt { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.bcard__k { display: flex; justify-content: space-between; gap: 10px; font: 600 .68rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bcard__k span + span { color: var(--muted); }
.bcard h3 { margin: 0; font: 400 1.6rem/1.05 var(--serif); }
.bcard p { margin: 0; color: var(--fg-2); font-size: .92rem; line-height: 1.55; }
.bcard__foot { margin-top: auto; padding-top: 10px; font-size: .8rem; color: var(--muted); }
.bnext { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 26px; border: 1px dashed color-mix(in srgb, var(--fg) 22%, transparent); border-radius: 24px; color: var(--fg-2); }
.bnext b { font: 400 1.6rem/1.05 var(--serif); color: var(--fg); }
.bnext ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.bnext li { display: flex; gap: 8px; }
.bnext li::before { content: "○"; color: var(--accent); }
.bidx .filters { margin-top: 56px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .t-blog, .t-docs { grid-column: span 12; grid-row: auto; }
  .t-ebooks { grid-column: span 6; }
  .t-guides, .t-gloss, .t-tpl, .t-play, .t-help { grid-column: span 6; }
  .read { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .read__toc { position: static; display: none; }
  .bgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .rhero { padding-top: 40px; }
  .rhero__in { grid-template-columns: 1fr; }
  .stack3d { height: 380px; margin-top: 8px; }
  .fl--book { width: 170px; height: 230px; } .fl--book b { font-size: 1.5rem; }
  .fl--code { width: 230px; font-size: .64rem; }
  .fl--post { width: 210px; } .fl--post img { height: 90px; }
  .fl--term { width: 190px; }
  .paths { grid-template-columns: 1fr; }
  .bookband { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; gap: 0; }
  .docs__nav { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 0 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .docs__nav p { display: none; }
  .docs__nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; }
  .gl-l { grid-template-columns: 1fr; gap: 12px; }
  .gl-l > h2 { position: static; font-size: 2.6rem; }
  .ecover { grid-template-columns: 1fr; gap: 24px; justify-items: start; }
  .ecover .book3d { width: 180px; }
  .t-soon { flex-direction: column; align-items: flex-start; }
  .t-soon p { margin-left: 0; }
}
@media (max-width: 640px) {
  .bento { gap: 12px; }
  .t-ebooks, .t-guides, .t-gloss, .t-tpl, .t-play, .t-help { grid-column: span 12; }
  .t-blog__posts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 20px; border-radius: 22px; }
  .bgrid { grid-template-columns: 1fr; }
  .gl-l dl { grid-template-columns: 1fr; }
  .nextread { grid-template-columns: 1fr; }
  .nextread a:last-child { text-align: left; }
  .stack3d { height: 300px; }
  .fl--term, .fl--flow, .rsearch kbd { display: none; }
  .fl--book { left: 4%; top: 6%; width: 150px; height: 200px; }
  .fl--code { right: 0; top: 0; width: 200px; }
  .fl--post { right: 4%; bottom: 2%; width: 190px; }
  .sec-h { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .fl, .mini-flow i { animation: none; } .stack3d__in { transition: none; } }

/* print: e-books and guides save cleanly as PDF */
@media print {
  .bhdr, .foot, .join, .read__toc, .read__acts, .nextread, .phead::before, .crumbs, .toast { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .read { display: block; padding: 0; }
  .prose-r { color: #111; font-size: 11pt; }
  .prose-r h2 { break-after: avoid; }
  .chap { break-before: page; }
  .book3d__b { transform: none; }
  .callout { border: 1px solid #ccc; }
}

/* ---------- blog index: the featured posts slide by themselves (pause on hover, focus or the pause action) ---------- */
.slides { position: relative; }
.slides__view { overflow: hidden; border-radius: 30px; touch-action: pan-y; }
.slides__track { display: flex; transition: transform .8s cubic-bezier(.7, 0, .2, 1); will-change: transform; }
.slides__s { flex: 0 0 100%; min-width: 0; display: grid; transition: opacity .8s, filter .8s; }
.slides__s:not(.is-on) { opacity: .35; filter: saturate(.6); }
.slides .feat, .slides .night-card { margin: 0; height: 100%; }
.slides .feat:hover, .slides .night-card:hover, .slides .feat:focus-visible, .slides .night-card:focus-visible { transform: none; }
.slides__ctl { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.slides__dots { display: flex; gap: 8px; }
.slides__dot { position: relative; width: 44px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; overflow: hidden; }
.slides__dot::before { content: ""; position: absolute; inset: -10px 0; }
.slides__dot i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; border-radius: inherit; background: var(--accent); }
.slides__dot[aria-selected="true"] i { transform: scaleX(1); }
.slides.is-playing .slides__dot[aria-selected="true"] i { transform: scaleX(0); animation: slide-fill var(--slide-ms, 6000ms) linear forwards; }
.slides.is-held .slides__dot[aria-selected="true"] i { animation-play-state: paused; }
.slides__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes slide-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .slides__track, .slides__s { transition: none; } }
.slides [data-act="pause"] .licon--play, .slides [data-act="pause"][aria-pressed="true"] .licon--pause { display: none; }
.slides [data-act="pause"][aria-pressed="true"] .licon--play { display: inline-block; }
.slides .feat__art, .slides .night-card__art { height: clamp(260px, 34vw, 440px); overflow: hidden; }
.slides .feat__art img, .slides .night-card__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (max-width: 860px) { .slides .feat__art, .slides .night-card__art { height: 240px; } }
/* the Hey Tomo logo (Suraj's own file, unchanged) on e-book covers */
.book3d__logo { display: block; width: auto; height: 26px; margin: 0 0 10px -4px; }
.fl--book .book3d__logo { height: 20px; margin-bottom: 8px; }
