/* ============================================================
   blis™ — "Autonomy" design system
   Component rules over the tokens in tokens.css. Loaded after
   the template's base.css, so it overrides any rule the two
   share. Pages and components reference class names and
   custom properties only. Spec: docs/design.md

   Mobile first: one column below 900px, multi-column above.
   Radius is 0 and there are no shadows anywhere.
   ============================================================ */

/* --- Reset & base ------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    /* Anchor targets clear the sticky nav; focused controls clear the mobile buy bar. */
    scroll-padding-top: 88px;
    scroll-padding-bottom: 88px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    min-height: 100vh;
    background: var(--bone);
    color: var(--charcoal);
    font-family: var(--font-sans);
    font-size: var(--text-ui);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* base.css gives h1 a margin and size; the reset above is weaker than an element selector. */
h1 {
    margin: 0;
    font-size: inherit;
}

h1, h2, h3 {
    font-weight: 700;
}

ul, ol {
    list-style: none;
}

/* No orphaned last words: running text wraps "pretty", short display lines balance.
   Browsers without support (Firefox, for now) fall back to greedy wrapping. */
p, li, dd, dt, figcaption, blockquote, th, td, summary {
    text-wrap: pretty;
}

h1, h2, h3, .statement, .statement-serif, .real-line, .how__close, .h2--payoff {
    text-wrap: balance;
}

img {
    display: block;
    max-width: 100%;
}

button, input {
    font: inherit;
    color: inherit;
}

a {
    color: var(--moss);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition), background-color var(--transition);
}

a:hover {
    color: var(--warm-ink);
}

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 899px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 900px) {
    .mobile-only {
        display: none !important;
    }
}

/* --- Layout ------------------------------------------------- */
.wrap {
    max-width: calc(var(--width-content) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-pad);
}

.section--flush-top {
    padding-top: 0;
}

.band {
    padding-block: var(--band-pad);
}

.band--sky {
    padding-block: 32px;
    background: var(--sky);
    color: var(--bone);
    border-block: 1px solid var(--charcoal);
}

.band--charcoal {
    padding-block: clamp(2.5rem, 1.571rem + 3.81vw, 3.5rem);
    background: var(--charcoal);
    color: var(--bone);
}

.band--moss {
    background: var(--moss);
    color: var(--bone);
}

.band--deep {
    background: var(--bone-deep);
    border-block: 1px solid var(--rule);
}

.band--warm {
    padding-block: var(--payoff-pad);
    background: var(--warm);
    color: var(--charcoal);
}

@media (min-width: 900px) {
    .band--sky {
        padding-block: 44px;
    }
}

/* Inline links take the ground's text colour; buttons keep their own. */
.band--charcoal a:not(.btn), .band--moss a:not(.btn), .site-footer a:not(.btn) {
    color: var(--bone);
}

.band--charcoal a:not(.btn):hover, .band--moss a:not(.btn):hover, .site-footer a:not(.btn):hover {
    color: var(--bone);
    text-decoration-thickness: 2px;
}

.band--warm a:not(.btn), .band--warm a:not(.btn):hover {
    color: var(--charcoal);
}

.band--warm a:not(.btn):hover {
    text-decoration-thickness: 2px;
}

/* --- Type ---------------------------------------------------- */

/* A short label over a heading or item, in the voice of the page rather than a terminal:
   sentence case, the UI face, moss. Used sparingly: most sections need none. */
.kicker {
    font-size: var(--text-kicker);
    font-weight: 600;
    color: var(--moss);
}

