/* =========================================================
   Tokens
   ========================================================= */
:root{
  --bg:        #F9F7F5; /* #eaeeae7 */
  --bg-raised: #FFFFFF;
  --ink:       #767674; /* main text/heading color — darkened slightly from
                            #8b8b89 for better readability against --bg */
  --chrome:    #1C1B19; /* dark UI chrome (icons, dark fills) — kept dark on
                            purpose so it stays legible even though --ink
                            is now a muted grey for text/headings */
  --muted:     #767268; /* darkened slightly from #8A8680, same reasoning as --ink */
  --emphasis:  #2e2d2b; /* the active menu item / active project tab —
                            darkened another ~24% from #3c3b39 (itself
                            ~25% darker than the original #504f4c) for
                            a clearly noticeable selected state */
  --body-text: #828280; /* paragraph copy (bio text, descriptions, contact
                            info) — darkened slightly from #9c9c9c */
  --line:      #E7E3DC;
  --accent:    #8B4A2B; /* burnt sienna — used sparingly */

  /* Menu background — used by BOTH the desktop header bar (.site-header)
     AND the mobile dropdown menu (.nav in the @media block below). Defaults
     to --bg so the menu always matches the page, but this is its own token
     on purpose: change THIS one line if you ever want the menu to be a
     different color than the page background — both desktop and mobile
     will update together automatically, since they both read this same
     variable rather than two separate hardcoded colors. */
  --nav-bg:    var(--bg);

  /* CHANGE FONT HERE — also update the Google Fonts <link> near the top of
     every .html file to match (same family name + weights). */
  --font: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;

  --speed: 220ms;
}

/* Intentionally light-only site — colors above are fixed regardless of
   OS theme, so no dark-mode media query is needed here. */

/* =========================================================
   Reset
   ========================================================= */
*,*::before,*::after{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; background:none; border:0; cursor:pointer; color:inherit; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p,figure{ margin:0; }

body{
  font-family: var(--font);
  background: var(--bg);
  color: var(--body-text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.8;
}

:focus-visible{
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
}

/* Visually hidden but readable by screen readers and search engines —
   used for the one <h1> every page should have, even when there's no
   visible page heading. */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce){
  *{ transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Shown only to visitors with JavaScript disabled — see the comment
   above each <noscript> tag in the HTML. */
.noscript-msg{
  background: #FFF4E5;
  border-bottom: 1px solid var(--line);
  padding: 16px var(--gutter);
  font-size: 13.5px;
  text-align: center;
  color: var(--ink);
}

/* =========================================================
   Wall label — the recurring signature motif.
   Used for nav, captions, and lightbox metadata: it borrows
   the look of a museum placard (small caps, wide tracking,
   hairline rule) everywhere a label appears on the site.
   ========================================================= */
.label{
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================
   Announcement bar — optional, toggled in script.js (SITE.announcementBar)
   ========================================================= */
.announcement-bar{
  width: 100%;
  padding: 10px var(--gutter); /* ~36px total height — increase for a taller bar */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  font-style: italic;
}
.announcement-bar button{
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  line-height: 1;
  font-style: normal;
  opacity: 0.75;
}
.announcement-bar button:hover{ opacity: 1; }

/* =========================================================
   GDPR / cookie notice — fixed bar at the bottom of the screen
   ========================================================= */
.gdpr-banner{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--chrome);
  color: #fff;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.gdpr-banner p{
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
}
.gdpr-banner p a{
  color: #fff;
  text-decoration: underline;
}
.gdpr-banner .submit-btn{
  border-color: #fff;
  color: #fff;
  flex-shrink: 0;
}
.gdpr-banner .submit-btn:hover{ background: #fff; color: var(--ink); }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  /* Slight transparency + blur, so content scrolling underneath is
     still faintly visible through the sticky bar. Mobile menu below
     stays fully opaque on purpose — it's a dropdown panel sitting over
     page content, not a translucent bar. Both share --nav-bg though,
     so the underlying color is always identical, just the opacity differs. */
  background: color-mix(in srgb, var(--nav-bg) 92%, transparent);
  backdrop-filter: blur(6px);
}

.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 85px var(--gutter) 22px; /* 85px top — breathing room from the
    top of the page (or the bottom of the announcement bar, if it's showing)
    down to the wordmark. Bottom stays 22px, unrelated to this change. */
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 24px;
}

.wordmark{
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #12121270;
}

.nav{
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 12px;
}

.nav a, .nav .nav-disabled{
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--speed) ease;
}

.nav a:hover{ color: var(--emphasis); }

.nav a[aria-current="page"]{ color: var(--emphasis); font-weight: 500; }

.nav .nav-disabled{
  color: #C9C5BD;
  cursor: not-allowed;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.nav .nav-disabled small{
  font-size: 9px;
  letter-spacing: 0.08em;
  border: 1px solid #DCD8D0;
  border-radius: 2px;
  padding: 1px 4px;
  text-transform: uppercase;
}

.nav-toggle{
  display: none;
  width: 28px; height: 20px;
  position: relative;
  margin-left: auto;
  align-self: center;
}
.nav-toggle span{
  position:absolute; left:0; right:0; height:1px; background:var(--chrome);
  transition: transform var(--speed) ease, opacity var(--speed) ease;
}
.nav-toggle span:nth-child(1){ top:0; }
.nav-toggle span:nth-child(2){ top:9px; }
.nav-toggle span:nth-child(3){ top:18px; }

@media (max-width: 720px){
  .nav-toggle{ display:block; }
  .nav{
    position:absolute;
    top:100%; left:0; right:0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0,0,0,0.04);
    flex-direction:column;
    align-items:flex-start;
    gap: 0;
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--speed) ease;
  }
  .nav.is-open{ max-height: 320px; padding-bottom: 18px; }
  .nav a, .nav .nav-disabled{ padding: 14px 0; width:100%; border-bottom:1px solid var(--line); }
  body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2){ opacity:0; }
  body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }
}

