/* Fonts are hosted on this site (no requests to Google) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/archivo-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ===================================================================
   Hélène Desplechin — portfolio & shop
   Layout concept: asymmetric "exhibition wall" grid — varied tile
   sizes read like works hung at different scales in a single room,
   never a uniform catalogue grid.
   =================================================================== */

:root {
  /* color — a true beige ground (not cream), near-black ink, one
     terracotta accent pulled from the glazes and the red/ochre paintings */
  --bg:         #F7F1E6;
  --bg-raised:  #EEE6D5;
  --ink:        #241E17;
  --ink-soft:   #6F6151;
  --line:       #DCD0B8;
  --accent:     #BD6138;
  --accent-ink: #FBF4EA;

  /* type — Archivo, light weights (thin, quiet wordmark)
            IBM Plex Sans (body / nav)
            IBM Plex Mono (catalogue-label convention: medium, dims) */
  --font-display: "Archivo", sans-serif;
  --font-body:    "IBM Plex Sans", sans-serif;
  --font-label:   "IBM Plex Mono", monospace;

  color-scheme: light;
}

/* Deliberate single visual identity — this warm beige stays the same
   regardless of the viewer's light/dark system setting, like a
   gallery's own brand color rather than a utility-app theme. */

* { box-sizing: border-box; }

html, body { height: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- top bar ---------- */

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
  margin: -6px;
}

.nav-toggle svg { display: block; }