.h2 {
    font-size: var(--text-h2);
    line-height: 1.1;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.h2--large {
    font-size: var(--text-h2-large);
    line-height: 1.08;
    max-width: 18em;
}

.h2--email {
    font-size: var(--text-h2-email);
}

.h2--payoff {
    font-size: var(--text-payoff);
    line-height: 1;
    letter-spacing: -.03em;
}

.h3 {
    font-size: var(--text-h3);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.h3--large {
    font-size: var(--text-h3-large);
}

.h3--small {
    font-size: var(--text-h3-small);
    letter-spacing: -.01em;
}

.accent-moss {
    color: var(--moss);
}

.lead {
    font-family: var(--font-serif);
    font-size: var(--text-lead);
    line-height: 1.55;
    max-width: 36em;
}

.body-serif {
    font-family: var(--font-serif);
    font-size: var(--text-body);
    line-height: 1.55;
}

.body-serif-lg {
    font-family: var(--font-serif);
    font-size: var(--text-body-lg);
    line-height: 1.6;
    max-width: 34em;
}

.body-serif-xl {
    font-family: var(--font-serif);
    font-size: var(--text-body-xl);
    line-height: 1.6;
    max-width: 34em;
}

.body-serif-lg + .body-serif-lg, .body-serif-xl + .body-serif-xl {
    margin-top: 1em;
}

.statement {
    font-size: var(--text-statement);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.statement-serif {
    font-family: var(--font-serif);
    font-size: var(--text-statement-serif);
    line-height: 1.4;
    max-width: 24em;
}

.statement-serif em {
    font-style: italic;
    color: var(--warm-ink);
}

.small-print {
    font-size: var(--text-small);
    line-height: 1.6;
}

.muted {
    opacity: .75;
}

.caption {
    font-size: var(--text-small);
    line-height: 1.6;
    opacity: .75;
}

.rule-strong {
    height: 1px;
    border: 0;
    background: var(--charcoal);
}

/* --- Buttons & links ----------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 18px 30px;
    border: 1.5px solid var(--charcoal);
    font-family: var(--font-sans);
    font-size: var(--text-button);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--charcoal);
    color: var(--bone);
}

.btn--primary:hover {
    background: var(--charcoal-hover);
    border-color: var(--charcoal-hover);
    color: var(--bone);
}

.btn--secondary {
    background: transparent;
    color: var(--charcoal);
}

.btn--secondary:hover {
    background: var(--bone-deep);
    color: var(--charcoal);
}

.band--warm .btn--secondary:hover {
    background: var(--bone);
}

/* Disabled is dashed as well as faded: never colour alone. */
.btn--disabled, .btn--disabled:hover {
    background: var(--disabled-fill);
    color: var(--charcoal);
    border: 1.5px dashed var(--disabled-rule);
    cursor: not-allowed;
}

.btn--compact {
    min-height: 44px;
    padding: 12px 18px;
    font-size: var(--text-small);
}

.link-strong {
    font-size: var(--text-button);
    font-weight: 600;
    color: var(--charcoal);
    text-underline-offset: 5px;
}

@media (min-width: 900px) {
    .btn--compact {
        padding: 13px 22px;
        font-size: var(--text-ui);
    }
}

/* --- Nav ----------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bone);
    border-bottom: 1px solid var(--charcoal);
}

.site-nav__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 14px;
}

.wordmark {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--charcoal);
    text-decoration: none;
}

.wordmark:hover {
    color: var(--charcoal);
}

.wordmark sup {
    font-size: .55em;
    font-weight: 500;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-left: auto;
}

.nav-link {
    padding-bottom: 2px;
    border-bottom: 1px solid var(--rule-nav);
    color: var(--charcoal);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--charcoal);
    border-bottom-color: var(--charcoal);
}

/* Not sticky, never a hamburger: the section links are always visible on mobile. */
.section-links {
    border-bottom: 1px solid var(--rule-nav);
}

.section-links__list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
}

.section-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    color: var(--charcoal);
}

@media (min-width: 900px) {
    .site-nav__bar {
        padding-block: 20px;
    }

    .wordmark {
        font-size: 22px;
    }
}

/* --- Image slot ----------------------------------------------
   Placeholders until the photography and art are supplied:
   striped bone with a mono caption naming the brief. */
.image-slot {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    border: 1px solid var(--rule);
    background: repeating-linear-gradient(135deg, var(--bone-deep) 0 9px, var(--bone) 9px 18px);
    overflow: hidden;
}

.band--deep .image-slot {
    background: repeating-linear-gradient(135deg, var(--bone-deeper) 0 9px, var(--bone-deep) 9px 18px);
}

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

.image-slot__caption {
    max-width: 100%;
    padding: 7px 9px;
    border: 1px solid var(--rule);
    background: var(--bone);
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    line-height: 1.5;
}

.band--deep .image-slot__caption {
    background: var(--bone-deep);
}

/* --- Rule grids ----------------------------------------------
   Desktop: the gap is the rule (container filled with the rule
   colour, cells with the ground). Mobile: a ruled list. */
.rule-grid > li {
    padding-block: 20px;
    border-top: 1px solid var(--rule);
}

.rule-grid > li:last-child {
    border-bottom: 1px solid var(--rule);
}

.rule-grid--on-moss > li {
    border-color: var(--rule-on-moss);
}

@media (min-width: 900px) {
    .rule-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        background: var(--rule);
        border: 1px solid var(--rule);
    }

    .rule-grid > li, .rule-grid > li:last-child {
        padding: 36px 32px 40px;
        border: 0;
        background: var(--bone);
    }

    .rule-grid--on-moss {
        background: var(--rule-on-moss);
        border-color: var(--rule-on-moss);
    }

    .rule-grid--on-moss > li, .rule-grid--on-moss > li:last-child {
        padding: 34px 32px 38px;
        background: var(--moss);
    }
}