/* =========================================================
   Front page hero — one image, one caption
   ========================================================= */
.hero{
  display:flex;
  flex-direction:column;
  min-height: calc(100vh - 73px);
}

.hero-frame{
  flex: 1;
  overflow: hidden;
  background: #DEDDD8;
}
.hero-frame img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
  transition: transform 500ms ease;
}
.hero-frame a{ display:block; height:100%; }
.hero-frame a:hover img{ transform: scale(1.02); }

/* =========================================================
   Gallery — project tabs + grid
   ========================================================= */
.tabs{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
  display:flex;
  column-gap: 28px; /* space between tab names, same row */
  row-gap: 14px;     /* space between wrapped rows — kept tighter (half of
                        column-gap) so multiple lines of project names read
                        as one connected group instead of looking spaced
                        out like separate sections */
  flex-wrap: wrap;
}
/* Desktop only — the 28px top padding above felt too generous next to
   the header on wider screens; mobile already looked right, so this is
   scoped to not touch it. */
@media (min-width: 721px){
  .tabs{ padding-top: 14px; }
}
.tab{
  padding: 0 0 14px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--speed) ease;
}
.tab:hover{ color: var(--emphasis); }
.tab.is-active{ color: var(--emphasis); font-weight: 500; }

.mosaic{
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter) 100px;
}
.mosaic-row{
  display: flex;
  gap: var(--mosaic-gap, 16px);
}
.mosaic-row + .mosaic-row{ margin-top: var(--mosaic-gap, 16px); }
/* A short trailing row (fewer than perRow paintings left over) sits at
   its natural size on the left instead of being stretched edge-to-edge —
   see SITE.gallery.mosaic in script.js. flex-start (the left-aligned
   look this needs) is flexbox's default, so no extra rule is needed
   here for the .is-unjustified class itself. */

.tile{
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  display: block;
  height: 100%;
  flex-shrink: 0;
  min-width: 0;
}
/* Harmless fallback only — script.js sets each tile's width and
   flex-grow:0 explicitly via inline style for every row, full or short,
   which always takes precedence over this. */
