/* ------------------------------------------------------------
   Shir Koren Projects
   Fonts: swap the two variables below once the licensed
   web fonts (.woff2) are in /fonts. Placeholders for now.
   ------------------------------------------------------------ */
/* Self-hosted fonts (no Google servers: GDPR). Replace files in /fonts to swap. */
@font-face { font-family: "SKP Title"; src: url("fonts/title.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SKP Body"; src: url("fonts/body-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SKP Body"; src: url("fonts/body-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --font-title: "SKP Title", Georgia, serif;   /* stand-in for Le Jour Serif */
  --font-body: "SKP Body", system-ui, sans-serif;   /* stand-in for body font */
  --ink: #111111;
  --paper: #ffffff;
  --muted: #6f6f6f;
  --line: #e4e4e4;
  --accent: #D4FF3A;   /* acid green: backgrounds and highlights only, never as text on white */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* highlight link: green marker on hover */
.hl { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 100% 0; transition: background-size .2s; }
.hl:hover, .hl:focus-visible { background-size: 100% 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 22px; padding-bottom: 18px; }
.wordmark { font-family: var(--font-title); font-size: 26px; line-height: 1; letter-spacing: -.01em; }
.nav { display: flex; gap: 28px; font-size: 14px; letter-spacing: .02em; }
.nav a[aria-current="page"] { background: var(--accent); }

/* ---------- labels ---------- */
.label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tag { display: inline-block; background: var(--accent); color: var(--ink); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; }

/* ---------- home: upcoming ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(48px, 8vw, 120px); align-items: end; }
.feature-text h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(44px, 7vw, 104px); line-height: .95; letter-spacing: -.02em; margin: 20px 0 12px; }
.feature-text .artist { font-size: clamp(18px, 2vw, 24px); }
.feature-text dl { margin-top: 36px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; font-size: 14px; }
.feature-text dt { color: var(--muted); }
.feature-img { background: #f3f3f3; }

/* ---------- section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 32px; }
.section-head h2 { font-family: var(--font-body); font-weight: 500; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- exhibition list ---------- */
.ex-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px var(--gutter); padding-bottom: 120px; }
.ex-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: #f3f3f3; margin-bottom: 14px; }
.ex-card .thumb img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.ex-card:hover .thumb img { transform: scale(1.03); }
.ex-card .artist { font-size: 15px; }
.ex-card .title { font-family: var(--font-title); font-size: 26px; line-height: 1.1; margin: 2px 0 6px; }
.ex-card .dates { font-size: 13px; color: var(--muted); }

/* ---------- about strip ---------- */
.about-strip { padding-bottom: 120px; }
.about-strip p { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; max-width: 26ch; font-family: var(--font-title); }
.about-strip a.more { display: inline-block; margin-top: 24px; font-size: 14px; }

/* ---------- exhibition page ---------- */
.ex-head { padding-top: clamp(32px, 6vw, 72px); padding-bottom: 40px; }
.ex-head h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(44px, 8vw, 120px); line-height: .95; letter-spacing: -.02em; margin: 16px 0 10px; }
.ex-head .artist { font-size: clamp(18px, 2vw, 24px); }
.hero { margin-bottom: clamp(40px, 6vw, 80px); }
.ex-body { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); margin-bottom: clamp(48px, 7vw, 100px); }
.ex-body dl { font-size: 14px; display: grid; gap: 14px; align-content: start; }
.ex-body dt { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ex-body .text p { font-size: 19px; line-height: 1.55; max-width: 60ch; margin-bottom: 1em; }
.placeholder { color: var(--muted); font-style: italic; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); margin-bottom: clamp(48px, 7vw, 100px); }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.quote { background: var(--accent); padding: clamp(28px, 5vw, 64px); margin-bottom: clamp(48px, 7vw, 100px); }
.quote blockquote { font-family: var(--font-title); font-size: clamp(24px, 3vw, 40px); line-height: 1.2; max-width: 30ch; }
.quote cite { display: block; margin-top: 20px; font-style: normal; font-size: 14px; }
.ex-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); padding: 14px 0 100px; font-size: 14px; }

/* ---------- about page ---------- */
.about-page { padding-top: clamp(32px, 6vw, 72px); padding-bottom: 120px; display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); }
.about-page h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.about-page .text p { font-size: 19px; max-width: 60ch; margin-bottom: 1em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gutter); padding-top: 40px; padding-bottom: 48px; font-size: 14px; }
.site-footer .big { font-family: var(--font-title); font-size: 26px; line-height: 1.1; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer .small { color: var(--muted); font-size: 12px; }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .site-header .wrap { flex-direction: column; gap: 10px; }
  .nav { gap: 20px; }
  .feature, .ex-body, .about-page { grid-template-columns: 1fr; }
  .feature-img { order: -1; }
  .ex-list { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; }
}

/* gallery: tall image spans two rows beside two landscape images */
.gallery figure { display: flex; flex-direction: column; }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.tall img { flex: 1; min-height: 0; object-fit: cover; }
@media (max-width: 820px) { .gallery figure.tall { grid-row: auto; } }

/* legal pages */
.legal h2 { font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 16px !important; }
.legal ul { padding-left: 20px; margin-bottom: 1em; }
.epigraph { font-family: var(--font-title); font-size: 24px !important; line-height: 1.3 !important; margin-bottom: 1.4em !important; }
.epigraph span { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-top: 8px; }
mark { background: var(--accent); }
.about-page .legal { grid-column: 1 / -1; max-width: 70ch; }

/* about: portrait + bio */
.about-side h1 { margin-bottom: 32px; }
.portrait img { filter: grayscale(1); }
.portrait figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.about-page .text .lead { font-family: var(--font-title); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; }
.bio-head { font-family: var(--font-body); font-weight: 500; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; border-top: 1px solid var(--ink); padding-top: 14px; margin: 48px 0 16px; }
@media (max-width: 820px) { .portrait { max-width: 360px; } }

/* newsletter / invitations */
.news { padding-bottom: clamp(64px, 8vw, 120px); }
.news-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--gutter); align-items: start; }
.news-title { font-family: var(--font-title); font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.01em; }
.news-sub { margin-top: 12px; color: var(--muted); max-width: 32ch; }
.news-fields { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 0; border: 1px solid var(--ink); }
.news-fields input { font: inherit; font-size: 15px; padding: 14px 16px; border: 0; border-right: 1px solid var(--ink); background: var(--paper); color: var(--ink); min-width: 0; border-radius: 0; -webkit-appearance: none; }
.news-fields input:focus { outline: none; background: #fafff0; }
.news-fields button { font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .04em; padding: 14px 22px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; border-radius: 0; }
.news-fields button:hover, .news-fields button:focus-visible { background: var(--accent); color: var(--ink); }
.news-fields button:disabled { opacity: .6; cursor: wait; }
.news-optin { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.news-optin input { margin-top: 3px; accent-color: var(--ink); flex: none; }
.news-msg { margin-top: 14px; font-size: 14px; min-height: 1.4em; }
.news-msg.ok { background: var(--accent); color: var(--ink); display: inline-block; padding: 4px 8px; }
.news-msg.err { color: #b3261e; }
.news-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 820px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-fields { grid-template-columns: 1fr; }
  .news-fields input { border-right: 0; border-bottom: 1px solid var(--ink); }
}
