/* matteotreichl.com, rebuilt 1:1 from the Squarespace site (as of 2026-12-06).
   Measurements taken at a 1495 px wide window: side margin 60 px (4vw), body text Dosis 300 at 19.6 px. */

:root {
  --black: #000;
  --white: #fff;
  --grey: #efefee;
  --accent: #a3826c;
  --sans: "Dosis", "Helvetica Neue", Arial, sans-serif;
  --serif: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --side: 4vw;
  --text: clamp(16px, 1.31vw, 19.6px);
  --h2: clamp(32px, 3.23vw, 48.3px);
  --h3: clamp(22px, 2.51vw, 37.5px);
  --h4: clamp(20px, 1.79vw, 26.8px);
  --header-h: 112px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--text);
  line-height: 1.8;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.theme-light { background: var(--white); color: var(--black); }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.3; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--white); color: var(--black); padding: 8px 12px; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--side);
  color: var(--white);
  transition: background-color .3s ease;
}
.theme-light .header { color: var(--black); }
.header.is-scrolled { background: rgba(0, 0, 0, .88); }
.theme-light .header.is-scrolled { background: rgba(239, 239, 238, .94); }
.header__logo img { width: 84px; height: 84px; border-radius: 50%; }
.header__nav { display: flex; gap: 18px; }
.header__nav a { text-decoration: none; line-height: 2; border-bottom: 1px solid transparent; }
.header__nav a[aria-current="page"], .header__nav a:hover { border-bottom-color: currentColor; }
.header__insta { justify-self: end; display: inline-flex; color: inherit; }
.header__burger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--black); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  font-size: 28px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { text-decoration: none; }

/* ---------- Homepage tiles ---------- */
.tiles {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 2.8vw; row-gap: 60px;
  padding: calc(var(--header-h) + 90px) var(--side) 120px;
}
.tile { text-decoration: none; color: var(--white); }
.tile__image { aspect-ratio: 2 / 3; overflow: hidden; }
.tile__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .tile__image img { transform: scale(1.02); }
.tile__title { font-size: var(--h4); text-align: center; margin-top: 18px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 120px 5.8vw;
  padding: 0 6.2vw 120px;
}

/* Chapter opening of a gallery: number, title, place and year. Hard cut between pages,
   then the opening settles in once, like turning to a new chapter in a photo book. */
.chapter { padding: calc(var(--header-h) + 24px) 6.2vw 56px; text-align: center; }
.chapter__no { font-size: 12px; letter-spacing: .3em; color: var(--accent); margin-bottom: 8px; }
.chapter__title { font-size: clamp(26px, 2.6vw, 40px); font-weight: 300; letter-spacing: .06em; line-height: 1.1; }
.chapter__line { margin-top: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .55; }
.chapter > * { animation: chapter-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.chapter__title { animation-delay: .12s; }
.chapter__line { animation-delay: .45s; }
@keyframes chapter-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chapter > * { animation: none; } }
@media (max-width: 767px) { .chapter { padding: calc(var(--header-h) + 8px) var(--side) 36px; } }
.gallery-grid__item { display: block; aspect-ratio: 3 / 4; overflow: hidden; cursor: zoom-in; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; }
/* display: natural (e.g. Morocco by Motorbike): uncropped, landscapes across both columns */
.gallery-grid--natural { row-gap: 5.8vw; align-items: start; }
.gallery-grid--natural .gallery-grid__item { aspect-ratio: auto; }
.gallery-grid--natural .gallery-grid__item img { height: auto; }
.gallery-grid--natural .gallery-grid__item.is-landscape { grid-column: 1 / -1; }