.mosaic-row:not(.is-unjustified) .tile{
  flex-grow: var(--grow, 1);
  flex-basis: 0;
}
.tile-frame{
  display: block;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}
.tile-frame img{
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 500ms ease, opacity var(--speed) ease;
}
.tile:hover .tile-frame img{ transform: scale(1.025); }

.empty-state{
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--gutter) 120px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   404 — minimal, centered, no gallery chrome
   ========================================================= */
.not-found{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 180px);
  padding: 60px var(--gutter) 100px;
}
.not-found-inner{
  max-width: 420px;
}
.not-found-inner .label{
  color: var(--accent);
  margin-bottom: 18px;
}
.not-found-text{
  font-size: 14px;
  line-height: 1.8;
  color: var(--body-text);
  margin-bottom: 28px;
}
.not-found-inner .submit-btn{
  display: inline-block;
}

/* =========================================================
   Lightbox — museum wall-label metadata panel
   Background color comes from SITE.lightboxBg in script.js;
   text colors switch automatically for contrast via the
   .lightbox--light / .lightbox--dark modifier classes below.
   ========================================================= */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed) ease;
}
.lightbox.is-open{ opacity: 1; visibility: visible; }

.lightbox--dark{
  --lb-text: #fff;
  --lb-muted: rgba(255,255,255,0.7);
  --lb-faint: rgba(255,255,255,0.55);
  --lb-line: rgba(255,255,255,0.18);
}
.lightbox--light{
  --lb-text: var(--ink);
  --lb-muted: rgba(28,27,25,0.65);
  --lb-faint: rgba(28,27,25,0.5);
  --lb-line: rgba(28,27,25,0.14);
}

.lightbox-inner{
  flex: 1;
  display:flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  width:100%;
  padding: 24px;
}

