/* ==========================================================================
   Antsary — carnet photographique
   Une archive éditoriale : papier chaud, encre, teal historique d'Antsary.
   Les photos font la couleur ; le chrome reste discret.
   ========================================================================== */

:root {
    --paper: #f2ece1;
    --paper-deep: #e9e0d1;
    --surface: #fbf8f1;
    --surface-2: #f6f0e4;
    --ink: #1b1710;
    --ink-2: #3c352a;
    --muted: #6d6354;
    --line: #dcd1bf;
    --line-2: #c8b9a2;
    --teal: #0d5f5a;
    --teal-deep: #0a4a46;
    --teal-soft: #dce9e4;
    --accent: #b14a24;
    --accent-soft: #f3e0d4;
    --gold: #b07a2a;
    --radius: 4px;
    --radius-sm: 3px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 1px rgb(27 23 16 / 5%), 0 2px 6px rgb(27 23 16 / 6%);
    --shadow-print: 0 1px 1px rgb(27 23 16 / 7%), 0 18px 36px -18px rgb(27 23 16 / 40%);
    --header-h: 76px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--paper);
    background-image:
        radial-gradient(1200px 620px at 52% -12%, #fbf7ef 0%, rgb(251 247 239 / 0%) 62%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0 0 1rem; }

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection {
    background: var(--teal);
    color: var(--paper);
}

/* --------------------------------------------------------------- layout -- */

.shell {
    width: 100%;
    max-width: 1260px;
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 44px);
}

.site-main {
    flex: 1 0 auto;
}

.flash-wrap { padding-top: 20px; }

.stack { display: grid; gap: 18px; }

/* --------------------------------------------------------------- header -- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgb(242 236 225 / 88%);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

.brand-mark {
    display: block;
    width: 27px;
    height: 31px;
    color: var(--ink);
    transform: rotate(-2.5deg);
    transition: transform .3s var(--ease);
}

.brand:hover .brand-mark { transform: rotate(0deg) translateY(-1px); }

.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-word {
    font-family: var(--font-display);
    font-size: 1.53rem;
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: .9;
}

.brand-dot { color: var(--accent); }

.brand-sub {
    margin-top: 5px;
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 11px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s var(--ease);
}

.nav-link:hover { color: var(--ink); }

.nav-link[aria-current="page"] { color: var(--ink); }

.nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 3px;
    height: 1px;
    background: var(--ink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-link--sub { font-size: .6rem; letter-spacing: .1em; padding-inline: 6px; }

.nav-link--login {
    font-size: .62rem;
    letter-spacing: .12em;
    padding-inline: 8px;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.nav-user:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }

.nav-user__avatar,
.nav-user img { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 2px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    flex: 0 0 auto;
}

.nav-toggle__bars { display: grid; gap: 5px; width: 18px; }

.nav-toggle__bars i {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform .25s var(--ease) , opacity .2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* --------------------------------------------------------------- button -- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease),
        border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }

.btn--ink {
    background: var(--ink);
    color: var(--paper);
}

.btn--ink:hover {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 10px 22px -14px rgb(13 95 90 / 80%);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-2);
}

.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--subtle {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}

.btn--subtle:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }

.btn--danger {
    background: transparent;
    color: #9f2b1f;
    border-color: #d9b3a9;
}

.btn--danger:hover { background: #f8e8e2; border-color: #9f2b1f; }

.btn--sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: .62rem;
    letter-spacing: .1em;
    gap: 7px;
}

.btn--sm svg { width: 13px; height: 13px; }

.btn--icon { width: 38px; padding: 0; }

/* --------------------------------------------------------------- kickers - */

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.kicker__mark {
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--accent);
    flex: 0 0 auto;
}

.kicker__num {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .1em;
}

