:root {
  --bg: #f7f6f2;
  --paper: #fbfaf7;
  --ink: #171714;
  --soft-ink: #3c3a34;
  --muted: #777267;
  --quiet: #aaa397;
  --max: 1760px;
  --gutter: clamp(20px, 5vw, 92px);
  --space-xl: clamp(82px, 12vw, 190px);
  --space-lg: clamp(54px, 8vw, 126px);
  --space-md: clamp(30px, 5vw, 76px);
  --font-main: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 16px;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

body.has-lightbox {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px var(--gutter) 16px;
}

.site-title {
  max-width: none;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.site-nav {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-nav,
.site-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
}

.site-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  padding: 0 0 3px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--soft-ink);
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.post-type-archive-work .site-nav a[href*="/works"],
.tax-work_category .site-nav a[href*="/works"],
.single-work .site-nav a[href*="/works"] {
  color: var(--ink);
  border-bottom-color: var(--quiet);
}

.nav-toggle {
  display: none;
  justify-self: end;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-md) var(--gutter) var(--space-xl);
  outline: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-main);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: 3.65rem;
  line-height: 1.08;
}

h2 {
  font-size: 1.55rem;
  line-height: 1.22;
}

.home-view,
.home-recent {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3.4vw, 62px);
  align-items: start;
  min-width: 0;
}

.home-view {
  row-gap: clamp(54px, 9vw, 142px);
  min-height: calc(100vh - 154px);
  margin-bottom: clamp(96px, 15vw, 230px);
}

.home-recent {
  row-gap: clamp(64px, 10vw, 150px);
}

.home-view > *,
.home-recent > *,
.artwork-grid > *,
.detail-view > * {
  min-width: 0;
}

.home-copy {
  grid-column: 1 / span 3;
  position: sticky;
  top: 32px;
  padding-top: 26px;
}

.home-copy h1 {
  max-width: 360px;
  font-size: 3.15rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
}

.home-copy h1 span {
  display: inline;
}

.home-copy h1 span + span::before {
  content: " ";
}

.intro {
  width: 100%;
  max-width: 330px;
  margin-top: 36px;
  color: var(--soft-ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.62;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-actions a:hover,
.home-actions a:focus-visible {
  color: var(--ink);
}

.featured-work {
  grid-column: 4 / -1;
  min-width: 0;
}

.home-hero-image {
  margin: 0;
}

.home-hero-image .featured-image {
  object-position: center center;
}

.featured-image-link {
  display: block;
}

.featured-image {
  width: 100%;
  max-height: min(82vh, 920px);
  object-fit: contain;
  object-position: left center;
  transition: opacity 220ms ease;
}

.featured-meta {
  display: grid;
  gap: 3px;
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

.featured-meta p {
  margin-bottom: 0;
}

.featured-meta p:first-child {
  color: var(--soft-ink);
}

.home-register {
  grid-column: 1 / span 3;
  display: grid;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 32px;
  color: var(--muted);
}

.home-register h2,
.home-register p {
  margin-bottom: 0;
}

.register-label {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.register-years {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
  white-space: nowrap;
}

.register-terms {
  max-width: 245px;
  color: var(--soft-ink);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.58;
}

.home-selected {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  column-gap: clamp(24px, 3.2vw, 52px);
  row-gap: clamp(64px, 8vw, 130px);
  align-items: start;
  min-width: 0;
}

.home-selected-work {
  display: block;
  min-width: 0;
}

.home-selected-work:first-child {
  grid-column: 1 / span 4;
}

.home-selected-work:nth-child(2) {
  grid-column: 6 / span 4;
  margin-top: 88px;
}

.home-selected-work:nth-child(3) {
  grid-column: 2 / span 3;
  margin-top: 22px;
}

.home-selected-work:nth-child(4) {
  grid-column: 6 / span 5;
}

.home-selected-work:nth-child(5) {
  grid-column: 1 / span 5;
}

.home-selected-work:nth-child(6) {
  grid-column: 7 / span 3;
  margin-top: 106px;
}

.home-selected-image {
  width: 100%;
  max-height: 54vh;
  object-fit: contain;
  object-position: left center;
  transition: opacity 160ms ease;
}

.home-selected-work:hover .home-selected-image,
.home-selected-work:focus-visible .home-selected-image {
  opacity: 0.88;
}

.home-selected-meta {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.42;
}

.home-selected-meta p {
  margin-bottom: 0;
}

.home-selected-meta p:first-child {
  color: var(--soft-ink);
}

.page-head {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.page-head .eyebrow {
  margin-top: 7px;
}

.page-head h1 {
  font-size: 3rem;
}

.filters {
  display: grid;
  gap: 16px;
  margin: 0 0 var(--space-md);
}

.works-filters {
  margin-top: 6px;
}

.filter-group {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-group p {
  margin: 3px 0 0;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.filter-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
}

.filter-button,
.text-button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 3px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  color: var(--ink);
}

.filter-button.is-active {
  color: var(--ink);
  border-bottom-color: var(--quiet);
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(64px, 9vw, 150px) clamp(28px, 4vw, 70px);
  align-items: start;
}

.empty-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 400;
}

.artwork-tile,
.artwork-tile:nth-child(n) {
  grid-column: auto;
  margin-top: 0;
}

.artwork-tile figure {
  margin: 0;
}

.thumb {
  display: grid;
  align-items: center;
  width: 100%;
  aspect-ratio: var(--ratio);
  overflow: visible;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 160ms ease;
}

.artwork-tile:hover img,
.artwork-tile:focus-visible img {
  opacity: 0.88;
}

figcaption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 16px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.42;
}

figcaption span:first-child {
  color: var(--soft-ink);
}

figcaption span:nth-child(3),
figcaption span:nth-child(4) {
  grid-column: 1 / -1;
}

.detail-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(42px, 7vw, 118px);
  align-items: start;
}

.detail-image-wrap {
  min-height: 62vh;
}

.image-button,
.gallery-image-button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.detail-image {
  width: 100%;
  max-height: calc(100vh - 142px);
  object-fit: contain;
  object-position: center center;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 76px);
  margin-top: var(--space-md);
}

.gallery-image {
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
  object-position: center center;
}

.detail-meta {
  position: sticky;
  top: 32px;
  padding-top: 4px;
}

.detail-meta h1 {
  margin-bottom: 30px;
  font-size: 2.05rem;
  font-weight: 400;
  line-height: 1.12;
}

dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  padding: 0;
}