/* --- Hero ----------------------------------------------------
   The hero and the real line below it are one unit, so on a
   desktop the vertical rhythm also scales with the viewport's
   height: the sky band has to be in view on a short widescreen. */
.hero {
    padding-top: clamp(2.5rem, min(1.164rem + 5.481vw, 8svh - 1.5rem), 6rem);
}

.hero__grid {
    display: grid;
    gap: 36px;
}

.hero__title {
    font-size: var(--text-h1);
    line-height: 1.04;
    letter-spacing: -.028em;
    text-wrap: balance;
}

.hero__lead {
    margin-top: clamp(1.375rem, 1.039rem + 1.381vw, 2rem);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: clamp(1.75rem, 1.379rem + 1.524vw, 2.75rem);
}

.hero__note {
    margin-top: 28px;
    font-size: var(--text-small);
    opacity: .75;
}

.hero__image {
    height: 280px;
    margin-inline: calc(-1 * var(--gutter));
    border-inline: 0;
}

@media (min-width: 600px) {
    .hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 20px;
    }

    .hero__actions .btn--primary {
        padding-inline: 32px;
    }
}

@media (min-width: 900px) {
    .hero {
        padding-bottom: clamp(2.5rem, 7svh - 1.5rem, 4.5rem);
    }

    .hero__grid {
        grid-template-columns: 1fr 460px;
        gap: 64px;
    }

    .hero__lead {
        margin-top: clamp(1.25rem, 3svh, 2rem);
    }

    .hero__actions {
        margin-top: clamp(1.5rem, 4svh, 2.75rem);
    }

    .hero__note {
        margin-top: clamp(1rem, 2.5svh, 1.75rem);
    }

    /* Stretches to the text column rather than setting the hero's height. */
    .hero__image {
        height: auto;
        min-height: 360px;
        margin-inline: 0;
        border-inline: 1px solid var(--rule);
    }
}

/* --- Real line + identity ------------------------------------ */
.real-line {
    font-size: var(--text-statement);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -.015em;
}

/* Each sentence on a line of its own: "Blis shows you how." is the answer, not a tail. */
.real-line__part {
    display: block;
}

.identity {
    border-bottom: 1px solid var(--rule-soft);
}

.identity__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-block: 18px;
    font-size: var(--text-small);
}

.identity__title {
    font-weight: 600;
}

.identity__author {
    font-family: var(--font-serif);
}

.identity__dot {
    opacity: .5;
}

@media (min-width: 900px) {
    .identity__row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 48px;
        padding-block: 28px;
        font-size: 19px;
    }
}

/* --- How it works -------------------------------------------- */
.how__steps {
    margin-top: clamp(2rem, 1.257rem + 3.048vw, 4rem);
}

.how__steps .h3 {
    margin-bottom: 6px;
}

.step__verb {
    font-weight: 700;
    color: var(--moss);
}

.how__close {
    margin-top: clamp(1.75rem, 1.471rem + 1.143vw, 2.5rem);
    font-size: var(--text-h3-small);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
}

@media (min-width: 900px) {
    .how__steps .h3 {
        margin-bottom: 12px;
    }
}

