/* ==========================================================================
   noundo — public site
   Quiet, editorial, image-first. No framework.
   ========================================================================== */

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --bg: #f3f2ee;
  --bg-2: #eae8e2;
  --ink: #1b1a18;
  --ink-2: #3a3834;
  --muted: #6a675f;        /* 5.2:1 on --bg */
  --line: #d6d3cb;
  --accent-ok: #4d6b3c;
  --accent-no: #9a3b2e;

  --font: "Albert Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1540px;
  --gutter: clamp(20px, 3.9vw, 60px);
  --header-h: 76px;
  --gap: 25px;

  --fs-xs: 0.75rem;     /* 12 */
  --fs-s: 0.8125rem;    /* 13 */
  --fs-m: 0.9375rem;    /* 15 */
  --fs-l: 1.125rem;     /* 18 */
  --fs-xl: clamp(1.625rem, 1.2rem + 1.1vw, 2.125rem);   /* 26 → 34 */
  --fs-xxl: clamp(2.5rem, 1.6rem + 2.6vw, 3.5rem);      /* 40 → 56 */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; outline: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
em, i { font-style: italic; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }

/* Focus: always visible for keyboard users */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: var(--fs-s);
}
.skip-link:focus { top: 12px; }

/* Prose inside artist-written blocks */
.prose p + p, .statement p + p { margin-top: 0.9em; }
.prose a, .statement a, .page-intro a, .empty-note a, .site-footer__text a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.prose { font-size: var(--fs-m); line-height: 1.65; color: var(--ink-2); max-width: 62ch; }

/* ---------- Admin bar (only when logged in) ---------- */
.admin-bar {
  display: flex; gap: 16px; justify-content: flex-end; align-items: center;
  background: var(--ink); color: var(--bg); font-size: var(--fs-xs);
  padding: 6px var(--gutter); letter-spacing: .02em;
}
.admin-bar a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); position: relative; z-index: 20; }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  font-size: clamp(1.75rem, 1.4rem + 0.9vw, 2.25rem); font-weight: 380; letter-spacing: .01em;
  line-height: 1; padding-block: 6px; margin-top: -2px;
}
.site-nav__list { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 30px); margin: 0; padding: 0; list-style: none; }
.site-nav a {
  font-size: var(--fs-s); font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; padding-block: 8px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 calc(100% - 4px);
  transition: background-size .25s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.site-nav__cart { margin-left: clamp(4px, 1vw, 12px); }
.site-nav__cart a { background: none; padding: 6px; margin: -6px; }
.site-nav__cart .icon { width: 25px; height: 25px; }
.site-nav__cart-text { display: none; }

.menu-toggle { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 0;
    padding: 10px 0 10px 10px; margin-right: -2px; cursor: pointer; position: relative; z-index: 40;
  }
  .menu-toggle__label { font-size: var(--fs-s); font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
  .menu-toggle__icon { width: 22px; height: 12px; position: relative; display: inline-block; }
  .menu-toggle__icon span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s ease, top .25s ease; }
  .menu-toggle__icon span:first-child { top: 1px; }
  .menu-toggle__icon span:last-child { top: 9px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 5px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 5px; transform: rotate(-45deg); }

  .js .site-nav {
    position: fixed; inset: 0; z-index: 30; background: var(--bg);
    padding: calc(var(--header-h) + 5vh) var(--gutter) 40px;
    display: flex; flex-direction: column; overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .2s ease; }
  .js .site-nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .js .site-nav a {
    font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 350; letter-spacing: -.005em; text-transform: none;
    padding-block: 6px; background-position: 0 calc(100% - 6px);
  }
  .js .site-nav__cart { margin: 18px 0 0; }
  .js .site-nav__cart a { font-size: var(--fs-l); gap: 12px; margin: 0; padding: 6px 0; }
  .js .site-nav__cart-text { display: inline; }
  .js .brand { position: relative; z-index: 40; }
  body.menu-open { overflow: hidden; }

  /* Without JavaScript the menu simply wraps under the name */
  .no-js .site-header__inner { height: auto; flex-wrap: wrap; padding-block: 16px; }
  .no-js .site-nav__list { flex-wrap: wrap; gap: 8px 18px; }
}

