/* Celeste — Art : gallery styles
   Aesthetic: a high-end, image-forward artist's portfolio. Quiet, elegant,
   generous whitespace; the work (and the placeholder potatoes) carry all the
   character. Refined serif display paired with a clean sans for body/utility.
   Restraint over decoration. A single warm-stone accent, used sparingly.
   No framework, no external fonts/CDN (CSP is self-only) — websafe/system stacks
   only. Mobile-first; the grid scales up at breakpoints. */

:root {
  /* gallery wall — warm paper whites */
  --bg:        #fbfaf8;   /* gallery white                */
  --bg-2:      #f3f1ec;   /* recessed panel / thumb bed   */
  --surface:   #ffffff;   /* card / panel                 */
  --surface-2: #faf8f4;   /* card hover                   */

  /* ink */
  --ink:       #1a1a1a;   /* near-black, soft             */
  --ink-soft:  #5b574f;   /* warm grey                    */
  --ink-faint: #908a7e;   /* caption grey                 */

  /* a single, restrained accent — warm stone / clay, kept very quiet */
  --accent:    #9a7b57;   /* muted clay                   */
  --accent-ink:#7a5f3f;   /* deeper clay for text on white*/

  --line:      #e7e3da;   /* hairline                     */
  --line-2:    #d8d2c6;   /* stronger hairline            */
  --shadow:    0 1px 2px rgba(26,22,16,.04), 0 10px 28px rgba(26,22,16,.06);
  --shadow-lg: 0 18px 50px rgba(26,22,16,.14);
  --radius:    2px;       /* near-square, gallery-clean   */
  --maxw:      1180px;

  /* type — refined serif display, clean sans body, sans utility */
  --font-head: Georgia, "Times New Roman", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 4px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 248, 0.85);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: baseline; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-text {
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 400; letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--font-body); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .26em; color: var(--ink-faint);
}
.site-nav a {
  margin-left: 26px; text-decoration: none; color: var(--ink-soft);
  font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
}
.site-nav a:hover { color: var(--accent-ink); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 56px; max-width: 720px; }
.hero-kicker {
  display: inline-block; font-weight: 600; text-transform: uppercase;
  letter-spacing: .26em; font-size: .7rem; color: var(--accent-ink);
  margin: 0 0 22px;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 22px;
}
.hl { color: inherit; }
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft);
  max-width: 52ch; margin: 0 0 30px; font-weight: 300;
}

.hero-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line-2); background: transparent;
  color: var(--ink-soft); font: inherit; font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

/* ---------- gallery ---------- */
.gallery-section { padding: 24px 0 88px; }
.gallery-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 940px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.card {
  border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer;
  background: transparent; font: inherit; color: var(--ink);
  display: flex; flex-direction: column;
}
.card-thumb {
  aspect-ratio: 4 / 5; width: 100%; object-fit: cover;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover .card-thumb, .card:focus-visible .card-thumb {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
}
.card:focus-visible { outline: none; }
.card:focus-visible .card-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-body { padding: 16px 2px 0; }
.card-title {
  font-family: var(--font-head);
  font-weight: 400; font-size: 1.08rem; margin: 0 0 4px;
  letter-spacing: 0; line-height: 1.3;
}
.card-meta { color: var(--ink-faint); font-size: .9rem; }
.card-tag {
  display: inline-block; margin-top: 10px; font-size: .64rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink-soft); border: 1px solid var(--line-2);
  padding: 3px 10px; border-radius: 999px;
}

.empty-state {
  text-align: center; color: var(--ink-faint); font-size: 1.15rem;
  font-family: var(--font-head); font-style: italic;
  padding: 88px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}

/* ---------- about ---------- */
.about-section { padding: 24px 0 96px; }
.about-inner {
  border-top: 1px solid var(--line);
  padding: 44px 0 0; max-width: 640px;
}
.about-inner h2 {
  margin: 0 0 16px; font-size: .74rem; font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: .26em; color: var(--ink-faint);
  font-weight: 600;
}
.about-blurb {
  margin: 0; color: var(--ink); font-size: 1.25rem; line-height: 1.6;
  font-family: var(--font-head); font-weight: 400;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 32px 0; color: var(--ink-faint);
  font-size: .8rem; letter-spacing: .06em;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(28, 25, 20, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lb-img {
  max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.lb-cap { color: #f5f2ec; text-align: center; margin-top: 18px; }
.lb-title { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.2rem; letter-spacing: 0; }
.lb-meta { display: block; color: #c9c2b5; font-size: .9rem; margin-top: 4px; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  cursor: pointer; border-radius: 999px; line-height: 1;
  transition: background .15s ease, border-color .15s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
.lb-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 1.7rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
@media (max-width: 600px) {
  .lb-nav { width: 44px; height: 44px; font-size: 1.7rem; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-thumb { transition: none; }
}
