@import url('https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

.ap-home-page {
    --ap-cream: #fbf8f4;
    --ap-paper: #fffdfb;
    --ap-ink: #2e2a29;
    --ap-muted: #766e68;
    --ap-gold: #a87943;
    --ap-gold-deep: #956b38;
    --ap-line: #e8dfd6;
    --ap-soft-gold: #f8f0e5;
    --ap-serif: "Cormorant Garamond", "Baskerville", Georgia, serif;
    --ap-sans: "Manrope", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--ap-cream);
    color: var(--ap-ink);
    font-family: var(--ap-sans);
    overflow: hidden;
    padding: 0 clamp(1rem, 4vw, 2.5rem) 2.5rem;
}

.ap-home-page *,
.ap-home-page *::before,
.ap-home-page *::after {
    box-sizing: border-box;
}

.ap-home-page a {
    color: inherit;
}

.ap-site-header,
.ap-editorial-hero,
.ap-benefit-strip,
.ap-library-section,
.ap-story-grid,
.ap-reading-footer {
    margin-inline: auto;
    max-width: 1240px;
}

.ap-site-header {
    align-items: center;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr auto 1fr;
    padding: 1.1rem 0 0.45rem;
    position: relative;
    z-index: 5;
}

.ap-brand,
.ap-header-actions,
.ap-main-nav,
.ap-hero-actions,
.ap-video-link,
.ap-benefit-item,
.ap-section-heading,
.ap-book-actions,
.ap-stat-row,
.ap-review-author,
.ap-reading-footer {
    align-items: center;
    display: flex;
}

.ap-brand {
    gap: 0.72rem;
    text-decoration: none;
    width: max-content;
}

.ap-brand-logo-image {
    display: block;
    height: auto;
    max-height: 74px;
    mix-blend-mode: multiply;
    object-fit: contain;
    object-position: left center;
    width: min(292px, 42vw);
}

.ap-brand-mark-image {
    display: block;
    flex: 0 0 58px;
    height: 74px;
    mix-blend-mode: multiply;
    object-fit: contain;
    width: 58px;
}

.ap-brand-copy {
    display: grid;
    gap: 0.1rem;
}

.ap-brand-copy strong {
    font-family: var(--ap-serif);
    font-size: 1.62rem;
    font-weight: 600;
    line-height: 1;
}

.ap-brand-copy small {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    font-size: 0.92rem;
    line-height: 1.15;
}

.ap-main-nav {
    gap: clamp(1rem, 2.2vw, 2.2rem);
    justify-content: center;
}

.ap-main-nav a,
.ap-login-link {
    color: #4f4945;
    font-size: 0.72rem;
    text-decoration: none;
    transition: color 180ms ease;
    white-space: nowrap;
}

.ap-main-nav a {
    padding: 0.85rem 0;
    position: relative;
}

.ap-main-nav a::before {
    background: rgba(168, 121, 67, 0.12);
    border-radius: 999px;
    content: "";
    inset: 0.48rem -0.72rem;
    opacity: 0;
    position: absolute;
    transform: scale(0.88);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: -1;
}

.ap-main-nav a:hover,
.ap-main-nav a:focus-visible,
.ap-login-link:hover,
.ap-login-link:focus-visible {
    color: var(--ap-gold-deep);
}

.ap-main-nav a:hover::before,
.ap-main-nav a:focus-visible::before,
.ap-main-nav a.is-pressing::before {
    opacity: 1;
    transform: scale(1);
}

.ap-main-nav a.is-pressing {
    transform: translateY(1px);
}

.ap-main-nav a.is-active::after {
    background: var(--ap-gold);
    bottom: 0.28rem;
    content: "";
    height: 1px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 22px;
}

.ap-header-actions {
    gap: 1.1rem;
    justify-content: flex-end;
}

.ap-account-menu {
    position: relative;
}

.ap-account-toggle {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    gap: 0.3rem;
    padding: 0;
}

.ap-account-toggle span {
    color: var(--ap-gold);
    font-size: 1rem;
    line-height: 0.7;
    transition: transform 180ms ease;
}

.ap-account-toggle[aria-expanded="true"] span {
    transform: rotate(180deg);
}

.ap-account-menu-panel {
    background: #fffdfb;
    border: 1px solid var(--ap-line);
    border-radius: 7px;
    box-shadow: 0 14px 34px rgba(70, 48, 31, 0.14);
    display: grid;
    gap: 0.12rem;
    min-width: 154px;
    padding: 0.34rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 30;
}

.ap-account-menu-panel[hidden] {
    display: none;
}

