/* Jeff Paints: watercolor paper, ink, and the teal and plum washes from the paintings. No web fonts. */
:root {
  --paper: #f5efe3;
  --paper-2: #ece3d2;
  --card: #fbf8f2;
  --ink: #2b2620;
  --ink-2: #5d544a;
  --line: #d9cdb8;
  --teal: #2c7470;
  --plum: #6a4a7e;
  --rust: #a6532f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: var(--sans);
  --yellow: #e8c46a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
.small { font-size: .9rem; }
.kicker { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin: 0 0 .6em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 239, 227, .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.45rem; }
.brand-sub { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-family: var(--sans); font-size: .95rem; }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 42px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  /* Open menu: a solid full-screen panel under the header bar. The header's backdrop-filter would make it the
     containing block for position: fixed and squeeze the panel into the bar, so it is switched off while open. */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; view-transition-name: none; background: var(--paper); border-bottom-color: var(--line); }
  body.nav-open { overflow: hidden; }
  .site-nav { display: none; position: fixed; top: 73px; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; padding: 16px; flex-direction: column; justify-content: flex-start; }
  .nav-open .site-nav { display: flex; }
  /* "safe" centring: centred when the links fit, top-aligned and scrollable when they don't */
  .site-nav > :first-child { margin-top: auto; }
  .site-nav > :last-child { margin-bottom: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
  .site-nav a { font-family: var(--serif); font-size: 1.5rem; padding: 14px 20px; text-align: center; border: 1px solid var(--line); background: var(--card); }
}
@media (max-width: 860px) and (max-height: 640px) {
  .site-nav { padding: 10px 16px; }
  .site-nav ul { gap: 6px; }
  .site-nav a { font-size: 1.15rem; padding: 8px 16px; }
}

/* home */
.hero { display: grid; gap: 32px; align-items: center; padding-top: 32px; padding-bottom: 24px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-top: 64px; } }
.hero blockquote { margin: 0 0 28px; padding-left: 20px; border-left: 3px solid var(--teal); font-size: clamp(1.15rem, 2.3vw, 1.4rem); font-style: italic; color: var(--ink-2); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -22px rgba(43, 38, 32, .5); }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-family: var(--sans); font-size: 1rem; transition: background .2s; }
.button:hover { background: var(--teal); color: #fff; }
.block { padding-top: 56px; padding-bottom: 24px; }
.section-title { text-align: center; margin-bottom: 28px; }
.series-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .series-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .series-grid { grid-template-columns: repeat(4, 1fr); } }
.series-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.series-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.series-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(43, 38, 32, .55); color: var(--ink); }
.series-title { font-size: 1.3rem; padding: 14px 16px 0; }
.series-sub { font-family: var(--sans); font-size: .85rem; color: var(--ink-2); padding: 2px 16px 16px; }

.show { display: grid; gap: 32px; align-items: start; border-top: 1px solid var(--line); margin-top: 48px; padding-bottom: 72px; }
@media (min-width: 860px) { .show { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.show-art img { width: 100%; border-radius: 6px; }
.show-dates { font-size: 1.25rem; }
.show-dates span { font-size: 1rem; color: var(--ink-2); }
.show-quote { margin: 0 0 1em; padding: 16px 20px; background: var(--card); border-left: 3px solid var(--plum); font-style: italic; font-size: 1.15rem; }
.show-quote cite { display: block; font-size: .95rem; margin-top: 6px; }
.venue { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.venue img { width: 112px; border-radius: 4px; flex: 0 0 auto; }
.venue p { margin: 0; font-size: 1rem; }

/* series pages */
.page-head { padding-top: 40px; padding-bottom: 16px; text-align: center; }
.page-head .lead { color: var(--ink-2); font-family: var(--sans); font-size: 1rem; margin: 0; }
.gallery { columns: 1; column-gap: 20px; }
@media (min-width: 560px) { .gallery { columns: 2; } }
@media (min-width: 960px) { .gallery { columns: 3; } }
.work { break-inside: avoid; margin: 0 0 24px; background: var(--card); padding: 10px 10px 12px; border-radius: 4px; box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(43, 38, 32, .6); }
.work a { display: block; cursor: zoom-in; }
.work img { width: 100%; }
.work figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px 0; font-size: 1rem; }
.work .y { font-family: var(--sans); font-size: .85rem; color: var(--ink-2); padding-top: 2px; }
.series-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 24px; padding-bottom: 64px; }
.series-nav a { padding: 12px 20px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-family: var(--sans); }
.series-nav a:hover { background: var(--paper-2); }
.series-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; color: var(--ink-2); font-size: 1rem; }
.footer-inner p { margin: 0; }
.footer-inner .small { margin-left: auto; font-family: var(--sans); }
.footer-name { color: var(--ink); font-size: 1.2rem; }
@media (max-width: 600px) { .footer-inner .small { margin-left: 0; width: 100%; } }

/* lightbox (from the smell of color build) */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #14110e; color: #f4f1ea; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; transition: opacity .2s; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 4px 20px; }
.lb-count { font-family: var(--sans); font-size: 1rem; color: #cfc8bc; }
.lb-main { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; grid-template-areas: "prev img next"; min-height: 0; }
.lb-stage { grid-area: img; display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; padding: 4px 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .2s; }
.lb-btn { background: none; border: 0; color: #fff; cursor: pointer; font-family: var(--sans); }
.lb-nav { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border-radius: 14px; margin: 8px; transition: background .15s, color .15s; }
.lb-nav .arrow { font-size: 4rem; line-height: 1; font-weight: 300; }
.lb-next .arrow { order: -1; }
.lb-nav .lbl { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.lb-prev { grid-area: prev; }
.lb-next { grid-area: next; }
.lb-nav:hover, .lb-nav:focus-visible { background: rgba(255, 255, 255, .1); color: var(--yellow); }
.lb-close { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; padding: 10px 16px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 999px; }
.lb-close .x { font-size: 1.6rem; line-height: .8; }
.lb-close:hover, .lb-close:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }
.lb-cap { padding: 10px 20px 20px; text-align: center; max-width: 760px; margin: 0 auto; font-family: var(--serif); }
.lb-cap .t { font-size: 1.25rem; display: block; }
.lb-cap .m { color: #cfc8bc; display: block; font-size: .95rem; font-family: var(--sans); }
.lb-cap .n { display: none; }
@media (max-width: 700px) {
  .lb-main { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "img img" "prev next"; }
  .lb-stage { padding: 4px 8px; }
  .lb-nav { flex-direction: row; gap: 10px; min-height: 60px; margin: 8px 8px 0; border: 2px solid rgba(255, 255, 255, .55); }
  .lb-nav .arrow { font-size: 2.2rem; }
  .lb-next .arrow { order: 0; }
}
.lb-single .lb-nav, .lb-single .lb-count { visibility: hidden; }

/* reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .series-card, .series-card:hover { transition: none; transform: none; } }

/* the crow logo is black on white: let the paper show through */
.brand img, .footer-inner img { mix-blend-mode: multiply; }
.hero > *, .show > *, .series-grid > * { min-width: 0; }
