/* The selling homepage: one column of results, one card style, one heading scale.
   Loaded last. Spec: docs/superpowers/specs/2026-11-19-sell-homepage-design.md */

/* Proof strip: the numbers a reader should see before scrolling. */
.proofStrip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.proofItem {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--lab-line);
}

.proofValue {
    font: 700 32px/1.1 var(--font-body);
    font-variant-numeric: tabular-nums;
    color: var(--lab-accent);
}

.proofLabel {
    font: 700 16px/1.3 var(--font-body);
    color: var(--lab-ink);
}

.proofNote {
    font: 400 14px/1.45 var(--font-body);
    color: var(--lab-muted);
    text-wrap: pretty;
}

@media (max-width: 699px) {
    .proofStrip {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}

/* Wide screens: the proof column takes the empty right half of the hero, so the field stays in view. */
@media (min-width: 1100px) {
    .fieldIntro {
        max-width: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
        column-gap: 64px;
        align-items: start;
    }

    .fieldIntro > * {
        grid-column: 1;
    }

    .fieldIntro > .proofStrip {
        grid-column: 2;
        grid-row: 1 / span 4;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 12px 0 0;
    }

    .fieldIntro .proofItem {
        gap: 2px;
        padding-top: 8px;
    }

    .fieldIntro .proofValue {
        font-size: 28px;
    }

    .fieldIntro .proofNote {
        font-size: 13px;
        line-height: 1.4;
    }

    #heroSection {
        padding-top: 32px;
    }
}

/* Selected work: four cards that lead with the outcome. */
.workGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.workCard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--card-radius);
    background: var(--lab-panel-solid);
}

.workArt {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
}

