/* A quieter version of the Sabbath field guide, without landscape linework.
   Keep these layouts separate from the map and its lens interactions. */
/* Size the background canvas to the full article, not a single viewport. */
html.soundscape-root {
    height: auto;
    min-height: 100%;
}

.content-page {
    --paper: #f2f5e6;
    --paper-text: #4b604f;
    --paper-rule: #244b3c26;
    background-image: radial-gradient(ellipse at 90% 15%, #aac7a114, transparent 55%);
}

.soundscape-page.content-page .site-main {
    width: calc(100% - 2 * var(--margin));
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 0 64px;
}

.content-page .content-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.content-page h1 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 3.5vw, 46px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.content-page .content-panel {
    color-scheme: light;
    padding: clamp(24px, 4vw, 52px);
    background: var(--paper);
    color: var(--ink);
    border: 6px solid #dce4cb;
    border-radius: 28px 72px 28px 28px;
    box-shadow: 0 24px 70px -30px #041e2580, 0 0 0 1px #eef3dc3b;
}

.content-page .content-panel p {
    color: var(--paper-text);
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.content-page .content-panel p:last-child {
    margin-bottom: 0;
}

.content-page a:focus-visible {
    outline: 2px solid var(--celery);
    outline-offset: 4px;
}

.content-page .content-panel a:focus-visible {
    outline-color: var(--ink);
}

/* Small section headings form an editorial rail alongside the longer text. */
.about-section {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
    gap: clamp(28px, 4vw, 56px);
    padding: 32px 0;
    border-bottom: 1px solid var(--paper-rule);
}

.about-section:first-child {
    padding-top: 0;
}

.content-page .about-section :is(h1, h2) {
    color: var(--ink);
    margin: 0;
}

.content-page .about-section h2 {
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.section-copy {
    min-width: 0;
}

.content-page .content-panel a[href],
.content-page .content-panel a[href]:visited,
.content-page .content-panel a[href]:hover,
.content-page .content-panel a[href]:focus-visible {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-page .footnotes {
    margin-top: 0;
    padding-top: 20px;
    border: 0;
    overflow-wrap: anywhere;
}

.content-page .footnotes p {
    font-size: 11px;
}

.content-page .footnotes p a {
    color: var(--paper-text);
    text-decoration-color: #4b604f66;
}

.content-page .footnotes p a:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
}

.content-page :is(#ref-1, #fn-1) {
    scroll-margin-top: 32px;
}

/* The people page pairs a restrained introduction with a single reading card. */
.page-intro {
    max-width: 660px;
}

.page-intro h1 {
    margin-bottom: 16px;
}

.content-page .page-intro p {
    margin: 0;
    color: #d5e2c4cc;
    font-size: 14px;
    line-height: 1.8;
}

.content-page #contributors-list {
    margin-top: 32px;
    gap: 28px;
}

.content-page .contributor-card,
.content-page .contributor-card:nth-child(even) {
    display: grid;
    grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 4vw, 56px);
    text-align: left;
}

.content-page .contributor-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1;
    border: 4px solid #dce4cb;
    border-radius: 46% 54% 57% 43% / 54% 42% 58% 46%;
}

.content-page .contributor-info {
    min-width: 0;
}

.content-page .content-panel .contributor-role {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    color: #5b6a53;
}

.content-page .contributor-name {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.content-page .contributor-links {
    margin-bottom: 24px;
    justify-content: flex-start;
}

.content-page .contributor-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid #244b3c40;
    border-radius: 999px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.content-page .contributor-links a:hover {
    background: #244b3c0d;
    border-color: #244b3c80;
}

.content-page .contributor-links svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 800px) {
    .about-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .content-page .contributor-card,
    .content-page .contributor-card:nth-child(even) {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .content-page .contributor-image {
        max-width: 160px;
    }
}

@media (max-width: 600px) {
    .soundscape-page.content-page .site-main {
        padding: 28px 0 40px;
    }

    .content-page .content-panel {
        padding: 24px 20px;
        border-width: 5px;
        border-radius: 22px 56px 22px 22px;
    }

    .about-section {
        padding: 26px 0;
    }

    .content-page .contributor-name {
        font-size: 32px;
    }
}