.kicker--light { color: rgb(242 236 225 / 78%); }
.kicker--light .kicker__num { color: #e8ad86; }

/* --------------------------------------------------------------- hero ---- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(38px, 5.5vw, 82px) clamp(46px, 6.5vw, 96px);
    border-bottom: 1px solid var(--line);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(30px, 6vw, 84px);
    align-items: center;
}

.hero__copy { max-width: 640px; }

.hero__title {
    margin: 0 0 clamp(22px, 3vw, 32px);
    font-size: clamp(3.9rem, 8.6vw, 7.4rem);
    font-weight: 400;
    line-height: .88;
    letter-spacing: -.055em;
}

.hero__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--teal);
}

.hero__lede {
    max-width: 44ch;
    margin: 0 0 30px;
    color: var(--ink-2);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(32px, 4.5vw, 46px);
}

.hero__stats {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.hero__stat {
    padding: 13px clamp(16px, 2.6vw, 30px);
    border-left: 1px solid var(--line);
}

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

.hero__stat dt {
    color: var(--muted);
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.hero__stat dd {
    margin: 3px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}

.hero__note {
    max-width: 40ch;
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.55;
}

.hero__visual {
    position: relative;
    min-height: clamp(440px, 46vw, 610px);
    isolation: isolate;
}

.hero__visual::before {
    content: "";
    position: absolute;
    inset: 7% 1% 9% 9%;
    background: var(--teal-soft);
    border-radius: 2px;
    transform: rotate(-1.6deg);
    z-index: -2;
}

.hero__paper {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(var(--line-2) .8px, transparent .8px);
    background-size: 19px 19px;
    opacity: .5;
    -webkit-mask-image: radial-gradient(75% 70% at 55% 45%, #000 30%, transparent 78%);
    mask-image: radial-gradient(75% 70% at 55% 45%, #000 30%, transparent 78%);
}

.print {
    position: absolute;
    display: block;
    padding: 8px 8px 0;
    background: #fdfaf3;
    color: var(--ink);
    text-decoration: none;
    border-radius: 2px;
    box-shadow: var(--shadow-print);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    will-change: transform;
}

.print:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 2px 2px rgb(27 23 16 / 6%), 0 28px 46px -20px rgb(27 23 16 / 46%);
}

.print--main {
    left: 2%;
    top: 6%;
    width: 59%;
    z-index: 3;
    transform: rotate(-2.6deg);
}

.print--side-a {
    right: 0;
    top: 0;
    width: 38%;
    z-index: 2;
    transform: rotate(2.7deg);
}

.print--side-b {
    right: 2%;
    bottom: 0;
    width: 43%;
    z-index: 4;
    transform: rotate(-1.3deg);
}

.print__photo {
    display: block;
    overflow: hidden;
    background: var(--paper-deep);
    aspect-ratio: 4 / 5;
}

.print--main .print__photo { aspect-ratio: 3 / 3.55; }
.print--side-a .print__photo { aspect-ratio: 3 / 4; }
.print--side-b .print__photo { aspect-ratio: 4 / 3; }

.print__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.97) contrast(1.02);
    transition: transform .8s var(--ease);
}

.print:hover .print__photo img { transform: scale(1.035); }

.print__caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 1px 8px;
    color: var(--muted);
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.print__index { flex: 0 0 auto; color: var(--accent); font-family: var(--font-mono); }

.print__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
    font-weight: 500;
    letter-spacing: .04em;
}

.print__photo--empty {
    display: grid;
    place-items: center;
    background: var(--paper-deep);
    color: var(--line-2);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-style: italic;
}

.print--empty { left: 8%; top: 12%; width: 66%; transform: rotate(-1.5deg); }

.hero__stamp {
    position: absolute;
    left: 43%;
    bottom: 1%;
    z-index: 5;
    display: grid;
    place-content: center;
    width: clamp(76px, 8.5vw, 98px);
    height: clamp(76px, 8.5vw, 98px);
    border-radius: 50%;
    background: var(--teal);
    color: var(--paper);
    font-family: var(--font-display);
    font-size: clamp(.62rem, .9vw, .78rem);
    font-style: italic;
    line-height: 1.12;
    text-align: center;
    transform: rotate(-8deg);
    box-shadow: 0 14px 28px -14px rgb(13 95 90 / 70%);
}

/* --------------------------------------------------------------- section - */

.section { padding-block: clamp(52px, 6.5vw, 88px); }

.section--albums { border-bottom: 1px solid var(--line); }

.section-head {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: clamp(26px, 3.4vw, 40px);
}

.section-head .kicker { margin-bottom: 14px; }

.section-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 15px;
    border-top: 1px solid var(--ink);
}

.section-head--split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-head--split > div { min-width: 0; }

.section-head--split .section-head__row {
    border-top: 0;
    padding-top: 0;
}

.section-title {
    font-size: clamp(1.95rem, 3.8vw, 3.15rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .98;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}

.link-arrow:hover { color: var(--teal); border-color: var(--teal); }
.link-arrow span { font-size: .9rem; line-height: 1; }

/* --------------------------------------------------------------- albums -- */

.album-mosaic {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(26px, 3.4vw, 44px) clamp(14px, 2.2vw, 28px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.album-card {
    grid-column: span 3;
    min-width: 0;
}

.album-card:nth-child(1),
.album-card:nth-child(6) { grid-column: span 6; }

.album-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.album-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper-deep);
    border-radius: 2px;
    isolation: isolate;
}

.album-card:nth-child(1) .album-card__media,
.album-card:nth-child(6) .album-card__media { aspect-ratio: 16 / 10; }

.album-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.97) contrast(1.02);
    transition: transform .8s var(--ease), filter .4s var(--ease);
}

.album-card__link:hover .album-card__media img {
    transform: scale(1.035);
    filter: saturate(1.05) contrast(1.03);
}

.album-card__num {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 3px 6px;
    background: rgb(242 236 225 / 92%);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: .55rem;
    letter-spacing: .08em;
    line-height: 1.2;
    backdrop-filter: blur(4px);
}

