/* Open Easel's quiet gallery layer: typography, artwork, and space. */
:root {
  --oe-paper: #fff;
  --oe-ink: #101010;
  --oe-soft: #f5f5f2;
  --oe-gallery-width: 1320px;
}

html body[class] {
  background: var(--oe-paper) !important;
  color: var(--oe-ink) !important;
}

html body[class] :is(.site-header, .site-footer) {
  background: var(--oe-paper) !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body[class] .site-header {
  height: 78px !important;
  min-height: 78px !important;
  backdrop-filter: none !important;
}

html body[class] .site-header .nav-inner {
  width: min(calc(100% - 64px), var(--oe-gallery-width)) !important;
  max-width: var(--oe-gallery-width) !important;
  min-height: 78px !important;
  height: 78px !important;
  gap: clamp(28px, 4vw, 74px) !important;
}

html body[class] .site-header .brand,
html body[class] .site-footer .brand {
  color: var(--oe-ink) !important;
  font-family: var(--oe-body-font) !important;
  font-size: clamp(1.35rem, 1.8vw, 1.72rem) !important;
  font-weight: 600 !important;
  letter-spacing: -.065em !important;
  text-decoration: none !important;
  white-space: nowrap;
}

html body[class] .site-header .site-nav {
  gap: clamp(16px, 1.8vw, 32px) !important;
}

html body[class] .site-header .site-nav .nav-link,
html body[class] .site-header .site-nav .nav-button {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 5px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--oe-ink) !important;
  font-size: .84rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: -.02em !important;
  text-decoration: none !important;
  transform: none !important;
  transition: opacity .25s ease !important;
}

html body[class] .site-header .site-nav .nav-button {
  font-weight: 600 !important;
  margin: 0 0 0 clamp(6px, 1vw, 18px) !important;
}

html body[class] .site-header .site-nav .nav-link::after,
html body[class] .site-header .site-nav .nav-button::after {
  content: none !important;
}

html body[class] .site-header .site-nav .nav-link:hover {
  opacity: .52 !important;
  color: var(--oe-ink) !important;
  transform: none !important;
}

/* Submit art stays typographic on hover; its arrow supplies the response. */
html body[class] .site-header .site-nav .nav-button:hover {
  opacity: 1 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--oe-ink) !important;
  -webkit-text-fill-color: var(--oe-ink) !important;
  box-shadow: none !important;
  transform: none !important;
}
html body[class] .site-header .site-nav .nav-button:focus-visible {
  opacity: 1 !important;
  background: transparent !important;
  color: var(--oe-ink) !important;
  -webkit-text-fill-color: var(--oe-ink) !important;
  outline: 2px solid currentColor !important;
  outline-offset: 4px !important;
}

html body[class] .site-header .site-nav [aria-current="page"] {
  font-weight: 700 !important;
}

html body[class] .site-footer .footer-inner {
  width: min(calc(100% - 64px), var(--oe-gallery-width)) !important;
  max-width: var(--oe-gallery-width) !important;
  padding: clamp(54px, 7vw, 108px) 0 38px !important;
  gap: 30px !important;
  align-items: start !important;
}

html body[class] .site-footer .footer-nav {
  gap: 12px clamp(18px, 2.2vw, 36px) !important;
}

html body[class] .site-footer .footer-nav a {
  color: var(--oe-ink) !important;
  font-size: .84rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transform: none !important;
  transition: opacity .25s ease !important;
}

html body[class] .site-footer .footer-nav a:hover {
  color: var(--oe-ink) !important;
  opacity: .52;
}

html body[class] main :is(h1, h2, h3, h4) {
  color: var(--oe-ink) !important;
  font-family: var(--oe-body-font) !important;
  font-weight: 500 !important;
  letter-spacing: -.055em !important;
}

html body[class] main :is(p, li, small, figcaption) {
  color: var(--oe-ink) !important;
}

html body[class] main a { text-decoration-thickness: 1px; }
html body[class] main .gallery-arrow-link,
html body[class] main .gallery-back { text-decoration: none !important; }
html body[class] main :is(.gallery-arrow-link, .gallery-back):hover { opacity: .55; }

