/* The partner dossier (dossier.html), on the site's paper: Montserrat with its Black weight for
   titles, one Bodoni word, the app's grain and inks (style.css has the same tokens). On screen the
   sheets stack like paper slips; printed, each sheet is one A4 landscape page:
   scripts/build-dossier-pdf.mjs prints it to /files/*.pdf. */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Black, Latin only, subset from harmony-app assets/fonts/Montserrat-Black.ttf. */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/fonts/montserrat-black-latin.woff') format('woff');
}
/* The app's accent face: Latin subset, OFL (fonts/BodoniModa-OFL.txt). */
@font-face {
    font-family: 'Bodoni Moda';
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/bodoni-moda-extrabold-italic.woff') format('woff');
    unicode-range: U+0020-017F;
}

:root {
    --paper: #F2F5F1;
    --slip: #FBF8F1;
    --ink: #1F2A27;
    --ink-soft: #55655F;
    --house: #2F5D50;
    --night: #1D4239;
    --night-soft: #C9DDD6;
    --night-accent: #A8E0CE;
    --hairline: rgba(31, 42, 39, 0.12);
    --shadow: rgba(48, 38, 26, 0.16);
    --sans: 'Montserrat', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 500 16px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
}

/* The app's paper grain over everything, at its light-theme strength (src/art/print.js GRAIN). */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url('/images/noise-grain.png') repeat;
    background-size: 128px;
    opacity: 0.16;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 40;
}

a {
    color: inherit;
}

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

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

/* Controls (screen only) */

.dossier-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px max(20px, calc((100% - 1123px) / 2));
}

.dossier-controls-end {
    display: flex;
    align-items: center;
    gap: 22px;
}

.dossier-back {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.dossier-back:hover {
    text-decoration: underline;
}

.language-switcher {
    display: flex;
    align-items: center;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
}

.language-switcher button {
    min-width: 32px;
    min-height: 32px;
    background: none;
    border: 0;
    padding: 4px;
    font: 600 12px var(--sans);
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    cursor: pointer;
}

.language-switcher button.active {
    color: var(--ink);
    font-weight: 700;
}

.dossier-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--slip);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.dossier-download:hover {
    background: var(--house);
}

/* Sheets: the paper the art is drawn on, edged with a hairline and the site's flat print shadow. */

.dossier {
    max-width: 1123px;
    margin: 8px auto 72px;
    display: grid;
    gap: 28px;
    padding: 0 20px;
}

.sheet {
    position: relative;
    display: grid;
    align-content: center;
    gap: 32px;
    min-height: 600px;
    padding: 64px 72px 80px;
    background: var(--paper);
    border: 1px solid var(--hairline);
    box-shadow: 2px 3px 0 var(--shadow);
}

.sheet-split,
.sheet-cover {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 64px;
}

h1,
h2 {
    font-weight: 900;
    letter-spacing: -0.025em;
    text-wrap: balance;
    margin: 0 0 20px;
}

h1 {
    font-size: 3.6rem;
    line-height: 1;
}

h2 {
    font-size: 2.4rem;
    line-height: 1.05;
}

/* The one Bodoni word, as on the home page. */
h1 em {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-style: italic;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--house);
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

p {
    margin: 0 0 14px;
}

.eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--house);
}

.sheet-copy {
    max-width: 62ch;
}

.sheet-copy-wide {
    max-width: 78ch;
}

.sheet-copy p,
.checklist {
    color: var(--ink-soft);
}

.sheet-copy strong {
    color: var(--ink);
}

