:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #24211d;
  background: #f2efeb;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .26em; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip { position: absolute; top: .7rem; left: .7rem; z-index: 3; background: white; padding: 1rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.frame { width: min(91%, 1440px); margin-inline: auto; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: #18140f; min-height: clamp(530px, 44.5vw, 820px);
  display: flex; flex-direction: column;
}
.hero::before {
  content: ""; z-index: -1; position: absolute; inset: 0 0 0 23%;
  background: linear-gradient(90deg, #18140f, transparent 36%), linear-gradient(180deg, #100c0859, transparent 30%), url("assets/interier.webp") center center / cover no-repeat;
}
.header { display: flex; justify-content: space-between; align-items: center; padding-block: 1.15rem; gap: 1rem; }
.brand { display: block; width: clamp(74px, 7vw, 112px); height: auto; }
nav { display: flex; flex-wrap: wrap; gap: .75rem clamp(1rem, 3.5vw, 3.25rem); }
nav a { font-size: 1rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.intro { padding-block: 1rem 2.8rem; margin-block: auto; }
h1 { font-size: clamp(2.35rem, 4vw, 4.65rem); line-height: 1.065; font-weight: 300; letter-spacing: -.038em; margin: 0; }
.intro p { margin: 1.25rem 0 1.45rem; line-height: 1.5; }
.intro p::before { content: ""; width: 4.5rem; border-top: 1px solid #fff9; display: block; margin-bottom: 1.15rem; }
.outline { display: inline-block; border: 1px solid #fff9; padding: .67rem 1.55rem; text-decoration: none; }
.outline:hover { background: #fff; color: #18140f; }
.portfolio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.85rem, 1.6vw, 1.75rem); padding-block: 1.75rem 3.25rem; }
.project { display: block; text-decoration: none; }
.project img { display: block; width: 100%; aspect-ratio: 1.86; object-fit: cover; background: #d3c7b9; }
.project span { display: block; padding-block: .6rem .45rem; border-bottom: 1px solid #aaa195; line-height: 1.4; }
.project:hover span { border-color: #24211d; text-decoration: underline; }
.editorial { border-top: 1px solid #aaa195; display: grid; grid-template-columns: 1fr 1.35fr; gap: 1.4rem 3rem; padding-block: clamp(2rem, 5vw, 5rem); }
h2 { font-weight: 400; font-size: clamp(1.7rem, 3vw, 3.2rem); line-height: 1.12; letter-spacing: -.03em; margin: 0; }
.editorial p, address { line-height: 1.65; max-width: 62ch; margin: 0 0 .8rem; }
.editorial p:last-child { margin-bottom: 0; }
address { font-style: normal; }
.footer-brand { grid-column: 1; }
@media (max-width: 720px) {
  .hero { min-height: 560px; }
  .hero::before { inset-inline-start: 0; background-image: linear-gradient(90deg, #17130fe8, #17130f4f), linear-gradient(180deg, #17130fa1, transparent 38%), url("assets/interier.webp"); background-position: 55% center; }
  .header { align-items: flex-start; }
  nav { justify-content: flex-end; max-width: 245px; padding-top: .35rem; }
  nav a { font-size: .9rem; }
  .intro { padding-bottom: 2.5rem; }
  .desktop { display: none; }
  .portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.3rem; }
  .editorial { grid-template-columns: 1fr; }
}
@media (max-width: 350px) {
  h1 { font-size: 2rem; }
  nav { column-gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

.page-title { padding-top: clamp(1.6rem, 4vw, 3.75rem); }
nav a[aria-current="page"] { text-decoration: underline; }

.photo-page { max-width: 1150px; padding-block: 1.5rem 4rem; }
.photo-page h1 { margin-block: 1rem 2.5rem; }
.photo-list { display: grid; gap: clamp(2rem, 6vw, 5rem); }
.realization-photo { display: grid; grid-template-columns: 3fr 2fr; align-items: center; gap: clamp(1.25rem, 5vw, 5rem); margin: 0; }
.realization-photo:nth-child(even) { grid-template-columns: 2fr 3fr; }
.realization-photo:nth-child(even) img { grid-area: 1 / 2; }
.realization-photo:nth-child(even) figcaption { grid-area: 1 / 1; }
.realization-photo img { display: block; width: auto; max-width: 100%; max-height: 660px; justify-self: center; border-radius: 2px; }
.realization-photo figcaption { font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.3; border-top: 1px solid #aa9985; padding-top: 1rem; }
@media (max-width: 720px) {
  .realization-photo, .realization-photo:nth-child(even) { grid-template-columns: 1fr; gap: .75rem; }
  .realization-photo:nth-child(even) img, .realization-photo:nth-child(even) figcaption { grid-area: auto; }
}

.home .hero { min-height: 100vh; min-height: 100svh; }
.home .editorial:not(:target) { display: none; }
.home-shortcuts {
  display: grid; grid-template-columns: repeat(4, auto); gap: .35rem;
  padding: .3rem; max-width: none;
}
.home-shortcuts a {
  display: flex; align-items: center; justify-content: center;
  padding: .5rem .65rem; min-height: 48px; font-size: .875rem;
}
.home-shortcuts a:hover { background: #fff2; }
@media (max-width: 560px) {
  .home-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem; }
  .home-shortcuts a { padding-inline: .55rem; }
}

.project img,
.realization-photo img {
  filter: brightness(1.025) contrast(1.045) saturate(1.035);
}

.language-switch { display: inline-flex; align-items: center; justify-self: end; white-space: nowrap; }
.language-switch a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .35rem; font-size: .875rem; }
.language-switch a[aria-current] { text-decoration: underline; }
.home-shortcuts { grid-template-columns: repeat(5, auto); }
html[lang="en"] .home .intro h1 { font-size: clamp(2.15rem, 3.8vw, 4.65rem); }
@media (max-width: 680px) {
  .home-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem; }
  .home-shortcuts .language-switch { grid-column: 1 / -1; }
}

#kontakt {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(3rem, 12vw, 12rem);
  align-items: start;
}
.contact-details h2 { margin-bottom: 1.25rem; }
.contact-details address { margin: 0; }
.contact-portrait {
  display: block;
  width: clamp(12rem, 24vw, 19rem);
  max-width: 100%;
  height: auto;
}
@media (max-width: 720px) {
  #kontakt { grid-template-columns: 1fr; }
}