dt {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.52;
}

.detail-zoom {
  margin-top: 30px;
}

.work-description {
  margin-top: 34px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.work-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 16px;
  margin-top: var(--space-md);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-nav a:hover,
.work-nav a:focus-visible {
  color: var(--ink);
}

.text-page {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 780px);
  gap: var(--space-md);
  position: relative;
}

.text-page h1 {
  font-size: 3rem;
}

.statement {
  grid-column: 2;
  margin-top: 18px;
  color: var(--soft-ink);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.72;
}

.statement p,
.statement ul,
.statement ol {
  margin-bottom: 1.16em;
}

.statement a,
.cv-section a,
.contact-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cv-intro {
  margin-bottom: var(--space-md);
}

.cv-list {
  max-width: 1040px;
  margin-left: auto;
}

.cv-section {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: var(--space-md);
  padding: 20px 0 30px;
}

.cv-section + .cv-section {
  margin-top: 24px;
}

.cv-section h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cv-section ol {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-section li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 26px;
}

.cv-section span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.cv-section p {
  margin-bottom: 0;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.58;
}

.cv-section small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.contact-list {
  grid-column: 2;
  display: grid;
  gap: 30px;
  max-width: 640px;
  margin-top: 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 22px;
}

.contact-section h2 {
  margin: 0;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-values {
  display: grid;
  gap: 7px;
}

.contact-values p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.55;
}

.contact-list a {
  color: var(--soft-ink);
  font-weight: 400;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--ink);
}

.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 32px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.archive-entry + .archive-entry {
  margin-top: 28px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: var(--bg);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-bar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--gutter) 10px;
}

.lightbox-bar p:last-child {
  margin: 0;
}

.zoom-control {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter) 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zoom-control input {
  width: min(260px, 56vw);
}

.lightbox-scroll {
  overflow: auto;
  padding: var(--space-md) var(--gutter);
}

.lightbox-scroll img {
  width: 135%;
  max-width: none;
  margin: 0 auto;
}

@media (max-width: 1040px) {
  .home-view,
  .home-recent,
  .detail-view {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-copy,
  .home-register,
  .detail-meta {
    position: static;
  }

  .home-copy,
  .featured-work,
  .home-register,
  .home-selected {
    grid-column: 1;
  }

  .home-copy {
    padding-top: 0;
  }

  .home-view {
    min-height: 0;
    margin-bottom: clamp(72px, 13vw, 140px);
  }

  .home-register {
    grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
    align-items: end;
    max-width: 560px;
  }

  .register-label {
    grid-column: 1 / -1;
  }

  .home-selected {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 28px;
  }

  .home-selected-work:first-child,
  .home-selected-work:nth-child(2),
  .home-selected-work:nth-child(3),
  .home-selected-work:nth-child(4),
  .home-selected-work:nth-child(5),
  .home-selected-work:nth-child(6) {
    grid-column: auto;
    margin-top: 0;
  }

  .artwork-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-image {
    max-height: 76vh;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-top: 24px;
  }

  .site-title {
    max-width: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    padding-top: 18px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav,
  .site-nav-list {
    align-items: start;
    gap: 18px;
  }

  .site-nav-list {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
  }

  main {
    padding-top: 36px;
  }

  h1,
  .page-head h1,
  .text-page h1 {
    font-size: 2.45rem;
  }

  .home-copy {
    width: 100%;
    max-width: 640px;
  }

  .home-copy h1 {
    max-width: none;
    font-size: 2.65rem;
    line-height: 1.04;
  }

  .intro {
    max-width: 100%;
    margin-top: 20px;
  }

  .home-actions {
    margin-top: 26px;
  }

  .home-register {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .register-label {
    grid-column: auto;
  }

  .register-years {
    font-size: 1.35rem;
  }

  .home-selected,
  .detail-gallery,
  .artwork-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-meta,
  figcaption,
  .page-head,
  .text-page,
  .cv-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .artwork-grid {
    gap: 58px;
  }

  .detail-view {
    gap: 34px;
  }

  .detail-image-wrap {
    min-height: auto;
  }

  .detail-meta h1 {
    font-size: 1.8rem;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .work-nav {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .text-page .eyebrow,
  .statement,
  .contact-list {
    grid-column: 1;
  }

  .statement {
    font-size: 1.15rem;
    line-height: 1.68;
  }

  .cv-list {
    margin-left: 0;
  }

  .cv-section li {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 430px) {
  .site-nav-list {
    grid-template-columns: repeat(2, auto);
  }

  .filters {
    gap: 14px;
  }

  .filter-group {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .filter-group div {
    gap: 9px 18px;
  }

  .work-nav {
    font-size: 10px;
  }

  .lightbox-bar {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