/* Keep the artist index calm without hiding its search affordance. */
html body.gallery-directory-page .gallery-directory-tools {
  display: flex;
  align-items: end;
  padding-bottom: clamp(25px, 3vw, 42px) !important;
}

html body.gallery-directory-page .gallery-directory-tools [data-artist-filter] {
  width: min(100%, 470px);
}

html body.gallery-directory-page .gallery-directory-tools label {
  color: var(--oe-ink) !important;
  font-size: .84rem !important;
  font-weight: 500 !important;
}

html body.gallery-directory-page .gallery-directory-tools input {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--oe-soft) !important;
  box-shadow: none !important;
  color: var(--oe-ink) !important;
  font-size: .94rem !important;
  text-decoration: none !important;
}

html body.gallery-directory-page .gallery-directory-tools input::placeholder {
  color: #555 !important;
  opacity: 1;
}

html body.gallery-directory-page .gallery-directory-tools input:focus-visible {
  outline: 2px solid var(--oe-ink) !important;
  outline-offset: 2px !important;
}

html body.gallery-directory-page .gallery-directory-tools p {
  color: var(--oe-ink) !important;
  font-size: .8rem !important;
}

html body.gallery-directory-page .gallery-card-caption h2 {
  font-weight: 500 !important;
}

/* Editorial scroll: the heading stays still while credited art crosses it. */
html body.gallery-home-page .oe-slow-look {
  position: relative;
  isolation: isolate;
  padding: clamp(46px, 7vw, 100px) 0 clamp(65px, 9vw, 136px);
  background: var(--oe-paper);
}

html body.gallery-home-page .oe-slow-look-inner {
  width: min(calc(100% - 64px), var(--oe-gallery-width));
  margin-inline: auto;
}

html body.gallery-home-page .oe-slow-look-copy {
  position: sticky;
  top: clamp(100px, 18vh, 220px);
  z-index: 0;
  max-width: 980px;
  min-height: 42vh;
  pointer-events: none;
}

html body.gallery-home-page .oe-slow-look-copy h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 8.7rem) !important;
  font-weight: 500 !important;
  line-height: .94;
  letter-spacing: -.08em !important;
}

html body.gallery-home-page .oe-slow-look-copy p {
  max-width: 42ch;
  margin: 24px 0 0;
  font-size: clamp(.94rem, 1.3vw, 1.12rem);
  line-height: 1.45;
  letter-spacing: -.015em;
}

html body.gallery-home-page .oe-slow-look-art {
  position: relative;
  z-index: 1;
  margin-top: -16vh;
}

html body.gallery-home-page .oe-slow-look-art figure {
  width: min(42%, 520px);
  margin: 0 0 clamp(58px, 8vw, 130px);
  background: var(--oe-paper);
}

html body.gallery-home-page .oe-slow-look-art figure:nth-child(1) { margin-left: auto; margin-right: 2%; }
html body.gallery-home-page .oe-slow-look-art figure:nth-child(2) { width: min(44%, 570px); margin-left: 7%; }
html body.gallery-home-page .oe-slow-look-art figure:nth-child(3) { width: min(34%, 430px); margin-left: auto; margin-right: 10%; }

html body.gallery-home-page .oe-slow-look-art img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--oe-paper);
}

html body.gallery-home-page .oe-slow-look-art figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: -.01em;
}

html body.gallery-home-page .oe-slow-look-art figcaption a {
  color: var(--oe-ink);
  text-decoration: none;
}

html body.gallery-home-page .oe-slow-look-art figcaption a:hover { opacity: .55; }
html body.gallery-home-page .oe-slow-look-end { display: flex; justify-content: flex-end; }
html body.gallery-home-page .oe-slow-look-end a {
  color: var(--oe-ink);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html body.gallery-home-page .oe-slow-look-art figure:nth-child(2),
    html body.gallery-home-page .oe-slow-look-art figure:nth-child(3) {
      animation: oe-art-unmask linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 42%;
    }
  }
}