/* ---------- Links ---------- */
.underline-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-m); padding-bottom: 7px; border-bottom: 1px solid currentColor;
}
.underline-link .arrow, .small-link .arrow { transition: transform .25s ease; display: inline-block; }
.underline-link:hover .arrow, .small-link:hover .arrow { transform: translateX(4px); }
.small-link { font-size: var(--fs-s); display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.small-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 26px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); cursor: pointer; border-radius: 0;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}
.button:hover { background: transparent; color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--bg); }
.button--ghost .muted { color: inherit; opacity: .7; font-weight: 400; letter-spacing: .04em; text-transform: none; }

/* ==========================================================================
   HOME — hero
   ========================================================================== */
.hero { position: relative; }
.hero__media { position: relative; margin: 0; background: var(--ink); }
.hero__img { width: 100%; object-fit: cover; object-position: var(--pos, center); }
.hero__caption {
  position: absolute; right: var(--gutter); bottom: 14px; z-index: 2;
  font-size: var(--fs-xs); color: rgba(255,255,255,.82); letter-spacing: .02em;
}
.hero__caption a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero__title {
  font-size: var(--fs-xxl); font-weight: 330; letter-spacing: .045em; line-height: 1.05; margin-bottom: 16px;
}
.hero__practice { font-size: var(--fs-m); letter-spacing: .03em; display: flex; flex-wrap: wrap; gap: 0 12px; }
.hero__practice .slash { opacity: .8; }
.hero__statement { margin-top: 34px; font-size: 0.90625rem; line-height: 1.55; max-width: 25.5em; }
.hero__copy .underline-link { margin-top: 32px; }