.album-card__initial {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--line-2);
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-style: italic;
    font-weight: 300;
    background:
        repeating-linear-gradient(135deg, transparent 0 13px, rgb(200 185 162 / 18%) 13px 14px),
        var(--paper-deep);
}

.album-card__empty-note {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 7px;
    background: rgb(242 236 225 / 94%);
    color: var(--muted);
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.album-card__body {
    display: grid;
    gap: 5px;
    padding-top: 12px;
}

.album-card__title {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.04rem, 1.4vw, 1.28rem);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -.025em;
    transition: color .2s var(--ease);
    overflow-wrap: anywhere;
}

.album-card:nth-child(1) .album-card__title,
.album-card:nth-child(6) .album-card__title { font-size: clamp(1.3rem, 2vw, 1.75rem); }

.album-card__link:hover .album-card__title { color: var(--teal); }

.album-card__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.album-card__meta > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-card__meta .dot {
    flex: 0 0 auto;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-2);
}

/* grille de la page « tous les albums » */

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(30px, 4.2vw, 56px) clamp(16px, 2.6vw, 32px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.album-grid .album-card { grid-column: auto; }

.album-grid .album-card__media { aspect-ratio: 4 / 3; }

.album-grid .album-card__title { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }

.album-grid .album-card__body { padding-top: 11px; }

/* --------------------------------------------------------------- photos -- */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, .8vw, 10px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.photo-cell { aspect-ratio: 1; min-width: 0; }

.photo-cell--lead {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.photo {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--paper-deep);
    border-radius: 2px;
    text-decoration: none;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.96) contrast(1.02);
    transition: transform .8s var(--ease), filter .4s var(--ease);
}

.photo:hover img {
    transform: scale(1.04);
    filter: saturate(1.06) contrast(1.03);
}

.photo__num {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    color: rgb(255 255 255 / 88%);
    font-family: var(--font-mono);
    font-size: .54rem;
    letter-spacing: .08em;
    text-shadow: 0 1px 4px rgb(0 0 0 / 55%);
}

.photo__caption {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 48px 12px 10px;
    background: linear-gradient(to top, rgb(15 12 8 / 78%), rgb(15 12 8 / 0%));
    color: #fff;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.photo:hover .photo__caption,
.photo:focus-visible .photo__caption { opacity: 1; transform: none; }

.photo__title {
    font-size: .7rem;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.photo-cell--lead .photo__title { font-size: .82rem; }

.photo-cell--lead .photo__caption { opacity: 1; transform: none; }

.photo__arrow { font-size: .85rem; line-height: 1; opacity: .85; }

/* --------------------------------------------------------------- notebook */

.notebook {
    position: relative;
    overflow: hidden;
    background: var(--teal);
    color: var(--paper);
    padding-block: clamp(52px, 6.5vw, 86px);
}

.notebook::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgb(242 236 225 / 14%) .8px, transparent .8px);
    background-size: 21px 21px;
    opacity: .5;
    -webkit-mask-image: linear-gradient(to bottom right, #000 0%, transparent 70%);
    mask-image: linear-gradient(to bottom right, #000 0%, transparent 70%);
    pointer-events: none;
}

.notebook__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, .75fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: start;
}

.notebook__head { margin-bottom: 22px; }

.notebook__title {
    margin: 0;
    color: var(--paper);
    font-size: clamp(1.7rem, 3.1vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1;
}

.notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(24px, 3.4vw, 44px);
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgb(242 236 225 / 22%);
}

.note {
    display: flex;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid rgb(242 236 225 / 22%);
    min-width: 0;
}

.note__avatar { flex: 0 0 auto; }

.note__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(.15);
    border: 1px solid rgb(242 236 225 / 35%);
}

.note__body { min-width: 0; }

.note__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 9px;
}

.note__author {
    color: var(--paper);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
}

.note__author:hover { text-decoration: underline; text-underline-offset: 3px; }

.note__when {
    color: rgb(242 236 225 / 80%);
    font-size: .6rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.note__text {
    display: block;
    margin-top: 5px;
    color: rgb(242 236 225 / 82%);
    font-size: .84rem;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.note__text:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.notebook__empty {
    color: rgb(242 236 225 / 82%);
    font-size: .9rem;
    padding: 20px 0;
    border-top: 1px solid rgb(242 236 225 / 22%);
}

.tag-index {
    columns: 2;
    column-gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgb(242 236 225 / 22%);
}

.tag-index li {
    break-inside: avoid;
    border-bottom: 1px solid rgb(242 236 225 / 22%);
}

.tag-index a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    color: rgb(242 236 225 / 80%);
    font-size: .82rem;
    text-decoration: none;
    transition: color .18s var(--ease);
}

.tag-index a:hover { color: #fff; }

.tag-index__name::before {
    content: "#";
    margin-right: 3px;
    color: rgb(242 236 225 / 35%);
}

.tag-index__count {
    color: rgb(242 236 225 / 80%);
    font-size: .62rem;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- page head */

.page-head {
    padding-block: clamp(24px, 4vw, 42px) clamp(22px, 3.4vw, 34px);
    border-bottom: 1px solid var(--line);
    margin-bottom: clamp(30px, 4.6vw, 50px);
}

.page-head--compact { border-bottom: 0; margin-bottom: 24px; padding-bottom: 0; }

.page-head .kicker { margin-bottom: 16px; }

.page-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-head h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .95;
    overflow-wrap: anywhere;
}

.page-head__count {
    flex: 0 0 auto;
    margin: 0;
    color: var(--muted);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-align: right;
}

.page-head__count strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1;
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
}

.page-head__lede {
    max-width: 64ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.55;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .66rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb .sep { color: var(--line-2); }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 26px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.filter {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    color: var(--muted);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}

.filter span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .02em;
}

.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); border-color: var(--ink); }
.filter.is-active span { color: var(--accent); }

