* { box-sizing: border-box; }
body { margin: 0; }
.book {
    --ink: #27211e;
    --paper: #f6efe7;
    --accent: #813d2c;
    --rule: #d8c9bf;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.6 "Inter", system-ui, sans-serif;
}
.book--photographe {
    --ink: #f2efe8;
    --paper: #171715;
    --accent: #e7c297;
    --rule: #504a41;
}
.book a { color: inherit; text-underline-offset: .25em; }
.book :focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.top, .book main, .book footer { width: min(90%, 1280px); margin-inline: auto; }
.top, .book footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    padding-block: 1rem;
}
.top { border-bottom: 1px solid var(--rule); }
.brand { font-weight: 750; text-decoration: none; }
.top nav { display: flex; gap: 1rem; }
.top nav a:not([aria-current]) { text-decoration: none; }
.top nav [aria-current] { color: var(--accent); }
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 6vw, 6rem);
    margin-block: clamp(2rem, 6vw, 5rem);
}
.book--photographe .hero { grid-template-columns: 4fr 6fr; }
.book h1, .book h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; line-height: 1; }
.book h1 { margin: .2em 0; font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.055em; }
.book h2 { margin: 0 0 1.5rem; font-size: clamp(2rem, 4vw, 3.6rem); }
.role { color: var(--accent); font-size: .85rem; font-weight: 650; }
.location { font-weight: 600; }
.bio { max-width: 38ch; }
.button {
    display: inline-block;
    margin-top: 1rem;
    border: 1px solid var(--accent);
    padding: .6rem 1rem;
    text-decoration: none;
}
.frame { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--rule); }
.frame img { position: absolute; width: 200%; height: 200%; max-width: none; }
.frame--1 img { right: 0; top: 0; }
.frame--2 img { left: 0; bottom: 0; }
.frame--3 img { right: 0; bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 2rem); }
.book figure { margin: 0; }
.book figcaption { margin-top: .65rem; }
.details { margin-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--rule); padding-top: 2rem; }
.details dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.details dt { color: var(--accent); font-weight: 650; }
.details dd { margin: 0; }
.book footer { border-top: 1px solid var(--rule); font-size: .9rem; }
@media (max-width: 700px) {
    .hero, .book--photographe .hero { grid-template-columns: 1fr; }
    .grid, .details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.book--studio { --ink: #faf6ed; --paper: #1b1a19; --accent: #ffad7b; --rule: #514942; }
.book--magazine { --ink: #231e1b; --paper: #fffaf4; --accent: #ae391f; --rule: #dfc7b8; }
.book--magazine .member-hero { border-left: .5rem solid var(--accent); padding-left: clamp(1rem,4vw,3.5rem); }
.book--magazine h1 { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 750; }
.member-hero, .member-gallery { margin-block: clamp(2rem,6vw,5rem); }
.member-hero .bio { max-width: 65ch; }
.member-gallery .grid { align-items: start; }
.member-gallery img { display: block; width: 100%; height: auto; border-radius: .3rem; }
.book-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; }
.gallery-unlock { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.gallery-unlock label { display: grid; gap: .25rem; }
.gallery-unlock input { padding: .6rem; }
.book-video { width: min(100%, 850px); aspect-ratio: 16/9; border: 0; }
.book--clair .member-hero { text-align: center; }
.book--clair .member-hero .bio { margin-inline: auto; }
.book--clair .book-links { justify-content: center; }
.book--magazine .member-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2rem; align-items: center; }
.book--magazine .member-hero-copy { grid-row: 1; }
.member-cover { display: block; width: 100%; max-height: 32rem; object-fit: cover; }
.book--plein-ecran .member-hero { position: relative; isolation: isolate; min-height: 65vh; display: grid; align-items: end; padding: clamp(1.5rem,6vw,5rem); background: #211c19; color: #fff; }
.book--plein-ecran .member-cover { position: absolute; inset: 0; height: 100%; max-height: none; z-index: -2; }
.book--plein-ecran .member-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent,#160f0ced); z-index: -1; }
.book--plein-ecran .role { color: #ffd2b3; }
.book--plein-ecran .button { border-color: #fff; }
.book--galerie .member-hero { padding: clamp(1rem,4vw,3.5rem); border: 1px solid var(--rule); border-radius: 2rem; }
.book--galerie .member-gallery { border-top: 1px solid var(--rule); padding-top: 2rem; }
.book--galerie .member-gallery img { aspect-ratio: 4/5; object-fit: cover; border-radius: 1rem; }
.palette-sable { --paper: #f0e6d6; --ink: #30261e; --accent: #75502d; --rule: #cdb797; }
.palette-monochrome { --paper: #fafafa; --ink: #262626; --accent: #444; --rule: #ccc; }
.type-sans h1,.type-sans h2 { font-family: "Instrument Sans",system-ui,sans-serif; }
.type-serif h1,.type-serif h2 { font-family: "Instrument Serif",Georgia,serif; }
.gallery-colonnes .member-gallery .grid { columns: 3; display: block; }
.gallery-colonnes .member-gallery img { break-inside: avoid; margin-bottom: 1rem; }
.gallery-large .member-gallery .grid { grid-template-columns: 1fr; }
@media (max-width: 700px) {
    .book--magazine .member-hero { grid-template-columns: 1fr; }
    .gallery-colonnes .member-gallery .grid { columns: 2; }
}