@keyframes oe-art-unmask {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

@media (min-width: 901px) and (max-width: 1180px) {
  html body[class] .site-header .menu-toggle { display: none !important; }
  html body[class] .site-header .site-nav {
    display: flex !important;
    position: static !important;
    width: auto !important;
    margin-left: auto !important;
    padding: 0 !important;
    flex-direction: row !important;
    gap: 16px !important;
  }
  html body[class] .site-header .site-nav .nav-link,
  html body[class] .site-header .site-nav .nav-button {
    width: auto !important;
    margin: 0 !important;
    font-size: .78rem !important;
  }
}

@media (max-width: 900px) {
  html body[class] .site-header,
  html body[class] .site-header .nav-inner { height: 66px !important; min-height: 66px !important; }
  html body[class] .site-header .nav-inner,
  html body[class] .site-footer .footer-inner { width: calc(100% - 32px) !important; }
  html body[class] .site-header .site-nav {
    position: fixed !important;
    top: 66px !important;
    right: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    max-height: calc(100dvh - 66px) !important;
    overflow-y: auto !important;
    padding: 18px 28px 28px !important;
    gap: 0 !important;
    background: var(--oe-paper) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  html body[class] .site-header .site-nav .nav-link,
  html body[class] .site-header .site-nav .nav-button {
    width: 100% !important;
    min-height: 40px !important;
    padding: 9px 8px !important;
    font-size: .95rem !important;
    text-align: left !important;
    justify-content: flex-start !important;
    margin: 0 !important;
  }
  html body.gallery-home-page .oe-slow-look-inner { width: calc(100% - 32px); }
  html body.gallery-home-page .oe-slow-look-copy { top: 84px; min-height: 35vh; }
  html body.gallery-home-page .oe-slow-look-copy h2 { font-size: clamp(3.1rem, 10vw, 5.4rem) !important; }
  html body.gallery-home-page .oe-slow-look-art { margin-top: -3vh; }
  html body.gallery-home-page .oe-slow-look-art figure { width: min(73%, 430px); }
  html body.gallery-home-page .oe-slow-look-art figure:nth-child(2) { width: min(75%, 440px); margin-left: 0; }
  html body.gallery-home-page .oe-slow-look-art figure:nth-child(3) { width: min(68%, 400px); margin-right: 2%; }
}

@media (max-width: 620px) {
  html body.gallery-home-page .oe-slow-look { padding-block: 70px 84px; }
  html body.gallery-home-page .oe-slow-look-copy {
    position: relative;
    top: auto;
    min-height: 0;
    margin-bottom: 42px;
  }
  html body.gallery-home-page .oe-slow-look-copy h2 { font-size: clamp(3rem, 12vw, 4.5rem) !important; }
  html body.gallery-home-page .oe-slow-look-copy p { margin-top: 16px; }
  html body.gallery-home-page .oe-slow-look-art { margin-top: 0; }
  html body.gallery-home-page .oe-slow-look-art figure,
  html body.gallery-home-page .oe-slow-look-art figure:nth-child(2),
  html body.gallery-home-page .oe-slow-look-art figure:nth-child(3) {
    width: min(88%, 450px);
    margin-bottom: 54px;
  }
  html body.gallery-home-page .oe-slow-look-art figure:nth-child(2) { margin-left: 0; }
  html body.gallery-home-page .oe-slow-look-art figure:nth-child(3) { margin-left: auto; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html body.gallery-home-page .oe-slow-look-art figure { animation: none !important; clip-path: none !important; }
}


/* Final vertical rhythm across the gallery and editorial pages. */
html body[class] .site-footer .footer-inner {
  padding-top: clamp(42px, 5vw, 78px) !important;
}
html body.gallery-home-page .gallery-home-mosaic {
  padding-bottom: clamp(24px, 4vw, 54px) !important;
}
html body.gallery-home-page .oe-slow-look {
  padding-top: clamp(42px, 5vw, 76px);
}
html body.page-about .oe-page-intro {
  padding-top: clamp(42px, 5vw, 75px);
  padding-bottom: clamp(34px, 4vw, 58px);
}
html body.page-about .oe-about-mission {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(46px, 6vw, 86px);
}
html body.page-about .oe-founder {
  padding-top: clamp(28px, 4vw, 54px);
}
html body.page-ap .oe-link-grid a {
  position: relative;
  min-height: 190px;
  padding-right: clamp(30px, 4vw, 50px);
  cursor: pointer;
}
/* An always-visible arrow makes both large resource links unmistakable. */
html body.page-ap .oe-link-grid a::after {
  content: "↗";
  position: absolute;
  top: 22px;
  right: 2px;
  color: var(--oe-ink);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 400;
  line-height: 1;
  transition: transform .35s cubic-bezier(.2, .75, .2, 1);
}
html body.page-ap .oe-link-grid a:is(:hover, :focus-visible)::after {
  transform: translate3d(3px, -3px, 0);
}
@media (prefers-reduced-motion: reduce) {
  html body.page-ap .oe-link-grid a::after { transition: none; }
}
@media (max-width: 620px) {
  html body.page-about .oe-page-intro { padding-top: 42px; padding-bottom: 36px; }
  html body.page-about .oe-about-mission { padding-top: 26px; padding-bottom: 45px; }
  html body.page-about .oe-founder { padding-top: 26px; }
  html body.page-ap .oe-link-grid a { min-height: 0; }
}


/* Source-backed artwork media captions. */
html body.gallery-profile-page :is(.gallery-profile-feature, .gallery-profile-more) .oe-work-medium {
  display: block;
  margin: 0;
  padding-top: 7px;
  color: #171717 !important;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.01em;
  text-align: left;
}


/* Keep the joined wordmark legible at small sizes. */
html body[class] :is(.site-header, .site-footer) .brand span {
  word-spacing: normal !important;
  letter-spacing: -.045em !important;
}

/* The gallery navigation uses clean type and one quiet directional response. */
html body[class] .site-header .site-nav { border: 0 !important; box-shadow: none !important; }
html body[class] .site-header .site-nav .nav-button {
  border: 0 !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
}
html body[class] .site-header .site-nav .nav-button span[aria-hidden="true"] {
  display: inline-block;
  transition: transform .3s cubic-bezier(.2, .75, .2, 1);
}
html body[class] .site-header .site-nav .nav-button:hover span[aria-hidden="true"] {
  transform: translate3d(2px, -2px, 0);
}
@media (prefers-reduced-motion: reduce) {
  html body[class] .site-header .site-nav .nav-button span[aria-hidden="true"] { transition: none; }
}

/* Artwork motion for the directory, artist galleries, and AP studies. */
html.oe-gallery-motion body.gallery-directory-page .gallery-card figure {
  transform: perspective(900px) rotateX(var(--oe-dir-tilt, 0deg)) scale(var(--oe-dir-scale, 1));
  transform-origin: center center;
  will-change: transform;
}
html.oe-gallery-motion body.gallery-profile-page .gallery-profile-more figure {
  clip-path: inset(0 var(--oe-profile-mask, 100%) 0 0);
  transform: translate3d(var(--oe-profile-x, 0px), 0, 0);
  will-change: clip-path, transform;
}
html.oe-gallery-motion body.gallery-profile-page .gallery-profile-more figure:nth-child(even) {
  clip-path: inset(0 0 0 var(--oe-profile-mask, 100%));
}
html.oe-gallery-motion body.portfolio-example-page .portfolio-study-gallery figure {
  clip-path: circle(var(--oe-study-radius, 0%) at var(--oe-study-center, 50%) 50%);
  will-change: clip-path;
}
html.oe-gallery-motion body.portfolio-example-page .portfolio-study-gallery figure:nth-child(even) {
  --oe-study-center: 70%;
}
html.oe-gallery-motion body.portfolio-example-page .portfolio-study-gallery figure:nth-child(odd) {
  --oe-study-center: 30%;
}
html.oe-gallery-motion body.gallery-directory-page .gallery-card:focus-within figure,
html.oe-gallery-motion body.gallery-profile-page .gallery-profile-more figure:focus-within,
html.oe-gallery-motion body.portfolio-example-page .portfolio-study-gallery figure:focus-within {
  clip-path: none !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html body.gallery-directory-page .gallery-card figure,
  html body.gallery-profile-page .gallery-profile-more figure,
  html body.portfolio-example-page .portfolio-study-gallery figure {
    clip-path: none !important;
    transform: none !important;
    will-change: auto !important;
  }
}
