/* =========================================================
   LITTLE DARLING — QUESTIONS & ANSWERS
   This file sits on top of littledarling.css.
   ========================================================= */

.qa-page {
    min-height: 100vh;
}

.qa-wrapper {
    padding: clamp(55px, 7vw, 95px) 0 100px;
}

.qa-story {
    width: min(86%, 760px);
}

/* ---------------------------------------------------------
   Q&A INDEX — dark page
   --------------------------------------------------------- */

.qa-index-mode {
/*    background: linear-gradient(45deg, #1e1a16 0%, #322a22 100%);*/
	background: linear-gradient(270deg, #483b31 0%, #221b18 100%);
    color: #f4f0e9;
}

.qa-index-mode .qa-header,
.qa-index-mode .qa-index {
    color: #f4f0e9;
}

.qa-back-home {
    display: inline-flex;
    align-items: center;
    color: #b3974c;
    font-family: "DM Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 10px 10px 0;
    margin: -10px -10px -10px 0;
}

.qa-back-home:hover {
    text-decoration: none;
}

.qa-back-arrow {
    display: inline-block;
    position: relative;
    top: 2px;
    margin-right: 12px;
    color: #b3974c;
    font-family: "Newsreader", serif;
    font-size: 23px;
    line-height: 1;
    transition: transform .18s ease;
}

.qa-back-home:hover .qa-back-arrow {
    transform: translateX(-4px);
}

.qa-index-mode .chapter-title {
    margin-top: 20px;
    color: #b3974c;
}

.qa-subtitle {
    margin: 0 0 0.80em;
    color: #f4f0e9;
    font-size: 30px;
    font-weight: 540;
    line-height: 1.28;
}

.qa-intro {
    max-width: 760px;
    margin: 0 0 1.15em;
    color: rgba(244, 240, 233, .78);
    font-size: 21px;
    line-height: 1.5;
}

.qa-index > .qa-intro:last-of-type {
    margin-bottom: 1.2em;
}

.qa-list {
    border-top: 1px solid rgba(244, 240, 233, .18);
}

.qa-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    padding: 22px 0;
    border-bottom: 1px solid rgba(244, 240, 233, .18);
    color: #d1c5a2;
    text-decoration: none;
}

.qa-question-text {
    min-width: 0;
    font-size: clamp(20px, 2.4vw, 24px);
    line-height: 1.3;
}

.qa-question-arrow {
    flex: 0 0 auto;
    color: #b3974c;
    font-size: 23px;
    line-height: 1;
    transition: transform .18s ease;
}

.qa-question:hover .qa-question-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.qa-question:hover .qa-question-arrow {
    transform: translateX(4px);
}

