/* The existing logo, typography, photography and grid remain the visual foundation. */
:root { --works-gutter: 2.5vw; }
.brand-intro {
  min-height: calc(100svh - var(--header-height) - 8px);
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 24px calc(var(--header-height) + 24px);
}
.brand-intro__logo { width: clamp(280px, 43vw, 650px); max-width: 88vw; }
.brand-intro .logo-intro { width: 100%; height: auto; }
.brand-intro__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 12px 16px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
}
.brand-intro__arrow { position: relative; display: block; width: 1px; height: 36px; background: #333; }
.brand-intro__arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  transform: rotate(45deg);
}
/* Avoid displaying the same logo twice while the large introduction is visible. */
html:has(.brand-intro):not([data-intro-visible="false"]):not(:has(.close[data-astro-cid-mrjwqrza])) .logo[data-astro-cid-libroesq] { opacity: 0; visibility: hidden; }
.logo[data-astro-cid-libroesq] { transition: opacity .3s ease, visibility .3s; }
.works-section { margin-inline: var(--works-gutter); min-height: calc(100svh - var(--header-height) - 12px); scroll-margin-top: calc(var(--header-height) + 12px); }
.works-section:focus { outline: none; }
.works-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 24px;
  margin-bottom: 8px;
  border-top: 1px solid #333;
  background: #fff;
}
.works-toolbar__heading { display: flex; align-items: baseline; gap: 15px; }
.works-toolbar h2 { font-size: 18px; font-weight: 700; letter-spacing: .025em; }
.works-count { font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.works-count__total { color: #777; }
.works-filter { display: flex; align-items: center; gap: 20px; }
.works-filter[hidden] { display: none; }
.works-filter > label { font-size: 10px; letter-spacing: .1em; color: #777; }
.works-select { position: relative; }
.works-select select {
  display: block;
  width: 230px;
  min-height: 44px;
  padding: 10px 30px 10px 0;
  border-bottom: 1px solid #333;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.works-select > span { position: absolute; right: 3px; top: 17px; width: 7px; height: 7px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); pointer-events: none; }
.works-grid.list[data-astro-cid-c65n3et3] { padding-inline: 0; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.works-grid > [hidden] { display: none !important; }
.works-grid .root:focus-visible { outline: 2px solid #333; outline-offset: 3px; }
.works-select select:focus-visible, .brand-intro__scroll:focus-visible { outline: 2px solid #333; outline-offset: 5px; }
@media (max-width: 768px) {
  :root { --works-gutter: min(calc(16 / 375 * 100vw), 16px); }
  .brand-intro__logo { width: 74vw; max-width: 440px; }
  .brand-intro__scroll { bottom: 28px; font-size: 9px; }
  .brand-intro__arrow { height: 30px; }
  .works-toolbar { padding: 15px 0 20px; gap: 12px; }
  .works-toolbar h2 { font-size: 15px; }
  .works-toolbar__heading { gap: 10px; }
  .works-count { font-size: 10px; }
  .works-filter > label { display: none; }
  .works-select select { width: 184px; font-size: 10px; padding-right: 18px; }
  .works-grid.list[data-astro-cid-c65n3et3] { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .works-toolbar__heading { gap: 7px; }
  .works-select select { width: 160px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo[data-astro-cid-libroesq] { transition: none; }
}
