:root {
  --color-brand: #120c3c;
  --color-brand-soft: #2a2366;
  --color-pin: #d40000;
  --color-text: #1f1c2e;
  --color-muted: #5f5b70;
  --color-background: #f7f4ee;
  --color-surface: #ffffff;
  --color-border: #e3ddd2;
  --color-focus: #1a5fb4;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", "P052", Georgia, serif;
  --space-xs: 0.25rem;
  --space-s: 0.5rem;
  --space-m: 1rem;
  --space-l: 2rem;
  --space-xl: 3.5rem;
  --content-width: 60rem;
  --radius: 0.375rem;
  --shadow-hung: 0 1px 2px rgb(18 12 60 / 0.12), 0 12px 32px -8px rgb(18 12 60 / 0.35);
  color-scheme: light;
  font-family: var(--font-body);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.55;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--color-brand);
  text-underline-offset: 0.15em;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-brand);
  line-height: 1.2;
}
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: var(--space-m);
  top: -3rem;
  z-index: 10;
  padding: var(--space-s) var(--space-m);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.skip-link:focus {
  top: var(--space-s);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s) var(--space-m);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-m);
}
.site-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  color: var(--color-brand);
  text-decoration: none;
}
.site-brand img {
  grid-row: span 2;
  width: 56px;
  height: 56px;
}
.site-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}
.site-tagline {
  color: var(--color-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav ul,
.filters ul,
.social-links,
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--color-brand);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  border-bottom-color: var(--color-pin);
}
.filters {
  display: grid;
  gap: var(--space-s);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-s) var(--space-m) var(--space-m);
  border-top: 1px solid var(--color-border);
}
.filters ul {
  gap: var(--space-s);
  padding-top: var(--space-s);
}
.filters ul + ul {
  padding-top: 0;
}
.filters a {
  display: inline-block;
  padding: 0.3rem 0.95rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-brand);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.filters a:hover {
  border-color: var(--color-brand);
}
.filters a[aria-current="page"] {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
}
@media (max-width: 40rem) {
  .filters ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--space-m));
    padding-inline: var(--space-m);
    scrollbar-width: none;
  }
  .filters li {
    flex: none;
  }
  .site-title {
    font-size: 1.5rem;
  }
  .site-brand img {
    width: 44px;
    height: 44px;
  }
}
main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-m) var(--space-xl);
}
.gallery-header {
  margin: var(--space-l) 0;
}
.gallery-header h1 {
  margin: 0;
  font-size: 1.9rem;
}
.gallery-header h1::after,
.about-intro h1::after,
.prose h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: var(--space-s);
  background: var(--color-pin);
}
.gallery-intro {
  max-width: 42rem;
  margin: var(--space-m) 0 0;
}
.gallery-count {
  margin: var(--space-s) 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  margin: 0 calc(-1 * var(--space-m));
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .gallery-grid {
    gap: 0.75rem;
    margin: 0;
  }
}
.gallery-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-border);
}
@media (min-width: 40rem) {
  .gallery-grid a {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgb(18 12 60 / 0.15);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-grid li {
  scroll-margin-top: var(--space-l);
}
.gallery-more {
  display: grid;
  justify-items: center;
  gap: var(--space-s);
  margin: var(--space-l) 0 0;
}
.gallery-remaining {
  color: var(--color-muted);
  font-size: 0.85rem;
}
.gallery-more.is-automatic a {
  display: none;
}
.gallery-more.is-loading .gallery-remaining::after {
  content: " · chargement…";
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 0.75rem 0.65rem;
  background: linear-gradient(transparent, rgb(18 12 60 / 0.88));
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
@media (hover: hover) and (min-width: 40rem) {
  .gallery-grid a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hung);
  }
  .gallery-grid a:hover .gallery-caption {
    opacity: 1;
  }
}
.gallery-grid a:focus-visible .gallery-caption {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-grid a,
  .gallery-caption,
  .filters a {
    transition: none;
  }
  .gallery-grid a:hover {
    transform: none;
  }
}
.painting {
  display: grid;
  gap: var(--space-l);
  margin-top: var(--space-l);
}
@media (min-width: 52rem) {
  .painting {
    grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr);
    align-items: start;
  }
}
.painting-figure {
  margin: 0;
  padding: clamp(0.75rem, 3vw, 2rem);
}
.framed-painting {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 1px 1px rgb(18 12 60 / 0.18)) drop-shadow(0 10px 18px rgb(18 12 60 / 0.28));
}
.painting-image {
  max-height: 80vh;
}
.frame-moulding {
  fill: #fbfaf7;
}
.framed-painting-black .frame-moulding {
  fill: #17161b;
}
.frame-rebate {
  fill: none;
  stroke: rgb(0 0 0 / 0.28);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}