/* --------------------------------------------------------------- album hero */

.album-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(30px, 5.5vw, 76px);
    align-items: center;
    padding-bottom: clamp(22px, 3.2vw, 34px);
    border-bottom: 0;
    margin-bottom: 0;
}

.album-hero:last-child {
    border-bottom: 1px solid var(--line);
    padding-bottom: clamp(30px, 4.4vw, 52px);
}

.album-hero:not(.album-hero--with-cover) { grid-template-columns: minmax(0, 1fr); }

.album-hero__title {
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 4.9vw, 4.3rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .95;
    overflow-wrap: anywhere;
}

.album-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .03em;
}

.album-meta img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.album-meta a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 1px;
}

.album-meta a:hover { border-color: var(--ink); }

.album-meta .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-2);
}

.album-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
}

.album-actions + .album-desc { margin-top: 26px; }

.album-desc {
    position: relative;
    max-width: 68ch;
    max-height: 10.5em;
    overflow: hidden;
    margin: 0 0 8px;
    color: var(--ink-2);
    font-size: .98rem;
    line-height: 1.62;
    white-space: pre-line;
    overflow-wrap: anywhere;
    transition: max-height .35s var(--ease);
}

.album-desc.has-overflow::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4em;
    background: linear-gradient(to top, var(--paper) 18%, rgb(242 236 225 / 0%));
    pointer-events: none;
}

.album-desc.is-open { max-height: none; }
.album-desc.is-open::after { display: none; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 0 3px;
    border: 0;
    border-bottom: 1px solid var(--line-2);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}

.link-more:hover { color: var(--teal); border-color: var(--teal); }

.tag-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.tag-inline a {
    color: var(--teal);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .03em;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.tag-inline a:hover { border-color: var(--teal); }

.album-hero__cover {
    position: relative;
    margin: 0;
    padding: 9px 9px 0;
    background: #fdfaf3;
    box-shadow: var(--shadow-print);
    transform: rotate(1.1deg);
    isolation: isolate;
}

.album-hero__mat {
    position: absolute;
    inset: 20px -18px -18px 20px;
    background: var(--teal-soft);
    z-index: -1;
}

.album-hero__cover img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--paper-deep);
}

.album-hero__cover-link { display: block; }

.album-hero__cover--single figcaption a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid var(--teal-soft);
}

.album-hero__cover--single figcaption a:hover { border-color: var(--teal); }

.album-hero__cover figcaption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 1px 10px;
    color: var(--muted);
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------- gallery - */

.gallery { padding-bottom: clamp(40px, 6vw, 78px); }

.gallery__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--ink);
    margin-top: clamp(18px, 2.6vw, 30px);
    margin-bottom: clamp(18px, 2.4vw, 26px);
}

.gallery__title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 400;
    letter-spacing: -.04em;
}

.gallery__count {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(6px, .8vw, 10px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.tile {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--paper-deep);
    border-radius: 2px;
    text-decoration: none;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.96) contrast(1.02);
    transition: transform .8s var(--ease), filter .4s var(--ease);
}

.tile:hover img {
    transform: scale(1.045);
    filter: saturate(1.05) contrast(1.03);
}

.tile__num {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    color: rgb(255 255 255 / 85%);
    font-family: var(--font-mono);
    font-size: .52rem;
    letter-spacing: .06em;
    text-shadow: 0 1px 4px rgb(0 0 0 / 60%);
}

.tile-grid--few {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(8px, 1.2vw, 14px);
}

.tile-grid--few .tile { aspect-ratio: 4 / 3; }

.tile__overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 34px 10px 9px;
    background: linear-gradient(to top, rgb(15 12 8 / 78%), rgb(15 12 8 / 0%));
    color: #fff;
    font-size: .68rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .22s var(--ease), transform .22s var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tile:hover .tile__overlay,
.tile:focus-visible .tile__overlay { opacity: 1; transform: none; }

/* --------------------------------------------------------------- image ---- */

