/* phase 9: bold Home, Explore page, Read chooser. Reader stays calm. */
:root { --hx-r: 26px; --hx-ink: #1d1b2e; }
html.v2-xp-on #main, html.v2-xp-on .v2-ref { display: none !important; }
.hx { margin: 0 -18px; }
/* hero */
.hx-hero { position: relative; min-height: 470px; margin: 0 !important; padding: 0 !important; border-radius: 0 0 34px 34px !important; overflow: hidden; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hx-hero::after { display: none !important; }
.hx-scene { position: absolute; inset: -40px 0 0; width: 100%; height: calc(100% + 40px); z-index: -1; }
.hx-scene g { will-change: transform; }
.hx-star { animation: hxtw 3s ease-in-out infinite alternate; } @keyframes hxtw { from { opacity: .3; } to { opacity: 1; } }
.hx-hero-in { padding: 96px 24px 34px; width: 100%; will-change: transform, opacity; }
.hx-date { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.hx-greet { margin: 4px 0 18px; font: 700 2.1rem/1.1 var(--serif); color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.18); }
.hx-votd { background: rgba(255,255,255,.14) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.25); border-radius: 24px; padding: 18px 20px !important; margin: 0 !important; color: #fff; }
.hx-votd blockquote { margin: 6px 0 14px !important; font: 500 1.42rem/1.38 var(--serif) !important; color: #fff !important; border: 0 !important; padding: 0 !important; }
.hx-eyebrow { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.hx-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: var(--hx-ink) !important; font-weight: 700; font-size: 14px; cursor: pointer; }
.hx-day .hx-greet, .hx-dawn .hx-greet { text-shadow: 0 2px 20px rgba(20,20,60,.35); }
/* header over hero */
html.v2-home-on:not(.hx-scrolled) header.top { background: transparent !important; box-shadow: none !important; border-color: transparent !important; color: #fff; }
html.v2-home-on:not(.hx-scrolled) header.top button, html.v2-home-on:not(.hx-scrolled) header.top a { color: #fff !important; }
html.v2-home-on header.top { position: fixed !important; top: 0; left: 0; right: 0; z-index: 30; transition: background-color .3s, color .3s; }
@media (min-width: 960px) { html.v2-home-on header.top { left: var(--v2-side, 240px); } }
html.v2-home-on #v2-home-view { padding-top: 0 !important; margin-top: 0 !important; }
/* sections */
.hx-body { padding: 8px 0 30px; }
.hx-sec { margin-top: 30px; }
.hx-sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 20px; margin-bottom: 12px; }
.hx-sec-h h2 { margin: 0; font: 700 1.45rem/1.2 var(--serif); }
.hx-see { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 4px; cursor: pointer; }
.hx-recent, .hx-sec > .v2-home-empty { margin: 0 20px; }
/* carousels */
.hx-car { display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 12px; scroll-padding: 0 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hx-car::-webkit-scrollbar { display: none; }
.hx-car-pick { grid-auto-columns: 84%; } .hx-car-tall { grid-auto-columns: 70%; } .hx-car-books { grid-auto-columns: 46%; }
@media (min-width: 700px) { .hx-car-pick { grid-auto-columns: 340px; } .hx-car-tall { grid-auto-columns: 280px; } .hx-car-books { grid-auto-columns: 200px; } }
.hx-card { position: relative; scroll-snap-align: start; display: flex; align-items: flex-end; min-height: 200px; padding: 0; border: 0; border-radius: var(--hx-r); overflow: hidden; background: var(--c); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--c) 70%, #000); isolation: isolate; }
.hx-art { position: absolute; inset: 0; z-index: -2; will-change: transform; transform: scale(1.12); }
.hx-art .v2-art { width: 100%; height: 100%; filter: saturate(1.5) contrast(1.05); opacity: .9; }
.hx-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, transparent) 0%, color-mix(in srgb, var(--c) 70%, #000 10%) 62%, color-mix(in srgb, var(--c) 92%, #000 25%) 100%); }
.hx-card-t { display: grid; gap: 4px; padding: 18px 18px 18px; width: 100%; }
.hx-card-t strong { font: 700 1.45rem/1.2 var(--serif); }
.hx-card-t small { font-size: 14px; line-height: 1.4; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-continue { min-height: 230px; }
.hx-prog { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.28); margin-top: 10px; overflow: hidden; } .hx-prog i { display: block; height: 100%; background: #fff; border-radius: 6px; }
.hx-weekcard { background: linear-gradient(140deg, #e7a91e, #c4553a); cursor: default; }
.hx-weekcard .hx-count { font-size: 1.9rem; margin-right: 4px; font-variant-numeric: tabular-nums; }
.hx-weekcard .v2-week-days { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 12px; text-align: center; }
.hx-weekcard .v2-week-day i { background: rgba(255,255,255,.25); width: 28px; height: 28px; }
.hx-weekcard .v2-week-day.on i { background: #fff; box-shadow: none; }
.hx-weekcard .v2-week-day.today i { outline-color: #fff; }
.hx-weekcard .v2-week-day small { color: rgba(255,255,255,.85); }
.hx-tall { min-height: 340px; } .hx-tall .hx-card-t strong { font-size: 1.6rem; }
.hx-tall .hx-card-t small { -webkit-line-clamp: 3; }
.hx-person .hx-portrait { position: absolute; inset: 0 0 auto; height: 70%; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.35), transparent 60%); }
.hx-person .hx-portrait svg { width: 62%; height: auto; }
.hx-book { min-height: 230px; } .hx-book .hx-card-t strong { font-size: 1.25rem; }
/* bento */
.hx-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px; }
@media (min-width: 700px) { .hx-bento { grid-template-columns: repeat(3, 1fr); } }
.hx-tile { position: relative; overflow: hidden; display: grid; align-content: end; gap: 3px; min-height: 132px; padding: 16px; border: 0; border-radius: 22px; color: #fff; text-align: left; cursor: pointer; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 82%, #000)); box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--c) 80%, #000); isolation: isolate; }
.hx-wide { grid-column: span 2; min-height: 118px; }
.hx-tile strong { font-size: 17px; line-height: 1.25; } .hx-tile small { font-size: 13px; opacity: .9; line-height: 1.35; }
.hx-tile-glyph { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.hx-tile-glyph svg { width: 22px; height: 22px; color: #fff; stroke: #fff; }
.hx-tile-big { position: absolute; right: -18px; bottom: -22px; width: 120px; height: 120px; opacity: .16; z-index: -1; transform: rotate(-12deg); transition: transform .5s var(--spring); }
.hx-tile-big svg { width: 100%; height: 100%; color: #fff; stroke: #fff; }
.hx-tile:active .hx-tile-big { transform: rotate(-4deg) scale(1.08); }
.hx-tile .hx-tile-glyph + .hx-tile-big + strong { margin-top: 44px; }
/* explore page */
.hx-xp { padding: 8px 0 40px; }
.hx-xp-head { padding: 18px 20px 18px; } .hx-xp-head h1 { margin: 2px 0 6px; font: 700 2.3rem/1.1 var(--serif); }
.hx-xp-head .hx-eyebrow { color: var(--accent); } .hx-xp-sub { margin: 0; color: var(--muted); font-size: 16px; }
.hx-xp .hx-tile { min-height: 150px; } .hx-xp .hx-wide { min-height: 130px; }
/* chooser */
.hx-ch-continue { display: grid; gap: 2px; width: 100%; text-align: left; padding: 20px; margin-bottom: 16px; border: 0; border-radius: 22px; color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); cursor: pointer; box-shadow: 0 10px 24px -14px var(--c); }
.hx-ch-continue strong { font: 700 1.6rem/1.2 var(--serif); } .hx-ch-go { font-weight: 700; justify-self: end; margin-top: -24px; }
.hx-ch-find { width: 100%; min-height: 46px; margin-bottom: 4px; }
.hx-ch-h { font: 700 1.2rem var(--serif); margin: 20px 0 10px; }
.hx-ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px) { .hx-ch-grid { grid-template-columns: repeat(3, 1fr); } }
.hx-ch-book { display: grid; gap: 2px; text-align: left; min-height: 64px; padding: 12px 14px; border: 0; border-radius: 16px; cursor: pointer; color: var(--ink); background: color-mix(in srgb, var(--c) 12%, var(--paper)); border-left: 5px solid var(--c); }
.hx-ch-book strong { font-size: 16px; } .hx-ch-book small { color: var(--muted); font-size: 12.5px; }
.hx-ch-bookhead { display: grid; gap: 4px; padding: 20px; border-radius: 22px; color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); margin-bottom: 16px; }
.hx-ch-bookhead strong { font: 700 1.8rem var(--serif); } .hx-ch-bookhead .hx-pill { justify-self: start; margin-top: 8px; }
.hx-ch-chapters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.hx-ch-chapters button { aspect-ratio: 1; border: 0; border-radius: 16px; font-size: 18px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--c) 12%, var(--paper)); cursor: pointer; animation: v2up .4s var(--spring) backwards; animation-delay: calc(var(--i) * 12ms); }
.hx-ch-chapters button:active { background: var(--c); color: #fff; }
/* dark mode */
html[data-theme=dark] .hx-hero .hx-scene { filter: brightness(.7) saturate(1.1); }
html[data-theme=dark] .hx-card, html[data-theme=dark] .hx-tile { box-shadow: none; }
html[data-theme=dark] .hx-tile { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 85%, #fff 5%), color-mix(in srgb, var(--c) 70%, #000)); }
html[data-theme=dark] .hx-ch-book, html[data-theme=dark] .hx-ch-chapters button { background: color-mix(in srgb, var(--c) 25%, var(--paper)); }
@media (prefers-reduced-motion: reduce) { .hx-star, .hx-ch-chapters button { animation: none !important; } }
/* iteration 2 */
html.v2.v2-home-on:not(.hx-scrolled) .top { background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent !important; }
html.v2.v2-home-on:not(.hx-scrolled) .top .v2-icon { color: #fff !important; }
.hx-hero { min-height: 0; }
.hx-hero-in { padding: 92px 22px 28px; }
.hx-greet { font-size: 2rem; margin-bottom: 14px; }
.hx-votd blockquote { font-size: 1.22rem !important; line-height: 1.42 !important; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.hx-art { mix-blend-mode: soft-light; opacity: .95; }
.hx-art .v2-art { filter: saturate(1.6) contrast(1.15); opacity: 1; }
.hx-card { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 72%, #fff 10%), var(--c) 55%, color-mix(in srgb, var(--c) 80%, #000)); }
.hx-shade { background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--c) 60%, #000 20%) 100%); opacity: .85; }
.hx-person .hx-portrait { mix-blend-mode: normal; }
.hx-sec { margin-top: 26px; }
.hx-art-raw { mix-blend-mode: normal !important; }
@media (max-width: 959px) { .hx { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); } }
.hx-car { touch-action: pan-x pan-y; } .hx-hero, .hx-bento, .hx-card, .hx-tile { touch-action: pan-x pan-y; }
/* condensed Home: indigo + gold, neutral cards */
:root { --hx-indigo: #3a3f9e; --hx-gold: #c08a14; }
html[data-theme=dark] { --hx-indigo: #8e93f0; --hx-gold: #e2b350; }
.hx-sec { margin-top: 28px; }
.hx-pick { margin: 0 20px; border-radius: 24px; background: var(--paper); box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 80%, transparent), 0 12px 30px -22px rgba(30,30,80,.35); overflow: hidden; }
.hx-pick .hx-eyebrow { color: var(--hx-indigo); opacity: 1; }
.hx-pick-main { display: grid; gap: 4px; width: 100%; text-align: left; padding: 20px 20px 18px; border: 0; background: none; color: var(--ink); cursor: pointer; position: relative; }
.hx-pick-main strong { font: 700 1.6rem/1.2 var(--serif); }
.hx-pick-main small { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.hx-pick .hx-prog { background: color-mix(in srgb, var(--hx-indigo) 14%, transparent); margin-top: 10px; } .hx-pick .hx-prog i { background: var(--hx-indigo); }
.hx-go { position: absolute; right: 20px; top: 20px; color: var(--hx-indigo); font-weight: 700; font-size: 15px; }
.hx-pick-plan { position: relative; display: grid; gap: 2px; width: 100%; text-align: left; padding: 14px 20px; border: 0; border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent); background: color-mix(in srgb, var(--hx-gold) 8%, var(--paper)); color: var(--ink); cursor: pointer; }
.hx-pick-plan .hx-eyebrow { color: var(--hx-gold); } .hx-pick-plan strong { font-size: 16px; } .hx-pick-plan .hx-go { top: 50%; transform: translateY(-50%); color: var(--hx-gold); font-size: 20px; }
.hx-week { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 16px; border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.hx-week-l { display: grid; gap: 2px; } .hx-week-l strong { font-size: 14px; color: var(--muted); font-weight: 600; } .hx-week .hx-count { color: var(--ink); font-size: 1.2rem; margin-right: 2px; }
.hx-week .v2-week-days { display: flex; gap: 6px; margin: 0; }
.hx-week .v2-week-day i { width: 22px; height: 22px; margin: 0 auto 2px; background: color-mix(in srgb, var(--hx-indigo) 10%, var(--paper-2)); }
.hx-week .v2-week-day.on i { background: var(--hx-indigo); }
.hx-week .v2-week-day.today i { outline: 2px solid var(--hx-gold); outline-offset: 2px; }
.hx-week .v2-week-day small { font-size: 10.5px; }
/* Today cards: only indigo/gold */
.hx-car-tall { grid-auto-columns: 74%; } .hx-tall { min-height: 300px; }
.hx-art { opacity: .55; }
.hx-person { background: linear-gradient(160deg, #4a4fb0, #2b2f7a) !important; }
/* compact explore grid */
.hx-minigrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px; }
@media (min-width: 700px) { .hx-minigrid { grid-template-columns: repeat(3, 1fr); } }
.hx-mini { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; min-height: 72px; padding: 12px 14px; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 80%, transparent); }
.hx-mini-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.hx-mini-ic svg { width: 22px; height: 22px; }
.hx-indigo .hx-mini-ic { background: color-mix(in srgb, var(--hx-indigo) 13%, transparent); color: var(--hx-indigo); }
.hx-gold .hx-mini-ic { background: color-mix(in srgb, var(--hx-gold) 16%, transparent); color: var(--hx-gold); }
.hx-mini-ic svg, .hx-mini-ic svg * { stroke: currentColor; }
.hx-mini strong { font-size: 15.5px; align-self: end; } .hx-mini small { font-size: 12.5px; color: var(--muted); align-self: start; line-height: 1.3; }
.hx-body { padding-bottom: 36px; }
.hx-see { color: var(--hx-indigo); }
.hx-mini small, .hx-mini strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-mini strong { white-space: normal; line-height: 1.2; font-size: 15px; } .hx-mini { column-gap: 10px; padding: 12px; }
/* Explore: search, one featured card, grouped lists */
.hx-xp { padding: 6px 20px 40px; }
.hx-xp-head { padding: 12px 0 10px; } .hx-xp-head h1 { margin: 0; font: 700 2.1rem/1.1 var(--serif); }
.hx-xfind { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.hx-xfeat { position: relative; display: grid; gap: 4px; width: 100%; text-align: left; margin: 16px 0 6px; padding: 22px 20px; border: 0; border-radius: 22px; color: #fff; cursor: pointer; background: linear-gradient(145deg, #4c52b8, var(--hx-indigo, #3a3f9e) 60%, #2a2e78); box-shadow: 0 14px 30px -20px #2a2e78; }
.hx-xfeat .hx-eyebrow { color: #f2cf7a; opacity: 1; } .hx-xfeat strong { font: 700 1.7rem/1.15 var(--serif); } .hx-xfeat small { opacity: .9; font-size: 14.5px; }
.hx-xfeat-go { position: absolute; right: 20px; top: 22px; font-weight: 700; }
.hx-xgroup { margin-top: 24px; } .hx-xgroup h2 { margin: 0 0 8px 4px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: inherit; }
.hx-xlist { border-radius: 18px; background: var(--paper); overflow: hidden; box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 80%, transparent); }
.hx-xrow { display: grid; grid-template-columns: 40px 1fr 16px; gap: 14px; align-items: center; width: 100%; min-height: 64px; padding: 10px 16px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.hx-xlist .hx-xrow + .hx-xrow { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.hx-xrow-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--hx-indigo, #3a3f9e) 12%, transparent); color: var(--hx-indigo, #3a3f9e); }
.hx-xrow-ic svg { width: 22px; height: 22px; } .hx-xrow-ic svg * { stroke: currentColor; }
.hx-xrow-t { display: grid; gap: 2px; min-width: 0; } .hx-xrow-t strong { font-size: 16.5px; } .hx-xrow-t small { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.hx-xrow-go { color: var(--muted); font-size: 20px; }
.hx-xbible { margin-top: 10px; border-radius: 16px; background: var(--paper); }
.hx-xempty { color: var(--muted); margin: 16px 4px; }
.hx-xrow[hidden], .hx-xgroup[hidden], .hx-xempty[hidden] { display: none !important; }
