/*
Theme Name: Art Adda
Theme URI: https://artadda.pages.dev
Author: Art Adda
Description: Custom theme for Art Adda, a Sunday art popup. Built from the original bespoke design — monochrome gallery system, Bodoni Moda display, Archivo body, Space Mono labels.
Version: 0.1.0
Requires PHP: 7.4
Text Domain: artadda
*/

:root {
  --ink: #131210;
  --ink-soft: #4a4843;
  --ink-faint: #8d8a82;
  --paper: #f4f1ea;
  --paper-2: #ebe7dd;
  --line: #d8d3c7;
  --line-strong: #c2bcae;
  --accent: #b4452e;
  --accent-ink: #f4f1ea;
  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* -------- artwork frame -------- */
.art {
  position: relative;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-2);
}
.art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .3s ease, transform .5s ease; }
.art:hover img { filter: contrast(1.03) brightness(.98); transform: scale(1.015); }

/* -------- artist page intro -------- */
.page-intro { padding: clamp(48px,8vw,96px) 0 clamp(24px,4vw,40px); }
.page-intro-grid { display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px,3vw,36px); align-items: end; }
.avatar { width: 120px; height: 150px; border-radius: 2px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.page-intro h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px,6vw,72px); line-height: 1.02; margin: 18px 0 0; }
.page-intro .cred {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-faint);
}
.page-intro .cred span:not(:last-child)::after { content: "\00b7"; margin-left: 18px; color: var(--line-strong); }
.page-intro .contact-links { margin-top: 18px; display: flex; gap: 22px; }
.page-intro .contact-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s ease, opacity .2s ease;
}
.page-intro .contact-links a:hover { border-color: var(--ink); opacity: .75; }
.page-intro .contact-links svg { width: 14px; height: 14px; }

/* -------- magazine flow -------- */
.mag { padding: clamp(20px,4vw,40px) 0 clamp(60px,8vw,110px); }
.mag-row { display: grid; gap: clamp(24px,4vw,48px); margin-bottom: clamp(48px,7vw,88px); align-items: center; }
.mag-row--intro { grid-template-columns: 0.85fr 1.15fr; }
.mag-row--pair { grid-template-columns: 1fr 1fr; }
.mag-row--feature { grid-template-columns: 1.3fr 0.7fr; }
.mag-row--triptych { grid-template-columns: 1fr 1fr 1fr; }
.mag-row--full { grid-template-columns: 1fr; }
.mag-row--pull { grid-template-columns: 1fr; text-align: center; padding: 8px 0 24px; }
@media (max-width: 760px) {
  .mag-row--intro, .mag-row--pair, .mag-row--feature, .mag-row--triptych { grid-template-columns: 1fr; }
}
.bio-copy p { color: var(--ink-soft); font-size: 17px; max-width: 46ch; }
.bio-copy p + p { margin-top: 14px; }
.pull {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px,3vw,32px);
  line-height: 1.35; max-width: 62ch; margin: 0 auto; color: var(--ink);
}
.pull::before { content: "\201C"; }
.pull::after { content: "\201D"; }
.label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 10px; }
.label .t { font-family: var(--serif); font-size: 16px; }
.label .m { font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

.row-edit {
  position: relative;
}
.row-edit__toggle {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); background: none; border: 1px dashed var(--line-strong);
  padding: 3px 8px; cursor: pointer; margin-bottom: 10px; display: none;
}
body.artadda-editing .row-edit__toggle { display: inline-block; }

/* -------- exhibited-at -------- */
.exhibited { padding: clamp(40px,6vw,72px) 0 clamp(70px,9vw,120px); border-top: 1px solid var(--line); }
.exhibited .eyebrow { margin-bottom: 22px; display: block; }
.exhibited-list { display: flex; flex-direction: column; }
.exhibited-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: opacity .2s ease;
}
.exhibited-row:hover { opacity: .6; }
.exhibited-row .date { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-faint); text-transform: uppercase; }
.exhibited-row .title { font-family: var(--serif); font-size: 21px; }
.exhibited-row .arrow { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }

/* -------- suave lightbox -------- */
.lb {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(19,18,16,0.78);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  opacity: 0; pointer-events: none;
  transition: opacity .38s cubic-bezier(.22,.61,.36,1);
}
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb__fig {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px;
  max-width: min(78vw, 920px);
  transform: scale(.96) translateY(10px); opacity: 0;
  transition: transform .45s cubic-bezier(.16,.84,.44,1), opacity .4s ease;
}
.lb.is-open .lb__fig { transform: scale(1) translateY(0); opacity: 1; }
.lb__art {
  max-height: 72vh; max-width: 100%; display: block; border-radius: 2px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.55), 0 8px 24px -8px rgba(0,0,0,.4);
}
.lb__cap { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; max-width: 60ch; }
.lb__cap .mono { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #a19c92; }
.lb__cap .serif { font-family: var(--serif); font-size: 21px; color: var(--paper); }
.lb__cap .desc { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: #b9b5ac; margin-top: 4px; }
.lb__close {
  position: absolute; top: 26px; right: 30px; background: none; border: 0; color: #cfccc4; cursor: pointer;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  opacity: .55; transition: opacity .2s ease, transform .2s ease;
}
.lb__close:hover { opacity: 1; transform: rotate(90deg); }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #cfccc4; cursor: pointer;
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.lb:hover .lb__nav { opacity: .38; }
.lb__nav:hover { opacity: 1 !important; }
.lb__nav--prev { left: 6px; }
.lb__nav--next { right: 6px; }
.lb__count {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: #736f68; font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
}

/* -------- de-branded wp-admin (artist editing) -------- */
body.login h1 a { background-image: var(--artadda-login-logo, none); background-size: contain; width: 220px; height: 80px; }
