.home-page {
    --home-bg: #ffffff;
    --home-bg-alt: #fafafa;
    --home-text: #1c2024;
    --home-muted: var(--kuehn-site-muted, #6c7075);
    --home-border: var(--kuehn-site-border, #e9e9ec);
    --home-accent: #8b6f5a;
    --status-ongoing-bg: #e6f7ed;
    --status-ongoing-text: #1d6b3d;
    --status-ongoing-dot: #1d6b3d;
    --status-hiatus-bg: #fef3e0;
    --status-hiatus-text: #8a6514;
    --status-hiatus-dot: #8a6514;
    --status-completed-bg: #e8f0fe;
    --status-completed-text: #1a4d8f;
    --status-completed-dot: #1a4d8f;
    color: var(--home-text);
    background: var(--home-bg);
}

.home-page__container {
    width: min(var(--layout-wide), calc(100% - var(--space-page-gutter) * 2));
    margin-inline: auto;
}

.home-page__hero {
    padding: var(--space-hero) 0 var(--space-section);
    background: linear-gradient(160deg, #f6f2ee 0%, #fbfaf8 55%, #ffffff 100%);
    border-bottom: 1px solid var(--home-border);
    position: relative;
    overflow: hidden;
}

.home-page__hero-bg-shape {
    position: absolute;
    border-radius: var(--radius-pill);
    pointer-events: none;
    filter: blur(1px);
}

.home-page__hero-bg-shape--1 {
    width: 360px;
    height: 360px;
    right: -80px;
    top: -110px;
    background: radial-gradient(circle, color-mix(in srgb, var(--home-accent) 24%, #ffffff) 0%, rgba(255, 255, 255, 0) 68%);
}

.home-page__hero-bg-shape--2 {
    width: 300px;
    height: 300px;
    left: -90px;
    bottom: -130px;
    background: radial-gradient(circle, rgba(158, 126, 99, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
}

.home-page__hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 28px;
    align-items: center;
}

.home-page__hero-copy {
    min-width: 0;
}

.home-page__eyebrow {
    margin: 0 0 10px;
    color: var(--home-muted);
    font-size: 0.9rem;
}

.home-page__title {
    margin: 0;
    font-family: var(--wp--preset--font-family--serif, Georgia, serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.home-page__subtitle {
    margin: 18px 0 0;
    max-width: 760px;
    color: var(--home-muted);
    font-size: 1.05rem;
}

.home-page__hero-highlights {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid color-mix(in srgb, var(--home-accent) 16%, #ffffff);
    background: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    color: var(--home-text);
}

.home-pill svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-page__hero-actions {
    margin-top: var(--space-element);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-page__hero-visual {
    display: flex;
    justify-content: flex-end;
}

.home-hero-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 12px;
    align-items: end;
    width: min(100%, 430px);
}

.home-hero-visual__main {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15);
}

.home-hero-visual__main img {
    width: 100%;
    aspect-ratio: 16 / 25;
    object-fit: cover;
    display: block;
}

.home-hero-visual__main-title {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
}

.home-hero-visual__stack {
    display: grid;
    gap: 10px;
}

.home-hero-visual__mini {
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.home-hero-visual__mini img {
    width: 100%;
    aspect-ratio: 16 / 25;
    object-fit: cover;
    display: block;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    padding: 11px 18px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-btn:hover {
    transform: translateY(-1px);
}

.home-btn:focus-visible {
    outline: 2px solid var(--kuehn-focus-ring, #8b6f5a);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--kuehn-focus-ring, #8b6f5a) 22%, transparent);
}

.home-btn--primary {
    background: var(--home-accent);
    color: #fff;
}

.home-btn--secondary {
    background: #fff;
    color: var(--home-text);
    border: 1px solid var(--home-border);
}

.home-page__quick-actions {
    padding: var(--space-element) 0;
    border-bottom: 1px solid var(--home-border);
}

.home-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-action-card {
    border: 1px solid var(--home-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcff 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 230px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.home-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.11);
    border-color: color-mix(in srgb, var(--home-accent) 20%, var(--home-border));
}

.home-action-card:focus-visible {
    outline: 2px solid var(--kuehn-focus-ring, #8b6f5a);
    outline-offset: 3px;
    border-color: color-mix(in srgb, var(--kuehn-focus-ring, #8b6f5a) 42%, var(--home-border));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--kuehn-focus-ring, #8b6f5a) 18%, transparent);
}

.home-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--action-tint-top, rgba(255, 255, 255, 0.7)) 0%, var(--action-tint-bottom, rgba(255, 255, 255, 0.95)) 100%);
    pointer-events: none;
}

.home-action-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--action-accent, var(--home-accent));
}

.home-action-card > * {
    position: relative;
    z-index: 1;
}

.home-action-card__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.home-action-card__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    color: var(--action-accent, var(--home-accent));
    background: color-mix(in srgb, var(--action-accent, var(--home-accent)) 20%, #ffffff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--action-accent, var(--home-accent)) 30%, #ffffff);
    flex-shrink: 0;
}

.home-action-card__icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-action-card__head-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-action-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    color: color-mix(in srgb, var(--action-accent, var(--home-accent)) 60%, #1c2024);
}

.home-action-card__subtitle {
    color: var(--home-muted);
    font-size: 0.84rem;
}

.home-action-card__media {
    margin-top: auto;
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--action-accent, var(--home-accent)) 10%, #ffffff) 0%, color-mix(in srgb, var(--action-accent, var(--home-accent)) 4%, #f8f8fa) 100%);
    border: 1px solid color-mix(in srgb, var(--action-accent, var(--home-accent)) 18%, #eceff3);
}

.home-action-card__cover {
    width: 62px;
    aspect-ratio: 16 / 25;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    flex-shrink: 0;
}

.home-action-card__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-action-card__eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--home-muted);
}

.home-action-card__meta strong {
    margin-top: 4px;
    font-size: 0.98rem;
    line-height: 1.25;
}

.home-action-card__meta small {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--home-muted);
}

.home-action-card--continue .home-action-card__media {
    background: linear-gradient(180deg, #fdf6f2 0%, #faf1ea 100%);
}

.home-action-card--latest .home-action-card__media {
    background: linear-gradient(180deg, #f1f3ff 0%, #edf0ff 100%);
}

.home-action-card--start .home-action-card__media {
    background: linear-gradient(180deg, #fdf6f2 0%, #faf1ea 100%);
}

.home-action-card--continue {
    --action-accent: var(--home-accent, #8b6f5a);
    --action-tint-top: rgba(139, 111, 90, 0.08);
    --action-tint-bottom: rgba(255, 255, 255, 0.92);
}

.home-action-card--latest {
    --action-accent: var(--kuehn-action-accent-latest, #667eea);
    --action-tint-top: rgba(102, 126, 234, 0.08);
    --action-tint-bottom: rgba(255, 255, 255, 0.92);
}

.home-action-card--start {
    --action-accent: var(--home-accent, #8b6f5a);
    --action-tint-top: rgba(139, 111, 90, 0.08);
    --action-tint-bottom: rgba(255, 255, 255, 0.92);
}

/* Empty state inside Quick-Action cards */
.home-action-card__empty-state {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--action-accent, var(--home-accent)) 8%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--action-accent, var(--home-accent)) 16%, #e8eaee);
    min-height: 112px; /* match chapter media box height (92px cover + 2×10px padding) */
}

.home-action-card__empty-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--home-muted);
}

.home-action-card__empty-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--action-accent, var(--home-accent)) 90%, #1c2024);
    background: color-mix(in srgb, var(--action-accent, var(--home-accent)) 10%, #ffffff);
    border: 1.5px solid color-mix(in srgb, var(--action-accent, var(--home-accent)) 38%, transparent);
    transition: background-color 0.15s ease, transform 0.18s ease;
}

.home-action-card__empty-cta:hover {
    background: color-mix(in srgb, var(--action-accent, var(--home-accent)) 18%, #ffffff);
    transform: translateY(-1px);
}

.home-action-card__empty-cta:focus-visible,
.home-featured-chapter:focus-visible {
    outline: 2px solid var(--kuehn-focus-ring, #8b6f5a);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--kuehn-focus-ring, #8b6f5a) 18%, transparent);
}

/* Update list – distinct excerpt style */
.home-update-list__excerpt {
    display: block;
    margin-top: 5px;
    font-size: 0.84rem;
    color: var(--home-muted);
    line-height: 1.45;
}

.home-page__section {
    padding: var(--space-section) 0;
}

.home-page__section--alt {
    background: var(--home-bg-alt);
}

.home-page__section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.home-page__section-head h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.home-page__section-head a,
.home-page__section-head span {
    color: var(--home-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Tab navigation — Stories section */
.home-tabs {
    display: flex;
    gap: 4px;
    align-items: center;
}

.home-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: transparent;
    font-size: clamp(1.2rem, 1.8vw, 1.7rem);
    font-weight: 700;
    font-family: inherit;
    color: var(--home-muted);
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    line-height: 1.2;
}

.home-tab:hover {
    color: var(--home-text);
    background: var(--home-bg-alt);
}

.home-tab.is-active {
    color: var(--home-text);
    background: var(--home-bg);
    border-color: var(--home-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[data-site-theme-resolved="dark"] .home-tab {
    color: rgba(255, 255, 255, 0.4);
}

[data-site-theme-resolved="dark"] .home-tab.is-active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: none;
}

.home-tab__hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--home-muted);
    opacity: 0.75;
}

.home-tab-panel {
    animation: home-tab-fadein 0.22s ease;
}

@keyframes home-tab-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-last-read {
    border: 1px solid var(--home-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    margin-bottom: 18px;
}

.home-last-read__cover {
    width: 58px;
    aspect-ratio: 16 / 25;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    flex-shrink: 0;
    position: relative;
}

.home-last-read__cover-wrap {
    position: relative;
    display: inline-flex;
}

.home-last-read__cover-wrap::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-md);
    background: radial-gradient(circle, color-mix(in srgb, var(--home-accent) 30%, transparent) 0%, transparent 72%);
    z-index: -1;
    opacity: 0.55;
}

.home-last-read__label {
    margin: 0 0 6px;
    color: var(--home-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-last-read h3 {
    margin: 0;
    font-size: 1.1rem;
}

.home-last-read p {
    margin: 6px 0 0;
    color: var(--home-muted);
}

.home-last-read__hint {
    font-size: 0.85rem;
}

.home-book-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-book-grid--six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home-book-grid--rail {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.home-book-card {
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.home-book-card__cover-wrap {
    display: block;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-book-card:hover .home-book-card__cover-wrap {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.14);
}

.home-book-card__cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 25;
    object-fit: cover;
    background: #eaecef;
}

.home-book-card__cover--placeholder {
    background: linear-gradient(135deg, #d7dce3 0%, #edf0f5 100%);
}

.home-book-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.home-book-card__title {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.home-book-card__genre {
    display: block;
    margin-top: 4px;
    color: var(--home-muted);
    font-size: 0.85rem;
}

.home-chapter-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--home-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}

.home-chapter-list__item + .home-chapter-list__item {
    border-top: 1px solid #f0f0f3;
}

.home-chapter-list__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 12px 16px;
}

.home-chapter-list__book-cover {
    width: 40px;
    aspect-ratio: 16 / 25;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.home-chapter-list__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-chapter-list__link:hover {
    background: #fafafa;
}

.home-chapter-list__title {
    display: block;
    font-weight: 600;
}

.home-chapter-list__meta {
    display: block;
    margin-top: 4px;
    color: var(--home-muted);
    font-size: 0.86rem;
}

.home-chapter-list__meta-row {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--home-muted);
    font-size: 0.8rem;
}

.home-chapter-list__sep {
    opacity: 0.65;
}

.home-access-badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 3px 8px;
    font-size: 0.73rem;
    font-weight: 600;
}

.home-access-badge--free {
    background: #ebf5ef;
    color: #1d5d3d;
}

.home-access-badge--preview,
.home-access-badge--supporter {
    background: #fef7ec;
    color: #7a5c1d;
}

.home-access-badge--premium {
    background: #f3eefa;
    color: #4c2b8a;
}

[data-site-theme-resolved="dark"] .home-access-badge--free {
    background: #1c3d2a;
    color: #93dfb3;
}

[data-site-theme-resolved="dark"] .home-access-badge--preview,
[data-site-theme-resolved="dark"] .home-access-badge--supporter {
    background: #3e3219;
    color: #f1d79a;
}

[data-site-theme-resolved="dark"] .home-access-badge--premium {
    background: #3a2c5c;
    color: #d5c0ff;
}

.home-chapter-list__from-reading {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 3px 8px;
    background: color-mix(in srgb, var(--home-accent) 11%, #ffffff);
    color: color-mix(in srgb, var(--home-accent) 75%, #222222);
    font-size: 0.73rem;
    font-weight: 600;
}

.home-genre-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-genre-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--home-border);
    padding: 10px 14px 10px 10px;
    text-decoration: none;
    color: var(--home-text);
    background: #fff;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-genre-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
    border-color: color-mix(in srgb, var(--home-accent) 25%, var(--home-border));
}

.home-genre-chip__covers {
    display: flex;
    gap: -6px;
}

.home-genre-chip__cover {
    width: 28px;
    aspect-ratio: 16 / 25;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-right: -8px;
    border: 1.5px solid #fff;
}

.home-genre-chip__cover:last-child {
    margin-right: 0;
}

.home-genre-chip__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 4px;
}

.home-genre-chip__name {
    font-weight: 600;
    line-height: 1.2;
}

.home-genre-chip__count {
    font-size: 0.78rem;
    color: var(--home-muted);
}

.home-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-path-card {
    border: 1px solid var(--home-border);
    border-radius: var(--radius-md);
    padding: 16px;
    background: #fff;
}

.home-path-card h3 {
    margin: 0;
    font-size: 1rem;
}

.home-path-card p {
    margin: 8px 0 0;
    color: var(--home-muted);
    font-size: 0.9rem;
}

.home-path-card ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.home-path-card li + li {
    margin-top: 6px;
}

.home-path-card a {
    color: var(--home-text);
    text-decoration: none;
}

.home-page__cta-band {
    padding: var(--space-block) 0;
    border-top: 1px solid var(--home-border);
}

.home-page__cta-inner {
    border: 1px solid var(--home-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
}

.home-page__cta-inner h2 {
    margin: 0;
    font-size: 1.2rem;
}

.home-empty-state {
    border: 1px dashed var(--home-border);
    border-radius: var(--radius-md);
    padding: 16px;
    background: #fff;
}

.home-empty-state p,
.home-empty-state__text {
    margin: 0;
    color: var(--home-muted);
}

.book-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.85);
    color: #1c2024;
}

.book-status-badge--ongoing {
    background: var(--status-ongoing-bg);
    color: var(--status-ongoing-text);
}

.book-status-badge--hiatus {
    background: var(--status-hiatus-bg);
    color: var(--status-hiatus-text);
}

.book-status-badge--completed {
    background: var(--status-completed-bg);
    color: var(--status-completed-text);
}

.book-status-badge__dot {
    flex-shrink: 0;
    line-height: 1;
}

.book-status-badge--ongoing .book-status-badge__dot {
    color: var(--status-ongoing-dot);
}

.book-status-badge--hiatus .book-status-badge__dot {
    color: var(--status-hiatus-dot);
}

.book-status-badge--completed .book-status-badge__dot {
    color: var(--status-completed-dot);
}

@media (max-width: 1100px) {
    .home-page__hero-layout {
        grid-template-columns: 1fr;
    }

    .home-page__hero-visual {
        justify-content: flex-start;
    }

    .home-book-grid--six {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-book-grid,
    .home-book-grid--rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-page__container {
        width: min(var(--layout-wide), calc(100% - var(--space-page-gutter) * 2));
    }

    .home-page__hero {
        padding: var(--space-hero) 0 var(--space-section);
    }

    .home-page__hero-highlights {
        gap: 8px;
    }

    .home-page__hero-actions,
    .home-page__cta-inner {
        width: 100%;
    }

    .home-page__hero-actions .home-btn,
    .home-page__cta-inner .home-btn {
        width: 100%;
    }

    .home-pill {
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    .home-page__hero-visual {
        display: none;
    }

    .home-action-grid {
        grid-template-columns: 1fr;
    }

    .home-action-card {
        min-height: 200px;
    }

    .home-action-card__cover {
        width: 56px;
    }

    .home-book-grid,
    .home-book-grid--six,
    .home-path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .home-book-grid--rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(150px, 58vw);
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .home-book-grid--rail .home-book-card {
        scroll-snap-align: start;
    }

    .home-book-grid--six {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(135px, 46vw);
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .home-book-grid--six .home-book-card {
        scroll-snap-align: start;
    }

    .home-last-read,
    .home-page__cta-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .home-last-read__cover {
        width: 52px;
    }
}

/* Featured chapter banner */
.home-featured-chapter {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--home-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-featured-chapter::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--home-accent);
    border-radius: 0 2px 2px 0;
}

.home-featured-chapter:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    border-color: color-mix(in srgb, var(--home-accent) 22%, var(--home-border));
}

.home-featured-chapter__cover-wrap {
    flex-shrink: 0;
}

.home-featured-chapter__cover {
    width: 64px;
    aspect-ratio: 16 / 25;
    border-radius: var(--radius-sm);
    object-fit: cover;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.home-featured-chapter__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-featured-chapter__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--home-accent);
    font-weight: 600;
}

.home-featured-chapter__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    display: block;
}

.home-featured-chapter__book {
    color: var(--home-muted);
    font-size: 0.88rem;
    display: block;
}

.home-featured-chapter__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--home-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.home-featured-chapter__cta {
    flex-shrink: 0;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    background: var(--home-accent);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    align-self: center;
}

@media (max-width: 768px) {
    .home-featured-chapter__cta {
        display: none;
    }
}
