/* Hallmark · shape: Banner, Article, Index · genre: editorial · theme: brand · redesign: full · copy: verbatim
 * paper: oklch(1 0 0) · accent: oklch(0.77 0.2 135) · display: Literata · body: Hanken Grotesk · hero: Banner · nav: kept · footer: kept · signature: the root clinical pages set as one family with the home page — a Banner hero, Literata heads on a 66ch article column, hairline Index rows on a Mist band
 * axes: light/roman-serif/chromatic-green · posture: Banner · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: E, one sheet serves 24 pages with a single banner ratio, so every page is reviewed in screenshots at three widths before it is committed */
/* Hallmark · answered F1 · copy: verbatim, the Doctor's straight apostrophes and quotes stand as written on the clinical pages */
/* Article pages only (ticket 23). Tokens, controls and chrome come from
   ../shell/shell.css; nothing here declares a colour or a face of its own.
   Compositions, from site/design.md: Banner (hero), Article (prose),
   Index (rows on a Mist band). */

/* Section rhythm: Paper and Mist alternate, hairlines part the bands. */

.hm-section {
    padding: 72px 0;
}

@media (min-width: 1024px) {
    .hm-section {
        padding: 112px 0;
    }
}

.hm-section--mist {
    background: var(--mist);
}

/* Banner hero: h1 and its lead beside the page's existing image from 1000px
   up, below it on a phone; Book and Call visible at 1280 x 800. */

.hm-banner {
    padding: 40px 0 64px;
}

@media (min-width: 1024px) {
    .hm-banner {
        padding: 80px 0 104px;
    }
}

.hm-banner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

@media (min-width: 1000px) {
    .hm-banner-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 64px;
    }
}

.hm-banner-copy {
    min-width: 0;
}

/* The article starts close under the hero; the bands further down keep the
   full section rhythm. */

.hm-banner + .hm-section {
    padding-top: 16px;
}

.hm-banner h1 {
    max-width: 15ch;
    font-size: clamp(2.5rem, 5.6vw, 4.25rem);
}

.hm-banner-lead {
    max-width: 46ch;
    margin: 24px 0 0;
    color: var(--graphite);
    font-size: 19px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hm-banner-lead {
        font-size: 20px;
    }
}

.hm-banner .sg-actions {
    margin-top: 28px;
}

.hm-banner-media {
    margin: 0;
    min-width: 0;
}

.hm-banner-media img {
    width: 100%;
    height: auto;
}

/* Section head beside or above the body, as on the home page. */

.hm-head {
    display: grid;
    gap: 16px;
    margin-bottom: 48px;
}

/* A head without a lead line keeps one column; no empty right half. */

.hm-head--single {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
    .hm-head {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 64px;
        align-items: end;
        margin-bottom: 64px;
    }
}

/* After the 900px rule so it wins: a head with no lead line stays one column. */

@media (min-width: 900px) {
    .hm-head.hm-head--single {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hm-head h2 {
    min-width: 0;
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    overflow-wrap: break-word;
}

.hm-head p {
    max-width: 52ch;
    margin: 0;
    color: var(--graphite);
    font-size: 18px;
    line-height: 1.6;
}

/* Index: full-width rows, title in Literata on 5 of 12 columns, its line in
   Graphite on 7 of 12, hairlines between, hover underlines the title in Leaf. */

.hm-index {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hairline);
    list-style: none;
}

.hm-index a {
    display: grid;
    gap: 8px;
    padding: 24px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink);
    text-decoration: none;
}

@media (min-width: 800px) {
    .hm-index a {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 64px;
        align-items: baseline;
        padding: 32px 0;
    }
}

.hm-index-name {
    font-family: var(--font-serif);
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.2;
    text-decoration-line: none;
    text-decoration-color: var(--leaf);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.hm-index a:hover .hm-index-name {
    text-decoration-line: underline;
}

.hm-index-desc {
    color: var(--graphite);
    font-size: 17px;
    line-height: 1.55;
}

.hm-index a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

/* Article: the page's prose in the 66ch reading column. Heads at section and
   item scale, lists with graphite markers, images square and unframed. */

.hm-prose {
    max-width: var(--reading);
}

.hm-prose > :first-child {
    margin-top: 0;
}

.hm-prose h2 {
    margin: 48px 0 16px;
    font-size: clamp(1.625rem, 2.8vw, 2.25rem);
    line-height: 1.15;
}

.hm-prose h3 {
    margin: 36px 0 12px;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    line-height: 1.25;
}

.hm-prose ul,
.hm-prose ol {
    margin: 0 0 1em;
    padding-left: 24px;
}

.hm-prose li + li {
    margin-top: 8px;
}

.hm-prose li::marker {
    color: var(--graphite);
}

.hm-prose li p {
    margin-bottom: 0;
}

.hm-media {
    margin: 32px 0;
}

.hm-media img {
    width: 100%;
    height: auto;
}

.hm-media figcaption {
    margin-top: 8px;
    color: var(--graphite);
    font-size: 14px;
    line-height: 1.5;
}
