/* ============================================================
   Jessica Bradley Art + Projects
   Design system — "The Index"
   Plaster paper · ink · single vermilion point accent
   Display: Fraunces · Body: Schibsted Grotesk · Labels: Spline Sans Mono
   ============================================================ */

:root {
  --paper:    #F4F5F3;
  --paper-2:  #ECEDE9;
  --ink:      #17181A;
  --ink-2:    #5A5C58;
  --ink-3:    #8A8C87;
  --line:     #D9DAD4;
  --line-2:   #C7C8C1;
  --accent:   #D43C26;
  --accent-d: #AE2E1B;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Spline Sans Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --step-4:  clamp(2.9rem, 1.9rem + 4.8vw, 6rem);
}

/* ---------- reset ---------- */
*, *::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 { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- type primitives ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.4rem;
  display: flex; align-items: baseline; gap: .7em;
}
.eyebrow .mark { color: var(--accent); font-weight: 600; }
.display {
  font-family: var(--f-display);
  font-weight: 380;
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0;
}
h1.display { font-size: var(--step-4); }
h2.display { font-size: var(--step-3); }
h3.display { font-size: var(--step-2); }
.lead {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink);
  max-width: 38ch;
}
p { max-width: 68ch; }
.prose p { margin: 0 0 1.15em; max-width: 66ch; color: #25262A; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 1px; background-position: 0 1.18em; background-repeat: no-repeat; transition: background-position .2s ease; }
.prose a:hover { background-position: 0 1.32em; }
.mono { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .03em; }
.muted { color: var(--ink-2); }
.plus { color: var(--accent); font-style: normal; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { font-family: var(--f-display); font-weight: 420; font-size: 1.18rem; letter-spacing: -.01em; text-decoration: none; color: var(--ink); line-height: 1.05; }
.brand .plus { padding-inline: .12em; }
.brand small { display: block; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin-top: .25em; }
.nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.9rem); }
.nav a { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: .3em 0; position: relative; transition: color .18s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5em;
    background: none; border: 1px solid var(--line-2); border-radius: 0;
    font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink); padding: .55em .8em; cursor: pointer;
  }
  .nav {
    position: fixed; inset: 66px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-130%); transition: transform .32s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 24px 40px -28px rgba(0,0,0,.25);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { font-size: .95rem; padding: .8em 0; width: 100%; border-bottom: 1px solid var(--line); }
}

/* ---------- hero (centered) ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 10vw, 132px) clamp(36px, 6vw, 80px);
  text-align: center;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { justify-content: center; }
.hero .crumbs { text-align: center; }
.hero .display { margin-inline: auto; }
.hero .lead { margin-inline: auto; }
.hero__name { font-size: var(--step-4); letter-spacing: -.025em; }
.hero__name .plus { padding-inline: .06em; }
/* oversized ghost "+" watermark behind the homepage hero */
.hero--home::before {
  content: "+";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -54%);
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(20rem, 52vw, 44rem); line-height: 1;
  color: var(--accent); opacity: .05; z-index: 0; pointer-events: none;
}
.hero__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 2.4rem;
  margin-top: clamp(2rem, 4vw, 3.2rem); padding-top: 1.4rem;
  border-top: 1px solid var(--line); max-width: 760px; margin-inline: auto;
}
.datum { }
.datum dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .35em; }
.datum dd { margin: 0; font-size: var(--step-0); }

/* page-load reveal — visible by default; only hidden/animated when JS runs */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.js .reveal.d1.in { transition-delay: .08s; }
.js .reveal.d2.in { transition-delay: .16s; }
.js .reveal.d3.in { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- the index (contents list) ---------- */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: baseline; gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 1.9rem) 0; text-decoration: none; color: var(--ink);
  transition: padding-left .25s ease, color .2s ease;
}
.index-list a:hover { padding-left: .8rem; }
.index-list .num { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); padding-top: .35em; }
.index-list .ttl { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); line-height: 1.05; }
.index-list .desc { display: block; font-family: var(--f-body); font-size: var(--step--1); color: var(--ink-2); margin-top: .5em; max-width: 52ch; }
.index-list .arrow { font-family: var(--f-mono); color: var(--ink-3); font-size: .9rem; transition: transform .25s ease, color .2s ease; }
.index-list a:hover .arrow { color: var(--accent); transform: translateX(5px); }
@media (max-width: 560px) {
  .index-list a { grid-template-columns: 2.2rem 1fr; }
  .index-list .arrow { display: none; }
}

/* ---------- plate (image placeholder = signature element) ---------- */
.plate {
  position: relative; border: 1px solid var(--line-2); background:
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(23,24,26,.04) 13px 14px), var(--paper-2);
  aspect-ratio: 4 / 5; min-height: 220px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.plate--wide { aspect-ratio: 16 / 10; }
.plate--sq { aspect-ratio: 1 / 1; }
.plate__mark { font-family: var(--f-display); font-size: 3rem; color: var(--line-2); line-height: 1; }
.plate__mark::before { content: "+"; color: var(--accent); opacity: .65; }
.plate-fig { margin: 0; }
.plate-fig figcaption {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; color: var(--ink-2);
  margin-top: .7rem; display: flex; gap: .8em; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .55rem;
}
.plate-fig figcaption .pl { color: var(--accent); }

