/* =========================================================
   Nicole Scott Michel: OPTION 3 ("Folio"): the inverse of Option 2
   Same layout as Option 2, black on white: like a printed page of a scholarly edition.
   Black type and sigils, one muted brass tone for small labels only.
   Fonts (self-hosted, SIL OFL): Cormorant Garamond (headings), EB Garamond (text),
   Cormorant SC (small-cap labels).
   ========================================================= */
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant.woff) format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-italic.woff) format("woff"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant SC"; src: url(../fonts/cormorant-sc.woff) format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(../fonts/ebgaramond.woff) format("woff"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(../fonts/ebgaramond-italic.woff) format("woff"); font-weight: 400 800; font-style: italic; font-display: swap; }

:root {
  /* Names kept from Option 2 so the rest of the stylesheet is identical:
     --night* are now the light page tones, --bone is now the ink. */
  --night: #ffffff;
  --night-2: #f6f5f2;
  --night-3: #eeece7;
  --bone: #0d0c0e;        /* ink */
  --bone-dim: #0d0c0e;
  --line: rgba(13, 12, 14, .14);
  --accent: #7d6a45;      /* muted brass: small labels only */
  --display: "Cormorant Garamond", Georgia, serif;
  --caps: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --text: "EB Garamond", Georgia, serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--bone); font: 19px/1.65 var(--text); font-variant-numeric: oldstyle-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--bone); color: var(--night); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.todo { background: rgba(125, 106, 69, .18); padding: 0 4px; font-style: normal; }

/* ---------- Sigils & title art (masks, so they take the text colour) ---------- */
.sig {
  display: inline-block; background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
  height: 1em; aspect-ratio: var(--ar); vertical-align: middle; flex: none;
}
.sig-1 { --src: url(../images/sigils/sigil-1.png); --ar: 2.16; }
.sig-2 { --src: url(../images/sigils/sigil-2.png); --ar: 2.28; }
.sig-3 { --src: url(../images/sigils/sigil-3.png); --ar: 1.13; }
.sig-4 { --src: url(../images/sigils/sigil-4.png); --ar: 1.79; }
.sig-5 { --src: url(../images/sigils/sigil-5.png); --ar: 3.47; }
.sig-6 { --src: url(../images/sigils/sigil-6.png); --ar: 1.75; }
.sig-7 { --src: url(../images/sigils/sigil-7.png); --ar: 1.39; }
.sig-8 { --src: url(../images/sigils/sigil-8.png); --ar: 1.09; }
.mark {
  display: block; width: 100%; max-width: 620px; aspect-ratio: 4.39;
  background: currentColor;
  -webkit-mask: url(../images/esoterica-title.png) left center / contain no-repeat;
          mask: url(../images/esoterica-title.png) left center / contain no-repeat;
}

/* ---------- Type & buttons ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: clamp(46px, 6.4vw, 84px); font-weight: 300; }
h2 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 300; }
.kicker {
  font: 500 15px/1.4 var(--caps); letter-spacing: .18em;
  color: var(--accent); margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lede { font: italic 400 clamp(23px, 2.2vw, 27px)/1.45 var(--display); color: var(--bone-dim); max-width: 34ch; }
.link {
  font: 500 15px/1 var(--caps); letter-spacing: .16em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
button.link { background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; cursor: pointer; }

.link:hover { border-color: var(--bone); }

.btn {
  display: inline-block; font: 500 15px/1 var(--caps); letter-spacing: .16em;
  text-decoration: none; padding: 14px 26px; cursor: pointer;
  border: 1px solid var(--bone); background: transparent; color: var(--bone);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--bone); border-color: var(--bone); color: var(--night); }
.btn.ghost { background: transparent; color: var(--bone); }
.btn.ghost:hover { background: var(--bone); color: var(--night); border-color: var(--bone); }

/* ---------- Header ---------- */
.site-header {
  max-width: var(--max); margin: 0 auto; padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font: 500 22px/1 var(--caps); letter-spacing: .14em; text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
}
.wordmark .sig { color: var(--bone-dim); font-size: 40px; }
.nav { display: flex; gap: 6px 30px; flex-wrap: wrap; }
.nav a { font: 500 16px/1 var(--caps); letter-spacing: .14em; text-decoration: none; color: var(--bone-dim); padding: 6px 0; }
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--bone); box-shadow: 0 1px 0 var(--bone); }

main { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
section { margin-top: 140px; }

/* ---------- Home: split hero ---------- */
.hero {
  margin-top: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
  min-height: calc(100vh - 90px); padding: 56px 0;
}
.hero .mark { margin: 8px 0 30px; }
.hero .actions { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.hero-art { position: relative; justify-self: end; max-width: 520px; width: 100%; }
.hero-art img { width: 100%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.hero-art figcaption { margin-top: 14px; font: 500 14px/1.4 var(--caps); letter-spacing: .14em; color: var(--bone-dim); text-align: right; }
.hero-art figcaption em { font: italic 400 18px/1 var(--display); letter-spacing: 0; color: var(--bone); }


/* ---------- Selected works: catalogue plates ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; }
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; align-items: end; }
.plate { text-decoration: none; display: block; }
.plate .pic { height: 420px; display: flex; align-items: flex-end; justify-content: center; }
.plate .pic img, .plate .pic .pending { max-height: 100%; max-width: 100%; width: auto; transition: opacity .3s; box-shadow: 0 24px 48px -26px rgba(0, 0, 0, .4); }
.plate .pic img.round { box-shadow: none; }
.plate:hover .pic img { opacity: .85; }
.plate .cap { display: block; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.plate .no { font: 500 14px/1 var(--caps); letter-spacing: .2em; color: var(--accent); }
.plate .ttl { display: block; margin-top: 8px; font: italic 400 26px/1.2 var(--display); }
.plate .meta { display: block; margin-top: 4px; font-size: 15px; color: var(--bone-dim); }

/* ---------- Statement (centered) ---------- */
.statement { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.statement .mark { max-width: 420px; margin: 0 auto 34px; -webkit-mask-position: center; mask-position: center; }
.statement p { font-size: 21px; line-height: 1.75; margin: 0 0 28px; }
.statement .seals { display: flex; justify-content: center; align-items: center; gap: 34px; font-size: 34px; margin-top: 44px; }

/* ---------- Instagram band ---------- */
.ig-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 64px 0; display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center;
}
.ig-band .sig { font-size: 52px; color: var(--bone-dim); }
.ig-band h2 { margin: 0; }
.ig-band h2 a { text-decoration: none; }
.ig-band h2 a:hover { color: var(--bone-dim); }
.ig-band p { margin: 6px 0 0; color: var(--bone-dim); }
.ig-feed:empty { display: none; }
.ig-feed { margin-top: 40px; }

/* ---------- Artwork page: one painting per row ---------- */
.page-head { padding-top: 80px; }
.page-head h1 { margin: 0; }
.series-head { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.series-head .mark { max-width: 380px; }
.series-head h2 { margin: 0; }
.series-head .rule { flex: 1; height: 1px; background: var(--line); }
.install { margin: 0 0 40px; }
.install { max-width: 900px; margin-left: auto; margin-right: auto; }
.install img { width: 100%; }
.install figcaption { margin-top: 10px; font: 500 14px/1.4 var(--caps); letter-spacing: .14em; color: var(--bone-dim); }
.work {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 72px; align-items: center;
  padding: 72px 0; border-bottom: 1px solid var(--line);
}
.work:nth-of-type(even) .work-img { order: 2; }
.work-img { display: flex; justify-content: center; }
.work-img button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.work-img img { max-height: 78vh; width: auto; box-shadow: 0 28px 56px -28px rgba(0, 0, 0, .4); }
.work-img img.round { box-shadow: none; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .28)); }
.work-img .pending { width: min(100%, 420px); }
.work .num { font: 500 15px/1 var(--caps); letter-spacing: .2em; color: var(--accent); margin: 0 0 18px; }
.work h3 { font-size: clamp(36px, 3.8vw, 56px); font-weight: 300; font-style: italic; }
.work dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 24px 0 30px; }
.work dt { font: 500 15px/1.75 var(--caps); letter-spacing: .14em; color: var(--bone-dim); }
.work dd { margin: 0; }
.work .desc { font: italic 400 22px/1.45 var(--display); color: var(--bone-dim); max-width: 40ch; }
.work .actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

/* Pending photo */
.pending {
  display: grid; place-items: center; aspect-ratio: var(--ar);
  background: var(--night-3); color: var(--bone-dim);
  border: 1px solid var(--line);
  font: 500 14px/1.5 var(--caps); letter-spacing: .16em; text-align: center;
}
.pending.hexagon { border: 0; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }

/* Lightbox */
#lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #ffffff; color: var(--bone);
}
#lightbox::backdrop { background: #ffffff; }
#lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.lb-media { display: flex; align-items: center; justify-content: center; padding: 48px 32px 48px 80px; min-height: 0; }
.lb-media img, .lb-media .pending { width: min(100%, calc((100vh - 96px) * var(--ar, 1))); height: auto; }
.lb-info { padding: 110px 40px 40px 8px; display: flex; flex-direction: column; }
.lb-info h2 { font-size: 36px; font-style: italic; }
.lb-info p { color: var(--bone-dim); margin: 0 0 16px; }
.lb-series { font: 500 14px/1 var(--caps); letter-spacing: .18em; color: var(--accent) !important; }
.lb-price { font: 400 22px/1.2 var(--text); color: var(--bone) !important; }
.lb-desc { font: italic 400 20px/1.5 var(--display); }
.lb-count { margin-top: auto !important; font: 500 14px/1 var(--caps); letter-spacing: .18em; }
.lb-btn { position: absolute; background: none; border: 0; color: var(--bone); font-size: 30px; cursor: pointer; padding: 12px 16px; opacity: .7; }
.lb-btn:hover { opacity: 1; }
.lb-close { top: 16px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 330px; top: 50%; transform: translateY(-50%); }