/* --- Rented vs owned -----------------------------------------
   "Don't do this, do this instead." The two prices are the
   largest type in the band. The rented side is clay and crossed
   out; the owned side sits on a lifted panel in sage, checked.
   The marks are drawn in CSS so every font renders them alike,
   and the column headings say the same thing in words. */
.compare {
    display: grid;
    gap: 28px;
    margin-top: clamp(1.75rem, 1.007rem + 3.048vw, 3.5rem);
}

.compare__col--owned {
    padding: 28px 24px;
    background: var(--charcoal-lift);
}

.compare__label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-kicker);
    font-weight: 600;
}

/* Clay on charcoal 4.97:1; sage on the lifted panel 6.81:1. */
.compare__col--rented {
    --mark: var(--warm);
}

.compare__col--owned {
    --mark: var(--sage);
}

.compare__label, .compare__amount {
    color: var(--mark);
}

/* The badge beside each heading: a circled cross or check. */
.compare__mark {
    position: relative;
    flex: none;
    width: 34px;
    height: 34px;
    border: 2px solid var(--mark);
    border-radius: 50%;
}

.compare__mark::before, .compare__mark::after {
    content: "";
    position: absolute;
}

.compare__col--rented .compare__mark::before,
.compare__col--rented .compare__mark::after {
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2.5px;
    background: var(--mark);
}

.compare__col--rented .compare__mark::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.compare__col--rented .compare__mark::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.compare__col--owned .compare__mark::before {
    top: 7px;
    left: 11px;
    width: 8px;
    height: 14px;
    border-right: 2.5px solid var(--mark);
    border-bottom: 2.5px solid var(--mark);
    transform: rotate(45deg);
}

.compare__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 14px;
    margin-top: 8px;
}

.compare__amount {
    font-size: var(--text-price);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.compare__per {
    font-size: var(--text-h3-small);
    font-weight: 600;
}

.compare__total {
    margin-top: 12px;
    font-family: var(--font-serif);
    font-size: var(--text-row);
    line-height: 1.5;
}

.compare__facts {
    margin-top: 20px;
    font-size: var(--text-body);
}

.compare__facts li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-top: 1px solid var(--rule-on-dark-soft);
}

/* Small marks ahead of each fact, matching the heading's badge. */
.compare__facts li::before, .compare__facts li::after {
    content: "";
    position: absolute;
}

.compare__col--rented .compare__facts li::before,
.compare__col--rented .compare__facts li::after {
    top: calc(10px + .75em);
    left: 2px;
    width: 13px;
    height: 2px;
    background: var(--mark);
}

.compare__col--rented .compare__facts li::before {
    transform: translateY(-50%) rotate(45deg);
}

.compare__col--rented .compare__facts li::after {
    transform: translateY(-50%) rotate(-45deg);
}

.compare__col--owned .compare__facts li::before {
    top: calc(10px + .2em);
    left: 5px;
    width: 6px;
    height: 12px;
    border-right: 2px solid var(--mark);
    border-bottom: 2px solid var(--mark);
    transform: rotate(45deg);
}

.compare__note {
    margin-top: 32px;
    max-width: 44em;
    font-family: var(--font-serif);
    font-size: var(--text-body);
    line-height: 1.6;
    opacity: .8;
}

@media (min-width: 900px) {
    .compare {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }

    /* The rented column's text starts level with the panel's. */
    .compare__col--rented {
        padding-top: 40px;
    }

    .compare__col--owned {
        padding: 40px 44px 36px;
    }

    .compare__note {
        margin-top: 44px;
    }
}

/* --- Three-legged stool -------------------------------------- */
.stool__intro {
    margin-top: 16px;
}

.stool__legs {
    display: grid;
    gap: 32px;
    margin-top: 32px;
}

.stool__art {
    aspect-ratio: 3 / 2;
}

.stool__legs .h3 {
    margin: 18px 0 6px;
}

.stool__rule {
    margin: 40px 0 28px;
}

@media (min-width: 900px) {
    .stool__intro {
        margin-top: 20px;
    }

    .stool__legs {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        margin-top: 56px;
    }

    .stool__legs .h3 {
        margin: 26px 0 10px;
    }

    .stool__rule {
        margin: 72px 0 48px;
    }
}