.framed-painting-black .frame-rebate {
  stroke: rgb(255 255 255 / 0.12);
}
.framed-painting-none .frame-rebate {
  stroke: none;
}
.painting-details h1 {
  margin: 0;
  font-size: 2rem;
}
.painting-painter {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: var(--space-s) 0 var(--space-m);
  padding: 0.3rem 1rem 0.3rem 0.3rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-brand);
  text-decoration: none;
  box-shadow: 0 1px 3px rgb(18 12 60 / 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.painting-painter:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-hung);
}
.painter-bubble {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3px var(--color-border);
  object-fit: cover;
}
.painter-bubble-initial {
  display: grid;
  place-items: center;
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.painter-bubble-text {
  display: grid;
  line-height: 1.25;
}
.painter-bubble-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.painter-bubble-city {
  color: var(--color-muted);
  font-size: 0.85rem;
}
@media (prefers-reduced-motion: reduce) {
  .painting-painter {
    transition: none;
  }
}
.painting-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-s) var(--space-m);
  margin: 0 0 var(--space-m);
  padding: var(--space-m) 0;
  border-block: 1px solid var(--color-border);
}
.painting-facts dt {
  color: var(--color-muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}
.painting-facts dd {
  margin: 0;
}
.painting-nav {
  display: grid;
  gap: 0.75rem;
  margin-top: var(--space-l);
}
.painting-nav-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}
.neighbour-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 1px 3px rgb(18 12 60 / 0.1);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.neighbour-next {
  flex-direction: row-reverse;
  text-align: right;
}
.neighbour-card img {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 2px;
  object-fit: cover;
}
.neighbour-text {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
.neighbour-label {
  color: var(--color-pin);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.neighbour-title {
  color: var(--color-brand);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.neighbour-technique {
  color: var(--color-muted);
  font-size: 0.8rem;
}
@media (hover: hover) {
  .neighbour-card:hover {
    border-color: var(--color-brand);
    box-shadow: var(--shadow-hung);
    transform: translateY(-2px);
  }
}
.painting-visit {
  margin: var(--space-m) 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.neighbour-all {
  justify-self: center;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}
@media (prefers-reduced-motion: reduce) {
  .neighbour-card {
    transition: none;
  }
  .neighbour-card:hover {
    transform: none;
  }
}
.badge {
  display: inline-block;
  padding: 0 var(--space-s);
  border: 1px solid var(--color-pin);
  border-radius: 999px;
  color: var(--color-pin);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  vertical-align: middle;
}
.button-outline {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 2px solid var(--color-brand);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-brand);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 12px -4px rgb(18 12 60 / 0.35);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.button-outline:hover {
  background: var(--color-brand);
  color: #fff;
}
.about-intro {
  max-width: 40rem;
  margin: var(--space-l) auto var(--space-xl);
  text-align: center;
}
.about-intro img {
  margin: 0 auto var(--space-m);
}
.about-intro h1 {
  margin: 0 0 var(--space-m);
  font-size: 2.2rem;
}
.about-intro h1::after {
  margin-inline: auto;
}
.about-lead {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-brand);
}
.painter-list {
  display: grid;
}
.painter-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  justify-items: center;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-brand);
  text-align: center;
}
.painter-card:first-child {
  padding-top: 0;
}
@media (min-width: 48rem) {
  .painter-card {
    grid-template-columns: 14rem 1fr 12rem;
    align-items: start;
    justify-items: stretch;
    text-align: left;
  }
}
.painter-portrait {
  display: grid;
  justify-items: center;
  gap: var(--space-m);
}
.painter-portrait img,
.painter-initial {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--color-surface), 0 0 0 5px var(--color-border), var(--shadow-hung);
  object-fit: cover;
}
.painter-initial {
  display: grid;
  place-items: center;
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 4.5rem;
}
.painter-count {
  color: var(--color-muted);
  font-size: 0.85rem;
}
.button-outline:hover .painter-count {
  color: inherit;
}
.painter-text h2 {
  margin: 0;
  font-size: 1.9rem;
}
.painter-city {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: var(--space-s) 0 var(--space-m);
  padding: 0.15rem 0.7rem 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}
