/* Plain, quiet typography. Joan Mitchell's palette lives only in the brushwork:
   raw linen, ultramarine & cobalt, cadmium + sunflower, viridian, lavender, orange. */
:root {
  --canvas: #f4f1ea;
  --ink: #111318;
  --ink-soft: #5b5f6b;
  --ultramarine: #1f3c9e;
  --cobalt: #2f62d6;
  --cadmium: #f2bf1d;
  --sunflower: #e79a12;
  --viridian: #1f6e4d;
  --leaf: #6aa84f;
  --lavender: #9b88c9;
  --orange: #e2612a;
  --rule: rgba(17, 19, 24, 0.12);
  --maxw: 1080px;
  --gutter: clamp(16px, 4vw, 48px);
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.03em; }

/* NAV */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mark { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.site-nav nav { display: flex; gap: clamp(14px, 2.5vw, 32px); overflow-x: auto; scrollbar-width: none; }
.site-nav nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; white-space: nowrap; }
.site-nav nav a:hover { color: var(--ink); }

/* HERO */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 8vw, 104px) var(--gutter) clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  overflow-x: clip;
}
.eyebrow { font-size: 14px; color: var(--ink-soft); margin: 0 0 20px; }
h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; }
h1 span { color: var(--ultramarine); white-space: nowrap; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); max-width: 32em; margin: 28px 0 32px; }

.hero-links { display: flex; flex-wrap: wrap; gap: 28px; }
.btn {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.btn::after { content: " →"; }
.btn:hover { color: var(--cobalt); border-color: var(--cobalt); }
.btn-ghost { color: var(--ink-soft); border-color: var(--rule); }

.hero-art { position: relative; aspect-ratio: 4 / 5; width: 100%; }
.paint { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-art > .paint:first-child {
  inset: -10%; width: 120%; height: 120%;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.paint-over { pointer-events: none; z-index: 2; inset: -6%; width: 112%; height: 112%; }

.portrait {
  position: absolute; z-index: 1; margin: 0;
  inset: 14% 16% 12% 16%;
  background: #e8e3d7;
  box-shadow: 0 24px 50px -24px rgba(17, 19, 24, .45);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.portrait.is-empty img { display: none; }
.portrait.is-empty::after {
  content: "add assets/portrait.jpg";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 14px; color: var(--ink-soft);
}

/* BANDS between sections — painted live as you scroll (see script.js) */
.band {
  display: block; width: 100%;
  height: clamp(70px, 10vw, 120px); margin-top: clamp(16px, 4vw, 40px);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}

/* SECTIONS */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(24px, 4vw, 40px) var(--gutter) clamp(32px, 6vw, 64px); }
.section h2 { font-size: clamp(30px, 4vw, 48px); display: flex; align-items: center; gap: 14px; margin-bottom: clamp(24px, 4vw, 40px); }
.swatch { flex: none; width: 28px; height: 12px; border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; transform: rotate(-8deg); }
.swatch-blue { background: var(--cobalt); }
.swatch-yellow { background: var(--cadmium); }
.swatch-green { background: var(--viridian); }
.swatch-violet { background: var(--lavender); }
.swatch-orange { background: var(--orange); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.card { padding-top: 18px; border-top: 1px solid var(--ink); }
.card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline time { color: var(--ink-soft); font-size: 15px; font-variant-numeric: tabular-nums; }
.timeline strong { display: block; font-weight: 500; }
.timeline span { color: var(--ink-soft); font-size: 15.5px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 16px 0; border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list li strong { font-weight: 500; }
.list li em { margin-left: auto; font-style: normal; font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.tags { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 4vw, 56px); }
.tags li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.tags small { color: var(--ink-soft); font-size: 15px; }

/* CONTACT */
.contact { position: relative; overflow: hidden; margin-top: clamp(32px, 6vw, 64px); background: var(--ink); color: var(--canvas); }
.contact-paint {
  opacity: .9;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 40%, #000 70%);
          mask-image: linear-gradient(100deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 40%, #000 70%);
}
.contact-inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 12vw, 140px) var(--gutter) 40px;
}
.contact h2 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.045em; }
.contact p { max-width: 30em; font-size: 18px; color: #d9d6cf; }
.contact .btn { color: var(--canvas); border-color: var(--canvas); }
.contact .btn:hover { color: var(--cadmium); border-color: var(--cadmium); }
.contact .fine { margin-top: clamp(56px, 10vw, 110px); font-size: 13px; color: #8f929c; }
.contact-inner > *:not(.fine) { text-shadow: 0 1px 12px rgba(17, 19, 24, .6); }

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; margin: 12px auto 0; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-nav nav a:nth-child(n+4) { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .list li em { margin-left: 0; width: 100%; }
  .tags { columns: 1; }
}