/* Cover (banner) mode — the reference composition */
.hero--cover .hero__img { height: clamp(440px, 29vw, 640px); }
.hero--cover .hero__media::after {
  /* Legibility scrim behind the white text (left side only). */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(24,22,19,.80) 0%, rgba(24,22,19,.62) 24%, rgba(24,22,19,.18) 46%, rgba(24,22,19,0) 60%);
}
.hero--cover .hero__text { position: absolute; inset: 0; display: flex; align-items: center; color: #fff; z-index: 1; pointer-events: none; }
.hero--cover .hero__text .wrap { pointer-events: none; }
.hero--cover .hero__copy { padding-left: clamp(0px, 1vw, 14px); pointer-events: auto; max-width: 440px; }
.hero--cover :focus-visible { outline-color: #fff; }

/* Contain mode — the whole work, never cropped, text beside it */
.hero--contain { max-width: var(--wrap); margin-inline: auto; padding: 24px var(--gutter) 0; display: grid; grid-template-columns: minmax(300px, 0.9fr) 2fr; gap: 48px; align-items: end; }
.hero--contain .hero__media { grid-column: 2; grid-row: 1; background: none; }
.hero--contain .hero__img { width: auto; max-width: 100%; max-height: calc(100vh - var(--header-h) - 80px); margin-left: auto; object-fit: contain; }
.hero--contain .hero__caption { position: static; text-align: right; color: var(--muted); margin-top: 10px; }
.hero--contain .hero__text { grid-column: 1; grid-row: 1; padding-bottom: 36px; }
.hero--contain .hero__text .wrap, .hero--noimage .hero__text .wrap { padding: 0; }

.hero--noimage { max-width: var(--wrap); margin-inline: auto; padding: clamp(40px, 10vh, 120px) var(--gutter) 20px; }
.hero--noimage .hero__title { font-size: clamp(3rem, 2rem + 5vw, 6rem); }

@media (max-width: 767px) {
  .hero--cover .hero__img { height: auto; aspect-ratio: 4 / 3; max-height: 62vh; }
  .hero--cover .hero__media::after { display: none; }
  .hero--cover .hero__text { position: static; color: var(--ink); display: block; }
  .hero--cover .hero__copy { padding: 30px 0 8px; max-width: none; }
  .hero--cover :focus-visible { outline-color: var(--ink); }
  .hero__caption { right: 12px; bottom: 10px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
  .hero__title { font-size: clamp(2.6rem, 11vw, 3.25rem); margin-bottom: 10px; }
  .hero__statement { margin-top: 22px; font-size: var(--fs-m); max-width: 40ch; }
  .hero__copy .underline-link { margin-top: 24px; }

  .hero--contain { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .hero--contain .hero__media, .hero--contain .hero__text { grid-column: 1; }
  .hero--contain .hero__text { grid-row: 2; padding: 28px 0 8px; }
  .hero--contain .hero__img { margin: 0 auto; max-height: 70vh; }
}

/* ==========================================================================
   Sections + galleries
   ========================================================================== */
.section { padding-top: clamp(40px, 5vw, 64px); }
.section + .section { padding-top: clamp(56px, 7vw, 96px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(18px, 2vw, 26px); }
.section-title { font-size: var(--fs-xl); font-weight: 380; letter-spacing: .005em; line-height: 1.2; }

/* Justified rows: equal-height images, natural widths, zero cropping. */
.row-gallery { list-style: none; margin: 0; padding: 0; display: flex; gap: 48px var(--gap); }
.work-card { min-width: 0; }
.work-card__link { display: block; }
.work-card__frame { aspect-ratio: var(--r); background: var(--bg-2); overflow: hidden; }
.work-card__img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease; }
.work-card__link:hover .work-card__img { opacity: .9; }
.work-card__noimg { display: block; width: 100%; height: 100%; }
.work-card__caption { padding-top: 14px; }
.work-card__title { font-size: var(--fs-m); font-weight: 450; line-height: 1.35; letter-spacing: .005em; }
.work-card__meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 5px; line-height: 1.45; }
.work-card__link:hover .work-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Home: one row of four at desktop */
.row-gallery--single { flex-wrap: nowrap; }
.row-gallery--single .work-card { flex: var(--r) 1 0; }

/* Work index: rows wrap; last row keeps its natural size */
.row-gallery--wrap { --rh: 280px; flex-wrap: wrap; row-gap: clamp(40px, 4vw, 64px); }
.row-gallery--wrap .work-card { flex: var(--r) 1 calc(var(--r) * var(--rh)); }
.row-gallery--wrap::after { content: ""; flex: 100000 1 0; }

@media (min-width: 1400px) { .row-gallery--wrap { --rh: 310px; } }
@media (max-width: 1023px) {
  :root { --gap: 20px; }
  .row-gallery--single { flex-wrap: wrap; row-gap: 40px; }
  .row-gallery--single .work-card { flex: var(--r) 1 calc(var(--r) * 260px); }
  .row-gallery--single::after { content: ""; flex: 100000 1 0; }
  .row-gallery--wrap { --rh: 260px; }
}
@media (max-width: 599px) {
  .row-gallery--single, .row-gallery--wrap { display: grid; grid-template-columns: 1fr; row-gap: 36px; }
  .row-gallery--single::after, .row-gallery--wrap::after { display: none; }
  .row-gallery .work-card__frame { max-height: 78vh; aspect-ratio: auto; background: none; }
  .row-gallery .work-card__img { width: auto; max-width: 100%; max-height: 78vh; height: auto; }
}
@media (min-width: 400px) and (max-width: 599px) {
  /* Selected works: a considered two-up on larger phones */
  .row-gallery--single { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .row-gallery--single .work-card__frame { aspect-ratio: 4 / 5; background: none; display: flex; align-items: flex-end; }
  .row-gallery--single .work-card__img { max-height: 100%; }
  .row-gallery--single .work-card__title { font-size: var(--fs-s); }
}

/* Home — sketchbook strip */
.home-sketch__strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); align-items: end; }
.home-sketch__item a { display: block; }
.home-sketch__item img { width: 100%; height: auto; }
.home-sketch__item:nth-child(3n+2) img { width: 82%; }
.home-sketch__note { display: block; font-size: var(--fs-m); line-height: 1.4; padding-top: 12px; border-top: 1px solid var(--ink); }
.home-sketch__title { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.home-sketch__item a:hover .home-sketch__title { color: var(--ink); }
@media (max-width: 1023px) { .home-sketch__strip { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } }
@media (max-width: 599px) {
  .home-sketch__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 6px; }
  .home-sketch__item { flex: 0 0 58%; scroll-snap-align: start; }
  .home-sketch__item:nth-child(3n+2) img { width: 100%; }
}

/* ==========================================================================
   Page scaffolding
   ========================================================================== */
.page { padding-top: clamp(28px, 4vw, 56px); padding-bottom: 20px; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 52px); }
.page-title { font-size: var(--fs-xxl); font-weight: 330; letter-spacing: .01em; line-height: 1.05; }
.page-intro { max-width: 52ch; margin-top: 16px; color: var(--ink-2); font-size: var(--fs-m); }
.filter ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.filter a { font-size: var(--fs-s); color: var(--muted); padding-block: 6px; display: inline-block; }
.filter a:hover { color: var(--ink); }
.filter a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.empty-note { color: var(--muted); font-size: var(--fs-m); padding-block: 20px 60px; max-width: 60ch; }
.label-title { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.draft-flag, .draft-banner { display: inline-block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; background: #e9dcc1; color: #5b4412; padding: 2px 8px; margin-top: 8px; }
.draft-banner { display: block; margin: 0 0 20px; padding: 8px 12px; }
.statement { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; font-weight: 380; max-width: 44ch; }

/* ---------- Pager (prev / all / next) ---------- */
.pager {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); padding-top: 22px; font-size: var(--fs-s);
}
.pager__next { justify-self: end; text-align: right; }
.pager__all { color: var(--muted); }
.pager a:hover .pager__label, .pager__all:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.pager a { display: inline-flex; gap: 10px; align-items: baseline; min-width: 0; }
.pager__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
@media (max-width: 599px) { .pager__label { display: none; } .pager a { font-size: var(--fs-l); } }

/* ==========================================================================
   Artwork detail
   ========================================================================== */
.artwork { padding-top: clamp(20px, 3vw, 40px); }
.artwork__stage { display: flex; flex-direction: column; align-items: center; }
.artwork__figure { width: 100%; display: flex; flex-direction: column; align-items: center; }
.artwork__zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; max-width: 100%; }
.artwork__img {
  width: auto; max-width: 100%; height: auto;
  max-height: calc(100vh - var(--header-h) - 110px); max-height: calc(100svh - var(--header-h) - 110px);
  object-fit: contain;
}
.artwork__imgcap { font-size: var(--fs-xs); color: var(--muted); margin-top: 10px; min-height: 1em; }
.artwork__imgcap:empty { display: none; }
.artwork__views { display: flex; align-items: center; gap: 22px; margin-top: 20px; }
.artwork__counter { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.artwork__thumbs { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.artwork__thumb { display: block; opacity: .5; transition: opacity .2s ease; padding-bottom: 5px; border-bottom: 1px solid transparent; }
.artwork__thumb img { height: 56px; width: auto; }
.artwork__thumb:hover, .artwork__thumb[aria-current="true"] { opacity: 1; }
.artwork__thumb[aria-current="true"] { border-bottom-color: var(--ink); }

.artwork__info {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr); gap: 24px clamp(32px, 6vw, 96px);
  max-width: 1120px; margin: clamp(40px, 5vw, 72px) auto 0;
}
.artwork__title { font-size: var(--fs-xl); font-weight: 400; line-height: 1.2; margin-bottom: 14px; }
.artwork__meta p { font-size: var(--fs-m); color: var(--ink-2); line-height: 1.6; }
.artwork__body .prose { margin-bottom: 30px; }
.artwork__status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.availability { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-s); }
.availability__dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; }
.availability--available .availability__dot { background: var(--accent-ok); border-color: var(--accent-ok); }
.availability--sold .availability__dot, .availability--sold_out .availability__dot { background: var(--accent-no); border-color: var(--accent-no); }
.price { font-size: var(--fs-m); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .artwork__info { grid-template-columns: 1fr; }
  .artwork__img { max-height: 75vh; }
  .artwork .wrap, .artwork { padding-inline: var(--gutter); }
  .artwork__thumb img { height: 48px; }
}