.workBody {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.workTitle {
    margin: 0;
    font: 700 22px/1.25 var(--font-body);
    color: var(--lab-ink);
    text-wrap: balance;
}

.workOutcome {
    margin: 0;
    font: 400 18px/1.45 var(--font-body);
    color: var(--lab-ink);
    text-wrap: pretty;
}

.workContext {
    margin: 0;
    font: 400 15px/1.5 var(--font-body);
    color: var(--lab-muted);
    text-wrap: pretty;
}

.workStack {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    font: 400 14px/1.4 var(--font-data);
    color: var(--lab-muted);
}

.workLink {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 4px;
    font: 700 16px/1.4 var(--font-body);
    color: var(--lab-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (hover: hover) {
    .workLink:hover,
    .workList a:hover {
        color: var(--lab-accent-hover);
    }
}

/* The other projects: a plain list. */
.workListHeading {
    margin: 56px 0 8px;
    font: 700 22px/1.25 var(--font-body);
    color: var(--lab-ink);
}

.workList {
    margin: 0;
    padding: 0;
    list-style: none;
}

.workList > li {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr) auto;
    gap: 4px 24px;
    align-items: baseline;
    padding: 14px 0;
    border-top: 1px solid var(--lab-line);
    font: 400 16px/1.45 var(--font-body);
    color: var(--lab-muted);
}

.workListTitle {
    font-weight: 700;
    color: var(--lab-ink);
}

.workList a {
    color: var(--lab-accent);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 899px) {
    .workGrid {
        grid-template-columns: minmax(0, 1fr);
    }

    .workList > li {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* One heading system: every section title is Lato 700 at one size. */
.sectionTitle,
.contactCopy .sectionTitle {
    margin: 0 0 24px;
    font: 700 40px/1.15 var(--font-body);
    letter-spacing: 0;
    text-align: left;
    text-wrap: balance;
    color: var(--lab-ink);
}

.section p {
    text-wrap: pretty;
}

@media (max-width: 899px) {
    .sectionTitle,
    .contactCopy .sectionTitle {
        font-size: 28px;
    }
}

/* The hero field spills 200px past the hero; the work section starts below it. */
@media (min-width: 900px) {
    #portfolio {
        padding-top: 264px;
    }
}

/* Collapsed sections under Resume share one look and one gap. */
#resume .resumeDetails + .resumeDetails {
    margin-top: 12px;
}

/* One surface for every card: a hairline, a 16px radius, no shadow. */
.workCard,
.resumePriorityCard,
.testimonialCard,
.writingCard,
.contactPanel,
.resumeDetails,
body.dark-mode .resumePriorityCard,
body.dark-mode .testimonialCard,
body.dark-mode .writingCard,
body.dark-mode .contactPanel {
    border: 0;
    border-radius: var(--card-radius);
    background: var(--lab-panel-solid);
    box-shadow: none;
}

/* Controls are pills. */
.heroButton,
.findAskLauncher,
.navFindButton {
    border-radius: 999px;
}

/* Images inside a surface keep a faint edge, so a white diagram still reads as placed. */
.writingThumb img,
.workArt {
    outline: 1px solid rgb(0 0 0 / .08);
    outline-offset: -1px;
}

@media (hover: hover) {
    .resumePriorityCard:hover,
    .testimonialCard:hover,
    .writingCard:hover {
        box-shadow: none;
        transform: none;
    }
}

/* Night: focus rings on the new links use the light accent, so they stay visible on dark cards. */
body.dark-mode .workCard a:focus-visible,
body.dark-mode .workList a:focus-visible {
    outline-color: var(--lab-accent);
}

/* Fixes from the 2026-11-19 UI flow tests. */

/* The logo keeps to its own column and never runs under the company name. */
img.resumeIcon {
    max-width: 100%;
    height: auto;
}

/* JSON punctuation is readable on the dark panel. */
#code,
.console-content {
    color: #d4d4d4;
}

/* Thumbnails show the whole diagram. */
.writingThumb img {
    object-fit: contain;
}

/* Cards in a row end level. */
.certCard,
.testimonialCard {
    height: 100%;
}

/* The work section begins under the field's overhang, so its anchor lands on the heading. */
@media (min-width: 900px) {
    #portfolio {
        scroll-margin-top: -168px;
    }
}

/* Tap targets are at least 44px tall. */
.workLink,
.workList a,
.heroTextLink {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.fieldCastChoices button,
.fieldSeasonChoices button {
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
}

/* Small phones: the full resume and the reading carousel get their width back. */
@media (max-width: 560px) {
    #resume .resumeDetails {
        width: 100%;
        margin-inline: 0;
    }

    #resume .resumeDetailsInner {
        padding-inline: 12px;
    }

    #resume .resumeDetails,
    #resume .resumeDetailsInner .container,
    #resume .resumeDetailsInner [class*="col-"],
    #resume .resumeTimelineWrap {
        padding-inline: 0;
    }

    #resume .resumeDetails > summary {
        padding-inline: 12px;
    }

    #resume .expertiseCategory {
        padding: 16px;
    }

    #resume .resumeDetailsInner .row {
        margin-inline: 0;
    }

    .resumeList {
        padding-left: 20px;
    }
}

/* Small labels never drop below 12px. */
.resumeSkill,
.readingSignal,
.certTopic,
.writingTag {
    font-size: 12px;
}

/* Night: links, highlights and icon tiles keep their contrast. */
body.dark-mode .writingLink {
    color: var(--lab-accent);
}

body.dark-mode .accent-success {
    color: #8fd19e;
}

body.dark-mode .certIcon {
    background: var(--lab-bg-soft);
    color: var(--lab-accent);
}

/* Without JS the menu cannot open, so it stays open; controls that need JS are hidden. */
html:not(.js) .navbar-collapse {
    display: block;
}

html:not(.js) .navbar-toggler,
html:not(.js) .navFindButton,
html:not(.js) #darkModeToggle {
    display: none;
}

@media (max-width: 560px) {
    .bookCarousel {
        padding: 12px;
    }

    .bookCarouselShell {
        padding: 0;
    }
}

/* Very small phones: the cover sits above its blurb, not beside it. */
@media (max-width: 400px) {
    .bookStage {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 12px;
    }

    .bookStage img {
        max-width: 100%;
        height: auto;
    }
}

/* An older rule forces 30px side margins with !important; small phones cannot spare them. */
@media (max-width: 400px) {
    #resume.resumeSection {
        margin: 20px 16px !important;
    }
}

@media (max-width: 560px) {
    .readingIntro {
        padding: 12px;
    }
}

/* The thumbnail takes the card's top corners itself, so the card need not clip focus rings. */
.writingThumb {
    overflow: hidden;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}