.lightbox-top{
  display:flex;
  justify-content:space-between;
  align-items: center;
  gap: 14px;
}
.lightbox-counter{
  color: var(--lb-faint);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.lightbox-top button{
  color: var(--lb-text);
  opacity:0.7;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lightbox-top button:hover{ opacity:1; }

.lightbox-body{
  flex:1;
  display:flex;
  gap: 48px;
  align-items: center;
  min-height: 0;
}
@media (max-width: 820px){
  .lightbox-body{ flex-direction:column; overflow-y:auto; align-items:stretch; gap:30px; }
}

.lightbox-image{
  flex: 1.4;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 0;
  position: relative; /* anchors the prev/next arrows to the image itself,
                          so they stay put in both the side-by-side and
                          stacked (mobile) layouts */
  touch-action: pan-y; /* leaves vertical scroll to the page, horizontal swipe to us */
}
.lightbox-image img{
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
@media (max-width: 820px){
  .lightbox-image{ height:auto; }
  .lightbox-image img{ max-height: 60vh; }
}

.lightbox-meta{
  flex: 1;
  max-width: 380px;
  color: var(--lb-text);
}
.lightbox-meta .work-title{
  font-weight: 400;
  font-size: 20px;
  margin-top: 0;
}
.lightbox-meta .work-facts{
  margin-top: 6px;
  font-size: 14px;
  color: var(--lb-muted);
}
.lightbox-meta hr{
  border:0; border-top:1px solid var(--lb-line);
  margin: 20px 0;
}
.lightbox-meta .work-desc{
  font-size: 14px;
  line-height: 1.8;
  color: var(--lb-muted);
}
.lightbox-meta .work-extra{
  margin-top: 18px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.lightbox-meta .work-extra div{
  font-size: 13px;
  color: var(--lb-faint);
  display:flex;
  justify-content:space-between;
  gap: 12px;
  border-top: 1px solid var(--lb-line);
  padding-top: 6px;
}

.lightbox-nav{
  position:absolute;
  top:50%; transform:translateY(-50%);
  color: var(--lb-text); opacity:0.6;
  font-size: 28px;
  padding: 10px;
  z-index: 1;
}
.lightbox-nav:hover{ opacity:1; }
.lightbox-prev{ left: 4px; }
.lightbox-next{ right: 4px; }
/* Arrows stay visible at every width now, anchored to the image itself
   rather than the edges of the screen — touch devices can also swipe
   left/right on the image as a shortcut. */

/* =========================================================
   Bio
   ========================================================= */
.bio-layout{
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 110px;
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(28px, 6vw, 80px);
}
@media (max-width: 760px){
  .bio-layout{ grid-template-columns: 1fr; }
  /* Narrow screens: text reads first, images (portrait + supporting
     shots) follow below — overrides the source order below it. */
  .bio-main{ order: -1; }
}

/* Left column: portrait + optional supporting images stacked together,
   so they share the same 360px column width and a consistent rhythm
   of space between them. */
.bio-left{
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bio-portrait-figure{ margin: 0; }
.bio-portrait{
  aspect-ratio: 4/5;
  overflow:hidden;
  background:#DEDDD8;
}
.bio-portrait img{ display:block; width:100%; height:100%; object-fit:cover; }

/* Supporting images below the portrait — see SITE.bio.sideImages in
   script.js. Each shows at its real, uncropped aspect ratio (unlike the
   portrait above, which is deliberately cropped to a fixed 4:5). Both
   the portrait and any supporting images can take an optional caption
   underneath, reusing the site's wall-label motif (see .label, defined
   near the top of this file) at a quieter scale so it reads as a
   caption rather than a section heading — see the shared figcaption
   rule below. */
.bio-side-images{
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.bio-side-image{
  margin: 0;
}
.bio-side-image img{
  display: block;
  width: 100%;
  height: auto;
  background: #DEDDD8;
}
.bio-portrait-figure figcaption,
.bio-side-image figcaption{
  margin-top: 10px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.bio-text{ max-width: 62ch; font-size: 14px; line-height: 1.8; }
.bio-text p{ margin-bottom: 18px; }
.bio-text p:last-child{ margin-bottom:0; }

.bio-facts{
  margin-top: 32px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.bio-facts div{
  display:flex;
  gap: 18px;
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.bio-facts div span:first-child{
  width: 110px;
  flex-shrink:0;
  color: var(--muted);
}

.bio-extra{
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.bio-section .label{
  display: block;
  margin-bottom: 24px;
}
.bio-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bio-list li{
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.bio-list li:first-child{ border-top: none; padding-top: 0; }
.bio-list a{
  color: inherit;
  border-bottom: 1px solid var(--line);
}
.bio-list a:hover{ border-color: var(--accent); color: var(--accent); }

/* =========================================================
   Contact
   ========================================================= */
.contact-layout{
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gutter) 130px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 760px){ .contact-layout{ grid-template-columns: 1fr; } }

.contact-direct{ font-size: 14px; line-height: 1.8; padding-top: 4px; }
.contact-direct a{ border-bottom: 1px solid var(--line); transition: border-color var(--speed) ease; }
.contact-direct a:hover{ border-color: var(--accent); color: var(--accent); }
.contact-direct .row{ margin-bottom: 26px; }
.contact-direct .row:last-child{ margin-bottom:0; }

.submit-btn{
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 12px 26px;
  transition: background var(--speed) ease, color var(--speed) ease;
}
.submit-btn:hover{ background: var(--chrome); color: var(--bg); }

.form-note{
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   Mailing list — a discreet plate, set apart from the page
   background, sitting toward the upper-right of the contact
   layout rather than as a full-width section.
   ========================================================= */
.mailing-plate{
  background: #F4F2EC;
  border: 1px solid var(--line);
  padding: 34px 32px;
  max-width: 340px;
  margin-left: auto;   /* hug the right edge of its column */
  margin-top: -6px;    /* sit just slightly above the email column */
}
@media (max-width: 760px){
  .mailing-plate{ margin-left: 0; margin-top: 32px; max-width: 100%; }
}
.mailing-plate .label{ font-weight: 700; }
.mailing-text{
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.mailing-form{
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mailing-form input{
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.mailing-form input:focus{ border-color: var(--accent); }
.mailing-form .submit-btn{ width: 100%; margin-top: 0; }