.ap-account-menu-panel a {
    border-radius: 4px;
    color: var(--ap-ink);
    font-family: var(--ap-serif);
    font-size: 0.86rem;
    padding: 0.58rem 0.7rem;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.ap-account-menu-panel a:hover,
.ap-account-menu-panel a:focus-visible {
    background: #f7f0e7;
    color: var(--ap-gold-deep);
    outline: none;
}

.ap-gold-button {
    align-items: center;
    background: linear-gradient(135deg, #b78a4e, #9e713b);
    border: 1px solid rgba(133, 87, 37, 0.18);
    border-radius: 5px;
    box-shadow: 0 8px 18px rgba(146, 102, 50, 0.12);
    color: #fff !important;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 1.1rem;
    justify-content: center;
    min-height: 35px;
    padding: 0.55rem 1.05rem;
    text-decoration: none;
    transition: box-shadow 180ms ease, transform 180ms ease, filter 180ms ease;
}

.ap-gold-button:hover,
.ap-gold-button:focus-visible {
    box-shadow: 0 12px 24px rgba(146, 102, 50, 0.2);
    filter: saturate(1.08);
    transform: translateY(-1px);
}

.ap-header-cta {
    min-width: 145px;
}

.ap-editorial-hero {
    align-items: center;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(380px, 0.9fr) minmax(560px, 1.1fr);
    min-height: 485px;
    padding: 1.7rem 0 0;
    position: relative;
}

.ap-hero-copy {
    padding: 2.2rem 0 3rem;
    position: relative;
    z-index: 2;
}

.ap-script-kicker {
    color: var(--ap-gold);
    font-family: "Segoe Script", "Segoe Print", "Brush Script MT", cursive;
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    font-style: normal;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 0.45rem;
}

.ap-hero-copy h1 {
    font-family: var(--ap-serif);
    font-size: clamp(3.6rem, 5.6vw, 5.8rem);
    font-weight: 400;
    letter-spacing: 0.045em;
    line-height: 0.78;
    margin: 0;
    text-transform: uppercase;
}

.ap-hero-copy h1 span {
    display: block;
}

.ap-hero-copy h1 em {
    display: inline-block;
    font-style: normal;
}

.ap-hero-copy h1 em {
    color: var(--ap-gold);
    margin-left: 0.02em;
}

.ap-hero-copy h1 b {
    color: var(--ap-gold);
    display: inline-block;
    font-family: var(--ap-serif);
    font-size: 0.48em;
    font-weight: 400;
    line-height: 0.8;
    margin-left: 0.14em;
    transform: translateY(-0.18em) rotate(-10deg);
}

.ap-heading-rule {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    margin: 1.25rem 0 1rem;
    width: min(325px, 85%);
}

.ap-heading-rule span {
    background: var(--ap-gold);
    height: 1px;
    opacity: 0.55;
    width: 100%;
}

.ap-heading-rule i {
    color: var(--ap-gold);
    font-size: 1.25rem;
    font-style: normal;
}

.ap-hero-lead {
    color: #5f5752;
    font-family: var(--ap-serif);
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0;
    max-width: 350px;
}

.ap-hero-actions {
    gap: 2.1rem;
    margin-top: 1.55rem;
}

.ap-video-link {
    color: #554d48;
    font-size: 0.72rem;
    gap: 0.75rem;
    line-height: 1.35;
    text-decoration: none;
}

.ap-video-link small {
    color: var(--ap-muted);
    font-size: 0.72rem;
}

.ap-play-icon {
    align-items: center;
    border: 1px solid var(--ap-gold);
    border-radius: 50%;
    color: var(--ap-gold);
    display: inline-flex;
    font-size: 0.62rem;
    height: 37px;
    justify-content: center;
    padding-left: 2px;
    width: 37px;
}

.ap-hero-visual {
    align-self: stretch;
    min-height: 520px;
    overflow: visible;
    position: relative;
}

.ap-hero-visual::before {
    background:
        linear-gradient(90deg, var(--ap-cream) 0%, rgba(251, 248, 244, 0.72) 10%, rgba(251, 248, 244, 0) 32%),
        linear-gradient(0deg, var(--ap-cream) 0%, rgba(251, 248, 244, 0) 20%);
    content: "";
    inset: 0 auto 0 -4rem;
    pointer-events: none;
    position: absolute;
    width: calc(100% + 8rem);
    z-index: 1;
}

.ap-hero-visual > img {
    display: block;
    height: 108%;
    object-fit: contain;
    object-position: center center;
    position: absolute;
    right: -1.5rem;
    top: -1.2rem;
    width: calc(100% + 3rem);
    z-index: 0;
}

.ap-benefit-strip {
    background: rgba(255, 253, 251, 0.85);
    border: 1px solid var(--ap-line);
    border-radius: 11px;
    box-shadow: 0 8px 25px rgba(90, 69, 52, 0.04);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0.1rem;
    padding: 0.85rem 1rem;
}

.ap-benefit-item {
    gap: 0.85rem;
    min-height: 54px;
    padding: 0.2rem 1.15rem;
}

.ap-benefit-item + .ap-benefit-item {
    border-left: 1px solid #eee5dc;
}

.ap-benefit-icon {
    align-items: center;
    background: #fcf5ea;
    border: 1px solid #f2e7d7;
    border-radius: 50%;
    color: var(--ap-gold-deep);
    display: inline-flex;
    flex: 0 0 51px;
    font-family: var(--ap-serif);
    font-size: 1.55rem;
    height: 51px;
    justify-content: center;
    line-height: 1;
}

.ap-benefit-item > span:last-child {
    display: grid;
    gap: 0.2rem;
}

.ap-benefit-item strong {
    font-family: var(--ap-serif);
    font-size: 1.05rem;
    font-weight: 600;
}

.ap-benefit-item small {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    font-size: 0.78rem;
    line-height: 1.15;
}

.ap-library-section {
    padding-top: 1.2rem;
}

.ap-section-heading {
    gap: 1.25rem;
}

.ap-section-heading h2,
.ap-story-panel h2 {
    font-family: var(--ap-serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    margin: 0;
}

.ap-section-line {
    background: var(--ap-line);
    flex: 1;
    height: 1px;
}

.ap-section-heading a {
    color: #5c554f;
    font-family: var(--ap-serif);
    font-size: 0.86rem;
    text-decoration: none;
    white-space: nowrap;
}

.ap-section-heading a span {
    color: var(--ap-gold);
    font-size: 1.2rem;
    margin-left: 0.35rem;
}

.ap-editorial-book-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0.75rem;
}

.ap-editorial-book-card {
    background: rgba(255, 253, 251, 0.67);
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.ap-editorial-book-card:hover {
    border-color: #d7c2a8;
    box-shadow: 0 14px 28px rgba(99, 70, 45, 0.1);
    transform: translateY(-2px);
}

.ap-editorial-book-link {
    display: grid;
    gap: 0.72rem;
    grid-template-columns: 40% minmax(0, 1fr);
    min-height: 173px;
    padding: 0.42rem;
    text-decoration: none;
}

.ap-cover-wrap {
    align-items: center;
    aspect-ratio: 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    overflow: hidden;
    padding: 0.55rem 0.4rem 0.65rem;
    position: relative;
    text-align: center;
}

.ap-cover-wrap::after {
    border: 1px solid rgba(255, 255, 255, 0.4);
    content: "";
    inset: 5px;
    pointer-events: none;
    position: absolute;
}

.ap-cover-dark {
    background: radial-gradient(circle at 50% 47%, rgba(185, 140, 81, 0.55), transparent 18%), linear-gradient(140deg, #2d2b2c, #50463e 62%, #161718);
    color: #f7e7d1;
}

.ap-cover-mist {
    background: radial-gradient(ellipse at 55% 58%, rgba(141, 120, 105, 0.4), transparent 37%), linear-gradient(150deg, #ede4d9, #d1c0ad);
    color: #5a4a3e;
}

.ap-cover-fog {
    background: radial-gradient(circle at 50% 57%, rgba(118, 128, 126, 0.48), transparent 38%), linear-gradient(150deg, #dfd9d0, #b7b4ac);
    color: #5e5a53;
}

.ap-cover-linen {
    background: radial-gradient(ellipse at 58% 63%, rgba(177, 138, 93, 0.24), transparent 33%), linear-gradient(150deg, #eee4d5, #dac9b5);
    color: #876b4f;
}

.ap-cover-wrap img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.ap-cover-wrap small,
.ap-cover-wrap strong,
.ap-cover-ornament {
    position: relative;
    z-index: 1;
}

.ap-cover-wrap small {
    font-family: var(--ap-serif);
    font-size: 0.42rem;
    letter-spacing: 0.12em;
}

.ap-cover-wrap strong {
    font-family: var(--ap-serif);
    font-size: 1rem;
    font-weight: 500;
    line-height: 0.98;
    max-width: 95%;
}

.ap-cover-ornament {
    font-size: 1.25rem;
    opacity: 0.75;
}

.ap-editorial-book-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.2rem 0.25rem 0.15rem 0;
}

.ap-editorial-book-content > strong {
    font-family: var(--ap-serif);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.02;
}

.ap-book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.38rem;
}

.ap-book-tags small {
    background: #f7f0e6;
    border-radius: 3px;
    color: #937453;
    font-family: var(--ap-serif);
    font-size: 0.54rem;
    line-height: 1;
    padding: 0.3rem 0.34rem;
}

.ap-book-summary {
    color: #776f69;
    font-family: var(--ap-serif);
    font-size: 0.78rem;
    line-height: 1.18;
    margin-top: 0.65rem;
}

.ap-book-actions {
    gap: 0.4rem;
    margin-top: auto;
}

.ap-book-actions span {
    border: 1px solid #e3d9cf;
    border-radius: 4px;
    color: #554d48;
    font-family: var(--ap-serif);
    font-size: 0.72rem;
    padding: 0.36rem 0.55rem;
    text-align: center;
}

.ap-book-actions span:first-child {
    background: linear-gradient(135deg, #b1844b, #9c703b);
    border-color: transparent;
    color: #fff;
}

.ap-book-actions--single span {
    width: 100%;
}

.ap-story-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.65fr);
    margin-top: 0.85rem;
}

.ap-story-panel {
    background: rgba(255, 253, 251, 0.68);
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    min-height: 224px;
    overflow: hidden;
    padding: 1.1rem 1.2rem;
    position: relative;
}

.ap-about-content {
    align-items: center;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 0.9fr 1.1fr;
    margin-top: 0.35rem;
}

.ap-portrait-placeholder {
    align-items: flex-end;
    background: radial-gradient(ellipse at 52% 27%, #f7f2ed 0 13%, transparent 14%), radial-gradient(ellipse at 50% 48%, #b8a99b 0 34%, transparent 35%), linear-gradient(145deg, #e9dfd4, #c8b9a8);
    border: 8px solid #fffaf5;
    box-shadow: 0 5px 12px rgba(96, 72, 52, 0.12);
    display: flex;
    height: 165px;
    justify-content: center;
    margin: 0 auto;
    max-width: 165px;
    overflow: hidden;
    transform: rotate(-3deg);
    width: 100%;
}

.ap-portrait-placeholder span {
    color: rgba(94, 72, 55, 0.58);
    font-family: var(--ap-serif);
    font-size: 4.5rem;
    line-height: 0.75;
}

.ap-portrait-placeholder img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: rotate(3deg) scale(1.08);
    width: 100%;
}

.ap-story-panel p {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    font-size: 0.9rem;
    line-height: 1.28;
    margin: 0.85rem 0 0;
}

.ap-stat-row {
    gap: 1.25rem;
    margin-top: 0.8rem;
}

.ap-stat-row span {
    display: grid;
    gap: 0.1rem;
}

.ap-stat-row b {
    font-family: var(--ap-serif);
    font-size: 1.15rem;
    font-weight: 600;
}

.ap-stat-row small {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    font-size: 0.68rem;
}

.ap-stat-row--single {
    gap: 0;
}

.ap-outline-button {
    border: 1px solid #e2d7cd;
    border-radius: 4px;
    display: inline-flex;
    font-family: var(--ap-serif);
    font-size: 0.75rem;
    gap: 1rem;
    margin-top: 0.6rem;
    padding: 0.45rem 0.65rem;
    text-decoration: none;
}

.ap-outline-button span {
    color: var(--ap-gold);
    font-size: 1rem;
}

.ap-subscribe-panel {
    display: flex;
    justify-content: space-between;
}

.ap-subscribe-panel > div:first-child {
    max-width: 68%;
    position: relative;
    z-index: 1;
}

.ap-subscribe-panel p {
    max-width: 295px;
}

.ap-subscribe-form {
    display: flex;
    margin-top: 0.75rem;
    max-width: 325px;
}

.ap-subscribe-form input {
    background: #fffdfb;
    border: 1px solid #e3d7cc;
    border-radius: 4px 0 0 4px;
    color: var(--ap-ink);
    font-family: var(--ap-serif);
    font-size: 0.78rem;
    min-width: 0;
    padding: 0.65rem 0.7rem;
    width: 56%;
}

.ap-subscribe-form button {
    background: linear-gradient(135deg, #b1844b, #9c703b);
    border: 0;
    border-radius: 0 4px 4px 0;
    color: #fff;
    font-family: var(--ap-serif);
    font-size: 0.78rem;
    padding: 0 0.75rem;
}

.ap-form-note {
    color: #a49a91;
    display: block;
    font-family: var(--ap-serif);
    font-size: 0.68rem;
    margin-top: 0.45rem;
}

.ap-subscribe-visual {
    bottom: -0.6rem;
    height: 245px;
    mix-blend-mode: multiply;
    object-fit: cover;
    object-position: 68% center;
    pointer-events: none;
    position: absolute;
    right: -0.5rem;
    width: 245px;
    z-index: 0;
}

.ap-review-panel {
    min-height: 266px;
}

.ap-review-carousel {
    margin-top: 0.85rem;
    min-height: 145px;
    position: relative;
}

.ap-review-slide {
    animation: ap-review-out 240ms ease both;
    background: rgba(255, 253, 251, 0.72);
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    margin: 0;
    min-width: 0;
    padding: 1rem;
}

.ap-review-slide.is-active {
    animation: ap-review-in 520ms cubic-bezier(.2,.8,.2,1) both;
    display: flex;
}

.ap-review-slide blockquote {
    color: #655c56;
    font-family: var(--ap-serif);
    font-size: 0.98rem;
    line-height: 1.42;
    margin: 0.75rem 0 0;
}

.ap-review-author {
    gap: 0.62rem;
    margin: 0;
    min-width: 0;
}

.ap-review-avatar {
    align-items: center;
    background: #e9e1d9;
    border-radius: 50%;
    color: #8e7965;
    display: inline-flex;
    flex: 0 0 42px;
    font-family: var(--ap-serif);
    font-size: 1.05rem;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    width: 42px;
}

.ap-review-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ap-review-avatar span {
    display: block;
    line-height: 1;
}

.ap-review-name {
    color: var(--ap-ink);
    font-family: var(--ap-serif);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.05;
    text-decoration: none;
}

.ap-review-dots {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    margin-top: 0.9rem;
}

.ap-review-dots button {
    appearance: none;
    background: #dfd4ca;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 7px;
    padding: 0;
    transition: background 180ms ease, transform 180ms ease, width 180ms ease;
    width: 7px;
}

.ap-review-dots button:hover,
.ap-review-dots button:focus-visible {
    background: #c6a57e;
    outline: none;
    transform: translateY(-1px);
}

.ap-review-dots button.is-active {
    background: var(--ap-gold);
    width: 22px;
}

@keyframes ap-review-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ap-review-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.ap-reading-footer {
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    color: #655c56;
    gap: 1.1rem;
    justify-content: center;
    margin-top: 0.85rem;
    min-height: 38px;
    padding: 0.4rem 1rem;
}

.ap-reading-footer span {
    font-family: var(--ap-serif);
    font-size: 0.84rem;
    white-space: nowrap;
}

.ap-reading-footer i {
    background: var(--ap-line);
    display: block;
    height: 18px;
    width: 1px;
}

.screen-reader-text {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

body.ap-dark-mode .ap-home-page {
    --ap-cream: #211f1e;
    --ap-paper: #2a2725;
    --ap-ink: #f3ece5;
    --ap-muted: #b7aaa0;
    --ap-line: #49413b;
    --ap-soft-gold: #443729;
    background: var(--ap-cream);
}

body.ap-dark-mode .ap-home-page .ap-brand-copy small,
body.ap-dark-mode .ap-home-page .ap-main-nav a,
body.ap-dark-mode .ap-home-page .ap-login-link,
body.ap-dark-mode .ap-home-page .ap-hero-lead,
body.ap-dark-mode .ap-home-page .ap-story-panel p,
body.ap-dark-mode .ap-home-page .ap-book-summary,
body.ap-dark-mode .ap-home-page .ap-benefit-item small {
    color: var(--ap-muted);
}

body.ap-dark-mode .ap-home-page .ap-benefit-strip,
body.ap-dark-mode .ap-home-page .ap-editorial-book-card,
body.ap-dark-mode .ap-home-page .ap-story-panel {
    background: rgba(42, 39, 37, 0.94);
    border-color: var(--ap-line);
}

body.ap-dark-mode .ap-home-page .ap-account-menu-panel {
    background: var(--ap-paper);
    border-color: var(--ap-line);
}

body.ap-dark-mode .ap-home-page .ap-account-menu-panel a:hover,
body.ap-dark-mode .ap-home-page .ap-account-menu-panel a:focus-visible {
    background: #393431;
}

body.ap-dark-mode .ap-home-page .ap-cover-mist,
body.ap-dark-mode .ap-home-page .ap-cover-fog,
body.ap-dark-mode .ap-home-page .ap-cover-linen {
    filter: brightness(0.75) saturate(0.8);
}

.ap-dashboard-page {
    min-height: 100vh;
}

.ap-dashboard-hero,
.ap-dashboard-grid,
.ap-dashboard-import,
.ap-dashboard-columns {
    margin-inline: auto;
    max-width: 1240px;
}

.ap-dashboard-hero {
    align-items: end;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 4.5rem) 0 1rem;
}

.ap-dashboard-hero h1 {
    font-family: var(--ap-serif);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 400;
    line-height: 0.95;
    margin: 0;
}

.ap-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ap-dashboard-notice {
    border-radius: 8px;
    font-family: var(--ap-serif);
    margin: 0 auto 0.85rem;
    max-width: 1240px;
    padding: 0.85rem 1rem;
}

.ap-dashboard-notice.is-success {
    background: #eef8ef;
    border: 1px solid #cbe8cf;
    color: #2f6f3d;
}

.ap-dashboard-notice.is-error {
    background: #fff0ec;
    border: 1px solid #f1c3b7;
    color: #9a3f2d;
}

.ap-dashboard-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0.85rem;
}

.ap-dashboard-grid div,
.ap-dashboard-import,
.ap-dashboard-panel {
    background: rgba(255, 253, 251, 0.72);
    border: 1px solid var(--ap-line);
    border-radius: 10px;
}

.ap-dashboard-grid div {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    min-height: 112px;
    padding: 1rem;
}

.ap-dashboard-grid span {
    color: var(--ap-ink);
    display: block;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.ap-dashboard-import {
    align-items: center;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 0.9fr 1.1fr;
    margin-bottom: 0.85rem;
    padding: 1.2rem;
}

.ap-dashboard-import h2,
.ap-dashboard-panel h2 {
    font-family: var(--ap-serif);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.05;
    margin: 0;
}

.ap-dashboard-import p {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    line-height: 1.35;
    margin: 0.7rem 0 0;
}

.ap-litnet-form {
    display: grid;
    gap: 0.5rem;
}

.ap-litnet-form label {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    font-size: 0.86rem;
}

.ap-litnet-form div {
    display: flex;
    gap: 0.5rem;
}

.ap-litnet-form input {
    background: #fffdfb;
    border: 1px solid #e3d7cc;
    border-radius: 6px;
    color: var(--ap-ink);
    flex: 1;
    font-family: var(--ap-sans);
    min-height: 42px;
    min-width: 0;
    padding: 0.7rem 0.8rem;
}

.ap-litnet-form button {
    background: linear-gradient(135deg, #b1844b, #9c703b);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-family: var(--ap-serif);
    min-height: 42px;
    padding: 0 1rem;
}

.ap-dashboard-columns {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}

.ap-dashboard-panel {
    padding: 1.1rem;
}

.ap-dashboard-panel-head,
.ap-dashboard-row-actions,
.ap-dashboard-book-row {
    align-items: center;
    display: flex;
}

.ap-dashboard-panel-head {
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.ap-dashboard-panel-head a,
.ap-dashboard-row-actions a {
    color: var(--ap-gold-deep);
    font-family: var(--ap-serif);
    font-size: 0.84rem;
    text-decoration: none;
}

.ap-dashboard-book-row {
    border-top: 1px solid var(--ap-line);
    gap: 0.9rem;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    padding: 0.85rem 0;
}

.ap-dashboard-book-cover {
    align-items: center;
    background: linear-gradient(145deg, #2d2b2c, #50463e);
    border-radius: 7px;
    color: #f7e7d1;
    display: flex;
    flex: 0 0 58px;
    font-family: var(--ap-serif);
    aspect-ratio: 2 / 3;
    height: auto;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}

.ap-dashboard-book-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ap-dashboard-delete-form {
    align-self: start;
}

.ap-dashboard-delete-form button {
    background: #fff0ec;
    border: 1px solid #f1c3b7;
    border-radius: 999px;
    color: #9a3f2d;
    cursor: pointer;
    font-size: 1.1rem;
    height: 32px;
    line-height: 1;
    width: 32px;
}

.ap-dashboard-edit-book {
    grid-column: 2 / -1;
}

.ap-dashboard-edit-book summary {
    color: var(--ap-gold-deep);
    cursor: pointer;
    font-family: var(--ap-serif);
    font-size: 0.84rem;
    margin-top: 0.2rem;
}

.ap-dashboard-edit-book form {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.7rem;
}

.ap-dashboard-edit-book label {
    color: var(--ap-muted);
    display: grid;
    font-family: var(--ap-serif);
    font-size: 0.82rem;
    gap: 0.28rem;
}

.ap-dashboard-edit-book input,
.ap-dashboard-edit-book textarea {
    background: #fffdfb;
    border: 1px solid #e3d7cc;
    border-radius: 6px;
    color: var(--ap-ink);
    font-family: var(--ap-sans);
    padding: 0.65rem 0.75rem;
    width: 100%;
}

.ap-dashboard-edit-book button {
    background: linear-gradient(135deg, #b1844b, #9c703b);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    justify-self: start;
    min-height: 38px;
    padding: 0 1rem;
}

.ap-dashboard-book-row h3 {
    font-family: var(--ap-serif);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.05;
    margin: 0;
}

.ap-dashboard-book-row h3 a {
    text-decoration: none;
}

.ap-dashboard-book-row p {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

.ap-dashboard-row-actions {
    gap: 0.7rem;
}

.ap-reader-empty-state {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    padding-top: 1rem;
}

.ap-reader-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ap-reader-badges span {
    background: #f7f0e6;
    border: 1px solid #e4d6c6;
    border-radius: 999px;
    color: #937453;
    font-family: var(--ap-serif);
    padding: 0.45rem 0.7rem;
}

.ap-reader-profile,
.ap-reader-stat-grid,
.ap-reader-dashboard-layout {
    margin-inline: auto;
    max-width: 1240px;
}

.ap-reader-profile {
    align-items: center;
    background: linear-gradient(112deg, rgba(255, 253, 251, 0.92), rgba(246, 235, 222, 0.76));
    border: 1px solid var(--ap-line);
    border-radius: 10px;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
    margin-bottom: 0.85rem;
    padding: 1.15rem 1.3rem;
}

.ap-reader-profile-intro {
    align-items: center;
    display: flex;
    gap: 0.9rem;
}

.ap-reader-profile-avatar {
    align-items: center;
    background: linear-gradient(145deg, #8f5c5d, #c38b79);
    border: 4px solid #fffaf5;
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(96, 61, 47, 0.14);
    color: #fff9f4;
    display: flex;
    flex: 0 0 64px;
    font-family: var(--ap-serif);
    font-size: 1.8rem;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.ap-reader-profile h2,
.ap-reader-panel-head h2 {
    font-family: var(--ap-serif);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 500;
    line-height: 1;
    margin: 0.2rem 0 0;
}

.ap-reader-profile-intro p:last-child {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    font-size: 0.86rem;
    margin: 0.35rem 0 0;
}

.ap-reader-level {
    display: grid;
    gap: 0.55rem;
}

.ap-reader-level > div:first-child {
    align-items: baseline;
    display: flex;
    font-family: var(--ap-serif);
    justify-content: space-between;
}

.ap-reader-level span {
    color: var(--ap-muted);
    font-size: 0.78rem;
}

.ap-reader-level b {
    color: var(--ap-gold-deep);
    font-size: 0.88rem;
    font-weight: 600;
}

.ap-reader-level-track,
.ap-reader-book-progress {
    background: #e8ded5;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.ap-reader-level-track i,
.ap-reader-book-progress i {
    background: linear-gradient(90deg, #b78646, #d4a86c);
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 280ms ease;
}

.ap-reader-stat-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0.85rem;
}

.ap-reader-stat-grid div {
    background: rgba(255, 253, 251, 0.7);
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    min-height: 100px;
    padding: 0.9rem 1rem;
}

.ap-reader-stat-grid span {
    color: var(--ap-ink);
    display: block;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1;
    margin-bottom: 0.38rem;
}

.ap-reader-dashboard-layout {
    align-items: start;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
}

.ap-reader-library-panel,
.ap-reader-achievements {
    background: rgba(255, 253, 251, 0.72);
    border: 1px solid var(--ap-line);
    border-radius: 10px;
    padding: 1.15rem;
}

.ap-reader-panel-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.ap-reader-panel-head > a {
    color: var(--ap-gold-deep);
    font-family: var(--ap-serif);
    font-size: 0.86rem;
    margin-top: 0.4rem;
    text-decoration: none;
    white-space: nowrap;
}

.ap-reader-panel-head > a span {
    color: var(--ap-gold);
    font-size: 1.1rem;
    margin-left: 0.2rem;
}

.ap-reader-current-book {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 104px minmax(0, 1fr);
    margin-top: 1.2rem;
}

.ap-reader-current-cover {
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, #402b2c, #765c52);
    border-radius: 5px;
    box-shadow: 5px 8px 15px rgba(54, 38, 28, 0.16);
    color: #fff5e9;
    display: grid;
    font-family: var(--ap-serif);
    overflow: hidden;
    place-items: center;
    text-decoration: none;
}

.ap-reader-current-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ap-reader-current-book h3 {
    font-family: var(--ap-serif);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.05;
    margin: 0;
}

.ap-reader-current-book p {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    font-size: 0.82rem;
    margin: 0.4rem 0 0.75rem;
}

.ap-reader-book-progress {
    margin-bottom: 0.85rem;
    max-width: 330px;
}

.ap-achievements-count {
    border: 1px solid #dfcebb;
    border-radius: 999px;
    color: var(--ap-gold-deep);
    font-family: var(--ap-serif);
    font-size: 0.78rem;
    margin-top: 0.35rem;
    padding: 0.28rem 0.48rem;
}

.ap-achievement-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.2rem;
}

.ap-achievement-card {
    align-items: center;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: 68px minmax(0, 1fr);
    min-width: 0;
    opacity: 0.54;
    transition: opacity 180ms ease, transform 180ms ease;
}

.ap-achievement-card:hover {
    opacity: 0.78;
    transform: translateY(-1px);
}

.ap-achievement-card.is-earned {
    opacity: 1;
}

.ap-achievement-art {
    aspect-ratio: 1;
    background-image: url("../images/reader-achievements.png");
    background-position: var(--ap-achievement-position);
    background-repeat: no-repeat;
    background-size: 200% 200%;
    display: block;
    filter: grayscale(0.25) saturate(0.78);
    transition: filter 180ms ease, transform 180ms ease;
}

.ap-achievement-card.is-earned .ap-achievement-art,
.ap-achievement-card:hover .ap-achievement-art {
    filter: none;
    transform: scale(1.03);
}

.ap-achievement-card h3 {
    font-family: var(--ap-serif);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    margin: 0;
}

.ap-achievement-card p {
    color: var(--ap-muted);
    font-family: var(--ap-serif);
    font-size: 0.7rem;
    line-height: 1.15;
    margin: 0.28rem 0 0;
}

body.ap-dark-mode .ap-reader-profile,
body.ap-dark-mode .ap-reader-stat-grid div,
body.ap-dark-mode .ap-reader-library-panel,
body.ap-dark-mode .ap-reader-achievements {
    background: rgba(42, 39, 37, 0.94);
    border-color: var(--ap-line);
}

@media (max-width: 1080px) {
    .ap-site-header {
        grid-template-columns: 1fr auto;
    }

    .ap-main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .ap-editorial-hero {
        grid-template-columns: minmax(350px, 0.9fr) minmax(470px, 1.1fr);
    }

    .ap-benefit-item {
        padding-inline: 0.6rem;
    }

    .ap-benefit-item strong {
        font-size: 0.95rem;
    }

    .ap-editorial-book-link {
        grid-template-columns: 38% minmax(0, 1fr);
    }

    .ap-editorial-book-content > strong {
        font-size: 0.98rem;
    }

}

@media (max-width: 820px) {
    .ap-editorial-hero {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .ap-hero-copy {
        padding-bottom: 0;
    }

    .ap-hero-visual {
        min-height: 430px;
        width: calc(100% + 2rem);
    }

    .ap-hero-visual::before {
        background:
            linear-gradient(90deg, var(--ap-cream) 0%, rgba(251, 248, 244, 0.68) 12%, rgba(251, 248, 244, 0) 42%),
            linear-gradient(0deg, var(--ap-cream) 0%, rgba(251, 248, 244, 0) 30%);
        inset: 0 auto 0 -2rem;
        width: calc(100% + 4rem);
    }

    .ap-hero-visual > img {
        height: 106%;
        object-position: center center;
        right: -1rem;
        width: calc(100% + 2rem);
    }

    .ap-benefit-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .ap-benefit-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #eee5dc;
    }

    .ap-benefit-item:nth-child(4) {
        border-top: 1px solid #eee5dc;
    }

    .ap-editorial-book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-story-grid {
        grid-template-columns: 1fr;
    }

    .ap-dashboard-import,
    .ap-dashboard-grid,
    .ap-reader-profile,
    .ap-reader-stat-grid,
    .ap-reader-dashboard-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 560px) {
    .ap-home-page {
        padding-inline: 0.8rem;
    }

    .ap-site-header {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        padding-top: 0.7rem;
        text-align: center;
    }

    .ap-brand {
        justify-content: center;
        margin-inline: auto;
    }

    .ap-brand-copy strong {
        font-size: 1.22rem;
    }

    .ap-brand-mark-image {
        flex-basis: 44px;
        height: 58px;
        width: 44px;
    }

    .ap-brand-logo-image {
        max-height: 58px;
        width: min(218px, 58vw);
    }

    .ap-brand-copy small {
        font-size: 0.74rem;
    }

    .ap-header-actions {
        display: none;
        gap: 0.65rem;
    }

    .ap-header-cta {
        min-width: 0;
        padding-inline: 0.7rem;
    }

    .ap-main-nav {
        gap: 1.2rem;
        justify-content: center;
        overflow: visible;
        width: 100%;
    }

    .ap-main-nav a {
        padding: 0.42rem 0 0.52rem;
    }

    .ap-editorial-hero {
        border-radius: 0;
        isolation: isolate;
        margin-top: 0.15rem;
        min-height: 0;
        overflow: hidden;
        padding: 0.55rem 0.85rem 1.15rem;
    }

    .ap-hero-copy {
        padding: 0;
        position: relative;
        z-index: 2;
    }

    .ap-hero-copy h1 {
        font-size: clamp(3.1rem, 14.5vw, 5.2rem);
        letter-spacing: 0.01em;
    }

    .ap-hero-lead {
        font-size: 1.05rem;
    }

    .ap-hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.15rem;
    }

    .ap-hero-visual {
        display: none;
    }

    .ap-library-section {
        padding-top: 0.2rem;
    }

    .ap-benefit-strip {
        grid-template-columns: 1fr;
        padding: 0.55rem;
    }

    .ap-benefit-item,
    .ap-benefit-item:nth-child(3),
    .ap-benefit-item:nth-child(4) {
        border-left: 0;
        border-top: 1px solid #eee5dc;
        padding: 0.55rem;
    }

    .ap-benefit-item:first-child {
        border-top: 0;
    }

    .ap-editorial-book-grid,
    .ap-story-grid {
        grid-template-columns: 1fr;
    }

    .ap-review-panel {
        grid-column: auto;
    }

    .ap-review-carousel {
        min-height: 0;
    }

    .ap-review-slide blockquote {
        font-size: 0.9rem;
    }

    .ap-editorial-book-link {
        grid-template-columns: 33% minmax(0, 1fr);
    }

    .ap-story-panel {
        min-height: 0;
    }

    .ap-portrait-placeholder {
        align-items: center;
        background: #fffaf5;
        height: auto;
        max-width: 138px;
        overflow: visible;
    }

    .ap-portrait-placeholder img {
        height: auto;
        object-fit: contain;
        transform: rotate(3deg);
        width: 100%;
    }

    .ap-subscribe-panel > div:first-child {
        max-width: 100%;
    }

    .ap-subscribe-visual {
        opacity: 0.42;
        right: -2.5rem;
        width: 205px;
    }

    .ap-reading-footer {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.6rem;
        justify-content: flex-start;
    }

    .ap-reading-footer i {
        display: none;
    }

    .ap-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .ap-litnet-form div {
        flex-direction: column;
    }

    .ap-dashboard-book-row {
        grid-template-columns: 52px minmax(0, 1fr) auto;
    }

    .ap-reader-profile {
        align-items: start;
    }

    .ap-reader-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-achievement-grid {
        grid-template-columns: 1fr;
    }
}
