/* Imagine un Lac — typography, layout, sections, then responsive refinements. */

@font-face {
    font-family: ImagineSans;
    src: url('../fonts/imagine-sans-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: ImagineSans;
    src: url('../fonts/imagine-sans-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: ImagineSerif;
    src: url('../fonts/imagine-serif-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: ImagineSerif;
    src: url('../fonts/imagine-serif-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --paper: #f8f7f2;
    --ink: #183d48;
    --muted: #53686d;
    --blue: #245f71;
    --water: #d9ebed;
    --line: #cdd8d5;
    --green: #596d48;
    --serif: ImagineSerif,Georgia,serif;
    --sans: ImagineSans,Arial,sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 19px;
    line-height: 1.65;
}

a {
    color: inherit;
}

a: focus-visible {
    outline: 3px solid #ac6d35;
    outline-offset: 6px;
}

img {
    display: block;
    max-width: 100%;
}

figure {
    margin: 0;
}

h1,h2,h3,p {
    margin: 0;
}

h1,h2,h3 {
    font-weight: 400;
}

h1,h2 {
    font-family: var(--serif);
    letter-spacing: -.045em;
    line-height: 1.12;
}

h2 {
    font-size: 48px;
}

h3 {
    font-size: 24px;
    line-height: 1.25;
}

p+p {
    margin-top: 18px;
}

.wrap {
    width: min(1180px,calc(100% - 96px));
    margin: auto;
}

.eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .17em;
    line-height: 1.5;
    color: var(--blue);
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 23px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 10px;
}

.kicker {
    font-size: 14px;
    color: var(--muted);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    gap: 13px;
    align-items: center;
    text-decoration: none;
    line-height: 1.2;
}

.brand svg {
    width: 49px;
    height: 36px;
}

.brand-name {
    font-family: var(--serif);
    font-size: 24px;
    letter-spacing: -.05em;
}

.brand-sub {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
}

nav {
    display: flex;
    gap: 29px;
    align-items: center;
    font-size: 14px;
}

nav a {
    text-decoration: none;
}

nav .nav-pdf {
    padding: 10px 17px;
    border: 1px solid var(--ink);
    border-radius: 2px;
}

.hero-title {
    display: grid;
    grid-template-columns: 1.17fr 1fr;
    gap: 72px;
    padding: 65px 0 43px;
    align-items: end;
}

.hero h1 {
    font-size: 70px;
    margin-top: 21px;
}

.hero h1 em {
    font-weight: 400;
    color: var(--blue);
}

.hero-intro {
    padding-bottom: 5px;
}

.hero-intro p {
    font-size: 19px;
    max-width: 440px;
}

.actions {
    display: flex;
    gap: 23px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    gap: 17px;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    background: var(--ink);
    color: white;
    text-decoration: none;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.button svg,.text-link svg {
    width: 17px;
    height: 17px;
    flex: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #849b9e;
    padding-bottom: 3px;
}

.hero-photo {
    position: relative;
    background: #b6d1d8;
}

.hero-photo img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    object-position: 50% 54%;
}

.photo-tag {
    position: absolute;
    bottom: 24px;
    left: 26px;
    background: var(--paper);
    padding: 11px 18px;
    font-size: 12px;
    line-height: 1.6;
    box-shadow: 0 4px 12px #173d4815;
}

.photo-tag strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.hero figcaption {
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
    margin-top: 9px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding: 28px 0 35px;
    border-bottom: 1px solid var(--line);
    gap: 35px;
}

.fact {
    border-left: 1px solid var(--line);
    padding-left: 24px;
}

.fact:first-child {
    border-left: 0;
    padding-left: 0;
}

.fact b {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 31px;
    line-height: 1.3;
    letter-spacing: -.03em;
}

.fact span {
    font-size: 13px;
    color: var(--muted);
}

.section {
    padding: 78px 0;
}

.section-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 35px;
}

.section-top h2 {
    margin-top: 15px;
}

.section-top p {
    color: var(--muted);
    font-size: 17px;
}

.map-panel {
    background: #e9f0ea;
    border: 1px solid #d6e0d9;
    overflow: hidden;
}

.map-panel svg {
    display: block;
    width: 100%;
    height: auto;
}

.map-caption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    color: var(--muted);
    padding: 11px 17px;
    background: #f0f3ec;
    line-height: 1.5;
}

.digues {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 62px;
    margin-top: 30px;
}

.digues article {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 13px;
}

.number {
    width: 30px;
    height: 30px;
    border: 1px solid #78999c;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    line-height: 1;
}

.digues h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.digues p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.hydro-note {
    margin-top: 24px;
    font-size: 14px;
    color: var(--muted);
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.life {
    background: #eef1e9;
}

.life .section-top {
    margin-bottom: 32px;
}

.life-grid {
    display: grid;
    grid-template-columns: 1.16fr 1fr;
    gap: 25px;
}

.life-main {
    position: relative;
    min-height: 430px;
}

.life-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.life-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.life-side figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.life-side figcaption {
    font-size: 12px;
    line-height: 1.5;
    padding-top: 9px;
    color: var(--muted);
}

.life-note {
    grid-column: 1/-1;
    border-top: 1px solid #cad5c5;
    padding-top: 20px;
    font-family: var(--serif);
    font-size: 23px;
    line-height: 1.45;
    letter-spacing: -.025em;
}

.life-main figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: 40px 24px 20px;
    background: linear-gradient(transparent,#183d48d9);
    font-size: 17px;
}

.possibilities {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 38px;
    padding-top: 34px;
}

.possibilities article {
    border-top: 1px solid #b8c8b7;
    padding-top: 18px;
}

.possibilities .small {
    font-size: 12px;
    letter-spacing: .1em;
    color: var(--green);
    margin-bottom: 8px;
}

.possibilities h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.possibilities p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.image-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 24px;
}

.author {
    padding-bottom: 55px;
}

.author-grid {
    display: grid;
    grid-template-columns: .83fr 1.17fr;
    gap: 90px;
    align-items: start;
}

.author h2 {
    margin: 15px 0 24px;
}

.author p {
    font-size: 17px;
    color: var(--muted);
}

.quote-panel {
    position: relative;
    padding: 44px 46px;
    background: var(--ink);
    color: var(--paper);
    margin-top: 6px;
}

.quote-mark {
    font-family: var(--serif);
    font-size: 77px;
    line-height: .7;
    color: #a9c7c5;
}

.quote-panel blockquote {
    margin: 20px 0 25px;
    font-family: var(--serif);
    font-size: 31px;
    line-height: 1.45;
    letter-spacing: -.025em;
}

.quote-panel footer {
    font-size: 12px;
    color: #d2dfd9;
    border-top: 1px solid #628087;
    padding-top: 17px;
}

.quote-panel footer strong {
    display: block;
    font-weight: 400;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-size: 10px;
    margin-bottom: 5px;
}

.explore {
    border-top: 1px solid var(--line);
    padding-top: 32px;
    margin-top: 42px;
    display: grid;
    grid-template-columns: .83fr 1.17fr;
    gap: 90px;
}

.explore h3 {
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: -.03em;
}

.explore p {
    font-size: 16px;
}

.questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
}