/* --- Techniques ---------------------------------------------- */
.techniques__claims {
    margin-top: 28px;
}

.claim {
    font-size: var(--text-claim);
    font-weight: 600;
    line-height: 1.38;
}

@media (min-width: 900px) {
    .techniques__claims {
        margin-top: 52px;
    }

}

/* --- Stories: the testimonial carousel -----------------------
   One card on a phone, two on a tablet, three on a desktop. The
   track is a scroll-snapped strip that works with no script;
   stories.js adds the slow auto-advance and the controls. */
.carousel {
    margin-top: clamp(1.75rem, 1.007rem + 3.048vw, 3.5rem);
}

.carousel__track {
    --carousel-gap: 24px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: var(--carousel-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
}

/* Once the controls exist, the scrollbar is clutter. */
.carousel.is-enhanced .carousel__track {
    scrollbar-width: none;
}

.carousel.is-enhanced .carousel__track::-webkit-scrollbar {
    display: none;
}

.carousel__track:focus-visible {
    outline-offset: 6px;
}

.story-card {
    display: flex;
    flex-direction: column;
    padding-top: 28px;
    border-top: 1px solid var(--charcoal);
    scroll-snap-align: start;
}

.story-card__quote {
    font-family: var(--font-serif);
    font-size: var(--text-lead);
    line-height: 1.5;
}

.story-card__quote strong {
    font-weight: 600;
}

.story-card__by {
    margin-top: auto;
    padding-top: 20px;
    font-size: var(--text-small);
    font-weight: 600;
}

.story-card__role {
    font-weight: 400;
    opacity: .7;
}

.carousel__controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
}

.carousel__controls[hidden] {
    display: none;
}

.carousel__button, .carousel__toggle {
    min-width: 44px;
    min-height: 44px;
    border: 1.5px solid var(--charcoal);
    background: transparent;
    font-size: var(--text-ui);
    font-weight: 600;
    transition: background-color var(--transition);
}

.carousel__button {
    font-size: 22px;
    line-height: 1;
}

.carousel__toggle {
    padding-inline: 16px;
}

.carousel__button:hover, .carousel__toggle:hover {
    background: var(--bone-deep);
}

@media (min-width: 600px) {
    .carousel__track {
        grid-auto-columns: calc((100% - var(--carousel-gap)) / 2);
    }
}

@media (min-width: 900px) {
    .carousel__track {
        --carousel-gap: 40px;
        grid-auto-columns: calc((100% - 2 * var(--carousel-gap)) / 3);
    }
}

/* --- Inside the book ----------------------------------------- */
.inside {
    display: grid;
    row-gap: 28px;
}

.inside__cover {
    margin-top: 12px;
}

.chapter {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    align-items: baseline;
    padding-block: 20px;
    border-top: 1px solid var(--rule);
}

.chapter:last-child {
    border-bottom: 1px solid var(--rule);
}

.chapter__num {
    font-size: var(--text-h3-small);
    font-weight: 600;
    color: var(--moss);
    font-variant-numeric: tabular-nums;
}

.chapter .h3 {
    margin-bottom: 6px;
}

.inside__statement {
    margin-top: 32px;
    max-width: 18em;
}

.inside__cover {
    padding: 20px;
    border: 1px solid var(--rule);
}

.inside__cover .image-slot {
    aspect-ratio: 2 / 3;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
}

.inside__cover figcaption {
    margin-top: 16px;
}

@media (min-width: 900px) {
    .inside {
        grid-template-columns: 1fr 420px;
        column-gap: 64px;
        row-gap: 44px;
        align-items: start;
    }

    .inside__heading {
        grid-column: 1 / -1;
    }

    .inside__cover {
        margin-top: 0;
    }

    .chapter {
        grid-template-columns: 56px 1fr;
        gap: 24px;
        padding-block: 24px;
    }

    .inside__statement {
        margin-top: 44px;
    }

    .inside__cover {
        padding: 28px;
    }
}

/* --- Author -------------------------------------------------- */
.author {
    display: grid;
    gap: 28px;
}

