:root {
    --happiness-ground: #e9ece8;
    --happiness-paper: #fffef9;
    --happiness-ink: #202826;
    --happiness-muted: #65706b;
    --happiness-deep: #294b4a;
    --happiness-blue: #526f79;
    --happiness-tea: #8a7955;
    --happiness-soft: #f1f3ed;
    --happiness-warm: #f7f1e6;
    --happiness-line: rgba(32, 40, 38, 0.16);
    --happiness-shadow: 0 1.8rem 5rem rgba(35, 51, 47, 0.09);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body.happiness-page {
    margin: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.86), transparent 30rem),
        linear-gradient(180deg, #eef1ee 0%, var(--happiness-ground) 50%, #e4e8e4 100%);
    color: var(--happiness-ink);
}

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 0.95rem;
    border-radius: 0.25rem;
    background: var(--happiness-deep);
    color: #fff;
    text-decoration: none;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.happiness-main {
    padding: 7.8rem 0 5.5rem;
}

.reading-shell {
    display: grid;
    grid-template-columns: minmax(0, 50rem);
    justify-content: center;
    width: min(calc(100% - 2.5rem), 50rem);
    margin: 0 auto;
}

.reading-column {
    min-width: 0;
}

.article-toc {
    display: none;
}

.back-link {
    display: inline-flex;
    margin-bottom: 1.8rem;
    color: var(--happiness-deep);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.mobile-toc {
    display: block;
    margin: 0 0 2rem;
    border-top: 1px solid var(--happiness-line);
    border-bottom: 1px solid var(--happiness-line);
}

.mobile-toc > summary {
    position: relative;
    min-height: 3.2rem;
    padding: 0.95rem 2.5rem 0.85rem 0;
    color: var(--happiness-deep);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 750;
    list-style: none;
}

.mobile-toc > summary::-webkit-details-marker,
.story-chapter > summary::-webkit-details-marker,
.subchapter > summary::-webkit-details-marker {
    display: none;
}

.mobile-toc > summary::after,
.story-chapter > summary::after,
.subchapter > summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 0.2rem;
    color: var(--happiness-blue);
    font-weight: 400;
    transform: translateY(-50%);
}

.mobile-toc[open] > summary::after,
.story-chapter[open] > summary::after,
.subchapter[open] > summary::after {
    content: "−";
}

.mobile-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 1.2rem;
    margin: 0 0 1rem;
    padding: 0 0 0 1.25rem;
}

.mobile-toc li {
    margin: 0.25rem 0;
}

.mobile-toc a {
    color: var(--happiness-muted);
    font-size: 0.83rem;
    line-height: 1.45;
    text-decoration: none;
}

.post {
    font-size: 1.045rem;
    line-height: 1.92;
    letter-spacing: 0.005em;
}

.post-header {
    margin-bottom: 3.4rem;
}

.eyebrow,
.section-kicker,
.toc-label,
.switch-state,
.post-meta,
.ledger-facts dt {
    margin: 0;
    color: var(--happiness-blue);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.post h1,
.post h2,
.post h3,
.chapter-title,
.dek,
.title-note {
    font-family: ui-serif, "Iowan Old Style", "Songti SC", "STSong", serif;
}

.post h1 {
    margin: 1.15rem 0 0;
    color: #1d2927;
    font-size: clamp(2.75rem, 10vw, 4.5rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.title-note {
    margin: 1.3rem 0 0;
    color: var(--happiness-deep);
    font-size: 1.15rem;
    line-height: 1.5;
}

.original-title {
    margin: 0.75rem 0 0;
    color: var(--happiness-muted);
    font-size: 0.79rem;
}

.ledger-page--dek {
    margin-top: 2rem;
}

.dek {
    max-width: 36rem;
    margin: 0;
    color: #33413e;
    font-size: 1.16rem;
    line-height: 1.84;
}

.post-meta {
    margin-top: 1.35rem;
    color: var(--happiness-muted);
    letter-spacing: 0.07em;
    text-transform: none;
}

.ledger-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1.4rem 0 0;
}

.ledger-facts div {
    padding-top: 0.7rem;
    border-top: 1px solid var(--happiness-line);
}

.ledger-facts dd {
    margin: 0.25rem 0 0;
    color: var(--happiness-ink);
    font-size: 0.86rem;
}

.overview-card {
    margin: 0 0 3rem;
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--happiness-line);
    border-left: 0.25rem solid var(--happiness-blue);
    border-radius: 0.55rem;
    background: rgba(246, 248, 242, 0.92);
}

.overview-card h2,
.source-note h2 {
    margin: 0.7rem 0 0;
    color: var(--happiness-deep);
    font-size: 1.65rem;
    font-weight: 650;
    line-height: 1.38;
}

.overview-copy p {
    margin: 0 0 0.95rem;
}

.overview-copy p:last-child {
    margin-bottom: 0;
}

.thesis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.thesis-grid section {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--happiness-line);
    background: rgba(255, 254, 249, 0.84);
}