.qa-question-status {
    display: block;
    margin-top: 5px;
    color: rgba(244, 240, 233, .45);
    font-family: "DM Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .09em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   ANSWER PAGE — light reading environment
   --------------------------------------------------------- */

.qa-answer-mode {
    background: #f4f0e9;
    color: #292725;
}

.qa-answer-mode .qa-story {
    width: min(90%, 1180px);
}

.qa-answer-mode .qa-header,
.qa-answer-mode .qa-index {
    display: none;
}

.qa-answer {
    display: block;
}

.qa-answer[hidden] {
    display: none;
}

.qa-answer-header {
    width: min(100%, 760px);
    margin: 0 auto 55px;
}

/* On long answers, the heading belongs to the reading column too.
   The sidebar is the only element that sits to its left. */

.qa-answer.is-long-answer {
    --qa-nav-width: 250px;
    --qa-column-gap: clamp(45px, 6vw, 70px);
    --qa-reading-width: 760px;
    --qa-layout-width: calc(var(--qa-nav-width) + var(--qa-column-gap) + var(--qa-reading-width));
}

.qa-answer.is-long-answer .qa-answer-header {
    width: min(100%, var(--qa-layout-width));
    padding-left: calc(var(--qa-nav-width) + var(--qa-column-gap));
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.qa-answer-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 45px;
    color: #b3974c;
    font-family: "DM Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
}

.qa-answer-back:hover {
    text-decoration: none;
}

.qa-answer-back span {
    position: relative;
    top: 1px;
    font-family: "Newsreader", serif;
    font-size: 22px;
    transition: transform .18s ease;
}

.qa-answer-back:hover span {
    transform: translateX(-4px);
}

.qa-answer-label {
    margin: 0 0 18px;
    color: #d1c5a2;
    font-family: "DM Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.qa-answer-title {
    margin-bottom: .45em;
}

.qa-answer-subtitle {
    margin: 0;
    color: #1e1a18;
    font-size: 24px;
    font-weight: 540;
    line-height: 1.28;
}

.qa-answer-header .qa-answer-subtitle {
    margin: 0 0 1.15em;
    line-height: 1.52;
}

/* ---------------------------------------------------------
   LONG ANSWERS — sticky live contents + reading column
   --------------------------------------------------------- */

.qa-answer-layout {
    width: min(100%, 1080px);
    margin: 0 auto;
}

.qa-answer-layout.has-sections {
    width: min(100%, var(--qa-layout-width));
    display: grid;
    grid-template-columns: var(--qa-nav-width) minmax(0, var(--qa-reading-width));
    gap: var(--qa-column-gap);
    align-items: start;
}

.qa-answer-sidebar {
    position: sticky;
    top: 42px;
    align-self: start;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    padding: 4px 12px 18px 0;
}

.qa-sidebar-label {
    margin: 0 0 18px;
    color: #a99e94;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.qa-section-nav {
    border-left: 1px solid rgba(41, 39, 37, .13);
}

.qa-section-link {
    display: block;
    position: relative;
    padding: 7px 0 7px 20px;
    color: #8a817a;
    font-size: 17px;
    line-height: 1.25;
    text-decoration: none;
    transition: color .15s ease;
}

.qa-section-link:hover {
    color: #4f4944;
    text-decoration: none;
}

.qa-section-link.is-active {
    color: #292725;
    font-weight: 560;
}

.qa-section-link.is-active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #b3974c;
}

.qa-section-link.is-child {
    padding-left: 34px;
    font-size: 15px;
}

.qa-answer-content {
    min-width: 0;
    min-height: 0;
}

.qa-answer-section {
    scroll-margin-top: 42px;
    margin: 0 0 72px;
}

.qa-answer-section:last-child {
    margin-bottom: 0;
}

.qa-answer-section > :first-child {
    margin-top: 0;
}

.qa-answer-section-title {
    margin: 0 0 .65em;
    color: #b3974c;
    font-size: clamp(31px, 3.4vw, 40px);
    font-weight: 420;
    line-height: 1.08;
    letter-spacing: -.015em;
}

.qa-answer-content .qa-coming-soon {
    color: #6f6761;
    font-style: italic;
}

/* ---------------------------------------------------------
   MOBILE CONTENTS
   --------------------------------------------------------- */

.qa-mobile-contents {
    display: none;
}

.qa-navigation {
    width: min(100%, 760px);
    margin-left: auto;
    margin-right: auto;
}

.qa-answer.is-long-answer .qa-navigation {
    width: min(100%, var(--qa-layout-width));
    padding-left: calc(var(--qa-nav-width) + var(--qa-column-gap));
    box-sizing: border-box;
}

.qa-navigation a.chapter-nav-button {
    text-decoration: none;
}

.qa-navigation a.chapter-nav-button:hover strong {
    text-decoration: underline;
}