.pager {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--side) 70px;
}
.pager a { text-decoration: none; display: flex; flex-direction: column; }
.pager__next { text-align: right; margin-left: auto; }
.pager__label { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.pager__title { font-size: var(--h3); }

/* ---------- Intro block (above the footer on every page) ---------- */
.intro {
  background: var(--white); color: var(--black);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw;
  padding: 100px var(--side);
}
.intro h2 { font-size: var(--h2); margin-bottom: 28px; }
.intro p { margin-bottom: .7em; }
.intro__gap { margin-top: 2.4em; }
.intro__image { justify-self: end; width: 80%; max-width: 510px; }

.button-serif {
  display: inline-block; margin-top: 40px;
  font-family: var(--serif); font-size: clamp(26px, 2.27vw, 34px);
  color: var(--accent); background: var(--white);
  padding: 19px 32px; border: 0; text-decoration: none; cursor: pointer;
}
.button-serif:hover { opacity: .75; }

/* ---------- Footer ---------- */
.footer {
  background: var(--black); color: var(--white);
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center;
  padding: 90px var(--side) 70px;
  text-align: center;
}
.footer__brand { grid-column: 2; display: flex; flex-direction: column; align-items: center; }
.footer__logo { width: 120px; height: 120px; border-radius: 50%; }
.footer__name { color: var(--accent); font-size: var(--h3); font-weight: 400; margin-top: 18px; }
.footer__tagline { text-transform: uppercase; margin-top: 18px; }
.footer__links { grid-column: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__links > a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer__mail { text-decoration: none; }

/* ---------- About ---------- */
.about-hero { position: relative; }
.about-hero__img img { width: 100%; height: auto; }
.about-hero__quote {
  position: absolute; right: 8%; top: 17%; width: 22.5%;
  background: rgba(255, 255, 255, .72); color: #333;
  padding: 36px 32px 26px;
  font-size: var(--text); line-height: 2.1;
}
.about-hero__quote cite { display: block; text-align: right; font-style: normal; font-weight: 700; font-size: 13px; }

.about-bio {
  background: var(--black); color: var(--white);
  display: grid; grid-template-columns: 38% 1fr; gap: 8vw; align-items: center;
  padding: 120px var(--side) 120px;
}
.about-bio__text { max-width: 451px; text-align: center; font-size: clamp(18px, 1.67vw, 25px); }
.about-bio__text p { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.about-story {
  background: var(--grey); color: var(--black);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8vw;
  padding: 140px var(--side) 120px;
}
.about-story figure { margin: 0; }
.about-story__col:first-child figure:first-child { width: 72%; }
.about-story__offset { width: 81%; margin: 120px 0 0 4vw !important; }
.about-story__col--right { padding-top: 160px; }
.about-story__col--right figure { width: 81%; }
.about-story__caption { margin-top: 14px; text-align: center; padding: 0 9%; }
.about-story__caption--left { text-align: left; padding: 0; max-width: 336px; }
.about-story__caption p + p { margin-top: .6em; }

/* ---------- FAQ ---------- */
.faq-wrap--light { background: var(--grey); color: var(--black); }
.faq { padding: 100px 8vw 120px; }
.faq h2 { font-size: var(--h2); margin-bottom: 50px; }
.faq__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2vw; }
.faq h4 { font-size: var(--h4); margin-bottom: 18px; }
.faq p { margin-bottom: 50px; }

/* ---------- Contact ---------- */
.contact { padding: calc(var(--header-h) + 90px) var(--side) 40px; display: flex; justify-content: center; }
.contact__card {
  width: min(532px, 100%);
  background: var(--white); color: var(--black);
  padding: 32px 32px 24px;
  font-size: 15px; line-height: 1.5;
}
.contact__card fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.contact__card legend { font-size: 17px; margin-bottom: 10px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact__card label { display: block; font-size: 13px; }
.contact__card label span { opacity: .6; font-size: 12px; }
.contact__big { margin-bottom: 22px; font-size: 17px !important; }
.contact__card input, .contact__card textarea {
  display: block; width: 100%; margin-top: 8px;
  font: inherit; font-size: 16px; color: var(--black);
  border: 1px solid #555; border-radius: 5px; padding: 10px 12px; background: var(--white);
}
.contact__card textarea { min-height: 96px; resize: vertical; }
.contact__card .button-serif { display: block; margin: 10px auto 0; padding: 8px 24px; }
.contact__error { color: #b3261e; text-align: center; }
.contact__hint { text-align: center; font-size: 13px; opacity: .65; margin-top: 12px; }

/* ---------- Imprint ---------- */
.theme-light main:has(.imprint) { background: var(--grey); }
.imprint {
  width: min(360px, 100%); margin: 0 auto;
  padding: calc(var(--header-h) + 100px) 0 120px;
}
.imprint h1 { font-size: var(--h4); font-weight: 700; margin-bottom: 24px; }
.imprint p { margin-bottom: 1em; overflow-wrap: anywhere; }
.imprint strong { font-weight: 700; }

/* ---------- Scroll fade (Squarespace-style), only when JS runs ---------- */
.js .fade { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .fade.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --side: 6vw; --header-h: 84px; }
  .header { grid-template-columns: auto 1fr auto; }
  .header__logo img { width: 56px; height: 56px; }
  .header__nav, .header__insta { display: none; }
  .header__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 8px;
    grid-column: 3; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; z-index: 110;
  }
  .header__burger span { display: block; height: 1px; width: 30px; background: currentColor; transition: transform .3s; }
  .menu-open .header { color: var(--white); }
  .menu-open .header__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-open .header__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .tiles, .gallery-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .gallery-grid { padding-left: var(--side); padding-right: var(--side); }
  .intro, .about-bio, .about-story { grid-template-columns: 1fr; }
  .intro__image { justify-self: center; width: 100%; }
  .footer { grid-template-columns: 1fr; gap: 40px; }
  .footer__brand, .footer__links { grid-column: 1; }
  .about-hero__quote { position: static; width: auto; background: var(--grey); margin: 0; }
  .about-bio__text { justify-self: center; }
  .about-story figure, .about-story__offset, .about-story__col--right figure,
  .about-story__col:first-child figure:first-child { width: 100%; margin: 0 0 60px 0 !important; }
  .about-story__col--right { padding-top: 0; }
  .faq__grid { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; }
}

/* Local preview only: marker on draft galleries */
.draft-note { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 150; background: #a3826c; color: #fff; padding: 6px 16px; font-size: 14px; }

/* ---------- Headline reveal: words appear one after another, once ---------- */
/* View transitions are only used for the lightbox morph (lightbox.js); pages change with a hard cut on purpose. */
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
::view-transition-image-pair(*) { isolation: auto; }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; overflow: clip; }

.reveal-word { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(.25em);
  transition: opacity .7s ease, filter .7s ease, transform .7s ease; transition-delay: calc(var(--i) * 90ms); }
.is-revealed .reveal-word { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-word { opacity: 1; filter: none; transform: none; transition: none; }
}