.image-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: clamp(30px, 5vw, 64px);
    align-items: start;
}

.image-main { min-width: 0; }

.image-frame {
    margin: 0 0 clamp(22px, 3vw, 34px);
    padding: clamp(10px, 1.6vw, 18px);
    background: var(--ink);
    border-radius: 2px;
    box-shadow: var(--shadow-sm);
}

.image-frame__link {
    display: grid;
    place-items: center;
    text-decoration: none;
    cursor: zoom-in;
}

.image-frame img {
    width: auto;
    max-width: 100%;
    max-height: 74vh;
    object-fit: contain;
}

.image-frame__caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 2px 0;
    color: rgb(242 236 225 / 58%);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.image-frame__caption span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.image-head { margin-bottom: 0; }

.image-head .kicker { margin-bottom: 12px; }

.image-title {
    font-size: clamp(1.9rem, 3.4vw, 3.05rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.045em;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.image-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .03em;
}

.image-meta img { border-radius: 50%; object-fit: cover; }

.image-meta .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-2);
}

.image-desc {
    max-width: 68ch;
    margin: 22px 0 0;
    color: var(--ink-2);
    font-size: .98rem;
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.image-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    margin-top: 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.image-nav__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
}

.image-nav__step,
.image-nav__album {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s var(--ease);
}

.image-nav__step:hover,
.image-nav__album:hover { color: var(--teal); }

.image-nav__album { color: var(--muted); }

.image-nav__dir { font-size: .95rem; line-height: 1; }

.image-nav__tools { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------- comments - */

.comments { margin-top: clamp(38px, 5.4vw, 62px); }

.comments__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--ink);
    margin-bottom: 4px;
}

.comments__title {
    display: flex;
    align-items: baseline;
    gap: 11px;
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    font-weight: 400;
    letter-spacing: -.04em;
}

.comments__title span {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .1em;
    font-variant-numeric: tabular-nums;
}

.comments__empty {
    padding: 22px 0;
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    border-bottom: 1px solid var(--line);
}

.comment-list { border-top: 1px solid var(--line); }

.comment {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.comment__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment__head img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
}

.comment__author { font-size: .8rem; font-weight: 600; }

.comment__when {
    color: var(--muted);
    font-size: .62rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.comment__body {
    color: var(--ink-2);
    font-size: .94rem;
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.comment__del {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: auto;
    border-radius: 2px;
    color: var(--muted);
    text-decoration: none;
}

.comment__del:hover { color: #9f2b1f; background: #f8e8e2; }

.comment-form {
    margin-top: 28px;
    padding: clamp(20px, 3vw, 30px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
}

.comment-form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}

.comment-login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.comment-login p { margin: 0; color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------- image aside */

.image-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: grid;
    gap: 30px;
    align-content: start;
}

.side-label {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.side-album__link { display: block; text-decoration: none; }

.side-album__cover {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-deep);
    margin-bottom: 12px;
    border-radius: 2px;
}

.side-album__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.side-album__link:hover .side-album__cover img { transform: scale(1.03); }

.side-album__title {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.side-album__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: .66rem;
}

.side-album__meta img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.side-album__meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-2);
}

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

.mini {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--paper-deep);
    border-radius: 2px;
}

.mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.mini:hover img { transform: scale(1.06); }

/* --------------------------------------------------------------- slideshow */

.slideshow-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-block: clamp(20px, 3vw, 34px) 22px;
}

.slideshow-head__title {
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -.045em;
}

.slideshow {
    padding-bottom: clamp(40px, 6vw, 78px);
}

.slideshow__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(72vh, 760px);
    padding: clamp(20px, 3vw, 44px) clamp(50px, 6vw, 80px);
    background: var(--ink);
    border-radius: 2px;
    overflow: hidden;
}

.slide {
    display: none;
    margin: 0;
    width: 100%;
    justify-items: center;
}

.slide.is-active { display: grid; }

.slide img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    object-fit: contain;
    box-shadow: 0 22px 60px -24px rgb(0 0 0 / 65%);
}

.slideshow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgb(242 236 225 / 35%);
    border-radius: 50%;
    background: rgb(27 23 16 / 55%);
    color: var(--paper);
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.slideshow__nav:hover { background: var(--teal); border-color: var(--teal); }
.slideshow__nav--prev { left: 14px; }
.slideshow__nav--next { right: 14px; }

.slideshow__bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 2px;
    border-bottom: 1px solid var(--line);
}

.slideshow__counter {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
}

.slideshow__caption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: .8rem;
    text-align: center;
}

.slideshow__link {
    color: var(--ink);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 3px;
}

.slideshow__link:hover { color: var(--teal); border-color: var(--teal); }

/* --------------------------------------------------------------- pager ---- */

.pager {
    margin-top: clamp(30px, 4.6vw, 52px);
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li { display: inline-flex; }

.pagination a,
.pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 2px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}

