/* When the Walls Spoke - v2 gallery design */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --ground: #EEEAE2;
  --ink: #1C1C1A;
  --body: #2B2B28;
  --soft: #33332F;
  --muted: #5E5E58;
  --line: rgba(28,28,26,.12);
  --accent: #1F5F78;
  --accent-d: #163F50;
  --mat: 5px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans);
  background-color: var(--ground);
  background-image: url("/assets/plaster.svg?v=1"); background-size: 480px 480px;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-d); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: #fff; padding: 10px 14px; color: var(--ink); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background-color: rgba(238,234,226,.9);
  -webkit-backdrop-filter: saturate(1.1) blur(10px); backdrop-filter: saturate(1.1) blur(10px);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 18px rgba(60,48,30,.10); }
section[id], #main { scroll-margin-top: 84px; }
/* home: the bar title starts hidden; the large title morphs into it on scroll (v2.js) */
.js .home .brand { opacity: 0; visibility: hidden; }
.bigtitle { transform-origin: 0 0; will-change: transform, opacity; position: relative; z-index: 60; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.brand { font-family: var(--serif); font-size: 26px; color: var(--ink); text-decoration: none; }
.navlinks { display: flex; gap: 32px; flex-wrap: wrap; font-size: 15px; letter-spacing: .04em; }
.navlinks a, .backlink { color: var(--ink); text-decoration: none; }
.navlinks a:hover, .backlink:hover { color: var(--accent); }
.backlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; letter-spacing: .04em; }
.backlink svg { width: 18px; height: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; font-size: 15px; font-weight: 500; letter-spacing: .03em; text-decoration: none; }
.btn-dark { background: var(--ink); color: #F5F5F2; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #F5F5F2; }
.btn svg { width: 18px; height: 18px; }

/* hero */
.hero-sec { padding-top: 88px; padding-bottom: 96px; }
.hero { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 64px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 32px; }
.bigtitle { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 112px; line-height: .95; letter-spacing: -.01em; }
.bigtitle em { color: var(--accent); }
.lede { margin: 0; font-size: 20px; line-height: 1.55; max-width: 560px; color: var(--soft); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.strip-wrap { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 24px; border-top: 1px solid rgba(28,28,26,.14); }
.strip { display: flex; gap: 10px; flex-wrap: wrap; }
.strip a { display: block; flex: 0 0 auto; }
.strip img { width: 76px; height: 76px; object-fit: cover; box-shadow: 0 6px 14px rgba(28,28,26,.16); transition: transform .25s ease; }
.strip a:hover img { transform: translateY(-3px); }
.strip-link { font-size: 14px; letter-spacing: .03em; color: var(--soft); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.hero-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-fig img { width: 100%; aspect-ratio: 1012 / 1680; max-height: 720px; object-fit: cover; background: #E4E2DC; border: 4px solid #FBFAF7; box-shadow: 0 1px 2px rgba(28,28,26,.10), 0 24px 48px rgba(60,48,30,.18); }
.hero-fig figcaption { font-size: 13px; color: var(--muted); }

/* statement */
.about { background: rgba(96,80,52,.07); border-top: 1px solid rgba(28,28,26,.10); border-bottom: 1px solid rgba(28,28,26,.10); }
.statement { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,8fr); gap: 64px; padding-top: 96px; padding-bottom: 96px; }
.h2 { margin: 14px 0 0; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; }
.statement-body { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: var(--body); max-width: 720px; }
.statement-body p { margin: 0; }
.series-fig { margin: 40px 0 0; max-width: 400px; }
.series-fig .mat { aspect-ratio: auto; display: block; }
.series-fig .mat img { display: block; height: auto; }
.series-fig .mat:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(28,28,26,.10), 0 18px 32px rgba(60,48,30,.18); }
.signature { margin-top: 8px !important; font-family: var(--serif); font-size: 30px; font-style: italic; }

/* collection */
.collection { padding-top: 96px; padding-bottom: 120px; }
.coll-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 500 14px var(--sans); letter-spacing: .02em; cursor: pointer; background: transparent; color: var(--ink); border: 1px solid #BDBBB3; }
.chip span { opacity: .7; margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip:hover:not([aria-pressed="true"]) { border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 56px 32px; }
.tile { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.tile[hidden] { display: none; }
.mat { aspect-ratio: 1 / 1; padding: var(--mat); background: #FBFAF7; box-shadow: 0 1px 2px rgba(28,28,26,.10), 0 10px 22px rgba(60,48,30,.14); display: flex; align-items: center; justify-content: center; transition: transform .25s ease, box-shadow .25s ease; }
.mat img { width: 100%; height: 100%; object-fit: contain; }
.tile:hover .mat { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(28,28,26,.10), 0 18px 32px rgba(60,48,30,.18); }
.tile:hover .tname { color: var(--accent); }
.tmeta { display: flex; gap: 14px; align-items: baseline; }
.tnum { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 22px; }
.tlabel { display: flex; flex-direction: column; gap: 2px; }
.tname { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.tkind { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* painting page */
.piece-main { padding-top: 56px; padding-bottom: 96px; }
.piece { display: grid; grid-template-columns: minmax(0,8fr) minmax(0,4fr); gap: 56px; align-items: start; }
.wall { margin: 0; background: rgba(96,80,52,.08); padding: 64px; display: flex; justify-content: center; }
.bigmat { width: 100%; max-width: 680px; padding: 12px; background: #FBFAF7; box-shadow: 0 1px 2px rgba(28,28,26,.12), 0 22px 44px rgba(60,48,30,.18); }
.bigmat a { display: block; cursor: zoom-in; }
.bigmat img { width: 100%; height: auto; background: #DCD9D1; }
.wall { flex-direction: column; align-items: center; }
.wall-cap { display: none; }
.wall-cap a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; letter-spacing: .03em; color: var(--ink); text-decoration: none; }
.wall-cap a:hover { color: var(--accent); }
.wall-cap svg { width: 18px; height: 18px; color: var(--accent); }
.aside { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 32px; }
.ptitle { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; }
.pkind { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.details { margin: 0; display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 12px 24px; font-size: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.btn-map { min-height: 52px; padding: 0 24px; }
.pager { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.plink { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.plink.next { text-align: right; }
.plink span:first-child { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pname { font-family: var(--serif); font-size: 22px; }
.plink:hover .pname { color: var(--accent); }
.more { margin-top: 120px; }
.more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.more-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; }
.more-head a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; letter-spacing: .03em; }
.more .grid { gap: 32px; }
.more .tname { font-size: 22px; }

/* footer */
.site-footer { background: var(--ink); color: #E9E8E3; }
.foot { padding-top: 72px; padding-bottom: 72px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-end; }
.foot .serif { margin: 0; font-size: 40px; line-height: 1.1; }
.foot p { margin: 0; font-size: 16px; line-height: 1.6; color: #BDBCB5; }
.foot-small { font-size: 14px; color: #BDBCB5; }
.site-footer.slim .foot { padding-top: 40px; padding-bottom: 40px; align-items: center; }
.site-footer.slim .serif { font-size: 22px; }

/* phones and small tablets */
@media (max-width: 900px) {
  :root { --mat: 3px; }
  .wrap { padding: 0 20px; }
  .hdr { padding-top: 14px; padding-bottom: 14px; }
  .brand { font-size: 21px; }
  .navlinks { gap: 18px; }
  .nav-artist { display: none; }
  .hero-sec { padding-bottom: 56px; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .hero-sec { padding-top: 28px; }
  /* phone order: label, large title, photo, intro, buttons, fragments */
  .hero-text { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero .bigtitle { order: 2; }
  .hero-fig { order: 3; margin: 6px 0; }
  .hero .lede { order: 4; }
  .hero .ctas { order: 5; }
  .hero .strip-wrap { order: 6; }
  .hero-fig img { aspect-ratio: 3 / 4; max-height: 66vh; }
  section[id], #main { scroll-margin-top: 64px; }
  .hero-fig figcaption { display: none; }
  .hero-text { gap: 18px; }
  .eyebrow { font-size: 11px; letter-spacing: .16em; }
  .bigtitle { font-size: 54px; line-height: .98; }
  .lede { font-size: 17px; line-height: 1.5; }
  .ctas { margin-top: 4px; }
  .ctas .btn { flex: 1 1 auto; }
  .strip-wrap { margin: 8px -20px 0; padding: 20px 0 0 20px; }
  .strip { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 16px 0; -webkit-overflow-scrolling: touch; }
  .strip a { scroll-snap-align: start; }
  .strip img { width: 104px; height: 104px; }
  .statement { grid-template-columns: minmax(0,1fr); gap: 32px; padding-top: 56px; padding-bottom: 64px; }
  .collection { padding-top: 56px; padding-bottom: 64px; }
  .h2 { font-size: 34px; }
  .statement-body { font-size: 17px; }
  .series-fig { margin-top: 28px; max-width: none; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 16px; }
  .tname { font-size: 20px; }
  .piece-main { padding-top: 0; }
  .piece { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .wall { margin: 0 -20px; padding: 20px 20px 8px; }
  .wall-cap { display: flex; justify-content: center; width: 100%; padding-top: 6px; }
  .bigmat { padding: 7px; }
  .aside { position: static; gap: 24px; }
  .ptitle { font-size: 46px; }
  .more { margin-top: 72px; }
  .more .grid { gap: 24px 16px; }
  .foot { padding-top: 48px; padding-bottom: 48px; }
  .foot .serif { font-size: 32px; }
}
