/* ============================================================
   MCAC — styles
   ============================================================ */

:root {
  --green: #1c2822;          /* the collection green */
  --green-2: #23302a;        /* cards, panels */
  --green-3: #2b3a33;        /* rules */
  --cream: #efede6;          /* headings, body on green */
  --cream-70: rgba(239, 237, 230, .72);
  --cream-50: rgba(239, 237, 230, .5);
  --cream-30: rgba(239, 237, 230, .28);
  --cream-12: rgba(239, 237, 230, .14);
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 3.9vw, 56px);
  --nav-h: 88px;
  --hero-opacity: .5;       /* strength of the duotone image */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--green);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--cream); outline-offset: 4px; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
em, i { font-family: var(--serif); font-style: italic; }
.tbc { font-style: italic; color: var(--cream-50); }

/* ---- small caps labels ---------------------------------- */
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cream-50);
  font-weight: 500;
}
.kicker b { font-weight: 500; color: var(--cream-70); }

/* ---- header ---------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cream-30);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .3em; font-weight: 600; }
.brand .mark { width: 26px; height: 26px; }
.mark { stroke: currentColor; fill: none; stroke-width: 1.4; }
.nav { display: flex; gap: clamp(20px, 2.4vw, 34px); }
.nav a {
  font-size: 11px; letter-spacing: .3em; font-weight: 600; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { border-bottom-color: var(--cream); }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: inherit; font-size: 11px; letter-spacing: .3em; font-weight: 600; text-transform: uppercase; padding: 8px 0; cursor: pointer; }

/* mobile menu panel */
.menu-panel {
  position: fixed; inset: 0; z-index: 30;
  background: var(--green);
  display: none; flex-direction: column;
  padding: 0 var(--gutter);
}
.menu-panel.open { display: flex; }
.menu-panel .top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--cream-30); }
.menu-panel nav { display: flex; flex-direction: column; padding-top: 32px; }
.menu-panel nav a { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1.15; padding: 14px 0; border-bottom: 1px solid var(--cream-12); }
.menu-panel nav a[aria-current="page"] { color: #fff; }
.menu-panel .foot { margin-top: auto; padding: 28px 0 36px; }
.menu-panel .foot a { display: block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-70); }
body.menu-open { overflow: hidden; }

/* ---- backgrounds ------------------------------------------
   Every background image is shown in greyscale, multiplied into the
   tint green, so it reads as a pattern in the green rather than a picture. */
.bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: var(--tint); }
.bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; opacity: var(--hero-opacity); }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,40,34,.45) 0%, rgba(28,40,34,.12) 35%, rgba(28,40,34,.12) 65%, rgba(28,40,34,.5) 100%); }
.bg + * { position: relative; z-index: 1; }

/* Darkening. --bg-brightness is the default for every page (1 = no darkening);
   override it per page, as for the Home page below, whose image is already dark. */
:root { --bg-brightness: .55; }
.bg img { filter: grayscale(1) contrast(1.05) brightness(var(--bg-brightness)); }
.page-home { --bg-brightness: 1; }

.credit {
  position: absolute; right: var(--gutter); bottom: 20px; z-index: 2;
  font-size: 12px; line-height: 1.5; color: var(--cream-50); text-align: right; max-width: 60%;
}
.credit i { color: var(--cream-70); }
.credit small { display: block; font-size: 11px; color: var(--cream-30); }

/* ---- home hero --------------------------------------------- */
.hero {
  position: relative; flex: 1 0 auto;
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: flex-end;
}
.hero .inner { width: 100%; padding: 96px var(--gutter) 96px; max-width: 760px; }
.hero .mark { width: 78px; height: 78px; margin-bottom: 56px; }
.hero .kicker { color: var(--cream-70); margin-bottom: 20px; }
.hero h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.06; margin: 0 0 32px; letter-spacing: -.005em; max-width: 12ch; }
.hero p { font-size: 16.5px; line-height: 1.65; color: var(--cream-70); max-width: 600px; }
.hero .mobile-title { display: none; }

