/* kleine.world theme styles */
@view-transition { navigation: auto; }

:root {
  --color-bg: #faf8f4;
  --color-bg-alt: #f0ece3;
  --color-text: #2b2824;
  --color-text-muted: #6b655c;
  --color-accent: #b5673a;
  --color-border: #e0dace;
  --max-width: 1100px;
  --font-base: "Fraunces", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 72px;
}

body {
  margin: 0px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.6;
}

body > main {
  flex: 1 0 auto;
}

.bg-fixed {
  position: fixed;
  inset: -12px;
  z-index: -1;
  background: url("/wp-content/uploads/2026/10/bg-structure.webp") center center / cover no-repeat;
  view-transition-name: kw-bg;
  filter: blur(3px);
}

h1,
h2,
h3 {
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.2;
  margin: 0px 0px 0.5em;
}

p {
  margin: 0px 0px 1em;
  color: var(--color-text-muted);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0px auto;
  padding: 0px 1.5rem;
}

.site-header {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
  z-index: 10;
  view-transition-name: kw-header;
}

.site-header.scrolled {
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-header .container {
  padding-right: 0.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: rgb(255, 255, 255);
  opacity: 0;
  pointer-events: none;
}

.site-header.scrolled .logo {
  opacity: 1;
  pointer-events: auto;
}

.logo:hover {
  text-decoration: none;
}

.logo-fly {
  position: fixed;
  top: 0px;
  left: 0px;
  color: rgb(255, 255, 255);
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: rgb(255, 255, 255);
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgb(255, 255, 255);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 27vh;
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0px;
  background: rgba(20, 16, 12, 0.35);
}

.hero-inner {
  margin: 0px;
  padding-left: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.75rem;
  color: rgb(255, 255, 255);
}

.hero-tagline {
  font-weight: 300;
  font-optical-sizing: none;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: rgb(255, 255, 255);
  margin: 0px 0px 0px 0.3rem;
}

.text-thin {
  font-weight: 300;
}

.speech-bubble {
  position: absolute;
  top: 130px;
  transform: translateY(-50%);
  left: 360px;
  width: 624px;
  min-height: 182px;
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: rgb(255, 255, 255);
  border-radius: 24px;
  padding: 1.75rem 2rem;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 8px 20px;
}

.speech-bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 32px;
  width: 14px;
  height: 14px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
}

.speech-bubble p {
  margin: 0px;
  color: rgb(255, 255, 255);
}

.about-photo {
  position: absolute;
  background: rgb(255, 255, 255);
  padding: 4px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 8px 20px;
}

.about-photo::before,
.about-photo::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 24px;
  background: rgba(147, 112, 219, 0.55);
  border: 1px solid rgba(147, 112, 219, 0.7);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 3px;
}

.about-photo::before {
  top: -12px;
  left: -14px;
  transform: rotate(-40deg);
}

.about-photo::after {
  bottom: -12px;
  right: -14px;
  transform: rotate(140deg);
}

.about-photo--main {
  position: relative;
  width: 220px;
  transform: rotate(-4deg);
}

.about-photo-jan::before {
  top: -12px;
  left: auto;
  right: -10px;
  transform: rotate(35deg);
}

.about-photo-jan::after {
  bottom: -12px;
  right: auto;
  left: -10px;
  transform: rotate(-125deg);
}

.about-photo-maxi::before {
  top: -12px;
  left: -14px;
  transform: rotate(-40deg);
}

.about-photo-maxi::after {
  inset: -12px -14px auto auto;
  transform: rotate(40deg);
}

.about-photo-jan {
  position: relative;
  width: 176px;
  flex-shrink: 0;
  align-self: flex-start;
  transform: rotate(-4deg);
}

.about-photo-maxi {
  position: relative;
  width: 176px;
  flex-shrink: 0;
  align-self: flex-end;
  transform: rotate(4deg);
}

.about-image {
  display: block;
  width: 100%;
  object-fit: cover;
}

.site-footer {
  background: #f1efe8;
  padding: 1.25rem 0px;
  text-align: center;
  color: var(--color-text);
  font-size: 0.9rem;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-row p {
  grid-column: 2;
  justify-self: center;
  margin: 0px;
  color: var(--color-text);
}

.footer-row .footer-socials {
  grid-column: 1;
  justify-self: start;
}

.footer-row .footer-legal {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 860px) {
  .footer-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.75rem;
  }

  .footer-row .footer-socials,
  .footer-row p,
  .footer-row .footer-legal {
    grid-column: 1;
    justify-self: center;
  }
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-socials a {
  display: inline-flex;
  color: var(--color-text);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.footer-socials span {
  display: inline-flex;
  opacity: 0.8;
}

.footer-socials a:hover {
  opacity: 1;
  color: var(--color-text);
}

.footer-legal {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
}

.footer-legal a {
  color: var(--color-text);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0px;
    right: 0px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    display: none;
  }

  .main-nav a {
    color: var(--color-text);
  }

  .main-nav.open {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

.project-detail {
  padding: 7rem 0px 5rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: rgb(255, 255, 255);
  font-size: 0.95rem;
}

.project-detail-hero {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 14px;
  background-size: cover;
  background-position: center center;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 12px 30px;
  margin-bottom: 2rem;
}

.project-detail-title {
  color: rgb(255, 255, 255);
  font-size: 2.25rem;
  margin-bottom: 0.3em;
}

.project-detail-location {
  color: rgb(255, 255, 255);
  opacity: 0.85;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.project-detail-text {
  color: rgb(255, 255, 255);
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.project-detail-text p {
  max-width: 640px;
  margin: 0px 0px 1.5rem;
}

.project-detail-text .wp-block-image,
.project-detail-text .wp-block-gallery .wp-block-image {
  display: inline-block;
  width: 220px;
  margin: 0px 1.5rem 1.5rem 0px;
  vertical-align: top;
}

.project-detail-text img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 6px 16px;
}

.project-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.project-detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 6px 16px;
}

@media (max-width: 640px) {
  .project-detail {
    padding: 6rem 0px 3rem;
  }

  .project-detail-title {
    font-size: 1.75rem;
  }
}

.work-overview {
  background: rgba(20, 16, 12, 0.35);
  padding: 8rem 0px 5rem;
}

.work-overview-title {
  color: rgb(255, 255, 255);
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 640px) {
  .work-overview-title {
    font-size: 1.9rem;
  }
}

.contact-page {
  background: rgba(20, 16, 12, 0.35);
  padding: 6rem 0px;
}

.generic-page {
  min-height: 60vh;
  background: rgba(20, 16, 12, 0.35);
  padding: 8rem 0px 5rem;
}

.generic-page-title {
  color: rgb(255, 255, 255);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.generic-page-content {
  color: rgb(255, 255, 255);
  opacity: 0.9;
  max-width: 720px;
}

.generic-page-content p {
  color: rgb(255, 255, 255);
  opacity: 0.9;
}

.generic-page-content a {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}

/* Page transitions (cross-fade to the legal pages and back) */
::view-transition-group(*) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