.pin-icon {
  color: var(--color-pin);
  filter: drop-shadow(0 0 1px #fff);
}
.painter-text p:last-child {
  max-width: 34rem;
  color: var(--color-muted);
}
.painter-map {
  width: 12rem;
}
.section-title {
  margin: var(--space-xl) 0 var(--space-l);
  font-size: 1.5rem;
  text-align: center;
}
.about-social {
  text-align: center;
}
.social-buttons {
  justify-content: center;
}
.prose {
  max-width: 40rem;
  margin-top: var(--space-l);
}
.prose h1 {
  font-size: 2rem;
}
.contact-email {
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.site-footer {
  padding: var(--space-l) var(--space-m);
  background: var(--color-brand);
  color: rgb(255 255 255 / 0.75);
  font-size: 0.85rem;
  text-align: center;
}
.site-footer a {
  color: #fff;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  margin: 0 0 var(--space-m);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.social-links {
  justify-content: center;
  margin-bottom: var(--space-m);
}
.button-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgb(18 12 60 / 0.5);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button-visit:hover {
  background: var(--color-brand-soft);
  transform: translateY(-1px);
}
.button-visit .icon-museum {
  flex: none;
}
.site-nav .button-visit,
.site-nav .button-visit:hover {
  border-bottom: 0;
  color: #fff;
}
.button-visit-small {
  padding: 0.35rem 0.85rem;
  font-size: 0.95rem;
}
.site-nav ul {
  align-items: center;
}
.painting-zoom-link {
  position: relative;
  display: block;
  cursor: zoom-in;
}
.zoom-hint {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgb(18 12 60 / 0.75);
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.painting-zoom-link:hover .zoom-hint,
.painting-zoom-link:focus-visible .zoom-hint {
  opacity: 1;
}
@media (hover: none) {
  .zoom-hint {
    opacity: 1;
  }
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
}
.lightbox:target {
  display: grid;
  animation: lightbox-in 0.2s ease;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(10 7 30 / 0.88);
  cursor: zoom-out;
}
.lightbox-figure {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin: 0;
  pointer-events: none;
}
.lightbox-image {
  max-height: calc(100vh - 6rem);
  max-height: calc(100dvh - 6rem);
  filter: drop-shadow(0 20px 40px rgb(0 0 0 / 0.55));
  pointer-events: auto;
  cursor: default;
}
.lightbox-figure figcaption {
  color: rgb(255 255 255 / 0.85);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}
.lightbox-close:hover {
  background: rgb(255 255 255 / 0.25);
}
.lightbox-close:focus-visible,
.lightbox-backdrop:focus-visible {
  outline: 3px solid #8cb4ff;
  outline-offset: -3px;
}
@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox:target {
    animation: none;
  }
  .button-visit,
  .zoom-hint {
    transition: none;
  }
}
@media (max-width: 40rem) {
  .site-nav ul {
    flex-wrap: nowrap;
    gap: 0.6rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .button-visit-small {
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
  }
  .button-visit-small .icon-museum {
    width: 16px;
    height: 16px;
  }
}