/* Viewer (full-screen) */
.viewer {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #161513; color: #f3f2ee;
}
.viewer::backdrop { background: #161513; }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; }
.viewer__bar { display: flex; align-items: center; gap: 24px; padding: 14px 20px; font-size: var(--fs-s); }
.viewer__count { margin-right: auto; font-variant-numeric: tabular-nums; opacity: .8; }
.viewer__orig { opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.viewer__close { background: none; border: 0; cursor: pointer; padding: 8px; font-size: var(--fs-s); letter-spacing: .08em; text-transform: uppercase; }
.viewer__stage { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px 28px; }
.viewer__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer__nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit;
  font-size: 1.5rem; width: 56px; height: 72px; cursor: pointer; opacity: .75;
}
.viewer__nav:hover { opacity: 1; }
.viewer__nav--prev { left: 4px; } .viewer__nav--next { right: 4px; }
.viewer :focus-visible { outline-color: #f3f2ee; }
.viewer[data-single] .viewer__nav { display: none; }
@media (max-width: 599px) { .viewer__stage { padding: 0 8px 64px; } .viewer__nav { top: auto; bottom: 4px; transform: none; } }

/* ==========================================================================
   Sketchbook — looser, irregular
   ========================================================================== */
.page-head--sketch { align-items: flex-end; }
.sketch-grid {
  --cols: 4; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: clamp(18px, 2.2vw, 34px); row-gap: 48px; align-items: start;
}
.sketch-grid.is-masonry { grid-auto-rows: 4px; row-gap: 0; grid-auto-flow: row dense; }
.sketch-item { min-width: 0; }
.sketch-grid.is-masonry .sketch-item { padding-bottom: 44px; }
.sketch-item.is-featured { grid-column: span 2; }
.sketch-item.is-inset-l { padding-left: 14%; }
.sketch-item.is-inset-r { padding-right: 14%; }
.sketch-item.is-small { padding-right: 30%; }
.sketch-item.is-landscape.is-small { padding-right: 12%; }
.sketch-item__link { display: block; }
.sketch-item__media { display: block; position: relative; }
.sketch-item__media img { width: 100%; height: auto; }
.sketch-item__count {
  position: absolute; right: 8px; bottom: 8px; background: var(--bg); color: var(--ink);
  font-size: 11px; padding: 1px 6px; letter-spacing: .04em;
}
.sketch-item__cap { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 2px; padding-top: 10px; font-size: var(--fs-xs); }
.sketch-item__cap time { color: var(--muted); font-variant-numeric: tabular-nums; }
.sketch-item__title { color: var(--ink); }
.sketch-item__note { flex-basis: 100%; color: var(--ink-2); font-size: var(--fs-s); line-height: 1.5; margin-top: 6px; max-width: 48ch; }
.sketch-item__link:hover .sketch-item__title { text-decoration: underline; text-underline-offset: 3px; }
.sketch-item__link:hover img { opacity: .92; }
/* Text-only entries: notes and ideas */
.sketch-item.is-text .sketch-item__link { border-top: 1px solid var(--ink); padding-top: 14px; }
.sketch-item.is-text .sketch-item__cap { padding-top: 0; }
.sketch-item.is-text .sketch-item__title { font-size: var(--fs-l); flex-basis: 100%; margin-top: 4px; }
.sketch-item.is-text .sketch-item__note { font-size: var(--fs-m); font-style: italic; }

@media (max-width: 1279px) { .sketch-grid { --cols: 3; } }
@media (max-width: 899px)  { .sketch-grid { --cols: 2; } .sketch-item.is-inset-l { padding-left: 8%; } .sketch-item.is-inset-r { padding-right: 8%; } }
@media (max-width: 599px)  {
  .sketch-grid { column-gap: 14px; }
  .sketch-item.is-featured { grid-column: 1 / -1; }
  .sketch-item.is-small { padding-right: 16%; }
  .sketch-item__note { display: none; }
  .sketch-item.is-text .sketch-item__note, .sketch-item.is-featured .sketch-item__note { display: block; }
}

/* Sketchbook entry */
.sketch-entry { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 40px clamp(32px, 5vw, 80px); padding-top: clamp(28px, 4vw, 56px); }
.sketch-entry .draft-banner, .sketch-entry .pager { grid-column: 1 / -1; }
.sketch-entry__sticky { position: sticky; top: 28px; }
.eyebrow { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .06em; margin-bottom: 16px; }
.eyebrow a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sketch-entry__title { font-size: var(--fs-xl); font-weight: 400; line-height: 1.2; margin-bottom: 20px; }
.sketch-entry__lede { font-size: var(--fs-l); line-height: 1.5; margin-bottom: 20px; max-width: 40ch; }
.sketch-entry__images { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 56px); }
.sketch-entry__figure img { width: auto; max-width: 100%; max-height: 88vh; }
.sketch-entry__figure figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; margin: 24px 0 0; font-size: var(--fs-s); }
.tags a { color: var(--muted); } .tags a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .sketch-entry { grid-template-columns: 1fr; }
  .sketch-entry__sticky { position: static; }
  .sketch-entry__figure img { max-height: 80vh; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr); gap: 40px clamp(32px, 6vw, 110px); }
