/* Shared navigation and layouts for the independent pages. */
.header-shell {
  position: sticky;
  top: 0;
  z-index: 25;
  background: var(--background);
  border-bottom: 1px solid var(--line);
}
.site-header {
  height: 96px;
  border-bottom: 0;
  max-width: 1280px;
}
.site-header nav {
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
}
.nav-links a {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
}
.nav-links a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--motion-ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-links a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}
.nav-number,
.nav-arrow,
.mobile-nav-intro,
.mobile-nav-footer {
  display: none;
}
.nav-arrow {
  width: 18px;
  height: 18px;
}
.nav-links .nav-contact {
  padding: 10px 21px;
  background: var(--accent);
  color: var(--button-text);
  min-height: 45px;
}
.nav-contact .nav-arrow {
  display: block;
}
.nav-links .nav-contact[aria-current="page"] {
  color: var(--button-text);
  box-shadow:
    0 0 0 3px var(--background),
    0 0 0 4px var(--accent);
}
.menu-toggle span,
.menu-toggle[aria-expanded="true"] span:first-child,
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: none;
  width: auto;
  height: auto;
  background: none;
}
.menu-toggle .menu-label {
  font-size: 10px;
}
.menu-toggle .menu-icon {
  display: grid;
  gap: 6px;
  width: 22px;
}
.menu-icon i {
  height: 1px;
  width: 22px;
  display: block;
  background: var(--ink);
  transition: transform 0.2s;
}
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
main {
  min-height: 50vh;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 28px;
  font-size: 9px;
  color: var(--muted);
}
.breadcrumbs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.breadcrumbs svg {
  width: 12px;
  height: 12px;
}
.breadcrumbs > span:last-child {
  color: var(--ink);
}
body:not(.page--index) main > section:first-of-type {
  padding-top: 47px;
}
.approach-copy h1 {
  font-size: clamp(58px, 6vw, 80px);
  margin-bottom: 28px;
}
.section-heading h1 {
  font-size: clamp(58px, 6vw, 80px);
}
.publications-copy h1 {
  font-size: clamp(50px, 5vw, 66px);
  margin-bottom: 25px;
}
.contact-copy h1 {
  font-size: clamp(60px, 6vw, 80px);
  margin-bottom: 27px;
}
.page--publikacje .publications {
  margin-top: 37px;
}
.page--kontakt .contact {
  border-top: 0;
}
.home-explore {
  padding-top: 88px;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.explore-card {
  min-width: 0;
}
.explore-image {
  height: 295px;
  overflow: hidden;
  position: relative;
}
.explore-image img {
  height: 100%;
  transition: transform 0.45s var(--motion-ease);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .explore-card:hover img {
    transform: scale(1.04);
  }
}
.explore-image > span {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 7px 11px;
  background: var(--background);
  font-size: 7px;
  letter-spacing: 0.12em;
}
.explore-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
  margin-top: 22px;
}
.explore-title h3 {
  font-size: 31px;
  line-height: 1.1;
}
.explore-title > svg {
  width: 22px;
  height: 22px;
}
.explore-card > p {
  margin-top: 12px;
  font-size: 11px;
  max-width: 320px;
}
.contact-cta {
  padding: 44px 55px;
  margin-bottom: 85px;
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}
.contact-cta .eyebrow {
  margin-bottom: 17px;
}
.contact-cta h2 {
  font-size: 57px;
}
.contact-cta p {
  font-size: 12px;
  margin-bottom: 21px;
}
.contact-cta .button {
  min-width: 215px;
  justify-content: space-between;
}
.principles {
  padding-bottom: 100px;
}
.principles h2,
.publication-plans h2 {
  font-size: 60px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  margin-top: 45px;
  border-top: 1px solid var(--line);
}
.principles-grid article {
  padding-top: 25px;
}
.principles-grid article > span {
  font-size: 11px;
  color: var(--accent);
}
.principles-grid h3 {
  font-size: 33px;
  margin: 24px 0 15px;
}
.principles-grid p {
  font-size: 12px;
  max-width: 300px;
}
.publication-plans h2 {
  margin-bottom: 40px;
}
.publication-plan {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: start;
  gap: 25px;
}
.publication-plan > span:first-child {
  font-family: var(--serif);
  font-size: 25px;
}
.publication-plan h3 {
  font-size: 35px;
  margin-bottom: 12px;
}
.publication-plan p {
  font-size: 12px;
  max-width: 520px;
}
.plan-status {
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 4px 13px;
  border-radius: 30px;
  white-space: nowrap;
}
.publication-plans > .text-link {
  margin-top: 15px;
}
.contact-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding: 10px 0 85px;
}
.contact-tips h2 {
  font-size: 55px;
}
.contact-tips p {
  font-size: 12px;
  margin-bottom: 18px;
}
.contact-tips .text-link {
  font-size: 12px;
}
.footer-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 30px;
  font-size: 10px;
  justify-self: center;
}
.footer-navigation a {
  min-height: 30px;
  display: flex;
  align-items: center;
}
.footer-navigation a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 961px) and (max-width: 1100px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 10px;
  }
  .nav-links .nav-contact {
    padding-inline: 16px;
  }
}
@media (max-width: 960px) {
  html {
    scroll-padding-top: 100px;
  }
  .site-header {
    height: 80px;
    width: calc(100% - 48px);
  }
  .site-header .menu-toggle {
    display: flex;
    width: auto;
    min-height: 44px;
    padding: 9px 0 9px 15px;
    flex-direction: row;
    gap: 13px;
    align-items: center;
  }
  .site-header nav {
    display: none;
    position: fixed;
    top: var(--menu-top, 80px);
    left: 0;
    right: 0;
    bottom: 0;
    max-height: calc(100dvh - var(--menu-top, 80px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--background);
    padding: 22px 32px 20px;
    box-shadow: none;
    border-bottom: 0;
    font-size: 14px;
  }
  .site-header nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    .site-header nav.is-open :is(.mobile-nav-intro, .nav-links a, .mobile-nav-footer) {
      --motion-x: -20px;
      --motion-y: 0px;
      animation: content-in 0.44s var(--motion-ease) var(--motion-delay, 0s) backwards;
    }
    .nav-links a:nth-child(2) {
      --motion-delay: 0.04s;
    }
    .nav-links a:nth-child(3) {
      --motion-delay: 0.08s;
    }
    .nav-links a:nth-child(4) {
      --motion-delay: 0.12s;
    }
    .nav-links a:nth-child(5) {
      --motion-delay: 0.16s;
    }
    .nav-links a:nth-child(6),
    .mobile-nav-footer {
      --motion-delay: 0.2s;
    }
  }
  .mobile-nav-intro {
    display: block;
    padding: 0 10px 23px;
  }
  .mobile-nav-intro .eyebrow {
    font-size: 8px;
    margin-bottom: 8px;
  }
  .mobile-nav-intro p {
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1.1;
    color: var(--ink);
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links a {
    font-size: 30px;
    min-height: 60px;
    border-top: 1px solid var(--line);
    padding: 8px 12px;
    gap: 18px;
  }
  .nav-links a:not(.nav-contact)::after {
    display: none;
  }
  .nav-label {
    font-family: var(--serif);
    line-height: 1.1;
  }
  .nav-number {
    display: block;
    width: 20px;
    font-size: 9px;
    color: var(--muted);
  }
  .nav-arrow {
    display: block;
    width: 20px;
    height: 20px;
    margin-left: auto;
  }
  .nav-links a[aria-current="page"]:not(.nav-contact) {
    background: var(--surface);
    font-weight: 400;
    border-radius: 3px;
  }
  .nav-links .nav-contact {
    padding: 12px;
    margin-top: 10px;
    min-height: 59px;
    border: 0;
  }
  .nav-contact .nav-number {
    color: var(--button-text);
  }
  .mobile-nav-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding: 28px 12px 0;
    font-size: 9px;
    line-height: 1.6;
  }
  .mobile-nav-footer svg {
    width: 27px;
    height: 37px;
  }
  .mobile-nav-footer > span:last-child {
    margin-left: auto;
    font-size: 7px;
    letter-spacing: 0.09em;
  }
  .explore-grid {
    gap: 20px;
  }
  .explore-image {
    height: 240px;
  }
  .explore-title h3 {
    font-size: 28px;
  }
  .contact-cta {
    padding: 38px;
    gap: 35px;
  }
  .contact-cta h2 {
    font-size: 50px;
  }
  .principles-grid {
    gap: 25px;
  }
  .principles-grid h3 {
    font-size: 30px;
  }
}
@media (max-width: 600px) {
  .site-header {
    width: calc(100% - 40px);
  }
  .site-header nav {
    padding: 20px 20px 22px;
  }
  .mobile-nav-intro {
    padding-bottom: 20px;
  }
  .mobile-nav-intro p {
    font-size: 27px;
  }
  .nav-links a {
    min-height: 59px;
    font-size: 30px;
  }
  .breadcrumbs {
    padding-top: 17px;
    gap: 10px;
    font-size: 9px;
  }
  body:not(.page--index) main > section:first-of-type {
    padding-top: 30px;
  }
  .approach-copy h1,
  .section-heading h1 {
    font-size: clamp(47px, 12.8vw, 65px);
  }
  .publications-copy h1 {
    font-size: 49px;
  }
  .contact-copy h1 {
    font-size: 59px;
  }
  .page--publikacje .publications {
    margin-top: 20px;
  }
  .page--kontakt .contact {
    padding-bottom: 50px;
  }
  .home-explore {
    padding-block: 60px;
  }
  .home-explore .section-heading h2 {
    font-size: 52px;
  }
  .explore-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .explore-image {
    height: 250px;
  }
  .explore-image img {
    object-position: center 45%;
  }
  .explore-title {
    margin-top: 17px;
    gap: 15px;
  }
  .explore-title h3 {
    font-size: 32px;
  }
  .explore-card > p {
    font-size: 12px;
    max-width: none;
  }
  .contact-cta {
    display: block;
    padding: 32px 27px;
    margin-bottom: 55px;
  }
  .contact-cta h2 {
    font-size: 52px;
  }
  .contact-cta p {
    margin-top: 22px;
    font-size: 12px;
  }
  .contact-cta .button {
    width: 100%;
  }
  .principles {
    padding-bottom: 60px;
  }
  .principles h2,
  .publication-plans h2 {
    font-size: 49px;
  }
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }
  .principles-grid article {
    padding-top: 20px;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0 15px;
  }
  .principles-grid article + article {
    border-top: 1px solid var(--line);
  }
  .principles-grid article > span {
    grid-row: 1/3;
    padding-top: 5px;
  }
  .principles-grid h3 {
    margin-top: 0;
    font-size: 31px;
  }
  .principles-grid p {
    max-width: none;
    grid-column: 2;
  }
  .publication-plans {
    padding-block: 55px;
  }
  .publication-plan {
    grid-template-columns: 25px 1fr;
    gap: 16px;
    padding: 25px 0;
  }
  .publication-plan h3 {
    font-size: 32px;
  }
  .plan-status {
    grid-column: 2;
    justify-self: start;
  }
  .contact-tips {
    grid-template-columns: 1fr;
    gap: 23px;
    padding-bottom: 55px;
  }
  .contact-tips h2 {
    font-size: 49px;
  }
  .site-footer {
    align-items: start;
  }
  .footer-navigation {
    grid-template-columns: 1fr;
    justify-self: end;
    gap: 0;
    font-size: 11px;
  }
  .footer-navigation a {
    min-height: 35px;
  }
  .site-footer > div:not(.footer-bottom) {
    grid-column: 1/-1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 17px;
  }
  .footer-bottom {
    margin-top: 0;
  }
}
@media (max-height: 680px) and (max-width: 960px) {
  .mobile-nav-intro {
    padding-bottom: 15px;
  }
  .mobile-nav-intro p {
    font-size: 23px;
  }
  .nav-links a {
    min-height: 50px;
    font-size: 27px;
  }
  .mobile-nav-footer {
    padding-top: 17px;
  }
}