.pagination a:hover { color: var(--ink); border-color: var(--line-2); }

.pagination .active a,
.pagination .active span {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.pagination .disabled span { color: var(--line-2); }

/* --------------------------------------------------------------- forms ---- */

.form-page {
    max-width: 760px;
    padding-bottom: clamp(36px, 6vw, 64px);
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: clamp(22px, 3.6vw, 38px);
}

.form-grid { display: grid; gap: 22px; }

.field { display: grid; gap: 8px; }

.field > label {
    color: var(--ink-2);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.input,
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="file"],
.field textarea,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--line-2);
    border-radius: 2px;
    background: #fdfaf4;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .93rem;
    line-height: 1.5;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus,
.input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgb(13 95 90 / 12%);
}

.field input[type="file"] { padding: 9px; cursor: pointer; }

.help { color: var(--muted); font-size: .72rem; }

.check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.check input {
    width: 17px;
    height: 17px;
    accent-color: var(--teal);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

/* --------------------------------------------------------------- alerts --- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--ink);
    border-radius: 2px;
    background: var(--surface);
    font-size: .9rem;
}

.alert--success { border-left-color: var(--teal); background: var(--teal-soft); }
.alert--error { border-left-color: #9f2b1f; background: #f8e8e2; }
.alert ul { margin: 0; padding-left: 1.1rem; }

/* --------------------------------------------------------------- empty ---- */

.empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: clamp(40px, 6vw, 64px) 24px;
    border: 1px dashed var(--line-2);
    border-radius: 2px;
    color: var(--muted);
    text-align: center;
    background: rgb(251 248 241 / 45%);
}

.empty--wide { padding-block: clamp(54px, 8vw, 84px); }

.empty strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
}

.empty__mark { color: var(--line-2); font-size: 1.4rem; line-height: 1; }

/* --------------------------------------------------------------- tags ----- */

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: .78rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}