/* ---- two-column text pages (About, Loans) ------------------ */
.text-page { position: relative; flex: 1 0 auto; min-height: calc(100vh - var(--nav-h)); }
.text-page .inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 8vw, 120px);
  padding: 60px var(--gutter) 120px;
}
.text-page h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; margin: 14px 0 0; letter-spacing: -.005em; }
.text-page .body p { color: var(--cream); font-size: 16px; line-height: 1.68; }
.text-page .rule { border: 0; border-top: 1px solid var(--cream-30); margin: 36px 0 30px; }
.text-page .email { font-size: 22px; letter-spacing: .01em; margin-top: 10px; display: inline-block; }
.text-page .email:hover { color: #fff; }

/* ---- list pages (Collection, Artists) ----------------------- */
.list-page { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; }
.list-page .credit { position: static; padding: 0 var(--gutter) 28px; margin-top: auto; align-self: flex-end; }
.list-page .grid, .list-page .artists { position: relative; z-index: 1; }
.card .tile { background: rgba(28,40,34,.55); }

/* ---- page title block (Collection, Artists) ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 56px var(--gutter) 40px; }
.page-head h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(38px, 4.2vw, 56px); line-height: 1; margin: 8px 0 0; }

/* ---- collection grid --------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; padding: 0 var(--gutter) 96px; }
.card { display: block; }
.card .tile { background: var(--green-2); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 12%; }
.card .tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.card .tile.wide { padding: 0; }
.card .tile.wide img { width: 100%; height: 100%; object-fit: cover; }
.card.framed .tile img { outline: 1px solid var(--cream-70); }
.card .tile .empty { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-30); }
.card .cap { padding-top: 14px; font-size: 14px; line-height: 1.5; }
.card .cap b { display: block; font-weight: 600; }
.card .cap span { color: var(--cream-70); }
.card:hover .cap b { color: #fff; }

/* ---- artwork record ---------------------------------------- */
.back { display: inline-block; margin: 28px var(--gutter) 0; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; color: var(--cream-70); }
.back::before { content: "\2190\00a0\00a0"; }
.back:hover { color: #fff; }
.record {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 8vw, 120px);
  padding: 32px var(--gutter) 80px; flex: 1 0 auto;
}
.record .figure { display: flex; flex-direction: column; align-items: center; }
.record .figure .credit { position: static; margin-top: 14px; text-align: center; max-width: none; }
.record .figure img { max-height: 78vh; width: auto; max-width: 100%; }
.record.framed .figure img { outline: 1px solid var(--cream-70); }
.record .figure .empty { width: 100%; aspect-ratio: 4/5; background: var(--green-2); display: flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-30); }
.record h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; margin: 10px 0 24px; }
.record .facts { font-size: 15px; line-height: 1.6; color: var(--cream-70); }
.record .facts .tbc { color: var(--cream-50); }
.record .rule { border: 0; border-top: 1px solid var(--cream-30); margin: 30px 0 26px; }
.record .kicker { display: block; margin-bottom: 12px; }
.record .section p { font-size: 15px; margin-bottom: .9em; }
.record .section p small { display: block; font-size: 13px; color: var(--cream-50); margin-top: 2px; }
.record .section a { border-bottom: 1px solid var(--cream-30); }
.record .section a:hover { color: #fff; border-bottom-color: var(--cream); }
.record .section .tbc { color: var(--cream-50); font-style: normal; }
.record .link { display: inline-block; margin-top: 34px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid var(--cream); }
.record .link:hover { color: #fff; }
.record .kicker a:hover { color: var(--cream); }

/* ---- artists ----------------------------------------------- */
.artists { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; padding: 0 var(--gutter) 96px; }
.artists li { list-style: none; font-size: 17px; padding: 10px 0; border-bottom: 1px solid var(--cream-30); }
.artists ul { margin: 0; padding: 0; }
.artists.featured { grid-template-columns: repeat(2, 1fr); column-gap: clamp(96px, 16vw, 256px); max-width: 1360px; margin: 0 auto; text-align: center; padding-top: 48px; padding-bottom: 0; }
.artists.featured li { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3vw, 44px); line-height: 1.15; padding: 18px 0; border-bottom: 0; }
.page-head.sub { padding-top: 120px; padding-bottom: 24px; }
.page-head.sub .kicker { font-size: 13px; color: var(--cream); font-weight: 700; }

/* ---- contact ----------------------------------------------- */
.contact { position: relative; flex: 1 0 auto; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; text-align: center; }
.contact .inner { padding: 60px var(--gutter); }
.contact .mark { width: 104px; height: 104px; margin: 0 auto 60px; }
.contact .email { font-size: 22px; display: inline-block; margin-top: 12px; padding-bottom: 4px; border-bottom: 1px solid var(--cream-70); }
.contact .email:hover { color: #fff; border-bottom-color: #fff; }

/* ---- footer ------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--cream-30);
  padding: 30px var(--gutter);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-50);
}
.site-footer a:hover { color: var(--cream); }

/* ---- responsive ---------------------------------------------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .artists { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .artists.featured { column-gap: 32px; }
  .record { grid-template-columns: 1fr; gap: 40px; }
  .record .figure img { max-height: none; width: 100%; }
  .text-page .inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
  :root { --nav-h: 72px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .site-header { border-bottom-color: var(--cream-30); }

  /* home: full-bleed image with centred mark + title, as in the phone mockups */
  .page-home .site-header { border-bottom: 0; position: absolute; top: 0; left: 0; right: 0; }
  .page-home .hero { min-height: 100vh; min-height: 100svh; align-items: center; justify-content: center; }
  .page-home .hero .inner { text-align: center; padding: 96px var(--gutter) 96px; }
  .page-home .hero .mark { width: 88px; height: 88px; margin: 0 auto 36px; }
  .page-home .hero .kicker, .page-home .hero h1, .page-home .hero p { display: none; }
  .page-home .hero .mobile-title { display: block; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; line-height: 1.9; font-weight: 600; }
  .page-home .credit { position: absolute; left: var(--gutter); right: auto; bottom: 28px; padding: 0; font-size: 11px; }

  .grid { grid-template-columns: 1fr; gap: 36px; }
  .artists, .artists.featured { grid-template-columns: 1fr; }
  .artists.featured { padding-top: 24px; }
  .artists.featured li { padding: 10px 0; }
  .page-head.sub { padding-top: 72px; }
  .page-head { flex-direction: column; align-items: flex-start; padding-top: 36px; }
  .page-head .kicker.right { display: none; }
  .credit { position: static; padding: 0 var(--gutter) 28px; max-width: none; text-align: left; }
  .list-page .credit { align-self: flex-start; }
  .text-page .credit, .contact .credit { position: absolute; }
  .text-page .inner { padding-bottom: 96px; }
  .hero .inner { padding: 64px var(--gutter) 72px; }
  .hero .mark { width: 64px; height: 64px; margin-bottom: 40px; }
}
