:root {
  --ivory: #f8f5ee;
  --paper: #eeebe1;
  --burgundy: #542332;
  --lapis: #34516a;
  --ink: #302924;
  --muted: #685b56;
  --line: #d7cabe;
  --sans: "Aptos", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 1rem/1.65 var(--sans); }
:lang(ar) { --sans: Tahoma, "Segoe UI", Arial, sans-serif; --serif: "Noto Naskh Arabic", "Traditional Arabic", "Times New Roman", serif; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: .3em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure, p { margin: 0; }
h1, h2, h3 { margin: 0; font: 400 var(--heading-size)/1.04 var(--serif); color: var(--burgundy); }
h1 em, h2 em { font-weight: inherit; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.24; letter-spacing: 0; }
:lang(ar) em { font-style: normal; }
.shell { width: min(100% - clamp(2.5rem, 11vw, 11rem), 87rem); margin-inline: auto; }
.skip { position: fixed; z-index: 3; inset-block-start: .5rem; inset-inline-start: .5rem; padding: .6rem 1rem; background: var(--ivory); transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { border-block-end: 1px solid var(--line); }
.masthead-inner { min-height: 5.2rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.wordmark { justify-self: start; color: var(--burgundy); font: 400 clamp(1.2rem, 2.1vw, 1.65rem)/1.15 var(--serif); text-decoration: none; white-space: nowrap; }
.wordmark span { font-style: italic; }
.sections, .languages { display: flex; align-items: center; gap: clamp(.85rem, 2.5vw, 2rem); font-size: .9rem; }
.sections a, .languages a { text-decoration: none; }
.sections { flex-wrap: wrap; row-gap: .3rem; }
.sections [aria-current] { text-decoration: underline; text-decoration-color: currentColor; }
.sections a:hover, .languages a:hover { color: var(--burgundy); text-decoration: underline; }
.languages { justify-self: end; gap: .75rem; color: var(--lapis); }
.languages a { display: inline-grid; min-height: 2.3rem; min-width: 1.8rem; align-content: center; text-align: center; }
.languages [aria-current] { color: var(--burgundy); text-decoration: underline; text-decoration-color: currentColor; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); padding-block: clamp(2.25rem, 5vw, 5rem) clamp(3.75rem, 7vw, 7rem); }
.hero-copy { padding-block: 1.25rem; }
.eyebrow { color: var(--lapis); font-size: .875rem; letter-spacing: .13em; text-transform: uppercase; margin-block-end: 1.4rem; }
:lang(ar) .eyebrow { letter-spacing: 0; }
.hero h1 { --heading-size: clamp(3rem, 6.05vw, 6.75rem); letter-spacing: -.055em; }
.hero h1 em { color: var(--burgundy); opacity: .94; }
.intro { max-width: 25rem; margin-block: 1.65rem 1.75rem; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.23rem); }
.primary { display: inline-block; padding: .78rem 1.15rem; color: var(--ivory); background: var(--burgundy); text-decoration: none; transition: background-color .2s ease; }
.primary:hover { background: var(--lapis); }
.hero-art { justify-self: end; width: min(100%, 30rem); }
.hero-art figcaption { margin-block-start: .75rem; color: var(--muted); font: italic 1rem/1.4 var(--serif); }
.art-link { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.art-link:disabled { cursor: default; opacity: 1; }
.art-link img { width: 100%; }
.gallery-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; border-block: 1px solid var(--line); padding-block: 1.6rem; }
.display-note { color: var(--muted); font-size: .875rem; }
.gallery-title h2 { --heading-size: clamp(2.2rem, 4vw, 3.8rem); letter-spacing: -.035em; }
.work { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; padding-block: clamp(2.75rem, 7vw, 7rem); border-block-end: 1px solid var(--line); }
.work:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.48fr); }
.work:nth-of-type(even) figure { grid-column: 2; grid-row: 1; }
.work:nth-of-type(even) .work-copy { grid-column: 1; grid-row: 1; justify-self: end; }
.work figure { width: min(100%, 44rem); }
#work-01 figure { max-width: 29rem; justify-self: center; }
.work-copy { max-width: 28rem; }
.work-copy h3 { --heading-size: clamp(2rem, 3.7vw, 4.25rem); letter-spacing: -.03em; text-wrap: balance; }
.work-copy .medium { margin-block-start: 1rem; color: var(--lapis); font-size: .875rem; }
.statement { margin-block-end: clamp(2.5rem, 6vw, 5rem); background: var(--paper); }
.statement-inner { padding-block: clamp(3rem, 7vw, 7rem); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.75rem, 6vw, 6rem); align-items: center; }
.statement h2 { --heading-size: clamp(2.7rem, 5.2vw, 5rem); letter-spacing: -.035em; }
.statement-text { max-width: 39rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.footer { min-height: 6rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1.25rem; font-size: .875rem; color: var(--burgundy); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.legal-page { max-width: 46rem; padding-block: clamp(2.5rem, 7vw, 6rem); }
.legal-page h1 { --heading-size: clamp(2.7rem, 5.5vw, 5rem); }
.legal-status { margin-block-start: 1rem; color: var(--muted); font-size: .9rem; }
.legal-page section { margin-block-start: 2rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--line); }
.legal-page h2 { --heading-size: clamp(1.7rem, 3vw, 2.4rem); }
.legal-page h3 { --heading-size: 1.25rem; margin-block-start: 1.4rem; }
.legal-page section p { margin-block-start: .7rem; }
.legal-page a { overflow-wrap: anywhere; }
.viewer { position: fixed; inset: 0; margin: 0; border: 0; max-width: none; max-height: none; width: 100%; height: 100%; padding: 3.5rem 1.5rem 1.5rem; background: #201921f7; color: var(--ivory); }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: #201921; }
.viewer img { width: auto; max-width: 100%; max-height: calc(100dvh - 5rem); object-fit: contain; }
.dismiss { position: absolute; inset-block-start: .5rem; inset-inline-end: 1rem; width: 2.75rem; height: 2.75rem; background: transparent; color: inherit; border: 1px solid #fff9; border-radius: 50%; font: 1.65rem/1 var(--sans); cursor: pointer; }
.dismiss:focus-visible { outline-color: var(--ivory); }
body:has(.viewer[open]) { overflow: hidden; }
@media (max-width: 54rem) {
  .masthead-inner { gap: .6rem 1rem; padding-block: .7rem; }
  .hero { gap: 1.65rem; }
}
@media (max-width: 42rem) {
  .masthead-inner { grid-template-columns: 1fr auto; }
  .masthead .sections { grid-column: 1 / -1; grid-row: 2; }
  .hero, .work, .work:nth-of-type(even), .statement-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-block: 0; }
  .hero h1 { --heading-size: clamp(2.7rem, 10.4vw, 4.7rem); }
  .hero-art { justify-self: start; }
  .work, .work:nth-of-type(even) { gap: 1.4rem; }
  .work:nth-of-type(even) figure, .work:nth-of-type(even) .work-copy { grid-column: auto; grid-row: auto; justify-self: start; }
  #work-01 figure { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary { transition: none; }
}

.artist-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
  column-gap: clamp(2.5rem, 7vw, 8rem);
  row-gap: 1.8rem;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.artist-intro > div:first-child { align-self: end; }
.artist-intro h1 { --heading-size: clamp(3rem, 8vw, 8.25rem); letter-spacing: -.05em; }
.artist-location { margin-block-start: 1.1rem; color: var(--muted); }
.artist-bio { max-width: 39rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.artist-bio p + p { margin-block-start: 1rem; }
.artist-portrait {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  width: min(100%, 27rem);
}
.artist-contact { background: var(--paper); }
.artist-contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem 5rem; align-items: start; padding-block: clamp(2.5rem, 6vw, 5.75rem); }
.artist-contact h2 { --heading-size: clamp(2.4rem, 5vw, 4.7rem); }
.contact-methods { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-block-start: .9rem; }
@media (max-width: 42rem) {
  .artist-intro, .artist-contact-inner { grid-template-columns: minmax(0, 1fr); }
  .artist-portrait { grid-column: auto; grid-row: auto; justify-self: start; }
}