.tag:hover { border-color: var(--teal); background: var(--teal); color: #fff; }
.tag .n { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.tag:hover .n { color: rgb(255 255 255 / 70%); }

/* --------------------------------------------------------------- panels --- */

.with-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

.with-aside--narrow { grid-template-columns: minmax(0, 1fr) 280px; }

.aside { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.panel__list { list-style: none; margin: 0; padding: 0; }

.panel__item + .panel__item { border-top: 1px solid var(--line); }

.panel__item a {
    display: grid;
    gap: 4px;
    padding: 14px;
    text-decoration: none;
    transition: background-color .16s var(--ease);
}

.panel__item a:hover { background: var(--surface-2); }

.panel__item .who {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    font-weight: 600;
}

.panel__item .who img { width: 18px; height: 18px; border-radius: 50%; }
.panel__item .when { margin-left: auto; color: var(--muted); font-size: .62rem; font-weight: 400; }

.panel__item .what {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panel__body { padding: 14px; }
.panel__empty { padding: 14px; margin: 0; color: var(--muted); font-size: .82rem; }

/* --------------------------------------------------------------- admin ---- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--surface);
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

table.data th {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

table.data td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

table.data tr:last-child td { border-bottom: 0; }
table.data td img { border-radius: 2px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.stat {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--surface);
}

.stat__value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    margin-top: 6px;
    color: var(--muted);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------- dialog -- */

.lightbox {
    width: min(1200px, 94vw);
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgb(18 15 10 / 93%);
    backdrop-filter: blur(8px);
}

.lightbox__figure {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 0;
}

.lightbox img {
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    object-fit: contain;
    box-shadow: 0 30px 80px -20px rgb(0 0 0 / 65%);
}

.lightbox__caption {
    max-width: 80ch;
    color: rgb(242 236 225 / 72%);
    font-size: .72rem;
    letter-spacing: .04em;
    text-align: center;
}

.lightbox__close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------- footer --- */

.site-footer {
    background: var(--ink);
    color: var(--paper);
    padding-block: clamp(44px, 6vw, 76px) 26px;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
    gap: clamp(36px, 6vw, 96px);
    padding-bottom: clamp(36px, 5vw, 60px);
    border-bottom: 1px solid rgb(242 236 225 / 16%);
}

.footer-word {
    display: inline-block;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.2vw, 3.7rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .9;
    text-decoration: none;
}

.footer-word span { color: var(--accent); }

.footer-tagline {
    margin: 16px 0 8px;
    color: rgb(242 236 225 / 84%);
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    font-style: italic;
    line-height: 1.35;
}

.footer-note {
    max-width: 36ch;
    margin: 0;
    color: rgb(242 236 225 / 60%);
    font-size: .75rem;
    line-height: 1.6;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.footer-col h2 {
    margin: 0 0 14px;
    color: rgb(242 236 225 / 58%);
    font-family: var(--font-body);
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    padding: 4px 0;
    color: rgb(242 236 225 / 76%);
    font-size: .82rem;
    text-decoration: none;
    transition: color .18s var(--ease);
}

.footer-col a:hover,
.footer-col a[aria-current="true"] { color: #fff; }

.footer-col a[aria-current="true"] {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 20px;
    color: rgb(242 236 225 / 58%);
    font-size: .66rem;
    letter-spacing: .02em;
}

.footer-top-link {
    color: rgb(242 236 225 / 62%);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-top-link:hover { color: #fff; }

/* --------------------------------------------------------------- utility - */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper);
    font-size: .75rem;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .2s var(--ease);
}

.skip-link:focus { transform: none; }

.muted { color: var(--muted); }
.small { font-size: .8rem; }
.nowrap { white-space: nowrap; }

.avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    color: var(--teal);
    font-family: var(--font-display);
    font-size: calc(var(--avatar-size, 36px) * .42);
    font-weight: 500;
    line-height: 1;
    vertical-align: middle;
}

.avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    filter: grayscale(1) sepia(.16) contrast(1.02);
}

.avatar::before {
    content: attr(data-initial);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--teal-soft);
    color: var(--teal);
}

.avatar img { position: relative; z-index: 1; }

[data-initial].is-broken { position: relative; }

[data-initial].is-broken::before {
    content: attr(data-initial);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        repeating-linear-gradient(135deg, transparent 0 13px, rgb(200 185 162 / 18%) 13px 14px),
        var(--paper-deep);
    color: var(--line-2);
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-style: italic;
    z-index: 1;
}

img.is-broken { visibility: hidden; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1120px) {
    .nav { gap: 0; }
    .nav-link { padding-inline: 8px; font-size: .62rem; }
    .nav-link--sub { display: none; }
    .hero__grid { gap: 40px; }
}

@media (max-width: 980px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__copy { max-width: none; }
    .hero__visual { min-height: 520px; margin-top: 10px; }
    .hero__title { font-size: clamp(3.6rem, 11vw, 6rem); }
    .hero__stamp { left: 47%; }

    .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .image-layout { grid-template-columns: minmax(0, 1fr); }
    .image-aside { position: static; }

    .footer-top { grid-template-columns: minmax(0, 1fr); }
    .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .site-header__inner { height: 66px; gap: 14px; }

    .nav-toggle { display: inline-flex; margin-left: auto; }

    .nav {
        position: fixed;
        inset: 66px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
        padding: 8px clamp(20px, 5vw, 36px) 26px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 30px 50px -30px rgb(27 23 16 / 45%);
    }

    .nav.is-open { display: flex; }

    .nav-link {
        min-height: 48px;
        padding: 0;
        border-bottom: 1px solid var(--line);
        font-size: .7rem;
    }

    .nav-link[aria-current="page"]::after { display: none; }

    .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin: 18px 0 0;
        padding-top: 18px;
        border-top: 1px solid var(--line-2);
    }

    .nav-actions .btn { width: 100%; }
    .nav-link--login { min-height: 40px; border-bottom: 0; padding-inline: 0; }
    .nav-user { justify-content: flex-start; }

    .hero__stats { width: 100%; }
    .hero__stat { flex: 1 1 0; padding-inline: 12px; }
    .hero__stat:first-child { padding-left: 0; }

    .album-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .album-card,
    .album-card:nth-child(1),
    .album-card:nth-child(6) { grid-column: auto; }
    .album-card:nth-child(1) { grid-column: 1 / -1; }
    .album-card:nth-child(1) .album-card__media { aspect-ratio: 16 / 9; }

    .section-head--split { flex-direction: column; align-items: flex-start; }
    .section-head--split > .link-arrow { margin-top: 4px; }

    .album-hero { grid-template-columns: minmax(0, 1fr); }
    .album-hero__cover { max-width: 520px; margin-top: 6px; }

    .notes { grid-template-columns: minmax(0, 1fr); }
    .notebook__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
    .page-head__row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .page-head__count {
        display: flex;
        align-items: baseline;
        gap: 8px;
        text-align: left;
        letter-spacing: .12em;
    }
    .page-head__count strong { font-size: 1.35rem; margin: 0; }
    .page-head h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); }

    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .photo-cell--lead { grid-column: span 2; grid-row: span 1; aspect-ratio: 1.35; }

    .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .slideshow__stage { min-height: 54vh; padding-inline: 48px; }
    .slide img { max-height: 52vh; }
    .slideshow__bar { grid-template-columns: auto minmax(0, 1fr); }
    .slideshow__link { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 560px) {
    .shell { padding-inline: 18px; }

    .brand-sub { display: none; }
    .brand-word { font-size: 1.42rem; }

    .hero { padding-block: 30px 52px; }
    .hero__title { font-size: clamp(3.1rem, 16.5vw, 4.6rem); }
    .hero__lede { font-size: 1rem; }
    .hero__visual { min-height: 420px; margin-top: 18px; }

    .print--main { left: 0; top: 5%; width: 62%; }
    .print--side-a { right: 0; top: 0; width: 39%; }
    .print--side-b { right: 0; bottom: 1%; width: 45%; }
    .hero__stamp { left: 34%; bottom: 0; width: 70px; height: 70px; font-size: .58rem; }

    .hero__stats { border-bottom: 0; }
    .hero__stat { padding: 10px 10px 14px; }
    .hero__stat dd { font-size: 1.3rem; }

    .section { padding-block: 44px; }
    .section-head__row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .section-title { font-size: 1.9rem; }

    .album-card__title { font-size: 1rem; }
    .album-card:nth-child(1) .album-card__title { font-size: 1.25rem; }
    .album-card__meta { font-size: .55rem; }

    .image-frame { padding: 8px; }
    .image-frame img { max-height: 62vh; }
    .image-frame__caption { font-size: .5rem; }

    .image-nav { align-items: flex-start; }
    .image-nav__group { gap: 8px 14px; }

    .slideshow-head { flex-direction: column; align-items: flex-start; }
    .slideshow__stage { padding-inline: 42px; }
    .slideshow__nav { width: 36px; height: 36px; }
    .slideshow__nav--prev { left: 8px; }
    .slideshow__nav--next { right: 8px; }

    .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------- fixes --- */

body.nav-open { overflow: hidden; }

.print__photo { position: relative; }

.page-head__lede a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line-2);
}

