:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #26241e;
  --muted: #59564d;
  --line: #dedbd3;
  --accent: #66442b;
  --photo-field: #d9d3c7;
  --header-height: 72px;
  --display: "Cormorant Garamond", Georgia, serif;
  --text: "Manrope", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--text); }
a { color: inherit; text-underline-offset: .3em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
figure, h1, p { margin: 0; }
.skip { position: absolute; z-index: 2; top: -5rem; left: 1rem; padding: .65rem 1rem; background: var(--paper); }
.skip:focus { top: .5rem; }

.header { position: sticky; z-index: 1; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 clamp(14px, 3vw, 66px);
  width: min(100% - clamp(36px, 7vw, 104px), 1500px);
  min-height: calc(var(--header-height) - 1px);
  margin-inline: auto;
}
.wordmark { justify-self: start; font: 1.38rem/1.2 var(--display); white-space: nowrap; text-decoration: none; }
.nav, .languages { display: flex; flex-wrap: wrap; align-items: center; }
.nav { gap: 0 clamp(10px, 2.08vw, 36px); }
.nav a { font: clamp(.86rem, 1.25vw, 1.125rem)/1.3 var(--display); white-space: nowrap; text-decoration: none; }
.nav a, .languages a { display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover, .nav a[aria-current], .languages a:hover, .languages a[aria-current] { color: var(--accent); text-decoration: underline; }
.languages { gap: 0 .56rem; justify-self: end; border-left: 1px solid var(--line); padding-inline-start: clamp(10px, 1.5vw, 24px); }
.languages a { font-size: .77rem; letter-spacing: .075em; text-decoration: none; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
}
.stage {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  background: var(--photo-field);
}
.stage img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.panel { width: min(100%, 690px); margin: auto; padding: clamp(40px, 6vw, 96px) clamp(28px, 5vw, 76px); }
.panel h1 { font: clamp(2.85rem, 5vw, 3.94rem)/1.12 var(--display); letter-spacing: -.052em; overflow-wrap: anywhere; }
.panel-home h1 { max-width: 12ch; }
.lead { margin-top: .95rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); }
.studio-photo { max-width: 390px; margin-block: clamp(20px, 3vw, 40px) 0; }
.image-link { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; margin-top: .65rem; font-size: .875rem; color: var(--accent); }
.artist-details { margin-top: clamp(20px, 3vw, 38px); }
.biography { max-width: 54ch; color: var(--muted); }
.biography p + p { margin-top: 1.15em; }
.artist-illustration { max-width: 260px; margin-top: 1.6rem; }
.artist-illustration figcaption { margin-top: .65rem; color: var(--muted); font-size: .875rem; }

@media (min-width: 1080px) {
  .page-bio .layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .page-bio .panel { width: min(100%, 940px); }
  .artist-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .56fr);
    gap: clamp(20px, 2.4vw, 40px);
    align-items: start;
  }
  .artist-illustration { margin-top: 0; }
}

.page-work .layout { display: block; background: #fbfaf7; }
.page-work .panel {
  width: min(calc(100% - clamp(36px, 7vw, 104px)), 1230px);
  padding: clamp(42px, 6vw, 82px) 0 clamp(60px, 8vw, 112px);
  text-align: center;
}
.artwork-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(25px, 5vw, 70px);
}
.painting figcaption { margin-top: 1rem; }
.painting figcaption > span { display: block; font: clamp(1.22rem, 2vw, 1.75rem)/1.3 var(--display); }
.painting .image-link { margin-top: 0; }

@media (max-width: 700px) {
  .artwork-gallery { grid-template-columns: 1fr; row-gap: 40px; }
}

.hero-tools {
  position: absolute;
  z-index: 1;
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
}
.hero-tools .languages {
  padding: 0 .6rem;
  border: 1px solid rgb(255 255 255 / 58%);
  color: #fff;
  background: rgb(25 20 16 / 75%);
}
.hero-tools .languages a:hover, .hero-tools .languages a[aria-current] { color: #fff; }
.hero-tools a:focus-visible, .hero-nav a:focus-visible { outline-color: #fff; }
.page-home .layout {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  min-height: max(520px, 100vh);
  min-height: max(520px, 100svh);
  background: #28231e;
}
.page-home .stage { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.page-home .stage img {
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 67% top;
  filter: saturate(.78) contrast(1.09) brightness(1.015);
}
.page-home .stage::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse 62% 49% at 13% 100%, rgb(12 12 12 / 88%), rgb(12 12 12 / 54%) 51%, transparent 100%),
    linear-gradient(to top, rgb(12 12 12 / 38%), transparent 23%);
}
.page-home .panel {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 142px clamp(20px, 5vw, 77px) clamp(40px, 7vh, 100px);
  color: #fff;
  text-shadow: 0 2px 14px rgb(0 0 0 / 60%);
}
.page-home .panel h1 { font-size: clamp(3.3rem, 7vw, 5.25rem); }
.page-home .lead { color: #fff; }
.hero-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.55rem; }
.hero-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .42rem .83rem;
  border: 1px solid rgb(255 255 255 / 70%);
  color: #fff;
  background: rgb(25 20 16 / 58%);
  font-size: .92rem;
  text-decoration: none;
}
.hero-nav a:hover, .hero-nav a[aria-current] { background: rgb(25 20 16 / 80%); text-decoration: underline; }

@media (max-width: 820px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 .8rem; width: calc(100% - 32px); padding-block: .45rem .22rem; }
  .wordmark { font-size: 1.17rem; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 0 .65rem; }
  .nav a { min-height: 44px; }
  .languages { grid-column: 2; grid-row: 1; }
  .languages a { min-height: 36px; }
  .layout { display: block; }
  .stage { position: static; height: auto; }
  .stage img { height: auto; max-height: 48vh; max-height: 48svh; }
  .panel { padding: 36px max(20px, 5vw) 60px; }
  .panel h1 { font-size: clamp(2.65rem, 8vw, 3.6rem); }
  .panel-home h1 { max-width: none; }
  .page-home .stage img { object-position: 68% top; }
  .page-home .panel { padding-bottom: 40px; }
  .page-home .panel h1 { font-size: clamp(2.9rem, 11vw, 4.4rem); }
  .page-home .stage::after {
    background: linear-gradient(to top, rgb(12 12 12 / 88%), rgb(12 12 12 / 56%) 24%, transparent 57%);
  }
}