/* ---------- grids ---------- */
.grid { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .split, .split--even { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- entry rows (artists / exhibitions / writing) ---------- */
.entries { border-top: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: 1fr auto; gap: .4rem 1.5rem; align-items: baseline;
  padding: clamp(.9rem, 2vw, 1.35rem) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: padding-left .22s ease;
}
.entry:hover { padding-left: .7rem; }
a.entry:hover .entry__name { background-position: 0 1.2em; }
.entry__name { font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); line-height: 1.1; }
a.entry .entry__name { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 1px; background-position: 0 1.7em; background-repeat: no-repeat; transition: background-position .22s ease; }
.entry__meta { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .03em; color: var(--ink-2); text-align: right; }
.entry__sub { grid-column: 1 / -1; font-size: var(--step--1); color: var(--ink-2); max-width: 60ch; }
.entry--head { color: var(--ink-3); }
.entry--head .entry__name { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; color: var(--ink-2); }

/* ---------- year spine (exhibitions) ---------- */
.spine { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0; }
.spine__year { font-family: var(--f-display); font-size: var(--step-2); color: var(--ink); padding: 1.2rem 0; position: sticky; top: 80px; align-self: start; }
.spine__items { border-left: 1px solid var(--line); padding-left: clamp(1rem, 3vw, 2.2rem); }

/* ---------- callout / statement ---------- */
.statement { font-family: var(--f-display); font-weight: 360; font-size: var(--step-2); line-height: 1.28; letter-spacing: -.01em; max-width: 24ch; }
.note {
  border-left: 2px solid var(--accent); padding: .2rem 0 .2rem 1.1rem;
  font-size: var(--step--1); color: var(--ink-2); max-width: 60ch;
}

/* ---------- buttons / cta ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--paper); background: var(--ink);
  padding: .9em 1.4em; border: 1px solid var(--ink); transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: none; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn .ar { transition: transform .2s ease; }
.btn:hover .ar { transform: translateX(3px); }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 1.3rem; }
.field label { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .5em; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--f-body); font-size: var(--step-0); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 0; padding: .8em .9em;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); padding-block: clamp(46px, 7vw, 80px); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1rem; font-weight: 400; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .55em; }
.foot-grid a { color: var(--ink-2); text-decoration: none; transition: color .18s ease; }
.foot-grid a:hover { color: var(--accent); }
.foot-brand { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.foot-brand small { display: block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-top: .5em; }
.colophon { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-block: 1.4rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; color: var(--ink-3); }
.colophon a { color: var(--ink-2); text-decoration: none; }
.colophon a:hover { color: var(--accent); }

/* affiliations (homepage only) */
.affil { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .03em; color: var(--ink-2); }
.affil a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.affil a:hover { color: var(--accent); }

/* skip link + a11y */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .7em 1em; z-index: 100; font-family: var(--f-mono); font-size: .8rem; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.crumbs { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 1.6rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--line-2); padding-inline: .5em; }

/* ============================================================
   v2 additions — imagery, rhythm, atmosphere
   ============================================================ */

/* full-bleed wrapper (breaks out of .wrap) */
.bleed { width: 100vw; position: relative; left: 50%; right: 50%; margin-inline: -50vw; }

/* feature image band */
.feature { position: relative; overflow: hidden; background: var(--paper-2); border-block: 1px solid var(--line); }
.feature img {
  width: 100%; height: clamp(340px, 56vw, 600px); object-fit: cover; object-position: center 30%;
  display: block; transition: transform 1.4s cubic-bezier(.22,1,.36,1); filter: saturate(.96);
}
.feature:hover img { transform: scale(1.035); }
.feature__cap {
  position: absolute; left: var(--gutter); bottom: 1.2rem;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); background: rgba(23,24,26,.62); padding: .5em .85em; backdrop-filter: blur(3px);
}
.feature__cap .pl { color: var(--accent); }

/* real images used in splits/portraits */
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); background: var(--paper-2); }
.shot-fig { margin: 0; overflow: hidden; }
.shot-fig .shot { transition: transform 1s cubic-bezier(.22,1,.36,1); }
.shot-fig:hover .shot { transform: scale(1.03); }
.shot-fig figcaption {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; color: var(--ink-2);
  margin-top: .7rem; display: flex; gap: .8em; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: .55rem;
}
.shot-fig figcaption .pl { color: var(--accent); }
.shot--sq { aspect-ratio: 1/1; object-fit: cover; }
.shot--land { aspect-ratio: 3/2; object-fit: cover; }
.shot--port { aspect-ratio: 4/5; object-fit: cover; }

/* dark band — breaks the all-paper rhythm */
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark .eyebrow { color: rgba(244,245,243,.55); }
.band-dark .eyebrow .mark { color: var(--accent); }
.band-dark .statement { color: var(--paper); max-width: 30ch; }
.band-dark .plus { color: var(--accent); }
.band-dark .prose p { color: rgba(244,245,243,.82); }
.band-dark .prose a { color: var(--paper); }
.band-dark .btn--ghost { color: var(--paper); border-color: rgba(244,245,243,.4); }
.band-dark .btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.band-dark .rule, .band-dark hr { border-color: rgba(244,245,243,.18); }
.band-dark .muted { color: rgba(244,245,243,.55); }

/* oversized section index numbers (more characterful structure) */
.bignum { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem,8vw,6rem); color: var(--accent); line-height: .9; opacity: .9; }

/* statement gets a touch more presence */
.statement { font-size: var(--step-3); max-width: 22ch; }
.statement .plus { padding-inline: .04em; }

/* buttons must keep their own styling even inside .prose (specificity fix) */
.prose a.btn { background-image: none; color: var(--paper); }
.prose a.btn:hover { color: var(--paper); }
.prose a.btn--ghost { background-image: none; color: var(--ink); }
.prose a.btn--ghost:hover { color: var(--paper); }
.band-dark .prose a.btn--ghost { color: var(--paper); }