.wordmark-small {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav-links button {
  font-family: var(--font-body);
  font-size: 14px;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links button:hover { color: var(--ink); }

.nav-links button[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-links a.navlink {
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}
.nav-links a.navlink:hover { color: var(--ink); }

.nav-sep {
  width: 1px;
  height: 16px;
  background: var(--line);
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 4px max(16px, env(safe-area-inset-left, 0px)) 16px;
    z-index: 50;
  }

  .nav-links.open { display: flex; }

  .nav-links .nav-sep { display: none; }

  .nav-links button,
  .nav-links a.navlink {
    width: 100%;
    text-align: left;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .nav-links button[aria-pressed="true"] { border-bottom-color: var(--line); }
}

.shop-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: 3px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.shop-btn:hover { opacity: 0.88; }

/* ---------- hero ---------- */

.hero {
  padding-block: 44px 36px;
  max-width: 680px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 46ch;
}

/* ---------- gallery grid ---------- */

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding-bottom: 64px;
}

.tile {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  height: 420px;
  flex: 1 1 460px;
}

@media (max-width: 560px) {
  .tile { height: 220px; flex-basis: 180px; }
}

.tile img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.tile:hover img { transform: scale(1.035); }

.tile[hidden] { display: none; }

.tile .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(to top, rgba(10,8,6,0.72), rgba(10,8,6,0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tile:hover .cap, .tile:focus-within .cap { opacity: 1; transform: translateY(0); }

.cap .title {
  color: #FBF4EA;
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 2px;
}

.cap .medium {
  color: #E7D9C3;
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 9, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding:
    max(24px, env(safe-area-inset-top, 0px))
    max(56px, env(safe-area-inset-right, 0px))
    max(24px, env(safe-area-inset-bottom, 0px))
    max(56px, env(safe-area-inset-left, 0px));
}

.lightbox[hidden] { display: none; }

.lb-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lb-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.lb-figure figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.lb-title {
  color: #F1E8DA;
  font-family: var(--font-body);
  font-size: 14px;
}

.lb-medium {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C9B99C;
}

.lb-close, .lb-nav {
  position: fixed;
  background: none;
  border: none;
  color: #F1E8DA;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.lb-close:hover, .lb-nav:hover { opacity: 0.65; }

.lb-close {
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  font-size: 30px;
  padding: 8px 12px;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 38px;
  padding: 10px 14px;
}

.lb-prev { left: max(4px, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(4px, env(safe-area-inset-right, 0px)); }

@media (max-width: 560px) {
  .lightbox { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .lb-nav { font-size: 28px; padding: 8px 8px; }
  .lb-close { font-size: 24px; }
}

/* ---------- inner pages (about / contact) ---------- */

.page-head {
  padding-block: 48px 8px;
}

.about-head {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.about-feature {
  margin: 28px 0 0;
}

.about-feature img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

@media (max-width: 560px) {
  .about-feature img { max-height: 340px; }
}

@media (max-width: 560px) {
  .about-feature-img {
    width: 100%;
    height: 200px;
    margin-left: 0;
  }
}

.about-links {
  display: flex;
  gap: 20px;
  margin: 14px 0 0;
  font-size: 14px;
}

.about-links a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.about-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.prose a {
  border-bottom: 1px solid var(--accent);
}

.about-portrait {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 6px;
}

.page-head .eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.prose {
  max-width: 62ch;
  padding-block: 20px 72px;
  font-size: 17px;
  color: var(--ink);
}

.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.prose .ink-soft { color: var(--ink-soft); }

.bio { max-width: none; }

@media (min-width: 761px) {
  .bio {
    columns: 2;
    column-gap: 56px;
  }
  .bio p {
    break-inside: avoid;
    margin: 0 0 20px;
  }
}

/* ---------- collaborations ---------- */

.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 12px;
}

.books {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-block: 8px 40px;
}

.book-card {
  display: flex;
  gap: 20px;
  flex: 1 1 420px;
  max-width: 540px;
}

.book-card img {
  width: 140px;
  height: auto;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(36, 30, 23, 0.18);
}

.book-info h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 6px;
}

.book-meta {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.book-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 12px;
}

.book-buy { margin: 0; }

.book-buy a {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.book-buy a:hover { border-bottom-color: var(--accent); }

@media (max-width: 560px) {
  .book-card { flex-direction: column; }
  .book-card img { width: 160px; }
}

.covers {
  padding-block: 8px 8px;
  max-width: 840px;
}

.covers-note {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 4px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 16px 48px;
}

@media (max-width: 700px) {
  .cover-grid { grid-template-columns: repeat(2, 1fr); }
}

.cover-grid figure { margin: 0; }

.cover-grid img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 14px rgba(36, 30, 23, 0.16);
}

.cover-grid figcaption {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: 7px;
  line-height: 1.35;
}

.cta {
  border-top: 1px solid var(--line);
  padding-block: 36px 60px;
  max-width: 62ch;
}

.cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 10px;
}

.cta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.cta .shop-btn {
  margin-top: 20px;
}

.invite {
  margin: 18px 0 0;
  font-size: 17px;
  color: var(--ink-soft);
}

.invite a {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
}

/* ---------- contact form ---------- */

form.contact {
  max-width: 480px;
  padding-block: 20px 72px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-raised);
  color: var(--ink);
}

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

form.contact textarea { resize: vertical; min-height: 120px; }

.submit-btn {
  align-self: flex-start;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.submit-btn:hover { opacity: 0.88; }

.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: -6px;
}

.success {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: 3px;
  padding: 16px 18px;
  font-size: 14.5px;
}
.success.shown { display: block; }

footer.site .social { display: flex; gap: 20px; }
footer.site .social a { transition: color 0.15s ease; }
footer.site .social a:hover { color: var(--ink); }

footer.site {
  border-top: 1px solid var(--line);
  padding-block: 20px 36px;
  color: var(--ink-soft);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Basics previously supplied by the Claude preview wrapper */
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Optional artwork details (shown only when filled in the editor) */
.lb-detail {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #C9B99C;
}
.lb-status {
  margin-top: 4px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F1E8DA;
  border: 1px solid #C9B99C;
  padding: 2px 8px;
}
.lb-buy {
  margin-top: 10px;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 8px 16px;
  text-decoration: none;
}
.lb-buy:hover { opacity: 0.88; }

/* Contact form messages */
.success.error { border-color: var(--accent); }
.success.error.shown, .success.shown { display: block; }
.submit-btn:disabled { opacity: 0.6; cursor: default; }
.form-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* Legal page */
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 32px 0 8px; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal li { margin: 0 0 0.4em; }

.logo-mark { height: 38px; width: auto; display: block; }