.author__portrait {
    height: 240px;
}

/* Keeps his face in frame at every crop, from the wide phone slot to the tall desktop one. */
.author__portrait img {
    object-position: 50% 15%;
}

.author .h2 {
    margin-top: 16px;
}

.author__bio {
    margin-top: 20px;
}

.credentials {
    margin-top: 28px;
}

.credential {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 12px;
    padding-block: 14px;
    border-top: 1px solid var(--rule);
}

.credential:last-child {
    border-bottom: 1px solid var(--rule);
}

.credential dt {
    font-size: var(--text-figure);
    font-weight: 700;
    letter-spacing: -.02em;
}

.credential dd {
    font-size: var(--text-small);
    opacity: .75;
}

@media (min-width: 900px) {
    .author {
        grid-template-columns: 380px 1fr;
        gap: 64px;
        align-items: start;
    }

    .author__portrait {
        height: 440px;
    }

    .author .h2 {
        margin-top: 20px;
    }

    .author__bio {
        margin-top: 24px;
    }

    .credentials {
        display: flex;
        margin-top: 36px;
        border-top: 1px solid var(--rule);
    }

    .credential, .credential:last-child {
        display: block;
        padding: 22px 32px 0;
        border: 0;
        border-left: 1px solid var(--rule);
    }

    .credential:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .credential:last-child {
        padding-right: 0;
    }

    .credential dd {
        max-width: 24em;
        margin-top: 4px;
        font-size: var(--text-ui);
    }
}

/* --- FAQ ----------------------------------------------------- */
.faq {
    max-width: 1000px;
    margin-top: 28px;
}

.faq__item {
    border-top: 1px solid var(--rule);
}

.faq__item:first-child {
    border-top-color: var(--charcoal);
}

.faq__item:last-child {
    border-bottom: 1px solid var(--charcoal);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 44px;
    padding-block: 18px;
    font-size: var(--text-faq);
    font-weight: 600;
    letter-spacing: -.01em;
    list-style: none;
    cursor: pointer;
    transition: background-color var(--transition);
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q:hover, .faq__q:focus-visible {
    background: var(--sky-wash);
}

.faq__glyph {
    flex: none;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
}

.faq__glyph::before {
    content: "+";
}

.faq__item[open] .faq__glyph::before {
    content: "–";
}

.faq__a {
    max-width: 44em;
    padding-bottom: 24px;
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.65;
}

.faq__a a {
    margin-left: .25em;
}

@media (min-width: 900px) {
    .faq {
        margin-top: 48px;
    }

    .faq__q {
        padding-block: 26px;
    }

    .faq__a {
        padding-bottom: 30px;
        font-size: 20px;
        line-height: 1.6;
    }
}

/* --- Sample chapter form ------------------------------------- */
.band--sample {
    padding-block: clamp(2.75rem, 1.879rem + 3.571vw, 5rem);
    border-bottom: 0;
}

.sample {
    display: grid;
    gap: 28px;
}

.sample__lead {
    margin-top: 16px;
    max-width: 28em;
}

.field-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.text-input {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--charcoal);
    border-radius: 0;
    background: var(--bone);
    font-family: var(--font-sans);
    font-size: 17px;
    color: var(--charcoal);
}

.text-input:focus-visible {
    outline-offset: 2px;
}

.text-input[aria-invalid="true"] {
    border-color: var(--warm-ink);
}

.sample-form .btn {
    width: 100%;
    margin-top: 16px;
}

.sample-form__note {
    margin-top: 16px;
    opacity: .8;
}

.sample-message {
    margin-top: 12px;
    font-size: var(--text-ui);
    line-height: 1.6;
}

.sample-message a {
    font-weight: 600;
}

/* The honeypot: kept out of sight and out of the tab order, but not display:none. */
.sample-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sample-back {
    padding-block: 32px;
}

@media (min-width: 900px) {
    .sample {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: start;
    }

    .sample__lead {
        margin-top: 18px;
    }

    .text-input {
        font-size: 18px;
    }
}

/* --- Payoff -------------------------------------------------- */
.payoff__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.payoff__actions .link-strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