/* ---------- About ---------- */
.about-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 80px; align-items: center; padding-top: 80px; }
.about-top .bio p { color: var(--bone-dim); max-width: 58ch; }
.portrait .ph {
  aspect-ratio: 4/5; display: grid; place-items: center;
  background: var(--night-3); border: 1px solid var(--line);
  color: var(--bone-dim); font: 500 14px/1 var(--caps); letter-spacing: .16em;
}
.full-statement { max-width: 760px; margin-left: auto; margin-right: auto; }
.full-statement .mark { max-width: 440px; margin: 0 auto 40px; -webkit-mask-position: center; mask-position: center; }
.full-statement p { font-size: 20px; line-height: 1.75; color: var(--bone); }
.full-statement p.first::first-letter {
  float: left; font: 300 104px/.78 var(--display); color: var(--bone); padding: 10px 14px 0 0;
}
.full-statement .sep { text-align: center; color: var(--bone-dim); font-size: 26px; margin: 30px 0; }
.cv-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.cv-wrap h2 { font-size: 30px; display: flex; align-items: center; gap: 14px; }
.cv-wrap h2 .sig { color: var(--bone-dim); font-size: 22px; }
.cv { list-style: none; padding: 0; margin: 0; }
.cv li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.cv .y { font: 400 18px/1.6 var(--text); color: var(--bone-dim); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 96px; padding-top: 80px; align-items: start; }
.contact dl { margin: 40px 0 0; }
.contact dt { font: 500 15px/1 var(--caps); letter-spacing: .16em; color: var(--accent); margin-top: 28px; }
.contact dd { margin: 8px 0 0; font: italic 400 26px/1.3 var(--display); }
.contact .side-sig { margin-top: 56px; font-size: 72px; color: var(--bone-dim); }
form { display: grid; gap: 26px; background: var(--night-2); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); }
label { display: grid; gap: 8px; font: 500 15px/1.3 var(--caps); letter-spacing: .14em; color: var(--bone-dim); }
input, select, textarea {
  font: 18px/1.4 var(--text); color: var(--bone); background: transparent;
  border: 0; border-bottom: 1px solid rgba(13, 12, 14, .35); padding: 10px 2px; border-radius: 0;
}
select option { background: var(--night-2); color: var(--bone); }
textarea { min-height: 150px; resize: vertical; border: 1px solid rgba(13, 12, 14, .35); padding: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bone); }
.hp { position: absolute; left: -9999px; }
.form-note { background: var(--night-3); padding: 14px 16px; font-size: 16px; border-left: 1px solid var(--accent); margin: 0; color: var(--bone-dim); }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max); margin: 140px auto 0; padding: 36px 32px 48px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 15px; color: var(--bone-dim);
}
.site-footer p { margin: 2px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--bone); }
.site-footer .seals { display: flex; gap: 22px; font-size: 24px; color: var(--bone-dim); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  body { font-size: 18px; }
  main, .site-header { padding-left: 22px; padding-right: 22px; }
  section { margin-top: 96px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding-top: 32px; }
  .hero-art { order: -1; justify-self: center; max-width: 420px; }
  .plates { grid-template-columns: 1fr; gap: 64px; }
  .plate .pic { height: auto; }
  .plate .pic img { max-height: 70vh; }
  .statement p { font-size: 19px; }
  .ig-band { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 20px; }
  .work { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .work:nth-of-type(even) .work-img { order: 0; }
  .work-img img { max-height: 70vh; }
  .about-top, .contact, .cv-wrap { grid-template-columns: 1fr; gap: 48px; }
  .portrait { max-width: 340px; }
  .series-head .mark { max-width: 260px; }
  #lightbox[open] { grid-template-columns: 1fr; grid-template-rows: auto auto; overflow: auto; align-content: start; }
  .lb-media { padding: 70px 16px 8px; }
  .lb-media img, .lb-media .pending { width: min(100%, calc(62vh * var(--ar, 1))); }
  .lb-info { padding: 16px 24px 32px; }
  .lb-prev, .lb-next { top: 36vh; }
  .lb-next { right: 6px; } .lb-prev { left: 6px; }
}
@media (max-width: 520px) {
  .site-header { justify-content: center; text-align: center; }
  .nav { justify-content: center; gap: 6px 20px; }
  .wordmark { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Statement on the work page, below the installation photo */
.work-statement { margin-top: 64px; margin-bottom: 40px; }
.work-statement .kicker { margin-bottom: 30px; }

/* The work page opens with the Esoterica title art; compact two-column statement */
#gallery .series:first-child { margin-top: 64px; }
#gallery .series:first-child .series-head .mark { max-width: 460px; }
.work-statement { max-width: 1040px; columns: 2 340px; column-gap: 56px; margin-top: 48px; }
.work-statement .kicker { column-span: all; margin-bottom: 22px; }
.work-statement p { font-size: 17px; line-height: 1.6; margin: 0 0 .9em; }
.work-statement p.first::first-letter { font-size: 72px; padding: 6px 10px 0 0; }
.work-statement .sep { display: none; }

/* Centre the Esoterica title art at the top of the work page (as in Option 1) */
#gallery .series:first-child .series-head { justify-content: center; }
#gallery .series:first-child .series-head .rule { display: none; }
#gallery .series:first-child .series-head .mark { flex: 0 1 460px; margin: 0 auto; -webkit-mask-position: center; mask-position: center; }
.install figcaption { text-align: center; }

/* ---------- Language pop-up and EN | ES switch ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; opacity: .9; }
.lang-switch button {
  background: none; border: 0; padding: 4px 2px; cursor: pointer; color: inherit;
  font: inherit; letter-spacing: inherit; opacity: .55;
}
.lang-switch button[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang-switch span { opacity: .4; }
.lang-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 24px;
  background: rgba(0, 0, 0, .62);
}
.lang-box {
  width: min(100%, 420px); text-align: center;
  background: var(--paper, var(--night)); color: var(--ink, var(--bone));
  border: 1px solid currentColor; outline: 1px solid currentColor; outline-offset: -8px;
  padding: 44px 32px 36px;
}
.lang-box .lang-name { margin: 0 0 18px; font: 400 15px/1 var(--caps, var(--display)); letter-spacing: .2em; text-transform: uppercase; }
.lang-box .lang-q { margin: 0 0 28px; font: 400 26px/1.3 var(--display); }
.lang-box .lang-q span { font-style: italic; opacity: .75; }
.lang-btns { display: grid; gap: 12px; }
.lang-btns button {
  font: 400 15px/1 var(--caps, var(--display)); letter-spacing: .16em; text-transform: uppercase;
  padding: 15px 20px; cursor: pointer;
  background: transparent; color: inherit; border: 1px solid currentColor;
  transition: background .2s, color .2s;
}
.lang-btns button:hover, .lang-btns button:focus-visible { background: var(--ink, var(--bone)); color: var(--paper, var(--night)); outline: none; }
.wordmark { gap: 16px; }
@media (max-width: 520px) { .wordmark .sig { font-size: 30px; } }

/* ---------- Footer: centred woodcut ---------- */
.site-footer {
  flex-direction: column; justify-content: center; align-items: center; text-align: center;
  gap: 0; padding-top: 64px;
}
.site-footer .footer-art { width: min(300px, 72vw); height: auto; margin: 0 auto 30px; }
.site-footer .footer-name { font: 500 18px/1.2 var(--caps); letter-spacing: .16em; color: var(--bone); margin: 0 0 8px; }
.site-footer .footer-meta { margin: 0 0 6px; }
.site-footer .footer-copy { margin: 0; font-size: 14px; }

/* About: exhibitions only, single column */
.cv-wrap.cv-single { grid-template-columns: minmax(0, 760px); }

/* Home: avoid a double rule between the Instagram strip and the footer */
.ig-band { border-bottom: 0; padding-bottom: 0; }

/* Footer: Instagram between the name and the location */
.footer-ig { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 14px 0 22px; }
.footer-handle { font: 300 30px/1.1 var(--display); text-decoration: none; color: var(--bone); }
.footer-handle:hover { opacity: .7; }
.footer-ig .btn { padding: 11px 22px; font-size: 14px; }
.site-footer .footer-meta { margin: 0 0 4px; }
/* Home: the Instagram strip moved to the footer; only the (empty) live-feed slot remains */
.ig-section { margin-top: 0; }
.ig-section .ig-feed:not(:empty) { margin-top: 96px; }

/* ---------- 404 page ---------- */
.notfound { margin-top: 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.notfound .nf-art { width: min(420px, 80vw); height: auto; margin-bottom: 40px; }
.notfound .kicker { justify-content: center; }
.notfound .kicker::before { display: none; }
.notfound h1 { margin-bottom: 10px; }
.notfound .lede { margin: 0 auto 34px; }

/* About page without portrait */
.about-top.no-portrait { grid-template-columns: minmax(0, 1fr); }

/* Thank-you page after the contact form */
.thanks .thanks-sig { font-size: 72px; margin-bottom: 36px; }
