/* L. Vissenberg & Zn. — schilder-mahonie.
   Chassis look=rustig; this file must win: no cream #F4F1EA, no lowercase h1,
   no Avenir. Mahonie #502010 only on the Bel button. */

:root,
html.look-rustig {
  --color-bg: #EDECEA;
  --color-bg-2: #E0DED8;
  --color-ink: #1A1614;
  --color-muted: #6E6864;
  --color-accent: #502010;
  --color-on-accent: #EDECEA;
  --color-line: rgba(26, 22, 20, 0.14);
  --color-focus: #502010;
  --font-display: Barlow, ui-sans-serif, sans-serif;
  --font-body: "Source Serif 4", ui-serif, Georgia, serif;
  --font: var(--font-body);
  --header-h: 3.4rem;
  --dock-h: 3.35rem;
  --wrap: min(42rem, calc(100% - 2 * var(--gutter)));
}

html,
html.look-rustig {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

html.look-rustig body,
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  padding-bottom: calc(var(--dock-h) + 0.75rem);
}

@media (min-width: 860px) {
  html.look-rustig body,
  body { padding-bottom: 0; }
}

html.look-rustig main,
main {
  flex: 1;
  padding: 0;
  text-align: left;
  max-width: none;
  width: 100%;
  margin: 0;
}

html.look-rustig a,
a { color: var(--color-ink); }

html.look-rustig h1,
html.look-rustig h2,
html.look-rustig h3,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-transform: none;
  text-wrap: balance;
  margin: 0 0 0.7rem;
  color: var(--color-ink);
}

html.look-rustig h1,
h1 {
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.9rem);
  font-weight: 700;
  text-transform: none;
}

html.look-rustig h2,
h2 {
  font-size: clamp(1.28rem, 1.08rem + 0.9vw, 1.7rem);
}

h3 { font-size: 1.05rem; }

html.look-rustig .quiet-head,
.quiet-head,
html.look-rustig .quiet-foot,
.quiet-foot,
html.look-rustig .quiet-stack,
.quiet-stack { display: none; }

.site-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.3rem var(--gutter);
  background: var(--color-bg-2);
  position: relative;
  z-index: 20;
}

html.look-rustig .wordmark,
.wordmark {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-ink);
  line-height: 1.15;
}

html.look-rustig .wordmark:hover,
.wordmark:hover { opacity: 0.82; }

html.look-rustig .nav-toggle,
.nav-toggle {
  width: var(--tap);
  height: var(--tap);
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--color-ink);
  min-height: var(--tap);
  font: inherit;
}

html.look-rustig .nav-toggle span,
.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--color-ink);
}

.site-nav { display: none; }
.site-nav[data-open="true"] {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  background: var(--color-bg-2);
  padding: 0.4rem var(--gutter) 1rem;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}
html.look-rustig .site-nav a,
.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-ink);
  transition: opacity 0.2s ease;
}
.site-nav a[aria-current="page"] {
  box-shadow: inset 2px 0 0 var(--color-accent);
  padding-left: 0.7rem;
}
html.look-rustig .site-nav a:hover,
.site-nav a:hover { opacity: 0.78; }

@media (min-width: 720px) {
  html.look-rustig .nav-toggle,
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 860px) {
  html.look-rustig .nav-toggle,
  .nav-toggle { display: none; }
  .site-nav,
  .site-nav[data-open="true"] {
    display: block;
    position: static;
    border: 0;
    padding: 0;
    background: transparent;
  }
  .site-nav ul {
    display: flex;
    gap: 0.15rem 1.15rem;
  }
  html.look-rustig .site-nav a,
  .site-nav a { min-height: 2.4rem; }
  .site-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--color-accent);
    padding-left: 0;
  }
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.band {
  padding: clamp(1.5rem, 3.2vw, 2.6rem) 0;
  background: var(--color-bg);
  color: var(--color-ink);
}
.band--alt { background: var(--color-bg-2); }
.band--tight { padding-block: 0.3rem 1.2rem; }
.band--cta {
  background: var(--color-bg-2);
  padding-block: 1.5rem;
}

.page-head { padding: 1.5rem 0 0.5rem; }
.page-head--in { padding: 0 0 1rem; }
.page-head .cta-row { margin-top: 0.45rem; }

