@charset "utf-8";
/* ==========================================================================
   Lourdes Argüelles — obra pictórica y fotográfica
   Aesthetic: contemporary gallery catalogue. Warm limestone paper, ink type,
   ochre/terracotta/verdigris accents lifted from the paintings themselves.
   Display: Fraunces (variable, soft + wonk axes). Text: Karla.
   No build step, no framework, no third-party runtime.
   ========================================================================== */

/* ----- fonts ------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin-ext-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

/* ----- tokens ------------------------------------------------------------ */
:root {
  --paper: #f2ece2;
  --paper-deep: #e8dfd1;
  --paper-edge: #d8cbb7;
  --ink: #191512;
  --ink-soft: #4c433a;
  --ink-faint: #8a7d6d;
  --ochre: #a9682d;
  --terracotta: #9a3b2b;
  --verdigris: #3a6b66;
  --night: #14110f;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Karla", "Avenir Next", "Helvetica Neue", sans-serif;

  --gap: clamp(0.8rem, 1.5vw, 1.3rem);
  --pad: clamp(1.1rem, 3.2vw, 3rem);
  --measure: 34rem;
  --rule: 1px solid var(--paper-edge);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 620ms var(--ease);
  --quick: 240ms var(--ease);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(0.97rem, 0.4vw + 0.86rem, 1.06rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 200;
}
.skip:focus { left: 0.6rem; top: 0.6rem; }

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

/* paper grain: sits above the background, below content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- type ------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  letter-spacing: -0.014em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0;
}

.lede {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 0;
  font-size: clamp(1.15rem, 1.1vw + 0.95rem, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ----- masthead / nav ---------------------------------------------------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(11px);
  -webkit-backdrop-filter: saturate(1.4) blur(11px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--quick), background var(--quick);
}
.bar[data-stuck="true"] { border-bottom-color: var(--paper-edge); }

.bar__name {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 1.06rem;
  letter-spacing: 0.006em;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(0.9rem, 2.2vw, 2.1rem);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  padding-bottom: 0.22rem;
  color: var(--ink-soft);
  transition: color var(--quick);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--quick);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ----- hero --------------------------------------------------------------
   Was a half-width image beside a tall type column, which left most of the
   first screen empty and repeated the page title in the section head below.
   Now: a full-width image band, then one tight title strip that doubles as
   the section head. Same identity, roughly half the vertical cost.        */
.hero { position: relative; z-index: 2; }

.hero__art {
  position: relative;
  width: 100%;
  height: clamp(13rem, 32vh, 21rem);
  overflow: hidden;
  background: var(--paper-deep);
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero__credit {
  position: absolute;
  right: clamp(0.8rem, 2vw, 1.4rem);
  bottom: 0.6rem;
  z-index: 2;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 85%, transparent);
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.6);
}

.hero__band {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(0.6rem, 2vw, 2rem);
  flex-wrap: wrap;
  padding: clamp(1rem, 2.2vw, 1.6rem) var(--pad) clamp(0.85rem, 1.8vw, 1.25rem);
  border-bottom: var(--rule);
  margin-bottom: clamp(1.1rem, 2.4vw, 1.9rem);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  margin: 0;
}
.hero__title span {
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 144;
  color: var(--terracotta);
}
.hero__title span::before { content: " "; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0;
  padding-bottom: 0.35em;
}
.hero__meta b { font-weight: 600; color: var(--ink-soft); }

/* ----- section head ------------------------------------------------------ */
.head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
  padding: clamp(1.1rem, 2.5vw, 1.9rem) var(--pad) clamp(0.8rem, 1.8vw, 1.2rem);
  border-bottom: var(--rule);
  margin-bottom: clamp(1.1rem, 2.4vw, 1.9rem);
}
.head h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
.head__count {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ----- gallery: multi-column so nothing is ever cropped ------------------ */
.gallery {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) clamp(2.5rem, 5vw, 4.5rem);
  column-count: 3;
  column-gap: var(--gap);
}
@media (min-width: 1560px) { .gallery { column-count: 4; } }
@media (max-width: 1080px) { .gallery { column-count: 2; } }
@media (max-width: 620px)  { .gallery { column-count: 1; } }

.plate {
  break-inside: avoid;
  margin: 0 0 clamp(1.3rem, 2.4vw, 2rem);
  opacity: 0;
  transform: translateY(14px);
  animation: rise var(--slow) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

.plate__frame {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper-deep) center / cover no-repeat;
  border: 1px solid var(--paper-edge);
  cursor: zoom-in;
}
.plate__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgb(25 21 18 / 0.06);
  transition: background var(--quick);
}
.plate__frame img {
  width: 100%;
  height: auto;
  transition: transform 900ms var(--ease), filter var(--quick);
}
.plate__frame:hover img { transform: scale(1.022); }
.plate__frame:hover::after { background: rgb(25 21 18 / 0.04); }

