/* Maria Nogueira Nössing: a static copy of the Squarespace site's look */

:root {
  --bg: #efede6;
  --ink: #000;
  --title: #222;
  --link: #111;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: #444; }
img { border: 0; }
strong { font-weight: 600; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 1em 0 .5em; font-weight: 400; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- canvas ---------- */
#canvas {
  max-width: 1200px;
  margin: 45px auto;
  padding: 35px;
  background: var(--bg);
}

/* ---------- header ---------- */
#header { margin-bottom: 44px; }
#header::after { content: ""; display: table; clear: both; }

#logo { float: left; }
.logo {
  margin: 0;
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 39px;
  line-height: 1.2em;
  letter-spacing: 1px;
  color: var(--title);
}
.logo a { color: var(--title); }
.logo a:hover { color: #444; }

#topNav { float: right; }
#topNav ul, #mobileNav ul { list-style: none; margin: 0; padding: 0; }
#topNav nav { float: left; }
#topNav li { float: left; margin-right: 31px; }
#topNav li:last-child { margin-right: 0; }
#topNav a, #mobileMenuLink, #mobileNav a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .26px;
}
#topNav a {
  display: inline-block;
  line-height: 30px;
  padding: 8.4px 0;
  color: #000;
}
#topNav a:hover { color: #000; }

#mobileMenuLink { display: none; }
#mobileNav { display: none; }

/* ---------- page + footer ---------- */
#page { padding: 51px 0; position: relative; }
#page::after { content: ""; display: table; clear: both; }
#footer { margin-top: 18px; }
#footerBlock { min-height: 34px; }