.questions li {
    font-size: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.questions li::before {
    content: '↗';
    margin-right: 10px;
    color: var(--blue);
}

.document-section {
    background: #e3edec;
    padding: 58px 0 46px;
}

.document-grid {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 80px;
    align-items: center;
}

.book-label {
    font-size: 10px;
    color: var(--muted);
    margin-top: 21px;
    margin-left: 9px;
}

.document-copy h2 {
    margin: 14px 0 20px;
    font-size: 44px;
    max-width: 600px;
}

.document-copy p {
    font-size: 17px;
    color: var(--muted);
    max-width: 550px;
}

.file-meta {
    font-size: 12px;
    letter-spacing: .025em;
    color: var(--muted);
    margin-top: 14px;
}

.contact {
    padding: 43px 0 31px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 32px;
}

.contact h2 {
    font-size: 31px;
    letter-spacing: -.03em;
}

.contact p {
    font-size: 15px;
    color: var(--muted);
    margin-top: 10px;
}

.mail {
    font-size: 18px;
    text-decoration: none;
    border-bottom: 1px solid #799295;
    white-space: nowrap;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    font-size: 11px;
    color: var(--muted);
    padding-top: 23px;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    position: fixed;
    left: 20px;
    top: 20px;
    background: white;
    padding: 12px;
    z-index: 5;
}

@media(min-width:1500px) {
    .wrap {
        width: 1240px;
    }
    .hero-photo img {
        height: 420px;
    }
}

@media(max-width:960px) {
    .wrap {
        width: calc(100% - 56px);
    }
    nav {
        gap: 17px;
    }
    .hero-title {
        gap: 35px;
    }
    .hero h1 {
        font-size: 55px;
    }
    .hero-intro p {
        font-size: 17px;
    }
    .hero-photo img {
        height: 330px;
    }
    .section-top {
        gap: 35px;
    }
    h2 {
        font-size: 39px;
    }
    .author-grid,.explore {
        gap: 40px;
    }
    .quote-panel {
        padding: 35px;
    }
    .quote-panel blockquote {
        font-size: 27px;
    }
    .document-grid {
        gap: 45px;
        grid-template-columns: 240px 1fr;
    }
    .document-copy h2 {
        font-size: 37px;
    }
    .life-main {
        min-height: 380px;
    }
    .life-side figure img {
        height: 170px;
    }
    .life-note {
        font-size: 20px;
    }
}

@media(max-width:650px) {
    body {
        font-size: 18px;
    }
    .wrap {
        width: calc(100% - 40px);
    }
    .topbar {
        padding: 22px 0;
        gap: 15px;
    }
    .brand-name {
        font-size: 21px;
    }
    .brand svg {
        width: 37px;
    }
    .brand-sub {
        font-size: 8px;
        letter-spacing: .08em;
    }
    nav .nav-pdf {
        padding: 8px 11px;
        font-size: 12px;
    }
    .hero-title {
        display: block;
        padding: 40px 0 30px;
    }
    .hero h1 {
        font-size: 49px;
        max-width: 400px;
    }
    .hero-intro {
        padding-top: 24px;
    }
    .hero-intro p {
        font-size: 17px;
    }
    .actions {
        gap: 20px;
        margin-top: 22px;
    }
    .button {
        font-size: 14px;
        padding: 14px 17px;
    }
    .hero-photo img {
        height: auto;
        min-height: 190px;
        object-fit: contain;
    }
    .photo-tag {
        left: 12px;
        bottom: 12px;
        padding: 7px 10px;
        font-size: 9px;
    }
    .photo-tag strong {
        font-size: 11px;
    }
    .hero figcaption {
        font-size: 10px;
    }
    .facts {
        gap: 14px;
        padding: 25px 0;
    }
    .fact {
        padding-left: 12px;
    }
    .fact b {
        font-size: 23px;
    }
    .fact span {
        font-size: 11px;
        display: block;
        line-height: 1.5;
        margin-top: 3px;
    }
    .section {
        padding: 46px 0;
    }
    .section-top {
        display: block;
        margin-bottom: 24px;
    }
    .section-top p {
        margin-top: 23px;
        font-size: 16px;
    }
    h2 {
        font-size: 36px;
    }
    .map-caption {
        display: block;
        font-size: 11px;
    }
    .map-caption span {
        display: block;
    }
    .digues {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 25px;
    }
    .hydro-note {
        font-size: 13px;
    }
    .life-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .life-main {
        min-height: 0;
        height: 290px;
    }
    .life-side {
        gap: 16px;
    }
    .life-side figure img {
        height: 145px;
    }
    .life-note {
        font-size: 22px;
    }
    .possibilities {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 25px;
    }
    .possibilities article {
        padding-top: 15px;
    }
    .possibilities h3 {
        font-size: 22px;
    }
    .possibilities p {
        font-size: 16px;
    }
    .image-note {
        font-size: 10px;
    }
    .author-grid,.explore {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .author h2 {
        max-width: 350px;
    }
    .quote-panel {
        padding: 33px 28px;
        margin: 0;
    }
    .quote-panel blockquote {
        font-size: 25px;
    }
    .explore {
        margin-top: 30px;
    }
    .questions {
        grid-template-columns: 1fr;
    }
    .document-section {
        padding: 43px 0;
    }
    .document-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .document-copy h2 {
        font-size: 35px;
    }
    .document-copy p {
        font-size: 16px;
    }
    .contact-row {
        display: block;
    }
    .contact h2 {
        font-size: 29px;
    }
    .mail {
        display: inline-block;
        margin-top: 22px;
        font-size: 17px;
    }
    .page-footer {
        display: block;
        font-size: 10px;
    }
    .page-footer span {
        display: block;
        margin-top: 5px;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* Production controls and document preview. */
[hidden] {
    display: none !important;
}

button {
    font: inherit;
}

button: focus-visible,
.map-scroll:focus-visible {
    outline: 3px solid #ac6d35;
    outline-offset: 6px;
}

main: focus {
    outline: none;
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 6px;
}

nav a:hover,
.text-link:hover,
.mail:hover {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.button:hover {
    background: var(--blue);
}

.button,
.text-link,
.mail {
    min-height: 44px;
}

.text-link {
    line-height: 1.4;
}

.menu-toggle {
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    cursor: pointer;
}

.map-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-color: #78999c #e9f0ea;
}

.map-help {
    display: none;
}

.author .context-note {
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 24px;
}

.document-preview {
    display: block;
    width: 254px;
    max-width: 100%;
    transform: rotate(-4deg);
    background: #fff;
    border-left: 5px solid #cad5cd;
    box-shadow: 7px 10px 0 #b4cbca, 10px 15px 25px #173d4817;
}

.document-preview img {
    width: 100%;
    height: auto;
}

.book-label {
    font-size: 12px;
    margin-top: 24px;
}

@media (max-width: 960px) {
    .document-preview {
        width: 220px;
    }
}

@media (max-width: 650px) {
    .topbar {
        flex-wrap: wrap;
        gap: 18px 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand svg {
        flex: none;
        width: 34px;
    }

    .menu-toggle:not([hidden]) {
        display: inline-flex;
    }

    nav {
        width: 100%;
        gap: 8px 18px;
        justify-content: space-between;
        flex-wrap: wrap;
        padding-top: 8px;
        border-top: 1px solid var(--line);
    }

    nav .nav-pdf {
        padding: 8px 12px;
    }

    .map-panel svg {
        min-width: 760px;
    }

    .map-help {
        display: block;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.5;
        margin-top: 10px;
    }

    .book-wrap {
        display: none;
    }

    .document-copy .button {
        gap: 12px;
        padding: 14px 16px;
        text-align: center;
    }

    .hero figcaption,
    .image-note,
    .page-footer {
        font-size: 12px;
    }

    .photo-tag {
        max-width: calc(100% - 24px);
    }

    .mail {
        overflow-wrap: anywhere;
        white-space: normal;
    }
}

@media (max-width: 360px) {
    .brand-name {
        font-size: 19px;
    }

    .brand-sub {
        font-size: 7px;
    }

    .menu-toggle {
        gap: 5px;
        padding-inline: 9px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .facts {
        gap: 10px;
    }

    .fact {
        padding-left: 10px;
    }

    .fact b {
        font-size: 21px;
    }
}

/* A readable printout without navigation controls or forced prototype page breaks. */
@media print {
    body {
        background: #fff;
        font-size: 12pt;
    }

    .wrap {
        width: 100%;
    }

    .topbar,
    .skip,
    .actions,
    .map-help,
    .book-wrap {
        display: none;
    }

    .section,
    .document-section {
        padding-block: 30px;
    }

    h1,
    h2,
    h3 {
        break-after: avoid;
    }

    figure,
    .quote-panel,
    .possibilities article {
        break-inside: avoid;
    }

    .map-panel svg {
        min-width: 0;
    }

    .document-grid {
        display: block;
    }

    .document-preview {
        transform: none;
        box-shadow: none;
    }

    .life,
    .document-section {
        background: #f3f5f1;
    }

    .hero-photo img {
        height: auto;
    }
}

/* Error pages share the site's typography and keep useful navigation. */
.error-page {
    min-height: 100svh;
    max-width: 880px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding-block: 60px;
}

.error-page .brand {
    margin-bottom: 64px;
}

.error-page h1 {
    font-size: clamp(36px, 6vw, 64px);
    margin-top: 18px;
}

.error-message {
    max-width: 600px;
    margin-top: 24px;
    color: var(--muted);
}

.error-page .button {
    margin-top: 30px;
}
