/* VILLAIN theme layout. Tokens and components come from design-system.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); }
a:hover { color: var(--ink); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--ember); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.v-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Layout */
.v-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 120px; }
.v-narrow { max-width: 1040px; }
.v-section { padding: 104px 0; }
.v-section-tight { padding: 56px 0; }
.v-dark { background: var(--ink); color: var(--paper); }
.v-muted { color: var(--mute-d); }
.v-slate { color: var(--slate); }
.v-ember { color: var(--ember); }
.v-ox { color: var(--oxblood); }
.v-strong { font-weight: 600; text-decoration: none; }
.v-center { justify-content: center; }
.v-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.v-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.v-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.v-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v-center-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 48px; }
.v-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.v-section-head > div { display: flex; flex-direction: column; gap: 14px; }
.v-show-sm { display: none; }
.eyebrow { display: block; }

/* Header */
.v-header { background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--line-d); position: sticky; top: 0; z-index: 40; }
.admin-bar .v-header { top: 32px; }
.v-header-inner { height: 80px; display: flex; align-items: center; gap: 56px; }
.v-brand { color: var(--paper); text-decoration: none; }
.v-brand .logo { font-size: 28px; }
.v-brand:hover { color: var(--paper); }
.v-nav { display: flex; gap: 32px; height: 80px; flex: 1; }
.v-nav .nav-link { display: flex; align-items: center; color: var(--mute-d); border-bottom: 2px solid transparent; padding-top: 2px; }
.v-nav .nav-link:hover { color: var(--paper); }
.v-nav .nav-link.is-active { color: var(--paper); border-bottom-color: var(--ember); }
.v-header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.v-header-actions .nav-link { color: var(--paper); }
.chip { color: var(--paper); }
.chip:hover { color: var(--paper); background: #3a302c; }
.v-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--oxblood); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; text-decoration: none; flex-shrink: 0; }
.v-avatar:hover { color: var(--paper); }
.v-menu-btn, .v-menu-close { display: none; background: none; border: 0; color: var(--paper); padding: 8px; margin-right: -8px; cursor: pointer; min-width: 44px; min-height: 44px; }

/* Mobile menu */
.v-menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper); overflow-y: auto; padding: 0 24px 32px; }
.v-menu[hidden] { display: none; }
.v-menu-top { height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-d); }
.v-menu-top .logo { font-size: 24px; }
.v-menu-close { display: inline-flex; }
.v-menu-user { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line-d); }
.v-menu-user div { display: flex; flex-direction: column; flex: 1; font-size: 14px; }
.v-menu-user span { color: var(--mute-d); font-size: 13px; }
.v-menu-links { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line-d); }
.v-menu-links a { color: var(--paper); text-decoration: none; font-family: 'DM Serif Display', Georgia, serif; font-size: 26px; padding: 10px 0; }
.v-menu-sub a { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; color: var(--mute-d); }
.v-menu-foot { color: var(--mute-d); font-size: 13px; margin-top: 20px; }
.v-menu-foot a { color: var(--ember); }
body.v-menu-open { overflow: hidden; }

/* Footer */
.v-footer { background: var(--ink); color: var(--paper); padding-top: 72px; }
.v-footer-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr 2fr; gap: 24px; }
.v-footer-brand { display: flex; flex-direction: column; gap: 14px; padding-right: 48px; }
.v-footer-logo { font-size: 34px; }
.v-footer-line { margin: 0; font-style: italic; font-size: 19px; color: var(--mute-d); }
.v-footer-label { color: var(--paper); font-weight: 500; margin-top: 6px; }
.v-footer-col { display: flex; flex-direction: column; gap: 14px; }
.v-footer-col .eyebrow { color: var(--mute-d); }
.v-footer-col a { color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 500; }
.v-footer-col a:hover { color: var(--ember); }
.v-footer-bottom { margin-top: 64px; min-height: 72px; border-top: 1px solid var(--line-d); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--mute-d); flex-wrap: wrap; padding: 16px 0; }
.v-elitico { letter-spacing: 0.12em; }
.v-footer .v-elitico strong { color: var(--paper); }