.thesis-grid span,
.principle-list span,
.choice-grid span {
    color: var(--happiness-tea);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.thesis-grid strong,
.thesis-grid p {
    display: block;
}

.thesis-grid strong {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.thesis-grid p {
    margin: 0.35rem 0 0;
    color: var(--happiness-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.story-chapter {
    margin: 1.6rem 0;
    border: 1px solid var(--happiness-line);
    border-radius: 0.55rem;
    overflow: clip;
    background: rgba(255, 254, 249, 0.94);
}

.story-chapter > summary {
    position: relative;
    display: grid;
    grid-template-columns: 1.9rem minmax(0, 1fr);
    gap: 0 0.75rem;
    align-items: center;
    min-height: 5rem;
    padding: 1.05rem 3rem 1.05rem 1.15rem;
    cursor: pointer;
    list-style: none;
}

.story-chapter > summary::after {
    right: 1.15rem;
    font-size: 1.35rem;
}

.story-chapter[open] > summary {
    border-bottom: 1px solid var(--happiness-line);
    background: var(--happiness-soft);
}

.chapter-number {
    align-self: start;
    padding-top: 0.22rem;
    color: var(--happiness-tea);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.chapter-title {
    color: var(--happiness-deep);
    font-size: 1.28rem;
    font-weight: 650;
    line-height: 1.35;
}

.chapter-meta {
    grid-column: 2;
    color: var(--happiness-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.chapter-body {
    padding: 1.5rem 1.25rem 2.4rem;
}

.chapter-prose {
    width: min(100%, 50rem);
    margin: 0 auto;
}

.chapter-prose > h2 {
    margin: 2.8rem 0 1rem;
    color: var(--happiness-deep);
    font-size: 1.62rem;
    font-weight: 650;
    line-height: 1.42;
}

.chapter-prose > h2:first-child,
.chapter-prose > .source-boundary + h2,
.chapter-prose > .health-boundary + h2,
.chapter-prose > .dated-note + h2 {
    margin-top: 0.5rem;
}

.chapter-prose h3 {
    margin: 0.65rem 0 0;
    color: var(--happiness-deep);
    font-size: 1.1rem;
    line-height: 1.5;
}

.chapter-prose p,
.chapter-prose ul,
.chapter-prose ol {
    margin-top: 0.9rem;
    margin-bottom: 0.9rem;
}

.chapter-prose ul,
.chapter-prose ol {
    padding-left: 1.35rem;
}

.chapter-prose li {
    margin: 0.45rem 0;
    padding-left: 0.25rem;
}

.chapter-prose strong {
    font-weight: 680;
}

.source-boundary,
.health-boundary,
.omitted-source-note,
.quiet-note,
.small-note {
    color: #46534f;
    font-size: 0.88rem;
    line-height: 1.75;
}

.source-boundary,
.health-boundary,
.omitted-source-note {
    margin: 1.5rem 0 2rem;
    padding: 1rem 1.1rem;
    border-left: 0.2rem solid var(--happiness-tea);
    background: var(--happiness-warm);
}

.health-boundary {
    border-color: #9c684d;
    background: #fbf0e9;
}

.source-boundary strong,
.health-boundary strong,
.omitted-source-note strong {
    color: var(--happiness-deep);
}

.source-boundary a,
.health-boundary a,
.omitted-source-note a {
    color: var(--happiness-deep);
    font-weight: 700;
}

.source-boundary p,
.health-boundary p,
.omitted-source-note p {
    margin: 0.25rem 0 0;
}

.pull-quote {
    margin: 2rem 0;
    padding: 1.4rem 1.4rem 1.35rem;
    border-top: 1px solid var(--happiness-line);
    border-bottom: 1px solid var(--happiness-line);
    color: var(--happiness-deep);
    font-family: ui-serif, "Iowan Old Style", "Songti SC", serif;
    font-size: 1.35rem;
    font-weight: 620;
    line-height: 1.65;
}

.pull-quote--compact {
    font-size: 1.18rem;
}

.pull-quote--end {
    margin-top: 2.8rem;
}

.ledger-spread--two,
.success-switch,
.choice-grid,
.os-model,
.metric-grid,
.related-notes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.practice-methods,
.success-switch,
.remedy-spread,
.os-model {
    margin: 2rem 0;
}

.practice-methods > section,
.success-switch > section,
.remedy-spread > section,
.os-model > section {
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--happiness-line);
    background: var(--happiness-soft);
}

.plain-list {
    margin-bottom: 0 !important;
    padding-left: 1.15rem !important;
}

.time-ledger {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0 !important;
    list-style: none;
}

.time-ledger li {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 1rem 0.85rem;
    border-top: 0.22rem solid var(--happiness-blue);
    background: var(--happiness-soft);
}

.time-ledger time {
    color: var(--happiness-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.time-ledger strong {
    margin-top: 0.2rem;
    color: var(--happiness-deep);
    font-family: ui-serif, "Iowan Old Style", serif;
    font-size: 2rem;
    line-height: 1.2;
}

.time-ledger span {
    color: var(--happiness-muted);
    font-size: 0.72rem;
}

.small-note {
    color: var(--happiness-muted);
}

.read-next {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 2.6rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--happiness-line);
    border-radius: 0.2rem;
    background: transparent;
    color: var(--happiness-deep);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 750;
    text-align: left;
}

.read-next:hover {
    background: var(--happiness-soft);
}

.read-next--overview {
    margin-top: 1.2rem;
}

.quiet-note {
    margin: 2rem 0;
    padding: 1.2rem 1.3rem;
    border-left: 1px solid var(--happiness-blue);
    background: #f2f5f3;
}

.quiet-note p {
    margin: 0;
}

.quiet-note cite {
    display: block;
    margin-top: 0.55rem;
    color: var(--happiness-muted);
    font-style: normal;
    font-size: 0.76rem;
}

.principle-list {
    display: grid;
    gap: 0.7rem;
    margin: 1.6rem 0;
}

.principle-list section {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.95rem 0;
    border-top: 1px solid var(--happiness-line);
}

.principle-list p {
    margin: 0;
}

.personal-line,
.dated-note {
    margin: 1.6rem 0 !important;
    padding: 1rem 1.1rem;
    background: var(--happiness-soft);
    color: var(--happiness-deep);
    font-weight: 650;
}

.dated-note time {
    display: inline-block;
    margin-right: 0.55rem;
    color: var(--happiness-blue);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
}

.choice-grid {
    margin: 1.7rem 0;
}

.choice-grid section {
    padding: 1rem;
    border: 1px solid var(--happiness-line);
    background: var(--happiness-soft);
}

.choice-grid strong,
.choice-grid p {
    display: block;
}

.choice-grid strong {
    margin-top: 0.25rem;
}

.choice-grid p {
    margin: 0.25rem 0 0;
    color: var(--happiness-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.choice-grid--warning {
    border-color: rgba(156, 104, 77, 0.45) !important;
    background: #fbf0e9 !important;
}

.subchapter {
    margin: 1.7rem 0;
    border-top: 1px solid var(--happiness-line);
    border-bottom: 1px solid var(--happiness-line);
}

.subchapter > summary {
    position: relative;
    min-height: 3.8rem;
    padding: 1rem 2.7rem 1rem 0;
    color: var(--happiness-deep);
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.detail-body {
    padding: 0.2rem 0 1rem;
}

.os-model section span {
    color: var(--happiness-blue);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.os-model section p {
    margin: 0.4rem 0 0;
    color: var(--happiness-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.jack-model {
    margin: 1.7rem 0 2.2rem;
    padding: 1.3rem 1.25rem;
    border: 1px solid var(--happiness-line);
    background:
        repeating-linear-gradient(180deg, transparent 0 2.1rem, rgba(41, 75, 74, 0.055) 2.1rem 2.15rem),
        #fafaf4;
}

.jack-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--happiness-line);
    background: rgba(255, 254, 249, 0.9);
    color: var(--happiness-deep);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-align: center;
}

.jack-formula strong {
    color: var(--happiness-tea);
    font-size: 1.25rem;
}

.question-ledger,
.longevity-note {
    margin: 2rem 0;
    padding: 1.3rem;
    border: 1px solid var(--happiness-line);
    background: var(--happiness-warm);
}

.question-ledger ol {
    margin-bottom: 0;
}

.metric-grid {
    margin: 1.7rem 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid section {
    padding: 1rem;
    border: 1px solid var(--happiness-line);
    background: var(--happiness-soft);
}

.metric-grid span,
.metric-grid strong,
.metric-grid p {
    display: block;
}

.metric-grid span {
    color: var(--happiness-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.metric-grid strong {
    margin-top: 0.2rem;
    color: var(--happiness-deep);
    font-family: ui-serif, "Iowan Old Style", serif;
    font-size: 1.55rem;
}

.metric-grid p {
    margin: 0.2rem 0 0;
    color: var(--happiness-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.source-note {
    margin: 3rem 0 0;
    padding: 1.45rem 1.35rem;
    border: 1px solid var(--happiness-line);
    border-radius: 0.35rem;
    background: #f4f5ef;
    color: #46534f;
    font-size: 0.9rem;
    line-height: 1.75;
}

.source-note p,
.source-note ul {
    margin: 0.75rem 0 0;
}

.source-note a {
    color: var(--happiness-deep);
    font-weight: 700;
}

.related-notes {
    margin-top: 1.1rem;
}

.related-notes a {
    padding: 1rem;
    border: 1px solid var(--happiness-line);
    background: rgba(255, 254, 249, 0.78);
    color: var(--happiness-ink);
    text-decoration: none;
}

.related-notes a:hover {
    border-color: rgba(41, 75, 74, 0.5);
}

.related-notes span,
.related-notes strong,
.related-notes p {
    display: block;
}

.related-notes span {
    color: var(--happiness-blue);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.related-notes strong {
    margin-top: 0.25rem;
}

.related-notes p {
    margin: 0.35rem 0 0;
    color: var(--happiness-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.end-note {
    margin: 2rem 0 0;
    color: var(--happiness-muted);
    font-size: 0.76rem;
    text-align: center;
}

.happiness-footer {
    border-top: 1px solid var(--happiness-line);
    background: rgba(255, 254, 249, 0.88);
}

.happiness-footer .container,
.happiness-footer .footer-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.happiness-footer a {
    color: var(--happiness-deep);
}

:where(a, button, summary):focus-visible {
    outline: 0.18rem solid #7e9ca4;
    outline-offset: 0.2rem;
}

@media (min-width: 1280px) {
    .reading-shell {
        grid-template-columns: 11rem minmax(0, 1fr);
        gap: clamp(2.8rem, 4vw, 4.5rem);
        width: min(calc(100% - 4rem), 94rem);
    }

    .article-toc {
        display: block;
        position: sticky;
        top: 7.2rem;
        align-self: start;
        padding: 0.35rem 0 0 0.9rem;
        border-left: 1px solid var(--happiness-line);
    }

    .article-toc ol {
        margin: 1rem 0 0;
        padding: 0;
        list-style: none;
    }

    .article-toc li {
        margin: 0.55rem 0;
    }

    .article-toc a {
        display: block;
        color: var(--happiness-muted);
        font-size: 0.78rem;
        line-height: 1.45;
        text-decoration: none;
    }

    .article-toc a:hover,
    .article-toc a[aria-current="location"] {
        color: var(--happiness-deep);
        font-weight: 750;
    }

    .mobile-toc {
        display: none;
    }

    .reading-column {
        padding: 2.1rem clamp(2.8rem, 5vw, 5.5rem) 4rem;
        border: 1px solid rgba(32, 40, 38, 0.12);
        background:
            linear-gradient(90deg, rgba(31, 45, 42, 0.025), transparent 9%, transparent 91%, rgba(31, 45, 42, 0.025)),
            var(--happiness-paper);
        box-shadow: var(--happiness-shadow);
    }

    .post {
        font-size: 1.075rem;
        line-height: 1.94;
    }

    .ledger-spread--header {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(4rem, 7vw, 7rem);
        min-height: 24rem;
        padding: 2.2rem 1rem 2.8rem;
    }

    .ledger-spread--header::after {
        content: "";
        position: absolute;
        top: 1.5rem;
        bottom: 2rem;
        left: 50%;
        width: 1px;
        background: linear-gradient(transparent, var(--happiness-line) 12%, var(--happiness-line) 88%, transparent);
        box-shadow: 0 0 1.2rem rgba(32, 40, 38, 0.07);
    }

    .ledger-page--title {
        display: flex;
        flex-direction: column;
        min-height: 18rem;
    }

    .post h1 {
        max-width: 11ch;
        font-size: clamp(3.3rem, 4vw, 4.7rem);
    }

    .title-note {
        margin-top: auto;
    }

    .ledger-page--dek {
        align-self: end;
        margin-top: 0;
        padding-bottom: 0.4rem;
    }

    .dek {
        max-width: 31rem;
        font-size: 1.23rem;
    }

    .overview-card {
        margin-bottom: 3.5rem;
        padding: 2rem 2.2rem;
        border-left-width: 1px;
        border-radius: 0.2rem;
    }

    .overview-grid {
        position: relative;
        display: grid;
        grid-template-columns: 0.78fr 1.22fr;
        gap: clamp(3rem, 5vw, 5rem);
    }

    .overview-grid::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(39% + 0.5 * clamp(3rem, 5vw, 5rem));
        width: 1px;
        background: var(--happiness-line);
    }

    .thesis-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
        padding-top: 1.35rem;
        border-top: 1px solid var(--happiness-line);
    }

    .story-chapter {
        margin: 2.6rem 0;
        border-radius: 0.2rem;
        box-shadow: 0 0.7rem 2rem rgba(32, 40, 38, 0.03);
    }

    .story-chapter > summary {
        min-height: 6rem;
        padding: 1.45rem 4rem 1.45rem 2rem;
    }

    .chapter-title {
        font-size: 1.58rem;
    }

    .chapter-body {
        padding: 1.25rem clamp(2.4rem, 4vw, 4.25rem) 3.6rem;
    }

    .chapter-prose {
        width: 100%;
        max-width: none;
    }

    .chapter-prose > :where(p, h2, h3, ul, ol, blockquote, .source-boundary, .health-boundary, .omitted-source-note, .quiet-note, .principle-list, .personal-line, .dated-note, .subchapter, .jack-model, .question-ledger, .longevity-note) {
        width: min(100%, 50rem);
        margin-left: auto;
        margin-right: auto;
    }

    .ledger-spread--two,
    .success-switch,
    .choice-grid,
    .os-model,
    .metric-grid,
    .related-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .practice-methods,
    .success-switch,
    .remedy-spread,
    .choice-grid,
    .os-model,
    .metric-grid {
        margin-top: 2.4rem;
        margin-bottom: 2.4rem;
    }

    .choice-grid,
    .metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .related-notes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .reading-shell {
        width: min(calc(100% - 2.5rem), 50rem);
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 5.25rem;
    }

    .happiness-main {
        padding: 6.5rem 0 3.5rem;
    }

    .reading-shell {
        width: min(calc(100% - 2.25rem), 44rem);
    }

    .post {
        font-size: 1rem;
        line-height: 1.84;
        letter-spacing: 0;
    }

    .post h1 {
        font-size: clamp(2.35rem, 11vw, 3.15rem);
    }

    .title-note {
        font-size: 1rem;
    }

    .dek {
        font-size: 1.03rem;
        line-height: 1.76;
    }

    .post-header {
        margin-bottom: 2.25rem;
    }

    .ledger-page--dek {
        margin-top: 1.7rem;
    }

    .mobile-toc ol {
        grid-template-columns: 1fr;
    }

    .overview-card {
        margin-bottom: 2.4rem;
        padding: 1.15rem;
    }

    .overview-card h2,
    .source-note h2 {
        font-size: 1.4rem;
    }

    .thesis-grid,
    .time-ledger,
    .metric-grid,
    .ledger-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-chapter {
        margin: 1.2rem 0;
    }

    .story-chapter > summary {
        min-height: 4.75rem;
        padding: 1rem 2.8rem 1rem 1rem;
    }

    .chapter-title {
        font-size: 1.18rem;
    }

    .chapter-meta {
        font-size: 0.71rem;
    }

    .chapter-body {
        padding: 1.15rem 1rem 2.2rem;
    }

    .chapter-prose > h2 {
        margin-top: 2.35rem;
        font-size: 1.42rem;
    }

    .pull-quote {
        padding: 1.1rem 0.85rem;
        font-size: 1.16rem;
    }

    .ledger-spread--two,
    .success-switch,
    .choice-grid,
    .os-model,
    .metric-grid,
    .related-notes {
        grid-template-columns: 1fr;
    }

    .time-ledger li {
        padding: 0.8rem;
    }

    .jack-formula {
        flex-wrap: wrap;
    }

    .happiness-footer .container,
    .happiness-footer .footer-links {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .reading-shell {
        width: min(calc(100% - 1.5rem), 44rem);
    }

    .thesis-grid,
    .time-ledger,
    .metric-grid,
    .ledger-facts {
        grid-template-columns: 1fr;
    }

    .chapter-body {
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body.happiness-page {
        background: #fff;
    }

    .navbar,
    .article-toc,
    .mobile-toc,
    .back-link,
    .read-next,
    .happiness-footer,
    .related-notes {
        display: none !important;
    }

    .happiness-main {
        padding: 0;
    }

    .reading-shell,
    .reading-column {
        display: block;
        width: 100%;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .story-chapter {
        break-inside: avoid-page;
        border-color: #bbb;
    }

    .story-chapter > summary::after,
    .subchapter > summary::after {
        display: none;
    }

    a {
        color: inherit;
        text-decoration: none;
    }
}