/* footer: legal links */
.legal-links { display: flex; justify-content: center; gap: 24px; padding: 8px 0; }
.legal-links a { font-size: 12px; text-transform: uppercase; letter-spacing: .26px; color: #555; }
.legal-links a:hover { color: #000; }

/* legal pages: Impressum, Privacy */
.legal { max-width: 640px; margin: 0 auto; text-wrap: pretty; }
.legal h1 { text-align: center; text-wrap: balance; }
.legal h2 { margin: 2em 0 .4em; font-size: 14px; font-weight: 600; line-height: 1.7em; }
.legal p { margin: 0 0 1em; }
.legal .missing { background: #ffe27a; color: #000; padding: 0 4px; }
.legal h3 { margin: 1.5em 0 .4em; font-size: 14px; font-weight: 400; font-style: italic; line-height: 1.7em; }
.legal-table { border-collapse: collapse; margin: 0 0 1em; }
.legal-table td { padding: 4px 40px 4px 0; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.withdraw-form { margin: 0 0 1em; }
.withdraw-form label, .shop-form select { display: block; }
.withdraw-form label { margin: 0 0 12px; }
.withdraw-form input, .shop-form select {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  font: inherit; color: #000; background: transparent;
  border: 1px solid rgba(0, 0, 0, .35); border-radius: 0;
}
.withdraw-form .button-block { text-align: left; margin-top: 18px; }
.withdraw-form .button { cursor: pointer; }

/* ---------- shop ---------- */
/* menu at the top of the shop: Prints / Paintings */
.shop-nav { display: flex; justify-content: center; gap: 34px; margin: 0 0 51px; }
.shop-nav a {
  font-family: var(--sans); font-weight: 300; font-size: 13px; text-transform: uppercase; letter-spacing: .26px;
  color: #555; padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.shop-nav a:hover { color: #000; }
.shop-nav a[aria-current="page"] { color: #000; border-bottom-color: #000; }
/* the print sits on a white card, so its beige paper stands apart from the beige page */
.sheet {
  display: block; width: 100%; height: auto; padding: 8%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .07);
}
.shop-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 51px 34px; }
.shop-item { display: block; width: calc(50% - 17px); max-width: 420px; text-align: center; color: #000; }
.shop-item.is-wide { width: 100%; max-width: 874px; }
/* paintings: one under the other, each as wide as its canvas compared with the largest (--scale) */
.shop-grid.is-stack { flex-direction: column; align-items: center; }
.shop-item.is-painting { width: calc(min(600px, 100%) * var(--scale, 1)); max-width: none; }
/* framed photo first; on hover the print fades in on top */
.shop-item-media { position: relative; display: block; aspect-ratio: 1400 / 1610; overflow: hidden; }
.shop-item-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-item-print {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 8%; background: var(--bg); opacity: 0; transition: opacity .3s ease;
}
.shop-item-print .sheet { width: auto; max-width: 100%; max-height: 100%; }
.shop-item:hover .shop-item-print, .shop-item:focus-visible .shop-item-print { opacity: 1; }
/* prints without a framed photo show the print itself; it lifts a little on hover */
.shop-item-media.is-print .shop-item-print { opacity: 1; }
.shop-item-media.is-print .sheet { transition: transform .2s ease; }
.shop-item:hover .shop-item-media.is-print .sheet { transform: translateY(-4px); }
/* an original is shown as its photo */
.plain { display: block; width: 100%; height: auto; }
/* product page: the print zooms in under the pointer */
.zoom { position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .07); }
.zoom:has(.plain) { box-shadow: none; }
.zoom .sheet, .zoom .plain { box-shadow: none; transition: transform .25s ease; }
.zoom.is-zoomed .sheet, .zoom.is-zoomed .plain { transform: scale(2.5); }
@media (hover: hover) and (pointer: fine) { .zoom { cursor: zoom-in; } }
@media (prefers-reduced-motion: reduce) { .shop-item-print, .zoom .sheet, .zoom .plain, .shop-item-media.is-print .sheet { transition: none; } }
.shop-item-title {
  display: block; margin-top: 28px;
  font-family: var(--serif); font-size: 36px; line-height: 1.1em; color: #404040;
}
.shop-item-price { display: block; margin-top: 6px; }

.shop-product {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 68px; align-items: start; max-width: 1000px; margin: 0 auto;
}
.shop-title {
  margin: 0 0 .3em;
  font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1.2em; color: var(--title);
}
/* size guide: each size drawn to scale as a white sheet */
.shop-sizes { margin: 51px 0 0; }
.shop-sizes-row { display: flex; align-items: flex-end; justify-content: center; gap: 8%; }
.size-box { display: flex; flex-direction: column; align-items: center; text-align: center; }
.size-paper {
  display: block; width: 100%; padding: 7%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .07);
}
.size-paper img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* images that already are the whole printed sheet need no extra white border */
.sheet.is-page, .size-paper.is-page { padding: 0; }
.size-paper.is-page img { object-fit: cover; }
.size-label { margin-top: 14px; }
.size-dims { color: #555; }
.shop-sizes figcaption { margin-top: 18px; text-align: center; color: #555; }
.shop-form fieldset { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.shop-form legend { margin-bottom: 6px; padding: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .26px; }
.choice {
  display: flex; align-items: baseline; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .12); cursor: pointer;
}
.choice:first-of-type { border-top: 1px solid rgba(0, 0, 0, .12); }
.choice input { margin: 0; accent-color: #000; }
.choice-text { flex: 1; }
.choice-name, .choice-note { display: block; }
.choice-note { color: #555; }
.choice.is-sold-out { cursor: default; color: #555; }
.shop-photo { margin: 51px 0 0; }
.shop-photo img { display: block; width: 100%; height: auto; }
.shop-photo figcaption { margin-top: 10px; text-align: center; color: #555; }
.shop-total { margin: 0 0 16px; }
.shop-dialogue { margin: 0 0 .8em; padding-left: 14px; border-left: 1px solid rgba(0, 0, 0, .2); }
.shop-dialogue em { color: #555; }
.shop-form .button-block { text-align: left; }
.shop-buy { min-width: 200px; text-align: center; }
.button-block .shop-buy.is-disabled, .button-block .shop-buy.is-disabled:hover {
  background: transparent; color: #272727; box-shadow: inset 0 0 0 1px #272727; opacity: 1; cursor: default;
}
.shop-small { margin-top: 22px; color: #555; }
.shop-small a { color: #111; border-bottom: 1px solid rgba(17, 17, 17, .2); }
.shop-page .project-controls { margin-top: 51px; text-align: center; }
.shop-page #projectNav { float: none; }

/* ---------- layout grid (Squarespace 12-column rows) ---------- */
.sqs-layout > .sqs-row { margin-left: -17px; margin-right: -17px; }
.sqs-row::after { content: ""; display: table; clear: both; }
.sqs-col { float: left; }
.sqs-col-12 { width: 100%; }
.sqs-col-11 { width: 91.6667%; }
.sqs-col-10 { width: 83.3333%; }
.sqs-col-9 { width: 75%; }
.sqs-col-8 { width: 66.6667%; }
.sqs-col-7 { width: 58.3333%; }
.sqs-col-6 { width: 50%; }
.sqs-col-5 { width: 41.6667%; }
.sqs-col-4 { width: 33.3333%; }
.sqs-col-3 { width: 25%; }
.sqs-col-2 { width: 16.6667%; }
.sqs-col-1 { width: 8.3333%; }
/* nested columns are a share of their parent */
.sqs-col-12 .sqs-col-12 { width: 100%; }
.sqs-col-12 .sqs-col-8 { width: 66.6667%; }
.sqs-col-12 .sqs-col-6 { width: 50%; }
.sqs-col-12 .sqs-col-4 { width: 33.3333%; }
.sqs-col-12 .sqs-col-3 { width: 25%; }
.sqs-col-12 .sqs-col-2 { width: 16.6667%; }
.sqs-col-7 .sqs-col-7 { width: 100%; }
.sqs-col-7 .sqs-col-6 { width: 85.7143%; }
.sqs-col-7 .sqs-col-5 { width: 71.4286%; }
.sqs-col-7 .sqs-col-4 { width: 57.1429%; }
.sqs-col-7 .sqs-col-3 { width: 42.8571%; }
.sqs-col-7 .sqs-col-2 { width: 28.5714%; }
.sqs-col-6 .sqs-col-6 { width: 100%; }
.sqs-col-6 .sqs-col-4 { width: 66.6667%; }
.sqs-col-6 .sqs-col-3 { width: 50%; }
.sqs-col-6 .sqs-col-2 { width: 33.3333%; }
.sqs-col-8 .sqs-col-8 { width: 100%; }
.sqs-col-8 .sqs-col-6 { width: 75%; }
.sqs-col-8 .sqs-col-4 { width: 50%; }
.sqs-col-8 .sqs-col-2 { width: 25%; }

.sqs-block { padding: 17px; clear: both; }
.sqs-row .sqs-block:first-child { padding-top: 0; }
.sqs-row .sqs-block:first-child:last-child { padding-bottom: 0; }
.sqs-block + .sqs-row .sqs-block:first-child { padding-top: 17px; }
.sqs-block + .sqs-row .sqs-block:first-child:last-child { padding-bottom: 17px; }
.sqs-row + .sqs-row .sqs-block:first-child { padding-top: 17px; }
.sqs-row + .sqs-row .sqs-block:first-child:last-child { padding-bottom: 17px; }
.sqs-layout > .sqs-row:first-child > .sqs-col:first-child > .sqs-block:not(:first-child):last-child,
.sqs-block + .sqs-row .sqs-block:last-child { padding-bottom: 17px; }
.sqs-row + .sqs-row:not(:last-child) .sqs-block:last-child { padding-bottom: 17px; }

/* spacers */
.spacer-block .sqs-block-content { visibility: hidden; }
.spacer-block.sized .sqs-block-content { min-height: 34px; box-sizing: content-box; height: 34px; }

/* text blocks */
.sqs-html-content > :first-child { margin-top: 0; }
.sqs-html-content > :last-child { margin-bottom: 0; }
.sqs-html-content h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.5em;
  color: var(--title);
  margin: 0 0 .5em;
}
.sqs-html-content a,
.project-description a { border-bottom: 1px solid rgba(17, 17, 17, .2); }

/* button blocks ("Order now") */
.button-container { text-align: center; }
.button-block .button {
  display: inline-block;
  padding: 13px 26px;
  background: #272727;
  color: #fff;
  font: 600 12px/17px "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 0;
}
.button-block .button:hover { opacity: .8; color: #fff; }

/* image blocks */
.image-block figure { margin: 0 auto; }
.image-block .image-wrap { position: relative; overflow: hidden; }
.image-block .image-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.image-block .image-wrap a { border: 0; }
.image-caption-wrapper { padding-top: 18px; }
.sqs-html-content p:empty { min-height: 1.7em; }

/* gallery block: slideshow */
.slideshow { position: relative; aspect-ratio: 4 / 3; }
.slideshow .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
}
.slideshow .slide.is-active { opacity: 1; }
.slideshow img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* gallery block: rows of one, two or three images at one height (Illustration page) */
.gallery-rows { display: flex; flex-direction: column; gap: 28px; }
.gallery-row { display: flex; gap: 28px; }
.gallery-row .slide { min-width: 0; }
.gallery-row .margin-wrapper { position: relative; }
.gallery-row a { display: block; position: absolute; inset: 0; border: 0; }
.gallery-row img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 750px) {
  .gallery-rows, .gallery-row { gap: 14px; }
  .gallery-row { flex-wrap: wrap; }
  .gallery-row[data-count="3"] .slide:first-child { flex-basis: 100% !important; }
}
/* gallery block: grid with lightbox */
.gallery-grid { display: flex; flex-wrap: wrap; margin-right: -35px; }
.gallery-grid .slide { width: 50%; }
.gallery-grid .margin-wrapper { margin: 0 35px 35px 0; position: relative; aspect-ratio: 3 / 2; }
.gallery-grid a { display: block; position: absolute; inset: 0; border: 0; }
.gallery-grid img { width: 100%; height: 100%; object-fit: contain; display: block; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: calc(100% - 160px); max-height: calc(100% - 80px); object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 300 32px/1 var(--sans); padding: 20px; opacity: .7;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- index thumbnails (Works, Books) ---------- */
#projectThumbs { clear: both; }
#projectThumbs > .wrapper { width: 104.5%; margin-left: -4.5%; margin-top: -4.5%; }
#projectThumbs > .wrapper::after { content: ""; display: table; clear: both; }
#projectThumbs .project {
  float: left; display: block;
  margin-left: 4.3062201%; margin-top: 4.5%; width: 45.6937799%;
  position: relative;
}
#projectThumbs .project:nth-child(2n+1) { clear: left; }
#projectThumbs .project-image { margin-bottom: 4.5%; }
/* the green only shows on hover, so it never flashes while photos load */
#projectThumbs .project:hover .project-image { background: #a1ff00; }
/* Work: a second image from the project fades in instead of the green */
#projectThumbs[data-index="/works/"] .project:hover .project-image { background: none; }
#projectThumbs[data-index="/works/"] .project:hover .intrinsic { opacity: 1; }
#projectThumbs .intrinsic .hover-img { opacity: 0; transition: opacity .25s ease-out; }
#projectThumbs .project.has-hover:hover .hover-img { opacity: 1; }
/* projects with only one image zoom in a little instead */
#projectThumbs[data-index="/works/"] .project:not(.has-hover) .intrinsic img { transition: transform .5s ease-out; }
#projectThumbs[data-index="/works/"] .project:not(.has-hover):hover .intrinsic img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  #projectThumbs .intrinsic .hover-img, #projectThumbs[data-index="/works/"] .project .intrinsic img { transition: none; }
}
#projectThumbs .intrinsic {
  padding-bottom: 124%; position: relative; overflow: hidden; line-height: 0;
  opacity: 1; transition: opacity .14s ease-out;
}
#projectThumbs .project:hover .intrinsic { opacity: 0; }
#projectThumbs .intrinsic img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
#projectThumbs .project-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 44px; line-height: 1.1em;
  text-align: center; color: #404040;
}

/* ---------- an opened project ---------- */
#projectPages .project { margin-bottom: 51px; }
#projectPages .project-meta { margin: 0 auto 34px; max-width: 465px; text-align: center; }
#projectPages .project-title {
  margin: 0 0 .5em;
  font-family: var(--serif); font-weight: 400;
  font-size: 22.4px; line-height: 1.8em; letter-spacing: .06em;
  text-transform: capitalize; color: var(--title);
}
#projectPages .image { position: relative; }
#projectPages .image-list img { display: block; margin: 0 auto .5em; max-width: 100%; height: auto; }
#projectPages .image-meta { margin: .5em 0 2em; text-align: center; }
#projectPages .video-wrap { position: relative; padding-top: 56.25%; margin-bottom: .5em; }
#projectPages .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-controls { clear: both; }
.project-controls::after { content: ""; display: table; clear: both; }
#projectNav { float: right; }
#projectNav a { color: #000; }
#projectNav .disabled { color: rgba(0, 0, 0, .5); cursor: default; }

/* ---------- phones and small tablets ---------- */
@media only screen and (max-width: 767px) {
  .gallery-grid .slide { width: 50%; }
}

@media only screen and (max-width: 750px) {
  #canvas { margin: 0 auto; padding: 0 20px 20px; }
  #header { margin-bottom: 30px; }
  #logo { float: none; }
  .logo { display: block; text-align: center; letter-spacing: 0; margin: 0; }
  #topNav { display: none; }

  /* two-line menu icon, top right; the name stays centred below it */
  #mobileMenuLink { display: flex; justify-content: flex-end; margin: 0 0 25px; padding: 15px 0; }
  #mobileMenuLink a, #mobileNav .menu-close {
    display: block; position: relative;
    width: 44px; height: 40px; margin-right: -9px; color: #000;
  }
  #mobileMenuLink .bar, #mobileNav .menu-close .bar {
    position: absolute; left: 9px; top: 50%;
    width: 26px; height: 1px; margin-top: -.5px; background: #000;
  }
  #mobileMenuLink .bar:first-child, #mobileNav .menu-close .bar:first-child { transform: translateY(-4px); }
  #mobileMenuLink .bar:last-child, #mobileNav .menu-close .bar:last-child { transform: translateY(3px); }
  /* when the menu opens, the two lines turn into an X in the same spot */
  #mobileNav .menu-close .bar { transition: transform .25s ease .05s; }
  #mobileNav.is-open .menu-close .bar:first-child { transform: rotate(45deg); }
  #mobileNav.is-open .menu-close .bar:last-child { transform: rotate(-45deg); }
  @media (prefers-reduced-motion: reduce) { #mobileNav .menu-close .bar { transition: none; } }

  /* the phone menu opens as its own screen over the page */
  #mobileNav {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 900;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
    overflow-y: auto;
  }
  #mobileNav.is-open { opacity: 1; visibility: visible; transition: opacity .2s ease; }
  #mobileNav .menu-close {
    position: absolute; top: 15px; right: 20px; z-index: 1;
    margin: 0 -9px 0 0; padding: 0;
    background: none; border: 0; cursor: pointer;
  }
  #mobileNav nav { flex: 1; display: flex; align-items: center; justify-content: center; }
  #mobileNav ul { padding: 0; }
  #mobileNav a {
    display: block; text-align: center;
    font-size: 20px; line-height: 2.6em; color: rgba(0, 0, 0, .7);
  }
  #mobileNav a:hover, #mobileNav .active-link a { color: #000; }
  body.menu-open { overflow: hidden; }

  .shop-grid { gap: 40px; }
  .shop-item { width: 100%; }
  /* phones: print, then name and price, then the framed photo */
  .shop-product { display: flex; flex-direction: column; gap: 34px; }
  .shop-product-image { display: contents; }
  .shop-product-info { order: 1; }
  .shop-photo, .shop-sizes { order: 2; margin-top: 17px; }
  .shop-title { text-align: center; }
  .legal-links { flex-wrap: wrap; gap: 4px 20px; max-width: 240px; margin: 0 auto; }

  /* one column on phones */
  #projectThumbs > .wrapper { width: 100%; margin: 0; }
  #projectThumbs .project { float: none; width: 100%; margin: 0 0 30px; }
  #projectThumbs .project:last-child { margin-bottom: 0; }
  #projectThumbs .project-image { margin-bottom: 12px; }
  .gallery-grid { margin-right: 0; }
  .gallery-grid .slide { width: 100%; }
  .gallery-grid .margin-wrapper { margin: 0 0 20px; }

  .sqs-layout .sqs-col { float: none; width: auto !important; }
  .sqs-layout .sqs-row .sqs-block:first-child { padding-top: 17px !important; }
  .sqs-layout .sqs-row .sqs-block:last-child { padding-bottom: 17px !important; }
  .sqs-layout .spacer-block { display: none; }
  #projectPages .project { margin-bottom: 0; }
  #projectPages .project-meta { margin-bottom: 20px; }

  .lightbox img { max-width: 100%; }
}