/* Newsletter form */
.v-subscribe { display: flex; gap: 8px; width: 100%; max-width: 520px; }
.v-subscribe .input { min-height: 48px; }
.v-subscribe-dark .input { min-height: 44px; }
.v-subscribe-dark .btn { min-height: 44px; }
.v-form-note { font-size: 13px; margin: 8px 0 0; color: var(--ok); }
.v-dark .v-form-note, .v-footer .v-form-note { color: #9FD3AE; }
.v-form-err { color: var(--oxblood) !important; }

/* Home: hero */
.v-hero { padding: 88px 0 0; }
.v-hero-grid { display: grid; grid-template-columns: 7fr 1fr 4fr; gap: 24px; min-height: 672px; }
.v-hero-copy { grid-column: 1; display: flex; flex-direction: column; gap: 28px; padding: 24px 0 88px; }
.v-hero-logo { margin: 0; font-size: clamp(64px, 10.5vw, 150px); color: var(--paper); }
.v-hero-line { margin: 0; font-style: italic; font-size: 34px; line-height: 1.3; }
.v-hero-lead { font-size: 18px; max-width: 560px; }
.v-hero-art { grid-column: 3; display: flex; justify-content: flex-end; align-items: flex-start; }
.v-cover, .v-cover-img { width: 100%; max-width: 400px; aspect-ratio: 400 / 580; border-radius: 10px; }
.v-cover { background: var(--ink-2); border: 1px solid var(--line-d); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.v-cover .logo { font-size: 40px; color: var(--paper); }
.v-cover .f-read { color: var(--mute-d); font-style: italic; }
.v-cover-img { object-fit: cover; }

/* Home: stats */
.v-stats { background: var(--ink-2); color: var(--paper); }
.v-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 150px; align-items: center; gap: 16px; }
.v-stats-grid div { display: flex; flex-direction: column; gap: 4px; }
.v-stats-grid .f-display { font-size: 40px; line-height: 1.1; }
.v-stats-grid .small { color: var(--mute-d); }

/* Home: story */
.v-story { display: grid; grid-template-columns: 7fr 1fr 4fr; gap: 24px; }
.v-story-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.v-story-copy .h2 { max-width: 640px; }
.v-story-copy .prose { max-width: 620px; }
.v-quote { grid-column: 3; margin: 72px 0 0; border-radius: 14px; padding: 40px 36px; display: flex; flex-direction: column; gap: 20px; align-self: start; }
.v-quote-mark { font-size: 64px; line-height: 0.6; color: var(--ember); }
.v-quote blockquote { margin: 0; font-size: 28px; line-height: 1.4; }

/* Home: chapter cards */
.v-card-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 96px 0; }
.v-chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.v-chapter-card { overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.v-chapter-card .art { height: 200px; border-radius: 0; padding: 0; overflow: hidden; }
.v-chapter-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.v-chapter-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.art.has-img { padding: 0; background: var(--ink-2); overflow: hidden; }
.art.has-img img { width: 100%; height: 100%; object-fit: cover; }
.art .art-mark { font-size: 22px; color: #5a4d47; }

/* Steps */
.v-step { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.v-step .h3 { font-size: 24px; }
.v-step-n { font-size: 40px; color: var(--ember); line-height: 1; }
.v-three + .v-actions { margin-top: 48px; }

/* Home: share */
.v-share { padding: 96px 0; }
.v-share-grid { display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 24px; align-items: center; }
.v-share-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.v-share-cards { grid-column: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.v-share-cards .card-dark { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.v-share-cards .f-display { font-size: 44px; line-height: 1.1; }
.v-share-note { grid-column: 1 / -1; margin-top: 6px; }

/* Home: newsletter */
.v-newsletter { padding: 88px 0; }
.v-newsletter .v-center-head { margin-bottom: 0; }

/* Page hero */
.v-page-hero { padding: 80px 0 56px; }
.v-page-hero-sm { padding: 64px 0 32px; }
.v-page-hero .h1 { margin-top: 12px; }
.v-page-hero .lead { margin-top: 14px; max-width: 640px; }
.v-page-body { padding-bottom: 96px; }
.v-entry > * + * { margin-top: 1em; }

/* Chapters page */
.v-chapters-hero { display: grid; grid-template-columns: 7fr 1fr 4fr; gap: 24px; align-items: start; }
.v-progress-card { grid-column: 3; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--white); }
.v-bar { height: 8px; background: #EFE5D2; border-radius: 99px; overflow: hidden; }
.v-bar span { display: block; height: 100%; background: var(--ember); }
.v-chapter-list { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 72px; display: flex; flex-direction: column; }
.v-chapter-row { display: grid; grid-template-columns: 72px 120px minmax(0, 1fr) 180px 110px; align-items: center; column-gap: 24px; min-height: 104px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
a.v-chapter-row:hover { background: var(--card); color: var(--ink); }
.v-row-num { font-size: 30px; color: var(--ember); padding-left: 8px; }
.v-row-soon .v-row-num { color: #BFB3A0; }
.v-row-soon { color: var(--slate); }
.v-row-art { height: 72px; padding: 0; overflow: hidden; }
.v-row-art .art-mark { font-size: 12px; }
.v-row-text { display: flex; flex-direction: column; gap: 4px; }
.v-row-title { font-size: 26px; line-height: 1.2; }
.v-row-cta { justify-self: end; }
.v-next-books { border-radius: 16px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 104px; }
.v-next-books > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.v-next-books .h2 { font-size: 38px; }
.v-next-books .v-subscribe { max-width: 440px; }

/* Reading */
.v-readbar { position: sticky; top: 80px; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .v-readbar { top: 112px; }
.v-readbar-inner { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.v-readbar-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-readbar-tools { display: flex; gap: 6px; }
.v-readbar .btn-ghost { color: var(--ink); min-height: 40px; }
.v-aa { font-family: 'EB Garamond', Georgia, serif; font-size: 20px !important; }
.v-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.v-progress span { display: block; height: 100%; width: 0; background: var(--ember); }
.v-reader-settings { border-top: 1px solid var(--line); background: var(--card); }
.v-reader-settings .v-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.v-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.v-seg button { background: var(--white); border: 0; border-right: 1px solid var(--line); min-height: 40px; min-width: 48px; padding: 0 12px; cursor: pointer; color: var(--ink); font-family: 'EB Garamond', Georgia, serif; }
.v-seg button:last-child { border-right: 0; }
.v-seg button[data-size="s"] { font-size: 15px; }
.v-seg button[data-size="m"] { font-size: 19px; }
.v-seg button[data-size="l"] { font-size: 23px; }
.v-seg button[data-mode] { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; }
.v-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.v-chapter { padding-bottom: 96px; }
.v-chapter-head { padding: 88px 24px 48px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.v-chapter-head .h1 { font-size: clamp(40px, 6vw, 76px); max-width: 960px; }
.v-chapter-tags { display: flex; gap: 10px; align-items: center; }
.v-chapter-art { width: min(880px, calc(100% - 48px)); margin: 0 auto; }
.v-chapter-art img { width: 100%; border-radius: 10px; }
.v-chapter-text { width: min(680px, calc(100% - 48px)); margin: 64px auto 0; font-size: var(--read-size, 21px); }
.v-chapter-text .vt-chapter-meta { display: none; }
.v-chapter-text .vt-teaser { position: relative; max-height: 420px; overflow: hidden; }
.v-chapter-text .vt-teaser::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(to bottom, rgba(242, 233, 216, 0), var(--paper)); }
.v-chapter-text hr, .v-divider { border: 0; display: flex; justify-content: center; gap: 14px; padding: 28px 0 40px; margin: 0; }
.v-chapter-text hr::before { content: '◆   ◆   ◆'; color: var(--ember); font-size: 11px; letter-spacing: 6px; white-space: pre; }
.v-chapter-text .vt-unlock, .v-chapter-text .vt-chapter-end, .v-chapter-text .vt-share, .v-chapter-text .vt-card { font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.55; }
.v-chapter-text .vt-unlock { margin-top: 8px; padding: 40px; text-align: center; border: 1.5px solid var(--ember); background: var(--white); border-radius: 12px; }
.v-chapter-text .vt-unlock-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
.v-chapter-text .vt-chapter-end { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.v-chapter-text .vt-chapter-end .vt-btn { font-size: 16px; }
.v-chapter-text .vt-follow { color: var(--slate); text-align: center; font-size: 13px; }
.v-chapter-text p { margin: 0 0 1.05em; }

/* Night mode (reading) */
body.is-night { --paper: #1A1614; --card: #241E1B; --line: #3D3430; --white: #241E1B; --ink: #E9E0CF; --slate: #BFB5A4; background: #1A1614; color: #E9E0CF; }
body.is-night .v-header, body.is-night .v-footer { --ink: #1A1614; --paper: #F2E9D8; }
body.is-night .v-readbar { background: #1A1614; }
body.is-night .v-chapter-text .vt-teaser::after { background: linear-gradient(to bottom, rgba(26, 22, 20, 0), #1A1614); }
body.is-night a { color: var(--ember); }
body.is-night .v-seg button { color: #E9E0CF; }
body.is-night .v-seg button[aria-pressed="true"] { background: var(--ember); color: #1A1614; }
body.is-night .tag-free { background: #203A2A; color: #9FD3AE; }

/* About */
.v-about-hero { padding: 112px 0 104px; }
.v-about-hero-copy { max-width: 880px; display: flex; flex-direction: column; gap: 24px; }
.v-about-hero .h1 { font-size: clamp(40px, 5vw, 68px); }
.v-about-hero .lead { max-width: 720px; }
.v-section .h2 + .v-books { margin-top: 40px; }
.v-books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.v-book { border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.v-book .tag { margin-top: auto; align-self: flex-start; }
.v-author { display: grid; grid-template-columns: 4fr 1fr 7fr; gap: 24px; align-items: start; }
.v-author-mark { height: 400px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.v-author-mark .logo { font-size: 52px; }
.v-author-mark .f-read { font-style: italic; font-size: 18px; }
.v-author-copy { grid-column: 3; display: flex; flex-direction: column; gap: 20px; padding-top: 24px; align-items: flex-start; }
.v-author-copy .prose { max-width: 640px; }
.v-about-end { border-top: 1px solid var(--line); padding-top: 72px; padding-bottom: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.v-about-quote { margin: 0; font-style: italic; font-size: 34px; max-width: 820px; line-height: 1.3; }
.v-about-end-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.v-about-end-cta strong { color: var(--ink); }

/* Contact */
.v-contact { display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 24px; }
.v-contact-info { display: flex; flex-direction: column; gap: 20px; }
.v-contact-card { padding: 20px 22px; display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); background: var(--white); }
.v-contact-card .icon { color: var(--oxblood); flex-shrink: 0; }
.v-contact-card > span { display: flex; flex-direction: column; gap: 2px; }
.v-contact-card:hover { color: var(--ink); border-color: var(--ember); }
.v-contact-address { display: flex; gap: 8px; align-items: flex-start; }
.v-contact-address .icon { flex-shrink: 0; margin-top: 2px; }
.v-contact-form-col { grid-column: 3; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 100px; }
.v-contact-form { padding: 36px; display: flex; flex-direction: column; gap: 18px; background: var(--white); }
.v-contact-form .btn { align-self: flex-start; }
.v-select { position: relative; display: block; }
.v-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.v-select .icon { position: absolute; right: 14px; top: 15px; color: var(--slate); pointer-events: none; }
.v-quick { border-top: 1px solid var(--line); padding-top: 48px; padding-bottom: 96px; display: grid; grid-template-columns: 320px repeat(3, minmax(0, 1fr)); gap: 24px; align-items: center; }
.v-quick > div { display: flex; flex-direction: column; gap: 6px; }
.v-quick .h3 { font-size: 26px; }
.v-quick .card { padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.v-quick .card:hover { border-color: var(--ember); color: var(--ink); }

/* Tokens */
.v-tokens-hero { display: grid; grid-template-columns: 7fr 1fr 4fr; gap: 24px; align-items: center; }
.v-token-card { grid-column: 3; border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.v-token-big { display: flex; align-items: baseline; gap: 12px; }
.v-token-big .f-display { font-size: 56px; line-height: 1; }
.v-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.v-way { padding: 36px; border-radius: 12px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.v-way.card { background: var(--white); }
.v-way .table { margin: 4px 0 8px; }
.v-earn-rows { width: 100%; display: flex; flex-direction: column; }
.v-earn-rows div { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-d); gap: 16px; }
.v-earn-rows .f-display { font-size: 28px; }
.v-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 56px; padding-bottom: 8px; }
.v-facts div { display: flex; flex-direction: column; gap: 6px; }
.v-faq-wrap { display: grid; grid-template-columns: 4fr 1fr 7fr; gap: 24px; }
.v-faq { grid-column: 3; border-top: 1px solid var(--line); }
.v-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.v-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq details[open] summary .icon { transform: rotate(180deg); }
.v-faq details p { margin-top: 10px; max-width: 640px; }
.v-cta-band { border-radius: 16px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 104px; }

/* Policies */
.v-policy { display: grid; grid-template-columns: 3fr 1fr 8fr; gap: 24px; padding-bottom: 104px; }
.v-policy-nav { position: sticky; top: 104px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.v-policy-nav a { padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.v-policy-nav a:hover { background: var(--card); }
.v-policy-nav p { margin: 16px 14px 0; }
.v-policy-body { grid-column: 3; max-width: 760px; }
.v-policy-body section { scroll-margin-top: 110px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.v-policy-body section:last-child { border-bottom: 0; }
.v-policy-body h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 34px; margin: 0 0 16px; }
.v-policy-body h3 { font-family: 'Inter', system-ui, sans-serif; font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.v-policy-body p, .v-policy-body li { font-size: 16px; line-height: 1.7; }
.v-policy-body p { margin: 0 0 14px; }
.v-policy-body ul { margin: 0 0 14px; padding-left: 22px; }
.v-policy-body li { margin-bottom: 6px; }

/* 404 */
.v-404 { padding: 120px 0; text-align: center; }
.v-404 .v-wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.v-404-num { font-size: clamp(96px, 14vw, 160px); line-height: 1; color: var(--ember); }
.v-404-line { margin: 0; font-style: italic; font-size: 22px; }

/* Plugin screens inside the theme */
.v-entry .vt-card { border-radius: 12px; }
.v-entry h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 26px; margin: 36px 0 12px; }
.v-entry .vt-notice { font-family: 'Inter', system-ui, sans-serif; }

/* Tablet */
@media (max-width: 1200px) {
	.v-wrap { padding: 0 48px; }
	.v-header-inner { gap: 32px; }
	.v-nav { gap: 22px; }
	.v-footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
	.v-footer-brand { grid-column: 1 / -1; padding-right: 0; }
	.v-hero-grid, .v-story, .v-chapters-hero, .v-tokens-hero, .v-contact, .v-author, .v-faq-wrap, .v-policy { grid-template-columns: 7fr 5fr; }
	.v-hero-art, .v-quote, .v-progress-card, .v-token-card, .v-contact-form-col, .v-author-copy, .v-faq, .v-policy-body { grid-column: 2; }
	.v-share-grid { grid-template-columns: 1fr; }
	.v-share-cards { grid-column: 1; }
	.v-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.v-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.v-quick > div { grid-column: 1 / -1; }
	.v-chapter-row { grid-template-columns: 56px 96px minmax(0, 1fr) 150px 96px; column-gap: 16px; }
}

@media (max-width: 960px) {
	.v-nav, .v-hide-sm { display: none !important; }
	.v-show-sm { display: inline; }
	.v-menu-btn { display: inline-flex; }
	.v-header-inner { height: 64px; }
	.v-brand .logo { font-size: 24px; }
	.v-readbar { top: 64px; }
}

/* Mobile */
@media (max-width: 760px) {
	.v-wrap { padding: 0 20px; }
	.v-section { padding: 56px 0; }
	.v-section-tight { padding: 32px 0; }
	.h1 { font-size: 40px; }
	.h2 { font-size: 32px; }
	.h3 { font-size: 24px; }
	.lead { font-size: 20px; }
	.prose { font-size: 19px; }
	.v-hero { padding-top: 40px; }
	.v-hero-grid, .v-story, .v-chapters-hero, .v-tokens-hero, .v-contact, .v-author, .v-faq-wrap, .v-policy, .v-three, .v-two, .v-chapter-grid, .v-ways, .v-share-cards, .v-books { grid-template-columns: 1fr; }
	.v-hero-art, .v-quote, .v-progress-card, .v-token-card, .v-contact-form-col, .v-author-copy, .v-faq, .v-policy-body, .v-share-cards { grid-column: 1; }
	.v-hero-grid { min-height: 0; }
	.v-hero-copy { gap: 20px; padding: 0; }
	.v-hero-line { font-size: 26px; }
	.v-hero-art { justify-content: flex-start; padding-bottom: 40px; }
	.v-cover, .v-cover-img { max-width: none; aspect-ratio: 16 / 10; }
	.v-hero .v-actions .btn, .v-cta-band .btn { width: 100%; }
	.v-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 28px; padding-bottom: 28px; row-gap: 20px; }
	.v-stats-grid .f-display { font-size: 32px; }
	.v-quote { margin-top: 8px; padding: 28px 24px; }
	.v-quote blockquote { font-size: 23px; }
	.v-card-band, .v-share, .v-newsletter { padding: 56px 0; }
	.v-section-head { flex-direction: column; align-items: flex-start; }
	.v-share-cards .card-dark { flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; }
	.v-share-cards .f-display { font-size: 34px; min-width: 110px; }
	.v-center-head { margin-bottom: 28px; }
	.v-subscribe { flex-direction: column; }
	.v-subscribe .btn { width: 100%; }
	.v-footer { padding-top: 48px; }
	.v-footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
	.v-footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 40px; }
	.v-page-hero { padding: 40px 0 32px; }
	.v-chapter-row { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; min-height: 76px; }
	.v-row-art, .v-row-cta { display: none; }
	.v-row-num { font-size: 22px; padding-left: 0; }
	.v-row-title { font-size: 20px; }
	.v-next-books, .v-cta-band { flex-direction: column; align-items: stretch; padding: 32px 24px; margin-bottom: 56px; }
	.v-next-books .h2 { font-size: 30px; }
	.v-readbar-title { display: none; }
	.v-chapter-head { padding: 48px 20px 32px; }
	.v-chapter-text { margin-top: 40px; width: calc(100% - 40px); font-size: var(--read-size, 19px); }
	.v-chapter-art { width: calc(100% - 40px); }
	.v-chapter-text .vt-unlock { padding: 28px 20px; }
	.v-about-hero { padding: 48px 0 56px; }
	.v-author-mark { height: 220px; }
	.v-about-end { flex-direction: column; align-items: stretch; padding-top: 48px; padding-bottom: 56px; }
	.v-about-quote { font-size: 28px; }
	.v-about-end-cta { align-items: stretch; }
	.v-contact-form { padding: 24px 20px; }
	.v-contact-form .btn { width: 100%; }
	.v-quick { grid-template-columns: 1fr; padding-bottom: 56px; }
	.v-token-big .f-display { font-size: 42px; }
	.v-way { padding: 24px 20px; }
	.v-way .table th:nth-child(3), .v-way .table td:nth-child(3) { display: none; }
	.v-facts { grid-template-columns: 1fr 1fr; }
	.v-policy-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
	.v-policy-nav a { background: var(--card); border: 1px solid var(--line); font-size: 13px; padding: 8px 12px; }
	.v-policy-nav p { display: none; }
	.v-policy-body h2 { font-size: 28px; }
}

/* Fine-tuning */
.v-faq-wrap > div:first-child, .v-tokens-hero > div:first-child, .v-chapters-hero > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.vt-btn:not(.vt-btn-ghost) { color: var(--ink) !important; }
body.is-night .vt-btn:not(.vt-btn-ghost) { color: #1A1614 !important; }

/* Illustrations: pen-and-ink on white, always shown whole (never cropped). */
.art.has-img { background: #FFFFFF; }
.art.has-img img { object-fit: contain; }
.v-chapter-art { width: min(560px, calc(100% - 48px)); background: #FFFFFF; border-radius: 10px; overflow: hidden; }
.v-chapter-art img { border-radius: 0; }
.v-cover-img { object-fit: cover; background: #F2E9D8; }