.cover-wordmark {
    display: block;
    margin-bottom: 40px;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

.cover-subtitle {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

/* The app's art: the collage as a torn piece on the slip, the discs round. */
.sheet-art {
    justify-self: center;
    width: 100%;
}

.sheet-art img {
    display: block;
    width: 100%;
    height: auto;
}

.sheet-art-square {
    max-width: 380px;
}

.sheet-art-disc {
    max-width: 280px;
}

.sheet-art-disc img {
    border-radius: 50%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.feature-disc {
    display: block;
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    border-radius: 50%;
}

.feature p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 0;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.checklist li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: var(--house);
}

/* Closing sheet: the site's one dark field (the share cards' sage ground) with the riso band. */
.sheet-closing {
    background: var(--night);
    color: var(--slip);
}

.sheet-closing .eyebrow,
.sheet-closing a {
    color: var(--night-accent);
}

.sheet-closing p,
.sheet-closing .sheet-copy p {
    color: var(--night-soft);
}

.closing-band {
    display: block;
    width: 320px;
    max-width: 100%;
    height: auto;
}

.contact {
    padding: 22px 26px;
    border: 1.5px solid rgba(243, 248, 246, 0.25);
    max-width: 62ch;
}

.contact p:last-child {
    margin: 0;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-weight: 700;
}

.sheet-footer {
    position: absolute;
    left: 72px;
    right: 72px;
    bottom: 28px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.sheet-closing .sheet-footer {
    color: var(--night-soft);
}

/* consent.js's banner as the site's small paper slip in the corner (style.css has the same). */
body .cookie-banner {
    left: auto;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    max-width: 320px;
    margin: 0;
    padding: 14px 16px 12px;
    background: var(--slip);
    color: var(--ink);
    border: 0;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.45;
    transform: rotate(-1deg);
    box-shadow: 2px 3px 0 var(--shadow), 0 10px 24px rgba(31, 42, 39, 0.1);
}
body .cookie-banner h2 { font: 900 13px/1.2 var(--sans); letter-spacing: 0; margin: 0 0 4px; }
body .cookie-banner p { margin: 0 0 10px; color: var(--ink-soft); }
body .cookie-banner a { color: var(--ink); }
body .cookie-banner-actions { gap: 8px; }
body .cookie-banner-actions button { min-height: 32px; border: 1.5px solid var(--ink); font: 700 12px var(--sans); color: var(--ink); background: none; }
body .cookie-banner-actions button:hover { background: var(--ink); color: var(--slip); }

@media screen and (max-width: 860px) {
    .sheet {
        min-height: 0;
        padding: 40px 24px 72px;
    }

    .sheet-split,
    .sheet-cover {
        grid-template-columns: minmax(0, 1fr);
    }

    .sheet-art {
        order: -1;
    }

    .sheet-art-square,
    .sheet-art-disc {
        max-width: 220px;
    }

    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .sheet-footer {
        left: 24px;
        right: 24px;
        bottom: 22px;
    }

    body .cookie-banner { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; font-size: 13px; }
    body .cookie-banner-actions button { min-height: 44px; font-size: 13px; }
}

@media screen and (max-width: 520px) {
    .dossier {
        padding: 0 12px;
    }

    .dossier-controls {
        justify-content: center;
    }
}

/* Print: one A4 landscape page per sheet, edge to edge, on the paper. */
@page {
    size: A4 landscape;
    margin: 0;
}

@media print {
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        background: var(--paper);
        font-size: 14px;
    }

    .dossier-controls,
    .contact-cookies,
    .cookie-banner {
        display: none !important;
    }

    .dossier {
        display: block;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .sheet {
        width: 297mm;
        height: 210mm;
        min-height: 0;
        padding: 18mm 22mm 20mm;
        background: var(--paper);
        box-shadow: none;
        overflow: hidden;
        break-after: page;
        break-inside: avoid;
    }

    .sheet-closing {
        background: var(--night);
    }

    .sheet:last-child {
        break-after: auto;
    }

    .sheet-footer {
        left: 22mm;
        right: 22mm;
        bottom: 9mm;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 32px;
    }

    .cover-subtitle {
        font-size: 17px;
    }

    .feature p {
        font-size: 13px;
    }

    .sheet-art-square {
        max-width: 320px;
    }

    .sheet-art-disc {
        max-width: 240px;
    }
}

a[href^="tel:"] {
    white-space: nowrap;
}