.qa-navigation .chapter-nav-next[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .qa-answer-mode .qa-story {
        width: min(86%, 760px);
    }

    .qa-answer-header {
        margin-bottom: 35px;
    }

    .qa-answer.is-long-answer .qa-answer-header,
    .qa-answer.is-long-answer .qa-navigation {
        width: 100%;
        padding-left: 0;
    }

    .qa-answer-layout.has-sections {
        display: block;
    }

    .qa-answer-sidebar {
        display: none;
    }

    .qa-mobile-contents {
        display: block;
        position: sticky;
        top: 0;
        z-index: 20;
        margin: 0 0 42px;
        background: rgba(244, 240, 233, .97);
        border-top: 1px solid rgba(41, 39, 37, .13);
        border-bottom: 1px solid rgba(41, 39, 37, .13);
        backdrop-filter: blur(8px);
    }

    .qa-mobile-contents-button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        width: 100%;
        padding: 12px 0;
        border: 0;
        background: transparent;
        color: #292725;
        text-align: left;
        cursor: pointer;
    }

    .qa-mobile-contents-button small {
        display: block;
        margin-bottom: 2px;
        color: #a99e94;
        font-family: "DM Mono", monospace;
        font-size: 9px;
        font-weight: 400;
        letter-spacing: .09em;
        text-transform: uppercase;
    }

    .qa-mobile-contents-button strong {
        display: block;
        font-family: "Newsreader", serif;
        font-size: 17px;
        font-weight: 560;
        line-height: 1.15;
    }

    .qa-mobile-chevron {
        flex: 0 0 auto;
        color: #b3974c;
        font-size: 22px;
        transition: transform .18s ease;
    }

    .qa-mobile-contents-button[aria-expanded="true"] .qa-mobile-chevron {
        transform: rotate(180deg);
    }

    .qa-mobile-contents-menu {
        max-height: 55vh;
        overflow-y: auto;
        padding: 3px 0 14px;
        border-top: 1px solid rgba(41, 39, 37, .09);
    }

    .qa-mobile-contents-menu .qa-section-link {
        padding-left: 0;
    }

    .qa-mobile-contents-menu .qa-section-link.is-child {
        padding-left: 18px;
    }

    .qa-mobile-contents-menu .qa-section-link.is-active::before {
        display: none;
    }

    .qa-answer-section {
        scroll-margin-top: 82px;
    }
}

@media (max-width: 700px) {
    .qa-wrapper {
        padding: 42px 0 70px;
    }

	.qa-subtitle {
	    font-size: 26px;
	}
	
	.qa-answer-subtitle {
	    font-size: 22px;
	}

    .qa-intro {
        font-size: 18px;
    }

    .qa-question {
        gap: 18px;
        padding: 19px 0;
    }

    .qa-answer-back {
        margin-bottom: 35px;
    }

    .qa-answer-section {
        margin-bottom: 58px;
    }
}

/* Gallery commentary section on Q&A landing page */

.qa-gallery-index {
    margin-top: 70px;
}

.qa-gallery-index .qa-intro {
    margin-bottom: 1.2em;
}

.qa-gallery-link {
    cursor: pointer;
}

.qa-gallery-link:hover {
    text-decoration: none;
}

/* Painting sizes in gallery commentary */

.commentary-mode .chapter-image {
    margin: 36px 0 42px;
    text-align: left;
}

.commentary-mode .chapter-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------------------------------------------------------
   Painting sizes
   --------------------------------------------------------- */

.commentary-mode .painting-00 {
    width: min(100%, 368px);
}

.commentary-mode .painting-01 {
    width: min(100%, 368px);
}

.commentary-mode .painting-02 {
    width: min(100%, 200px);
}

.commentary-mode .painting-03 {
    width: min(100%, 240px);
}

.commentary-mode .painting-04 {
    width: min(100%, 368px);
}

.commentary-mode .painting-05 {
    width: min(100%, 440px);
}

.commentary-mode .painting-06 {
    width: min(100%, 152px);
}

.commentary-mode .painting-07 {
    width: min(100%, 210px);
}

.commentary-mode .painting-08 {
    width: min(100%, 170px);
}

.commentary-mode .painting-09 {
    width: min(100%, 296px);
}

.commentary-mode .painting-10 {
    width: min(100%, 296px);
}

.commentary-mode .painting-11 {
    width: min(100%, 237px);
}

.commentary-mode .painting-12 {
    width: min(100%, 368px);
}


/* Gallery commentary subtitle */

.commentary-mode .qa-answer-title {
    margin-bottom: .7em;
}

.commentary-mode .qa-answer-subtitle {
    line-height: 1.4;
}

.qa-gallery-index {
    margin-bottom: 52px;
}

/* Align Q&A and gallery commentary page headers */

.commentary-mode .qa-answer-back {
    margin-bottom: 16px;
}

.commentary-mode .qa-answer-title {
    margin-top: 0;
}

/* Align back links on Q&A and commentary pages */

.commentary-mode .qa-answer-back {
    position: relative;
    top: -4px;
}

.qa-back-arrow,
.qa-answer-back span {
    font-family: "Newsreader", serif;
    font-size: 23px;
    line-height: 1;
    top: 2px;
}