.plate__cap {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--paper-edge);
  position: relative;
}
.plate__cap::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms var(--ease);
}
.plate:hover .plate__cap::before { transform: scaleX(1); }

.plate__n {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
  flex: none;
  padding-top: 0.28em;
}
.plate__title {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 0;
  font-size: 1.04rem;
  line-height: 1.28;
  flex: 1 1 auto;
}
.plate__title i { font-style: italic; color: var(--ink-soft); }
.plate__year {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  flex: none;
  padding-top: 0.34em;
}

/* ----- editorial pages -------------------------------------------------- */
.prose {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  padding: clamp(1.1rem, 2.5vw, 2rem) var(--pad) clamp(2rem, 4vw, 3.25rem);
  align-items: start;
}
.prose__portrait { position: sticky; top: 5.5rem; }
.prose__portrait picture { display: block; }
.prose__portrait img {
  border: 1px solid var(--paper-edge);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
}
.prose__portrait figcaption {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.prose__text p {
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "WONK" 0;
  font-size: clamp(1.08rem, 0.7vw + 0.95rem, 1.32rem);
  line-height: 1.62;
  margin: 0 0 1.15em;
  max-width: 38rem;
}
.prose__text p:first-child::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--terracotta);
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

.facts {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule);
}
.facts li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: var(--rule);
  font-size: 0.95rem;
}
.facts b {
  font-family: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--ochre);
  padding-top: 0.24em;
  font-variant-numeric: tabular-nums;
}

/* ----- contact ---------------------------------------------------------- */
.contact {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  padding: clamp(1.1rem, 2.5vw, 2rem) var(--pad) clamp(2.25rem, 4vw, 3.5rem);
  align-items: center;
}
.contact .prose__portrait img { aspect-ratio: auto; object-fit: contain; }

.contact__addr {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 0;
  font-size: clamp(1.15rem, 1vw + 0.95rem, 1.5rem);
  line-height: 1.5;
  font-style: normal;
}
.contact__addr span { display: block; }
.contact__addr .who {
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 1.35em;
  margin-bottom: 0.5em;
}

/* ----- footer ----------------------------------------------------------- */
.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem var(--gap);
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--pad);
  border-top: var(--rule);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foot a:hover { color: var(--ink); }

/* ----- lightbox --------------------------------------------------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 1fr auto;
  background: color-mix(in srgb, var(--night) 96%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 300ms;
}
.lb[data-open="true"] { opacity: 1; visibility: visible; }
body[data-lb="true"] { overflow: hidden; }

.lb__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1rem, 7vw, 6rem) 0.5rem;
  min-height: 0;
  overflow: hidden;
}
/* Size against the viewport, not the grid track: a percentage max-height on a
   grid item resolves against content here and lets tall images overflow. */
.lb__stage img {
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.6);
  opacity: 0;
  transition: opacity 320ms var(--ease);
}
.lb__stage img[data-ready="true"] { opacity: 1; }

.lb__bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
  padding: 0.9rem clamp(1rem, 5vw, 3rem) clamp(1.1rem, 3vw, 1.75rem);
  color: color-mix(in srgb, #fff 88%, transparent);
}
.lb__title {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 0;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  line-height: 1.25;
}
.lb__title i { font-style: italic; opacity: 0.72; }
.lb__count {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--ochre) 78%, #fff);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lb__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #fff;
  opacity: 0.55;
  transition: opacity var(--quick), transform var(--quick);
}
.lb__btn:hover { opacity: 1; }
.lb__btn svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lb__close { top: 0.8rem; right: 0.8rem; }
.lb__prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 0.4rem; top: 50%; transform: translateY(-50%); }
.lb__prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb__next:hover { transform: translateY(-50%) translateX(3px); }
@media (max-width: 620px) {
  .lb__prev { left: 0; } .lb__next { right: 0; }
  .lb__btn { width: 2.5rem; }
}

/* ----- responsive ------------------------------------------------------- */
/* The wordmark plus four nav items do not fit on a phone; letting them share
   one row pushed the document wider than the viewport and clipped every
   right-aligned element on the page. Stack them instead. */
@media (max-width: 720px) {
  .bar { flex-wrap: wrap; row-gap: 0.45rem; padding-top: 0.7rem; }
  .bar__name { flex: 1 1 100%; }
  .nav {
    flex: 1 1 100%;
    gap: clamp(0.8rem, 4vw, 1.4rem);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}

.head { flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero__art { height: clamp(11rem, 26vh, 16rem); }
  .prose, .contact { grid-template-columns: 1fr; }
  .prose__portrait { position: static; max-width: 20rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  .plate { opacity: 1; transform: none; }
}

@media print {
  body::before, .bar, .lb, .hero__art { display: none; }
  .gallery { column-count: 2; }
}
