/* ============================================================
   SHARED STYLES — the look of the whole site lives here, so every
   page stays consistent. Pages link this file and only add the
   few styles that are theirs alone.

   Layout idea: a catalogue index. One typeface (Areal) does
   everything: the sans for names and titles, its MONO setting
   for catalogue details (editions, dates, platforms, counts).
   ============================================================ */

@font-face{
  font-family: "Areal";
  src: url("media/ABCArealSuperfamilyVariable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root{
  --wall: #ebebe7;        /* page background: gallery-wall grey */
  --paper: #f6f6f3;       /* behind artwork and placeholders */
  --ink: #111110;
  --ink-soft: #5f5f5a;
  --line: rgba(17,17,16,0.16);
  --signal: #ff3b1f;      /* used sparingly: hovers, live markers */
  --sans: "Areal", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1280px;
  --gutter: max(20px, 3vw);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a{ color: inherit; }
:focus-visible{ outline: 2px solid var(--signal); outline-offset: 3px; }

/* Areal's monospaced setting, for catalogue details */
.mono{
  font-variation-settings: "MONO" 100;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- site header ---------- */
.site-header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink);
}
.site-name{
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-nav{
  display: flex;
  gap: 8px 28px;
  flex-wrap: wrap;
}
.site-nav a{
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"]{ color: var(--ink); }
.site-nav a[aria-current="page"]::before{
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--signal);
  vertical-align: 1px;
}

/* ---------- page title (inner pages) ---------- */
.page-title{
  font-weight: 800;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 72px 0 0;
  text-wrap: balance;
}
.page-sub{
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- section heads ---------- */
.section{ margin-top: 120px; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}
.section-head h2{
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head a{ text-decoration: none; color: var(--ink-soft); }
.section-head a:hover{ color: var(--ink); }

/* ---------- work cards (collection, exhibitions) ---------- */
.works{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 24px;
  align-items: start;
}
.works.three{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work{
  display: grid;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.work .media{ background: var(--paper); }
.work .media img,
.work .media video,
.work .media iframe,
.work .media model-viewer{
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}
.work .media model-viewer{ background: var(--paper); }
.work .media.pair{ display: flex; gap: 4px; background: none; }
.work .media.pair > *{ flex: 1; min-width: 0; background: var(--paper); }
.work .media img.pixel{
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.placeholder{
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.work-artist{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
a.work:hover .work-artist{ color: var(--signal); }
.work-title{
  display: block;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}
.work-details{
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.work-note{
  font-size: 14px;
  line-height: 1.5;
}
.work-note a{ color: var(--ink); text-decoration-color: var(--signal); }

.empty{
  padding: 56px 0;
  color: var(--ink-soft);
}

@media (max-width: 1000px){
  .works{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  .works, .works.three{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .section{ margin-top: 88px; }
}
@media (max-width: 440px){
  .works, .works.three{ grid-template-columns: minmax(0, 1fr); }
}

/* ---------- breadcrumb above inner-page titles ---------- */
.crumb{
  display: inline-block;
  margin-top: 28px;
  color: var(--ink-soft);
  text-decoration: none;
}
a.crumb:hover{ color: var(--ink); }

/* ---------- expandable statements ---------- */
.statement{
  border-top: 1px solid var(--line);
}
.statement:last-of-type{ border-bottom: 1px solid var(--line); }
.statement summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-weight: 700;
  font-size: 15px;
}
.statement summary::-webkit-details-marker{ display: none; }
.statement summary::after{
  content: "+";
  font-weight: 400;
  color: var(--ink-soft);
}
.statement[open] summary::after{ content: "−"; }
.statement summary:hover{ color: var(--signal); }
.statement-body{
  padding: 0 0 24px;
  max-width: 38em;
  font-size: 16px;
  line-height: 1.65;
}
.statement-body p{ margin: 0 0 16px; }
.statement-body p:last-child{ margin-bottom: 0; }
.statement-body a{ text-decoration-color: var(--signal); }

/* ---------- buttons and sale status ---------- */
.button{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--wall);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button:hover{ background: var(--signal); border-color: var(--signal); color: var(--ink); }
.button.ghost{ background: none; color: var(--ink); }
.button.ghost:hover{ background: none; color: var(--signal); border-color: var(--signal); }
.sold{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}
.sold::before{
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--signal);
}
.sold .collector{ font-weight: 400; color: var(--ink-soft); }

/* ---------- news lists (homepage + news page) ---------- */
.posts{ list-style: none; margin: 0; padding: 0; }
.post-row{ border-bottom: 1px solid var(--line); }
.post-row a{
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 160px;
  gap: 12px 32px;
  align-items: start;
  padding: 22px 0;
  text-decoration: none;
}
.post-date{ color: var(--ink-soft); padding-top: 5px; }
.post-title{
  display: block;
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  transition: color 0.15s ease;
}
.post-row a:hover .post-title{ color: var(--signal); }
.post-excerpt{
  display: block;
  margin-top: 8px;
  max-width: 40em;
  color: var(--ink-soft);
  font-size: 15px;
}
.post-thumb{
  grid-column: 3;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
}
@media (max-width: 760px){
  .post-row a{ grid-template-columns: minmax(0, 1fr); }
  .post-thumb{ grid-column: 1; grid-row: 1; }
}

/* ---------- site footer ---------- */
.site-footer{
  margin-top: 160px;
  padding: 22px 0 48px;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  color: var(--ink-soft);
}
.site-footer a{ text-decoration: none; }
.site-footer a:hover{ color: var(--ink); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}