.page-head__lede a:hover { border-color: var(--ink); }

.image-filename {
    flex-basis: 100%;
    margin-top: 2px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .56rem;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
}

/* cadrage : les visages sont généralement dans le tiers supérieur */
.album-card__media img,
.album-hero__cover img,
.side-album__cover img { object-position: center 32%; }

.tile img,
.photo img,
.mini img,
.print__photo img { object-position: center 38%; }

@media (max-width: 560px) {
    .image-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .image-nav__group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .image-nav__step--prev { grid-column: 1; justify-self: start; }
    .image-nav__step--next { grid-column: 2; justify-self: end; }

    .image-nav__album {
        grid-column: 1 / -1;
        order: 3;
        margin-top: 4px;
        padding-top: 11px;
        border-top: 1px solid var(--line);
        text-align: center;
    }
}

.section--flush { padding-top: 0; }

@media (max-width: 560px) {
    .album-hero__cover { transform: none; }
    .album-hero__mat { inset: 16px -12px -14px 16px; }
}

/* --------------------------------------------------------------- favoris -- */

.favorite-form { display: inline-flex; }

.btn--favorite {
    background: transparent;
    border-color: var(--line-2);
    color: var(--ink);
}

.btn--favorite svg { fill: none; stroke: currentColor; }

.btn--favorite:hover {
    background: var(--accent-soft);
    border-color: #dca88e;
    color: var(--accent);
}

.btn--favorite.is-active {
    background: var(--accent-soft);
    border-color: #dca88e;
    color: var(--accent);
}

.btn--favorite.is-active svg { fill: currentColor; }

.favorite-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.favorite-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 28px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.favorite-card { min-width: 0; }

.favorite-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-deep);
    border-radius: 2px;
}

.favorite-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    transition: transform .7s var(--ease);
}

.favorite-card__media:hover img { transform: scale(1.035); }

.favorite-card__body {
    display: grid;
    gap: 6px;
    padding-top: 12px;
}

.favorite-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -.025em;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.favorite-card__title:hover { color: var(--teal); }

.favorite-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.favorite-card__meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-2);
}

.favorite-card__remove { margin-top: 3px; }

.favorite-remove {
    margin-top: 3px;
    color: var(--muted);
}

.favorite-remove:hover {
    color: #9f2b1f;
    border-color: #9f2b1f;
}

.favorite-empty { padding-block: clamp(52px, 8vw, 90px); }
.favorite-empty .empty__mark { color: var(--accent); opacity: .65; }

@media (max-width: 900px) {
    .favorite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .favorite-grid { gap: 24px 12px; }
    .favorite-card__title { font-size: 1rem; }
}

@media (max-width: 1240px) {
    .nav-link--sub { display: none; }
}



/* ------------------------------------------------------- suppression ---- */

.delete-warning {
    margin-bottom: 18px;
}

.form-card--danger {
    border-color: rgb(159 43 31 / 22%);
}

.delete-summary {
    display: grid;
    grid-template-columns: 2fr 1fr .7fr;
    gap: 18px;
    margin: 0 0 18px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.delete-summary > div { min-width: 0; }

.delete-summary dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.delete-summary dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.delete-owner-note {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.65;
}

.delete-form .form-actions { padding-top: 0; }

.alert--warning {
    border-left-color: #a66a1f;
    background: #fbf0dd;
    color: #5e3d12;
}

@media (max-width: 560px) {
    .delete-summary { grid-template-columns: 1fr 1fr; }
    .delete-summary > div:first-child { grid-column: 1 / -1; }
}
