:root {
  --ink: #0b0b0a;
  --paper: #ffffff;
  --quiet: #696965;
  --soft: #f1f1ed;
  --line: #d7d7d2;
  --header-height: 88px;
  --max: 1680px;
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) auto minmax(5rem, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding: 0 clamp(1rem, 2.4vw, 2.5rem);
  border-bottom: 0;
  background: var(--paper);
}
.header-socials {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: start;
}
.brand {
  grid-column: 2;
  font-family: "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}
.menu-toggle {
  grid-column: 3;
  justify-self: end;
  display: grid;
  align-content: center;
  gap: 6px;
  width: 58px;
  height: 52px;
  padding: 7px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.menu-toggle > span:not(.visually-hidden) {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.menu-toggle:hover, .menu-toggle:focus-visible { background: var(--soft); }
.home-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: white;
  background: transparent;
}
.home-page .header-socials { color: var(--ink); }
.home-page .brand { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
.home-page .menu-toggle:hover,
.home-page .menu-toggle:focus-visible { background: rgba(255, 255, 255, 0.16); }
.menu-panel {
  position: fixed;
  z-index: 25;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  display: none;
  width: min(440px, 100vw);
  padding: clamp(2rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border-left: 1px solid var(--ink);
  background: var(--paper);
}
.menu-open .menu-panel { display: flex; flex-direction: column; }
.menu-panel a {
  padding: 0.32em 0;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-decoration: none;
}
.menu-panel a:hover, .menu-panel a[aria-current="page"] { text-decoration: underline; }

.home-stream { width: 100%; }
.home-work { display: block; text-decoration: none; }
.home-work figure { width: 100%; }
.home-work img {
  width: 100%;
  height: auto;
  background: var(--soft);
}

.page-shell {
  width: min(calc(100% - clamp(2rem, 5vw, 5rem)), var(--max));
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
}
.page-heading {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 0.85fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
h1 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}
.page-heading p { max-width: 35rem; font-size: clamp(1rem, 1.4vw, 1.25rem); }

.work-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 4.5rem);
}
.work-choice { display: grid; gap: 1rem; align-content: start; text-decoration: none; }
.work-choice-image {
  display: block;
  width: 100%;
  background: var(--soft);
  box-shadow: 8px 10px 14px rgba(0, 0, 0, 0.26);
}
.work-choice img { width: 100%; height: auto; }
.work-choice-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.work-choice-label strong { font-weight: 500; }
.work-choice:hover strong { text-decoration: underline; }

.archive-intro {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(20rem, 1.2fr);
  gap: clamp(2rem, 8vw, 10rem);
  align-items: end;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
}
.archive-intro p { max-width: 46rem; font-size: clamp(1rem, 1.3vw, 1.18rem); }
.archive-page { width: min(calc(100% - clamp(3rem, 12vw, 12rem)), 1500px); }
.gallery {
  display: block;
}
.gallery-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(3rem, 7vw, 7rem);
  row-gap: clamp(4.5rem, 8vw, 8rem);
  align-items: start;
}
.gallery-group + .gallery-group { margin-top: clamp(7rem, 12vw, 13rem); }
.gallery-group-studies {
  row-gap: clamp(2.5rem, 4vw, 4rem);
}
.gallery-group-studies .artwork[data-work="study-for-three-figures-i"] {
  grid-column: 1;
  grid-row: 1;
}
.gallery-group-studies .artwork[data-work="study-for-three-figures-ii"] {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}
.gallery-group-studies .artwork[data-work="study-for-three-figures-iii"] {
  grid-column: 1;
  grid-row: 2;
}
.gallery-group-outside {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 5vw, 6rem);
}
.gallery-group-outside .artwork[data-work="three-figures-outside"] { width: 36%; }
.gallery-group-outside .artwork[data-work="portrait-of-two-figures-outside"] { width: 19%; }
.gallery-group-outside .artwork[data-work="study-for-portrait-of-a-figure-outside"] { width: 17%; }
.gallery-group-remaining .artwork[data-work="portrait-of-a-seated-figure-held"] { width: 36%; }
.gallery-group-alberta .artwork[data-work="sun-up-to-sun-down-alberta"],
.gallery-group-alberta .artwork[data-work="alberta-v"],
.gallery-group-alberta .artwork[data-work="alberta-iii"],
.gallery-group-alberta .artwork[data-work="alberta-iv"] { width: 72%; }
.gallery-group-alberta .artwork[data-work="alberta"],
.gallery-group-alberta .artwork[data-work="alberta-ii"] { width: 92%; }
.gallery-section-divider {
  width: 100%;
  margin: clamp(7rem, 12vw, 13rem) 0;
  border-top: 1px solid var(--line);
}
.artwork {
  display: block;
  width: var(--artwork-width, 100%);
  margin: 0;
  justify-self: center;
  align-self: start;
  text-decoration: none;
}
.artwork[type="button"] {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
.artwork figure { display: grid; gap: 0.85rem; }
.artwork-image {
  display: block;
  width: 100%;
  aspect-ratio: var(--artwork-ratio);
  overflow: hidden;
  background: var(--soft);
  box-shadow: 8px 10px 14px rgba(0, 0, 0, 0.26);
}
.artwork-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.artwork figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.35;
}
.artwork figcaption span:last-child { color: var(--quiet); }
.artwork:hover figcaption span:first-child { text-decoration: underline; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(6rem, 10vw, 10rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.45); }
.lightbox-inner {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 1.2rem;
  min-height: calc(100svh - clamp(2rem, 6vw, 5rem));
}
.lightbox-inner img {
  width: auto;
  max-width: min(92vw, 1500px);
  max-height: 78svh;
  object-fit: contain;
}
.lightbox-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  width: min(92vw, 1500px);
  align-items: start;
}
.lightbox-caption h2 { font-size: 0.9rem; font-weight: 500; }
.lightbox-caption p { color: var(--quiet); font-size: 0.78rem; text-align: right; }
.lightbox-close {
  position: fixed;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.artwork-page {
  width: min(calc(100% - clamp(2rem, 5vw, 5rem)), var(--max));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}
.artwork-display {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-height) - clamp(4rem, 10vw, 10rem));
}
.artwork-display img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - var(--header-height) - clamp(4rem, 10vw, 10rem));
  object-fit: contain;
  background: var(--soft);
  box-shadow: 8px 10px 14px rgba(0, 0, 0, 0.26);
}
.artwork-information {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: clamp(3rem, 9vw, 10rem);
  margin-top: clamp(3rem, 7vw, 7rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}
.artwork-heading { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.artwork-heading h1 {
  max-width: 1100px;
  font-size: clamp(1.85rem, 3vw, 3.25rem);
  line-height: 1.02;
}
.back-link {
  width: fit-content;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.artwork-information dl { border-top: 1px solid var(--line); }
.artwork-information dl div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.artwork-information dt {
  color: var(--quiet);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}
.artwork-information dd { font-size: 0.9rem; }
.detail-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(5rem, 12vw, 12rem);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.detail-pager a {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.2rem 0;
  text-decoration: none;
}
.detail-pager a:last-child {
  justify-content: flex-end;
  padding-left: 1rem;
  border-left: 1px solid var(--ink);
  text-align: right;
}
.detail-pager a:first-child { padding-right: 1rem; }
.detail-pager small {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--quiet);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.detail-pager a:hover span:not([aria-hidden]) { text-decoration: underline; }

.context-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(20rem, 1.25fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: start;
}
.context-image { position: sticky; top: 2rem; }
.context-image-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft);
  box-shadow: 8px 10px 14px rgba(0, 0, 0, 0.26);
}
.context-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.context-image figcaption { margin-top: 0.6rem; color: var(--quiet); font-size: 0.72rem; }
.context-copy { max-width: 48rem; }
.context-copy section { margin-bottom: 4.5rem; }
.context-copy h2 {
  margin-bottom: 1.3rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.context-copy p { margin-bottom: 1.15rem; font-size: clamp(1rem, 1.25vw, 1.15rem); }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.7fr) minmax(20rem, 1.3fr);
  gap: clamp(3rem, 10vw, 11rem);
}
.contact-details { font-size: clamp(1rem, 1.9vw, 1.55rem); }
.contact-details a { display: flex; width: fit-content; align-items: center; gap: 0.65rem; margin-bottom: 0.8rem; }
.contact-details svg {
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.contact-details .icon-fill { fill: currentColor; stroke: none; }
.inquiry-form { display: grid; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
label { display: grid; gap: 0.4rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; }
input, select, textarea {
  width: 100%;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  color: inherit;
  background: transparent;
}
textarea { min-height: 9rem; resize: vertical; }
.submit-button {
  width: fit-content;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--ink);
  color: white;
  background: var(--ink);
  cursor: pointer;
}
.submit-button:hover { color: var(--ink); background: white; }
.form-note { color: var(--quiet); font-size: 0.78rem; }

.terms { max-width: 62rem; margin-left: max(clamp(1rem, 2.5vw, 2.5rem), calc((100vw - var(--max)) / 2)); }
.terms h1 { margin-bottom: clamp(4rem, 8vw, 7rem); }
.terms h2 { margin: 3.5rem 0 1rem; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; }
.terms p { max-width: 52rem; margin-bottom: 1rem; }
.not-found p { margin-top: 4rem; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 1.5rem clamp(1rem, 2.4vw, 2.5rem) 2rem;
  border-top: 1px solid var(--ink);
  color: var(--quiet);
  font-size: 0.72rem;
}
.icon-link {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
}
.icon-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.icon-link .icon-fill { fill: currentColor; stroke: none; }

@media (max-width: 760px) {
  :root { --header-height: 72px; }
  .site-header {
    grid-template-columns: minmax(4.5rem, 1fr) auto minmax(4.5rem, 1fr);
    padding: 0 0.65rem 0 1rem;
  }
  .header-socials { gap: 0.55rem; }
  .header-socials .icon-link { width: 1.5rem; height: 1.5rem; }
  .brand { font-size: clamp(1.05rem, 4.6vw, 1.3rem); letter-spacing: 0.01em; white-space: nowrap; }
  .menu-toggle { width: 50px; height: 46px; padding: 7px; }
  .menu-panel { border-left: 0; }
  .page-heading, .archive-intro, .context-grid, .contact-grid, .artwork-information { grid-template-columns: 1fr; }
  .page-heading, .archive-intro { gap: 2rem; }
  .work-choices { grid-template-columns: 1fr; gap: 4rem; }
  .archive-page { width: min(calc(100% - 2rem), var(--max)); }
  .gallery-group,
  .gallery-group-outside { display: grid; grid-template-columns: 1fr; row-gap: 5rem; }
  .gallery-group + .gallery-group { margin-top: 7rem; }
  .gallery-group-studies .artwork,
  .gallery-group-outside .artwork { grid-column: 1 !important; grid-row: auto !important; align-self: start; }
  .artwork { width: max(var(--artwork-width, 100%), 50%); }
  .gallery-group-outside .artwork[data-work="three-figures-outside"] { width: 80%; }
  .gallery-group-outside .artwork[data-work="portrait-of-two-figures-outside"] { width: 58%; }
  .gallery-group-outside .artwork[data-work="study-for-portrait-of-a-figure-outside"] { width: 53%; }
  .gallery-section-divider { margin: 7rem 0; }
  .artwork-display { min-height: auto; }
  .artwork-display img { max-height: calc(100svh - var(--header-height) - 2rem); }
  .artwork-information { gap: 3rem; }
  .lightbox-inner { align-content: center; }
  .lightbox-caption { grid-template-columns: 1fr; gap: 0.25rem; }
  .lightbox-caption p { text-align: left; }
  .context-image { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .detail-pager { grid-template-columns: 1fr; }
  .detail-pager a:last-child { border-top: 1px solid var(--ink); border-left: 0; }
  .site-footer { grid-template-columns: 1fr; gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