@media (min-width: 600px) {
    .payoff__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 20px;
        margin-top: 52px;
    }
}

/* --- Footer -------------------------------------------------- */
.site-footer {
    padding-block: 40px;
    background: var(--charcoal);
    color: var(--bone);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.site-footer .wordmark {
    color: var(--bone);
    font-size: 20px;
}

.site-footer__legal {
    margin-top: 12px;
    font-size: var(--text-small);
    line-height: 1.6;
    opacity: .75;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (min-width: 900px) {
    .site-footer {
        padding-block: 48px;
    }

    .site-footer__inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 48px;
    }

    .site-footer__links {
        flex-direction: row;
        gap: 32px;
        font-size: var(--text-small);
    }
}

/* --- Mobile buy bar ------------------------------------------
   The last element in the document, so sticky bottom keeps it
   in view while scrolling and lets it rest after the footer. */
.buy-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bone);
    border-top: 1px solid var(--charcoal);
}

.buy-bar .btn {
    padding: 12px 16px;
    font-size: 16px;
}

.buy-bar .btn--primary {
    flex: 1;
}

/* --- Error page ---------------------------------------------- */
.error-page .h2 + p {
    margin-top: 16px;
}

.error-page p + p {
    margin-top: 12px;
}

/* --- /preview — the component gallery ------------------------
   Not part of the site chrome; scoped under .gallery so it can
   never leak into a real page. */
.gallery {
    padding-block: 48px 96px;
}

.gallery-header p {
    max-width: 44em;
    margin-top: 12px;
}

.gallery-section {
    margin-top: 56px;
}

.gallery-section > h2 {
    margin-bottom: 20px;
}

.gallery-item {
    margin-top: 24px;
}

.gallery-label {
    margin-bottom: 10px;
}

.gallery-canvas {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    border: 1px solid var(--rule);
}

.gallery-canvas.stack {
    display: block;
}

.gallery-canvas.flush {
    padding: 0;
}

.gallery-canvas > .band, .gallery-canvas > .section {
    width: 100%;
}

.swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    width: 100%;
}

.swatch-chip {
    height: 64px;
    border: 1px solid var(--rule);
}

.swatch-name {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: var(--text-caption);
}

.type-row {
    padding-block: 14px;
    border-bottom: 1px dashed var(--rule);
}

.type-row:last-child {
    border-bottom: 0;
}

.type-row-meta {
    margin-bottom: 6px;
}

.gallery-full {
    width: 100%;
}

.gallery-slot {
    width: 260px;
    height: 180px;
}

.fill-bone { background: var(--bone); }
.fill-bone-deep { background: var(--bone-deep); }
.fill-bone-deeper { background: var(--bone-deeper); }
.fill-charcoal { background: var(--charcoal); }
.fill-moss { background: var(--moss); }
.fill-warm { background: var(--warm); }
.fill-warm-ink { background: var(--warm-ink); }
.fill-sky { background: var(--sky); }

.type-h1 { font-size: var(--text-h1); font-weight: 700; line-height: 1.04; letter-spacing: -.028em; }
.type-payoff { font-size: var(--text-payoff); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.type-h2-large { font-size: var(--text-h2-large); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.type-h2 { font-size: var(--text-h2); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.type-h3 { font-size: var(--text-h3); font-weight: 600; letter-spacing: -.015em; }
.type-statement { font-size: var(--text-statement); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.type-statement-serif { font-family: var(--font-serif); font-size: var(--text-statement-serif); line-height: 1.4; }
.type-lead { font-family: var(--font-serif); font-size: var(--text-lead); line-height: 1.55; }
.type-body { font-family: var(--font-serif); font-size: var(--text-body); line-height: 1.55; }
.type-testimonial { font-family: var(--font-serif); font-size: var(--text-testimonial); line-height: 1.42; }
.type-button { font-size: var(--text-button); font-weight: 600; }
.type-ui { font-size: var(--text-ui); }
.type-small { font-size: var(--text-small); line-height: 1.6; }
.type-kicker { font-size: var(--text-kicker); font-weight: 600; color: var(--moss); }
.type-price { font-size: var(--text-price); font-weight: 700; line-height: 1; letter-spacing: -.03em; }