/* Bridge: new homepage design system + multi-page layouts */

body.page-home,
body.page-gallery,
body.page-about,
body.page-process,
body.page-contact,
body.page-piece,
body.page-legal {
  max-width: none;
  margin: 0;
  box-shadow: none;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
}

/* Subpages: solid header (not overlaid on hero) */
.site-header.is-solid {
  position: sticky;
  top: 0;
  background: rgba(241, 236, 226, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header .language-switcher {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .18em;
}

.site-header .language-switcher button {
  min-width: 24px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .45;
}

.site-header .language-switcher button.active,
.site-header .language-switcher button:hover {
  border-color: currentColor;
  opacity: 1;
}

.site-header .language-switcher i {
  font-style: normal;
  opacity: .35;
  margin: 0 4px;
}

.site-header .brand,
.site-footer .brand {
  width: auto;
  height: auto;
  margin: 0;
}

.site-footer {
  display: block;
  min-height: 0;
  padding: 26px 0;
  background: var(--cream);
  color: var(--tan);
}

.menu-toggle {
  display: none;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  margin: 6px 0;
  background: var(--ink);
}

/* pages.css uses full-bleed images; keep that for page sections only */
.page-gallery img,
.page-about img,
.page-process img,
.page-contact img,
.page-piece img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-gallery .logo,
.page-about .logo,
.page-process .logo,
.page-contact .logo,
.page-piece .logo,
.page-legal .logo,
.page-home .logo {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.footer-in .logo {
  height: 30px;
}

/* Outline button used inside page CTAs from pages.css */
.outline {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: .2s;
}
.outline:hover {
  background: var(--ink);
  color: var(--cream);
}
.outline.light {
  color: var(--on-dark);
}
.outline.light:hover {
  background: var(--on-dark);
  color: var(--forest);
}

.about-story > div h2,
.process-hero h1,
.process-hero h3,
.process-dark h2,
.process-dark h3,
.contact-grid aside h2,
.forest-cta h2,
.brown-cta h2 {
  color: var(--on-dark);
}

.process-hero .kicker {
  color: var(--on-dark-gold);
}

/* Align pages.css tokens with new design tokens */
:root {
  --paper: #eae3d6;
  --cream: #f1ece2;
  --ink: #201c17;
  --green: #333b2b;
  --dark: #2b3222;
  --gold: #a98b5d;
  --brown: #65462f;
  --line: #d9d1c2;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tan, #93826a);
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px var(--gut) 100px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
}
.legal p, .legal li {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* Homepage section anchors for navigator */
[data-home-section] {
  scroll-margin-top: 20px;
}
.hero-rail .n,
.hero-scroll {
  cursor: pointer;
}
.hero-rail .n:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}
[data-i18n="home.discover"]::after,
[data-i18n="home.viewGallery"]::after {
  content: "→";
  margin-left: .5em;
}

@media (max-width: 960px) {
  .nav-right .language-switcher {
    display: none;
  }
  .site-header .menu-toggle {
    display: grid !important;
    position: absolute;
    top: 28px;
    right: var(--gut);
    z-index: 2;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--ink);
  }
  .site-header .menu-toggle::before {
    content: "☰";
    font: 300 24px/1 var(--sans);
  }
  .site-header .menu-toggle span {
    display: none;
  }
  .nav-right .btn-outline {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-copy {
    width: 100%;
    overflow: hidden;
  }
  .hero-title {
    max-width: 100%;
    font-size: 42px;
  }
  .hero-lead {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* ===== Lightbox + Galerie-Filter (Deutsch/Nur-DE Build) ===== */
.tile.hide { display: none; }
.lightbox { position: fixed; inset: 0; background: rgba(28,24,20,.92); display: none; align-items: center; justify-content: center; z-index: 200; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 88vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 88vw; max-height: 80vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { font-family: var(--sans, "Jost", sans-serif); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: #ece7db; }
.lightbox button { position: absolute; background: none; border: 0; color: #f1ece2; cursor: pointer; font-family: var(--serif, "Cormorant Garamond", serif); transition: opacity .2s; }
.lightbox button:hover { opacity: .6; }
.lb-close { top: 22px; right: 30px; font-size: 42px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; padding: 0 26px; }
.lb-prev { left: 6px; } .lb-next { right: 6px; }
.tile { cursor: zoom-in; }
@media (max-width: 600px) { .lb-prev, .lb-next { font-size: 40px; padding: 0 10px; } }
