/*
Theme Name: Spectrum Art Foundation
Theme URI: https://spectrum.krakow/
Author: Spectrum Art Foundation
Description: Autorski, responsywny motyw WordPress dla Spectrum Art Foundation.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: spectrumkrakow
*/

:root {
  --wine: #5a1520;
  --rose: #e7dce0;
  --soft-rose: #f2e9ed;
  --white: #fff;
  --header-height: 158px;
}

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

html {
  scroll-padding-top: 0;
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--wine);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-stretch: condensed;
  overflow-x: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

.site-header {
  align-items: center;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  background: rgba(230, 207, 216, 0.86);
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
  left: 0;
  padding: 0 4.15vw 0 3.7vw;
  position: fixed;
  top: 0;
  transition: background-color 260ms ease, backdrop-filter 260ms ease;
  width: 100%;
  z-index: 20;
}

.site-header.is-scrolled {
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  background: #fff;
}

.admin-bar .site-header {
  top: 32px;
}

.brand {
  display: block;
  flex: 0 0 auto;
  width: clamp(220px, 14.1vw, 294px);
}

.brand img {
  display: block;
  height: auto;
  width: 100%;
}

.main-nav {
  align-items: center;
  display: flex;
  font-size: clamp(13px, 0.96vw, 19px);
  font-weight: 400;
  gap: clamp(32px, 4.7vw, 96px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-menu {
  align-items: center;
  display: flex;
  gap: clamp(32px, 4.7vw, 96px);
  list-style: none;
}

.primary-menu .sub-menu {
  display: none;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  background: currentColor;
  bottom: -7px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
  width: 100%;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav .has-submenu {
  padding-right: 22px;
}

.main-nav .has-submenu::before {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  height: 8px;
  position: absolute;
  right: 0;
  top: 2px;
  transform: rotate(45deg);
  width: 8px;
}

.hero {
  background-color: var(--wine);
  background-image: url("assets/hero-background.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100vw auto;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  position: relative;
}

.hero h1 {
  animation: title-in 900ms cubic-bezier(.2,.7,.2,1) both;
  color: white;
  font-size: clamp(120px, 13vw, 260px);
  font-weight: 700;
  left: 50%;
  letter-spacing: 0.15em;
  line-height: 0.78;
  position: absolute;
  text-transform: uppercase;
  top: 50.5%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.social-panel {
  background: rgba(233, 218, 224, 0.42);
  border-radius: 45px 45px 0 0;
  bottom: 0;
  color: white;
  left: 3.7vw;
  min-height: 305px;
  padding: 44px 20px 35px 46px;
  position: absolute;
  width: 238px;
}

.social-panel > p {
  font-size: 23px;
  line-height: 1.15;
  margin-bottom: 36px;
  text-transform: uppercase;
}

.social-panel ul {
  list-style: none;
}

.social-panel li + li {
  margin-top: 13px;
}

.social-panel a {
  align-items: center;
  display: flex;
  font-size: 17px;
  gap: 10px;
}

.instagram {
  border: 2.5px solid white;
  border-radius: 7px;
  display: inline-block;
  height: 27px;
  position: relative;
  width: 27px;
}

.instagram::before {
  border: 2px solid white;
  border-radius: 50%;
  content: "";
  height: 9px;
  left: 6px;
  position: absolute;
  top: 6px;
  width: 9px;
}

.instagram::after {
  background: white;
  border-radius: 50%;
  content: "";
  height: 3px;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 3px;
}

.panel-close {
  align-items: center;
  background: rgba(255,255,255,.55);
  border: 0;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  font-weight: 200;
  height: 21px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: -26px;
  top: 0;
  width: 21px;
}

.support {
  bottom: 48px;
  color: white;
  position: absolute;
  right: 3.7vw;
  text-align: center;
  width: 180px;
}

.support .panel-close {
  right: -10px;
  top: -26px;
}

.heart {
  align-items: center;
  display: flex;
  height: 155px;
  justify-content: center;
  margin: 0 auto 10px;
  position: relative;
  transform: rotate(-45deg);
  width: 155px;
}

.heart::before,
.heart::after {
  background: rgba(225, 203, 212, .44);
  border-radius: 78px 78px 0 0;
  content: "";
  height: 125px;
  left: 15px;
  position: absolute;
  top: 0;
  width: 78px;
}

.heart::after {
  left: 0;
  transform: rotate(90deg);
  transform-origin: 62px 62px;
}

.heart span {
  font-size: 23px;
  line-height: 1.12;
  position: relative;
  text-transform: uppercase;
  transform: rotate(45deg) translate(5px, 5px);
  z-index: 1;
}

.suppi {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-transform: uppercase;
}

.suppi strong {
  font-family: Arial, sans-serif;
  font-size: 31px;
  letter-spacing: -0.08em;
  text-transform: lowercase;
}

.suppi small {
  font-size: 10px;
  font-weight: 700;
  margin-top: 6px;
}

.about {
  background: white;
  height: 100svh;
  overflow: hidden;
  padding-top: var(--header-height);
}

.about-photo {
  background: url("assets/about-group.png") center 65% / cover no-repeat;
  height: min(56vw, 535px);
  max-height: 53vh;
  width: 100%;
}

.about-copy {
  padding: 58px 3.8vw 46px;
}

.about h2 {
  font-size: clamp(46px, 4vw, 76px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.about-columns {
  column-gap: 4.3vw;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-columns p,
.person p {
  color: #111;
  font-size: clamp(15px, 1vw, 20px);
  line-height: 1.18;
  text-align: justify;
}

.team {
  background: white;
  height: 100svh;
  overflow: hidden;
  padding: calc(var(--header-height) + 52px) 0 55px 3.6vw;
  position: relative;
}

.hero,
.about,
.team {
  scroll-snap-align: start;
}

.team-track {
  display: grid;
  gap: 2.8vw;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-right: 3.6vw;
  position: relative;
  width: 100%;
}

.person {
  min-width: 0;
}

.portrait {
  background: var(--wine);
  height: min(49vh, 500px);
  margin-bottom: 13px;
  width: 100%;
}

.person h3 {
  font-size: clamp(25px, 1.75vw, 35px);
  line-height: 1;
  margin-bottom: 10px;
  white-space: nowrap;
}

.person h4 {
  font-size: clamp(16px, 1.05vw, 21px);
  line-height: 1;
  margin-bottom: 68px;
  min-height: 21px;
  text-transform: uppercase;
  white-space: nowrap;
}

.person-fade {
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.18) 42%, transparent 88%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.18) 42%, transparent 88%);
}

.person-fade .portrait {
  background: linear-gradient(90deg, var(--wine), rgba(90,21,32,.06) 72%, transparent);
}

.team-next {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 46px;
  position: absolute;
  right: 3.7%;
  top: 250px;
  width: 46px;
}

.team-next::before {
  border-right: 4px solid var(--wine);
  border-top: 4px solid var(--wine);
  content: "";
  height: 25px;
  left: 3px;
  position: absolute;
  top: 8px;
  transform: rotate(45deg);
  width: 25px;
}

@keyframes title-in {
  from { opacity: 0; transform: translate(-50%, -44%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@media (max-width: 1150px) {
  :root { --header-height: 118px; }
  .site-header { padding-inline: 28px; }
  .main-nav, .primary-menu { gap: 24px; }
  .brand { width: 205px; }
  .hero h1 { font-size: 13vw; }
}

@media (max-width: 820px) {
  :root { --header-height: 94px; }
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; overflow: hidden; padding: 12px 18px 10px; }
  .brand { width: 168px; }
  .main-nav { margin-top: 10px; overflow-x: auto; padding-bottom: 4px; width: 100%; }
  .primary-menu { gap: 24px; }
  .main-nav a { font-size: 11px; }
  .main-nav .has-submenu { padding-right: 14px; }
  .main-nav .has-submenu::before { height: 6px; width: 6px; }
  .hero { min-height: 650px; }
  .hero { background-position: center; background-size: cover; }
  .hero h1 { font-size: 17.2vw; top: 41.5%; }
  .social-panel { border-radius: 30px 30px 0 0; left: 18px; min-height: 255px; padding: 32px 18px 25px 28px; width: 200px; }
  .social-panel > p { font-size: 19px; margin-bottom: 28px; }
  .social-panel a { font-size: 14px; }
  .support { bottom: 30px; right: 15px; transform: scale(.72); transform-origin: right bottom; }
  .about { height: auto; min-height: 100svh; overflow: visible; }
  .about-photo { height: 58vw; max-height: none; }
  .about-copy { padding: 42px 22px; }
  .about h2 { margin-bottom: 30px; }
  .about-columns { gap: 22px; grid-template-columns: 1fr; }
  .about-columns p { font-size: 16px; }
  .team { height: auto; min-height: 100svh; padding: calc(var(--header-height) + 36px) 0 45px 22px; }
  .team-track { gap: 20px; grid-template-columns: repeat(4, 77vw); overflow-x: auto; padding-right: 22px; scroll-snap-type: x mandatory; width: 100%; }
  .person { scroll-snap-align: start; }
  .portrait { height: 72vw; max-height: 500px; }
  .person-fade { mask-image: none; -webkit-mask-image: none; }
  .person-fade .portrait { background: var(--wine); }
  .team-next { display: none; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (min-width: 821px) {
  html { scroll-snap-type: y proximity; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
}

/* Zwykłe podstrony i wpisy WordPress. */
.site-content {
  min-height: 100svh;
  padding: calc(var(--header-height) + 64px) clamp(22px, 7vw, 140px) 90px;
}

.site-content-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.site-content h1 {
  font-size: clamp(48px, 6vw, 110px);
  line-height: .95;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.site-content h2 {
  font-size: clamp(30px, 3vw, 54px);
  margin: 1.5em 0 .6em;
}

.site-content p,
.site-content li {
  color: #111;
  font-size: clamp(17px, 1.15vw, 21px);
  line-height: 1.5;
}

.site-content p + p {
  margin-top: 1em;
}

.site-content ul,
.site-content ol {
  margin: 1.2em 0 1.2em 1.4em;
}

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

.post-list article + article {
  border-top: 1px solid rgba(90, 21, 32, .2);
  margin-top: 60px;
  padding-top: 60px;
}
