:root {
  --navy: #012b56;
  --label: #2d6aa6;
  --ink: #16324a;
  --muted: #445e78;
  --line: #d7e2ec;
  --bg: #f4f7fa;
  --paper: #ffffff;
  --header: rgba(244, 247, 250, 0.92);
  --max: 68rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Geist, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  display: grid;
  grid-template-columns: minmax(1.5rem, 1fr) minmax(0, 36rem) auto minmax(1.5rem, 1fr);
  column-gap: 2.25rem;
}

img {
  max-width: 100%;
  height: auto;
}

main,
.site-header,
.site-footer,
.site-header .inner,
.site-footer .inner,
.hero,
.band,
.contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  grid-column: 1 / -1;
  padding: 0.4rem 0.7rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
}

.site-header .inner,
.site-footer .inner {
  align-items: center;
  min-height: 4.75rem;
}

.brand,
.footer-logo,
.project-copy,
.contact .inner,
h1,
.hero p {
  grid-column: 2;
}

nav,
.hero-mark,
.project-shot,
.footer-mail {
  grid-column: 3;
  justify-self: end;
}

.brand img {
  display: block;
  width: 9.6rem;
  filter: brightness(0) invert(1);
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.hero {
  align-items: center;
  padding: 5.5rem 0 5rem;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.7rem, 5.2vw, 4.35rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 1.4rem 0 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.5;
}

.hero-mark {
  width: auto;
  height: calc(2.16 * clamp(2.7rem, 5.2vw, 4.35rem));
  align-self: center;
}

#projekt,
#kontakt {
  scroll-margin-top: 5.5rem;
}

.band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
  padding: 5rem 0;
}

h2 {
  margin: 0;
  color: var(--label);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.project-copy {
  display: grid;
  gap: 1rem;
}

.project-shot {
  width: auto;
  height: 14.5rem;
  align-self: center;
}

.project h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.project p {
  margin: 0.9rem 0 0;
  max-width: 38rem;
  font-size: 1.125rem;
}

.note {
  color: var(--muted);
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #9db6cc;
  padding-bottom: 0.08rem;
}

.text-link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.text-link:hover {
  border-bottom-color: var(--navy);
}

.text-link:hover::after {
  transform: translateX(3px);
}

.contact .inner {
  padding-top: 5.5rem;
  padding-bottom: 6rem;
  display: grid;
  gap: 1rem;
}

.email {
  color: var(--navy);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px solid #9db6cc;
}

.email:hover {
  border-bottom-color: var(--navy);
}

.site-footer {
  background: var(--navy);
  color: #d6e4f1;
}

.footer-logo {
  color: #fff;
  line-height: 0;
}

.footer-logo img {
  display: block;
  width: 8.75rem;
  filter: brightness(0) invert(1);
}

.site-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: var(--navy);
}

@media (max-width: 760px) {
  body,
  main,
  .site-header,
  .site-footer,
  .site-header .inner,
  .site-footer .inner,
  .hero,
  .band,
  .contact {
    display: block;
  }

  .hero,
  .band,
  .contact,
  .site-header .inner,
  .site-footer .inner {
    width: min(var(--max), calc(100% - 2.25rem));
    margin-inline: auto;
  }

  .site-header .inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 4.75rem;
  }

  .brand img {
    width: 8rem;
  }

  nav {
    gap: 1.1rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(var(--max), calc(100% - 2.25rem));
    margin-inline: auto;
    padding: 2.75rem 0 3.25rem;
  }

  h1,
  .hero p,
  .hero-mark {
    grid-column: auto;
    justify-self: auto;
  }

  .hero-mark {
    display: none;
  }

  h1 {
    font-size: 2.35rem;
  }

  .hero p {
    font-size: 1.08rem;
  }

  .band {
    padding: 3.25rem 0;
  }

  .project-copy {
    display: grid;
    gap: 0.85rem;
  }

  .project-shot {
    display: block;
    height: 13rem;
    margin: 2rem auto 0;
  }

  .contact .inner {
    padding: 3.25rem 0 4.25rem;
  }

  .site-footer .inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-height: 0;
    padding: 1.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .text-link::after {
    transition: none;
  }
}