.about__name { font-size: var(--fs-l); font-weight: 500; margin-bottom: 20px; }
.facts { margin: 0 0 28px; }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--fs-s); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.about__section + .about__section { margin-top: clamp(40px, 5vw, 64px); }
.about__statement .statement { max-width: 40ch; }
.cv-list { list-style: none; margin: 0; padding: 0; font-size: var(--fs-m); }
.cv-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.cv-list li:last-child { border-bottom: 1px solid var(--line); }
.cv-list__year { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--fs-s); padding-top: 2px; }
@media (max-width: 767px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__main { order: -1; }
  .cv-list li { grid-template-columns: 76px 1fr; gap: 10px; }
}

/* ==========================================================================
   Prints
   ========================================================================== */
.print-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px clamp(20px, 2.6vw, 40px); align-items: start; }
.print-card__frame { aspect-ratio: auto; background: none; }
.print-card__frame img { width: 100%; height: auto; }
.print-card__body { padding-top: 14px; }
.print-card__desc { margin-top: 12px; font-size: var(--fs-s); }
.print-card__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
@media (max-width: 1023px) { .print-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px)  { .print-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 7vw, 120px); align-items: start; }
.contact__text { margin-bottom: 40px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.contact__list li { display: flex; flex-direction: column; }
.contact__list .label-title { margin-bottom: 6px; }
.contact__list a { font-size: var(--fs-m); word-break: break-word; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__big { font-size: var(--fs-xl) !important; font-weight: 350; line-height: 1.2; }
.contact__form form { display: grid; gap: 20px; }
.field label { display: block; font-size: var(--fs-s); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; min-height: 44px;
}
.field textarea { border: 1px solid var(--ink); padding: 12px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--accent-no); }
.field__error { color: var(--accent-no); font-size: var(--fs-s); margin-top: 6px; }
.contact__form .button { justify-self: start; }
.notice { border: 1px solid var(--ink); padding: 16px 18px; font-size: var(--fs-m); margin-bottom: 20px; }
.notice p + p { margin-top: 6px; }
.notice--error { border-color: var(--accent-no); color: var(--accent-no); }
@media (max-width: 767px) { .contact__grid { grid-template-columns: 1fr; } }

.not-found { padding-bottom: 80px; }
.not-found .statement { margin: 20px 0 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: clamp(56px, 6vw, 88px); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
  padding-top: 30px; padding-bottom: 44px; position: relative;
}
.site-footer__inner::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.site-footer__id { font-size: var(--fs-xs); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 12px; letter-spacing: .02em; }
.site-footer__id .sep { color: var(--muted); }
.site-footer__id a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__text { font-size: var(--fs-xs); color: var(--muted); flex: 1 1 260px; }
.site-footer__icons { display: flex; gap: 8px; list-style: none; margin: 0 -8px 0 0; padding: 0; }
.site-footer__icons a { display: inline-flex; padding: 8px; }
.site-footer__icons a:hover { color: var(--muted); }
.site-footer__icons .icon { width: 20px; height: 20px; }
@media (max-width: 599px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__icons { margin-left: -8px; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
