/* ---------- Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #8a8a8a;
  --line: #ececec;
  --placeholder: #ede9e3;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header ---------- */
.header {
  text-align: center;
  padding: 48px 24px 40px;
}

.header__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.logo {
  display: inline-block;
  margin-bottom: 28px;
}

.logo img {
  display: block;
  width: 210px;
  max-width: 65vw;
  height: auto;
}

.header__row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  min-height: 34px;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--fg);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav a:hover {
  border-bottom-color: var(--fg);
}

.nav a:focus-visible,
.language-switcher button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

/* ---------- Language switcher ---------- */
.language-switcher {
  position: relative;
  z-index: 10;
  text-align: left;
}

.language-switcher button {
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.language-switcher .language-switcher__trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 0 2px;
  border-bottom: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.language-switcher .language-switcher__trigger:hover,
.language-switcher .language-switcher__trigger[aria-expanded="true"] {
  border-bottom-color: var(--fg);
}

.language-switcher__chevron {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.language-switcher__trigger[aria-expanded="true"] .language-switcher__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.language-switcher__menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: max-content;
  padding: 10px 0 0;
  list-style: none;
  background: var(--bg);
}

.language-switcher__menu li {
  text-align: right;
}

.language-switcher__menu button {
  display: inline-block;
  padding: 5px 0 2px;
  border-bottom: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.language-switcher__menu button:hover,
.language-switcher__menu button[aria-current="true"] {
  border-bottom-color: var(--fg);
}

/* ---------- Gallery grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.item--wide {
  grid-column: 1 / -1;
}

.thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--placeholder);
  position: relative;
  overflow: hidden;
}

.thumb--tall {
  aspect-ratio: 3 / 4;
}

/* Real photo: cover the box and hide the placeholder label */
.thumb--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.thumb.thumb--photo::after {
  content: none;
}

.item--wide .thumb {
  aspect-ratio: 16 / 7;
}

/* Bench: same container as the sideboard, but the bench itself
   sits smaller with white space around it */
.thumb--bench {
  background-size: 80%;
  background-color: #ffffff;
}

/* Placeholder label so empty image boxes read intentionally */
.thumb::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.item {
  display: block;
  margin: 0;
}

.item:hover .thumb {
  opacity: 0.9;
}

.caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  font-size: 0.9rem;
}

.caption__title {
  letter-spacing: 0.03em;
}

.caption__more {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ---------- Divider ---------- */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Statement ---------- */
.statement {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px 100px;
  text-align: center;
}

.statement p {
  font-size: 1.35rem;
  line-height: 1.9;
  font-weight: 300;
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px;
}

.split--reverse .split__media {
  order: 2;
}

.split__text h2 {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.split__text p {
  color: #555;
  margin-bottom: 24px;
  max-width: 380px;
}

.link {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

/* ---------- Impressum ---------- */
.impressum {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 40px 100px;
}

.impressum h1 {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.impressum h2 {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 48px 0 16px;
}

.impressum h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 32px 0 12px;
}

.impressum__block {
  margin-bottom: 28px;
}

.impressum__label {
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.impressum p {
  color: #555;
  margin-bottom: 4px;
}

.impressum a {
  border-bottom: 1px solid var(--line);
}

.impressum a:hover {
  border-bottom-color: var(--fg);
}

.impressum em {
  color: var(--muted);
  font-style: italic;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.85rem;
  color: #555;
}

.footer__brand {
  letter-spacing: 0.2em;
  color: var(--fg);
  margin-bottom: 12px;
}

.footer__col p {
  margin-bottom: 6px;
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__social a:hover {
  color: var(--fg);
}

.footer__copy {
  grid-column: 1 / -1;
  margin-top: 32px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .header {
    padding: 36px 20px 24px;
  }
  .logo {
    margin-bottom: 24px;
  }
  .header__row {
    gap: 18px;
    flex-wrap: wrap;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 20px 60px;
  }
  .item--wide .thumb {
    aspect-ratio: 3 / 2;
  }
  /* Shrink the tall tables with white space so they read
     similarly sized to the other works on mobile */
  .thumb--table {
    background-size: 80%;
    background-color: #ffffff;
  }
  /* Landscape image: give it a matching box so it doesn't
     leave tall white bands top and bottom */
  .thumb--table-small {
    aspect-ratio: 5 / 4;
    background-size: cover;
  }
  .thumb--bench {
    background-size: 95%;
  }
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .statement p {
    font-size: 1.1rem;
  }
  .footer {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 18px;
  }
}
