.lignes-header .lignes-home {
  margin-left: auto;
  font-size: .9rem;
}
.lignes-header .lignes-home:hover { color: var(--accent); }
.lignes-header > .language-switch { margin-left: 0; }

.lignes-main {
  max-width: 1260px;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.lignes-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(17rem, 1fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5rem) 1.9rem;
}
.lignes-intro .eyebrow {
  margin: 0 0 .9rem;
  color: #5f6259;
  text-transform: uppercase;
}
.lignes-intro h1 {
  margin: 0;
  font: 400 clamp(2.6rem, 5.25vw, 5.6rem)/.95 var(--serif);
  letter-spacing: -.06em;
}
.lignes-intro h1 span {
  display: block;
  margin-top: .32em;
  color: var(--red);
  font-size: .65em;
  font-style: italic;
  letter-spacing: -.035em;
}
.lignes-description {
  margin: 0;
  max-width: 48ch;
  font-size: 1.03rem;
  line-height: 1.65;
}
.lignes-index {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-block: .9rem;
  border-block: 1px solid var(--line);
}
.lignes-index a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .78rem;
  border: 1px solid var(--line);
  background: #fbf9f4;
  font-size: .9rem;
}
.lignes-index a:hover { border-color: var(--red); color: var(--red); }
.lignes-edition { margin-top: clamp(2.2rem, 5vw, 4rem); }
.lignes-edition h2 {
  margin: 0 0 1.2rem;
  font: 400 clamp(2.25rem, 4.2vw, 3.8rem)/1.04 var(--serif);
  letter-spacing: -.04em;
}
.lignes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem clamp(.65rem, 1.7vw, 1.4rem);
}
.lignes-photo {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: #fbf9f4;
}
.lignes-photo a {
  position: relative;
  display: block;
  background: var(--paper);
}
.lignes-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.lignes-expand {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border: 1px solid #ffffff8c;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.1rem;
  line-height: 1;
}
.lignes-photo a:hover .lignes-expand,
.lignes-photo a:focus-visible .lignes-expand { background: var(--red); }
.lignes-photo figcaption {
  display: grid;
  gap: .2rem;
  padding: .7rem .85rem .85rem;
  font-size: .9rem;
  line-height: 1.35;
}
.lignes-photo figcaption strong { font-size: .97rem; }
.lignes-photo figcaption span { color: #505952; }
.lignes-main a:focus-visible,
.lignes-home:focus-visible,
.lignes-viewer button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.lignes-viewer {
  width: min(1180px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: .55rem;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid #ffffff40;
}
.lignes-viewer-bar {
  display: flex;
  justify-content: flex-end;
}
.lignes-viewer figure {
  margin: .35rem 0;
  text-align: center;
}
.lignes-viewer figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 10.5rem);
  margin-inline: auto;
}
.lignes-viewer figcaption {
  padding: .45rem .6rem .15rem;
  font-size: .9rem;
  line-height: 1.4;
}
.lignes-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.4rem, 2vw, 1rem);
}
.lignes-viewer button {
  min-height: 2.55rem;
  padding: .35rem .75rem;
  border: 1px solid #ffffff66;
  background: transparent;
  color: inherit;
  font-size: .9rem;
}
.lignes-viewer button:hover { background: #ffffff21; }
.lignes-count {
  min-width: 3.25rem;
  color: #e1ddd1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 840px) {
  .lignes-intro { grid-template-columns: 1fr; gap: 1rem; }
  .lignes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .lignes-grid { grid-template-columns: 1fr; }
  .lignes-header .lignes-home { font-size: .8rem; }
  .lignes-intro h1 { font-size: clamp(2.4rem, 8.6vw, 3.5rem); }
}
@media (max-width: 380px) {
  .lignes-header .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.lignes-main) { scroll-behavior: auto; }
}