.lede {
  margin: 0 0 1.05rem;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.5;
}
.spot {
  margin: 0 0 0.7rem;
  max-width: 36rem;
  font-size: 1.08rem;
}
.more {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.more a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.more a:hover { opacity: 0.8; }

.rating {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Hero: native ~1024 column, NOT 100vh split, CTA in fold */
.hero {
  display: grid;
  background: var(--color-bg);
}
.hero__shot {
  margin: 0;
  position: relative;
  width: 100%;
  height: 38vh;
  max-height: 16.5rem;
  min-height: 11rem;
  overflow: hidden;
  background: #cfc8bf;
}
.hero__shot img.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero__copy {
  padding: 1.05rem var(--gutter) 1.2rem;
  background: var(--color-bg);
}
.hero__copy h1 {
  margin-bottom: 0.4rem;
  max-width: 14ch;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: min(32rem, 42vw) minmax(20rem, 1fr);
    align-items: start;
    gap: 1.6rem 1.8rem;
    padding: 1.35rem var(--gutter) 1.8rem;
    max-height: none;
    height: auto;
    overflow: visible;
  }
  .hero__shot {
    width: 100%;
    max-width: 32rem;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1024 / 982;
  }
  .hero__shot img.hero__photo {
    object-position: center 40%;
  }
  .hero__copy {
    padding: 0.4rem 0 0;
  }
  .hero__copy .lede,
  .hero__copy h1 { max-width: 22rem; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-transform: none;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
html.look-rustig .btn--solid,
.btn--solid {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}
html.look-rustig .btn--line,
.btn--line {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--solid:hover, .btn--solid:focus-visible,
.btn--line:hover, .btn--line:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}

.band--gallery { padding: 1.15rem 0 0.4rem; }
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 22rem);
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0 var(--gutter) 0.8rem;
  scroll-snap-type: x mandatory;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery__frame {
  overflow: hidden;
  background: #cfc8bf;
  aspect-ratio: 4 / 3;
}
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
}
@media (min-width: 860px) {
  .gallery {
    grid-auto-flow: unset;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-columns: unset;
    overflow: visible;
    width: min(68rem, calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
    padding-inline: 0;
  }
}

.offer {
  display: grid;
  gap: 1.1rem;
  padding: 1.4rem var(--gutter);
  background: var(--color-bg);
}
.offer--alt { background: var(--color-bg-2); }
.offer__copy { max-width: 32rem; }
.offer__copy p { margin: 0; }
.offer__media { margin: 0; overflow: hidden; background: #cfc8bf; }
.offer__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.45s ease;
}
.offer:hover .offer__media img { transform: scale(1.03); }
.offer__pair {
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 860px) {
  .offer {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 2rem;
    width: min(68rem, calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
    padding-inline: 0;
    padding-block: 2rem;
  }
  .offer--alt { width: 100%; padding-inline: max(var(--gutter), calc((100% - 68rem) / 2)); }
  .offer__pair { grid-template-columns: 1fr 1fr; }
}

.projects {
  display: grid;
  gap: 1.6rem;
  padding: 0.4rem var(--gutter) 1.6rem;
}
.project { margin: 0; }
.project figure { margin: 0 0 0.7rem; overflow: hidden; background: #cfc8bf; }
.project img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.project:hover img { transform: scale(1.03); }
.project__copy h2 { margin-bottom: 0.35rem; }
.project__copy p { margin: 0; max-width: 36rem; }
@media (min-width: 860px) {
  .projects {
    width: min(68rem, calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
    padding-inline: 0;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
  }
}

.extra-grid {
  display: grid;
  gap: 0.85rem;
}
.extra-grid figure { margin: 0; }
.extra-grid__frame {
  overflow: hidden;
  background: #cfc8bf;
  aspect-ratio: 4 / 3;
}
.extra-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.extra-grid figure:hover img { transform: scale(1.04); }
.extra-grid figcaption {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
}
.extra-grid--ph figcaption {
  color: var(--color-muted);
  font-weight: 600;
  font-style: italic;
}
@media (min-width: 700px) {
  .extra-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.over-layout {
  display: grid;
  gap: 1.4rem;
}
.over-photos {
  display: grid;
  gap: 0.6rem;
}
.over-photos figure { margin: 0; overflow: hidden; background: #cfc8bf; }
.over-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.prose p { margin: 0 0 0.85rem; max-width: 36rem; }
.prose p:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .over-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.2rem;
    width: min(68rem, calc(100% - 2 * var(--gutter)));
  }
}

.contact-layout { display: grid; gap: 1.4rem; }
.nap {
  display: grid;
  gap: 0.4rem;
  font-style: normal;
}
.nap p { margin: 0; }
.nap__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
html.look-rustig .nap a,
.nap a { color: var(--color-ink); }
.nap__tel,
.nap__mail {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
html.look-rustig .hours,
.hours { display: none; }

.site-foot {
  padding: 1.25rem var(--gutter) 1.5rem;
  background: var(--color-bg-2);
  display: grid;
  gap: 0.35rem;
}
.site-foot__legal,
.site-foot__privacy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}
html.look-rustig .site-foot a,
.site-foot a { color: var(--color-ink); }
.site-foot a:hover { opacity: 0.8; }

.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: var(--dock-h);
  background: var(--color-bg-2);
}
html.look-rustig .dock a,
.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-ink);
  padding: 0.25rem;
  transition: opacity 0.2s ease;
}
html.look-rustig .dock a.dock__bel,
.dock a.dock__bel {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.dock a:hover { opacity: 0.88; }
@media (min-width: 860px) {
  .dock { display: none; }
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes title-in {
  from { opacity: 0; transform: translateY(0.35rem); }
  to { opacity: 1; transform: none; }
}
.hero__shot img.hero__photo { animation: hero-in 0.7s ease both; }
.hero__copy h1 { animation: title-in 0.55s ease 0.08s both; }

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(0.45rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__shot img.hero__photo,
  .hero__copy h1 { animation: none; }
  html.js [data-reveal],
  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gallery img,
  .gallery figure:hover img,
  .offer__media img,
  .project img,
  .extra-grid img,
  .btn,
  .btn--solid:hover,
  .btn--line:hover {
    transition: none;
    transform: none;
  }
}
