/*
MARK: VARS
*/

:root {
  --bg: hsl(0 0% 100%);
  --bg-80: hsl(from var(--bg) h s l / 80%);
  --bg-60: hsl(from var(--bg) h s l / 60%);
  --bg-50: hsl(from var(--bg) h s l / 50%);
  --bg-40: hsl(from var(--bg) h s l / 40%);
  --bg-20: hsl(from var(--bg) h s l / 20%);
  --bg-10: hsl(from var(--bg) h s l / 10%);
  --bg-5: hsl(from var(--bg) h s l / 5%);
  --bg-2: hsl(from var(--bg) h s l / 2%);
  --bg-0: hsl(from var(--bg) h s l / 0%);
  --text: hsl(0 0% 0%);
  --text-80: hsl(from var(--text) h s l / 80%);
  --text-60: hsl(from var(--text) h s l / 60%);
  --text-50: hsl(from var(--text) h s l / 50%);
  --text-40: hsl(from var(--text) h s l / 40%);
  --text-20: hsl(from var(--text) h s l / 20%);
  --text-10: hsl(from var(--text) h s l / 10%);
  --text-5: hsl(from var(--text) h s l / 5%);
  --text-2: hsl(from var(--text) h s l / 2%);
  --text-0: hsl(from var(--text) h s l / 0%);
  --color: hsl(25 100% 50%);
  --font: "Inter", Helvetica, sans-serif;
  --font-bold: "Inter", Helvetica, sans-serif;
  --font-italic: "Inter", Helvetica, sans-serif;
  --font-title: "Bodoni Moda", serif;
  --font-title-italic: "Bodoni Moda", serif;
  --font-size: 1rem;
  --font-size-small: 0.75rem;
  --font-size-medium: 1.4rem;
  --font-size-large: 1.8rem;
  --font-size-huge: 2.4rem;
  --border-radius: 1rem;

  @media (width < 1600px) {
    --border-radius: 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(0 0% 0%);
    --text: hsl(0 0% 100%);
    --color: hsl(25 100% 50%);
  }
}

/*
MARK: FONTS
*/

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Inter-Regular.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Inter-Italic.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Inter-Bold.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400;
  src: url("fonts/bodoni-moda-regular.woff2") format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400;
  src: url("fonts/bodoni-moda-italic.woff2") format('woff2');
}

/*
MARK: ANIMS
*/

@media screen and (prefers-reduced-motion: no-preference) {

  html {
    scroll-behavior: smooth;
  }

  @view-transition {
    navigation: auto;
  }

  /*   #artist-selector a:first-child,
  .artist {
    view-transition-name: artist;
  } */

}

/* 
MARK: GENERAL
*/

* {
  box-sizing: border-box;
}

::selection {
  color: var(--bg);
  background: var(--color);
}

body {
  font-family: var(--font);
  font-size: var(--font-size);
  background-color: var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
  padding: 0;
  max-width: 1600px;
  margin: 0 auto;
}

a,
a:visited {
  color: var(--text);
}

a:hover {
  color: var(--text-60);
}

b,
strong {
  font-family: var(--font-bold);
  font-weight: 700;
}

em,
i {
  font-family: var(--font-italic);
  font-style: italic;
}

/*
MARK: HEADER
*/



header {
  margin: 1rem 2rem;
  height: 3rem;
  justify-content: space-between;
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
}

h1 {
  margin: 0;
  padding: 0;
}

h1 img {
  height: 3rem;
  transform-origin: top left;

  @media (prefers-color-scheme: dark) {
    filter: invert();
  }
}

#nav-main {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;

  @media (1023px < width < 1200px) {
    gap: 0.5rem;
  }
}

#mobile-nav-toggle {
  display: none;
}

#nav-secondary {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  font-size: var(--font-size-small);
  text-align: right;
}

.icon {
  width: 1rem;
  height: 1rem;

  @media (prefers-color-scheme: dark) {
    filter: invert();
  }
}

#nav-secondary hr {
  width: 1px;
  height: 1.5rem;
  background: var(--text-20);
  margin: 0;
  border: 0;
}

nav a {
  text-decoration: none;
  text-transform: uppercase;
}

html[lang="en"] #lang-en,
html[lang="hu"] #lang-hu {
  text-decoration: underline;
}

#nav-main a {
  color: var(--text);
  border-radius: 2rem;
  padding: 0.25rem 0.7rem 0.2rem 0.7rem;
  transition: background 500ms ease;
  display: inline-block;
  letter-spacing: 0.1px;

  @media (1023px < width < 1200px) {
    font-size: var(--font-size-small);
  }
}

#nav-main a:hover,
#nav-main a.active {
  background: var(--text-5);

  @media (prefers-color-scheme: dark) {
    background: var(--text-10);
  }
}

#nav-main a:last-child,
#nav-main a:last-child:visited,
.btn,
.btn:visited {
  color: var(--bg);
  background: var(--text);
  border-radius: 2rem;
  padding: 0.25rem 0.7rem 0.2rem 0.7rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 500ms ease, color 500ms ease;
  white-space: nowrap;
  display: inline-block;
  letter-spacing: 0.1px;
}

#nav-main a:last-child:hover,
.btn:hover {
  background: var(--color);
  color: var(--text);
}

#nav-main a:last-child:hover span,
.btn:hover span {
  animation: arrow 0.5s 250ms infinite ease;
  display: inline-block;
}

.btn.big {
  font-size: var(--font-size-medium);
  padding: 1rem 2rem 0.8rem 2rem;
  letter-spacing: 0.5px;
}

.btn.gray {
  background: var(--text-10);
  color: var(--text);
}

@keyframes arrow {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(2px);
  }
}

@media (width < 1023px) {

  header {
    width: 100%;
    margin: 0;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(.5rem) saturate(25%);
    background: var(--bg-60);
    border-bottom: 1px solid var(--bg);
    box-shadow: 0 1rem 1rem var(--text-5);
    grid-template-columns: 1fr;
    height: 4.5rem;
    transition: height 0.25s ease;
    overflow: hidden;
  }

  header::before {
    content: "";
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg);
    mask: linear-gradient(#fff, transparent);
  }

  header.open {
    height: 100dvh;
  }

  .no-scroll {
    overflow-y: hidden;
  }

  @keyframes mobile-nav {
    to {
      height: 100dvh;
    }
  }

  @keyframes mobile-nav-back {
    to {
      height: 4.5rem;
    }
  }

  h1 {
    text-align: center;
    padding: 1rem;
  }

  h1 img {
    transform-origin: center center;
    height: 2.5rem;
  }

  header.open h1 img {
    transition: height .5s ease;
    height: 4rem;
  }

  #mobile-nav-toggle {
    display: block;
  }


  #mobile-nav-toggle input {
    display: none;
  }

  #mobile-nav-toggle label {
    position: absolute;
    top: 1.85rem;
    right: 1.5rem;
    z-index: 99;
    width: 1rem;
    height: 0.75rem;
  }

  #mobile-nav-toggle label span {
    display: block;
    position: absolute;
    width: 1rem;
    height: 2px;
    background: var(--text);
    transition: all 250ms ease;
  }

  #mobile-nav-toggle label span:nth-child(1) {
    top: 0;
  }

  #mobile-nav-toggle label span:nth-child(2) {
    top: calc(50% - 1px);
  }

  #mobile-nav-toggle label span:nth-child(3) {
    bottom: 0;
  }

  #mobile-nav-toggle:has(input:checked) label span:nth-child(1) {
    rotate: 45deg;
    translate: 0 6px;
  }

  #mobile-nav-toggle:has(input:checked) label span:nth-child(2) {
    opacity: 0;
  }

  #mobile-nav-toggle:has(input:checked) label span:nth-child(3) {
    rotate: -45deg;
    translate: 0 -4px;
  }



  #nav-main {
    flex-direction: row;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
  }

  #nav-secondary {
    justify-content: center;
  }
}

/* MARK: MAIN */

main {
  margin: 0 2rem;

  @media (width < 1600px) {
    margin: 0;
  }

  @media (width < 1023px) {
    padding-top: 4.5rem;
  }
}

body:not(.home) main {
  background: var(--text-2);
  border-radius: var(--border-radius);
  padding: 1rem;
  overflow: clip;

  @media (width < 1023px) {
    margin-top: 4.5rem;
    padding-top: 2rem;
  }

  @media (prefers-color-scheme: dark) {
    background: var(--text-10);
  }
}

article {
  position: relative;
  padding: 2rem;

  @media (width < 1023px) {
    padding: 0rem;
  }
}

article h2,
article h3,
article h4,
article blockquote {
  text-align: center;
  font-family: var(--font-title);
  font-size: var(--font-size-large);
  line-height: 125%;
  font-weight: 400;
  text-wrap: balance;
  color: var(--text-80);
  margin: 0 0 2rem 0;

  @media (width < 1023px) {
    font-size: var(--font-size-medium);
    line-height: 115%;
  }
}

article h2 {
  font-size: var(--font-size-huge);

  @media (width < 1023px) {
    font-size: var(--font-size-large);
  }
}

article h3 {
  margin: 4rem 0 1rem 0;
}

article h4 {
  font-style: italic;
  color: var(--text-50);
  font-size: var(--font-size);
}

article h3+h4 {
  margin-top: -1rem;
}

article blockquote {
  font-style: italic;
  hanging-punctuation: first allow-end last;
  color: var(--text-50);
}

article p {
  max-width: 80ch;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.4rem;
  text-wrap: pretty;
  text-align: justify;
  hanging-punctuation: first allow-end last;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  margin-bottom: 1rem;
}

article img:not(.clear),
article video {
  width: 100%;
}

article>img {
  display: block;
  margin: 2rem 0;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;

  @media (width < 1023px) {
    grid-template-columns: 1fr;
  }
}

.centered {
  align-content: center;
  text-align: center;
}

.sticky {
  @media (width > 1023px) {
    position: sticky;
    top: 2rem;
  }
}

.images {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 1rem;
  margin: 2rem 0;
}

.images a {
  display: block;
  outline: 2px solid var(--text);
  transition: outline 500ms ease, color 500ms ease;
}

.images a img {
  display: block;
  height: 100%;
  width: 100%;
}

.images a:hover {
  outline: 2px solid var(--color);
}

.center {
  text-align: center;
}

#hero {
  position: relative;
  border-radius: var(--border-radius);
  height: max(calc(100dvh - 7rem), 50rem);
  overflow: clip;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background-image: url(images/hero.webp);
  background-position: center;
  background-size: cover;
  padding: 2rem;

  @media (width < 1023px) {
    background-image: url(images/hero-mobile.webp);
    justify-content: space-between;
    align-items: stretch;
    flex-direction: column;
    height: calc(100dvh - 4.5rem);

    .btn.big {
      width: 100%;
      text-align: center;
      font-size: var(--font-size);
    }
  }
}

#hero::after {
  background: var(--bg);
  position: absolute;
  content: "";
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mask: linear-gradient(transparent 70%, #fff8);
}

#hero div {
  position: relative;
  z-index: 1;
}

#hero h2 {
  font-family: var(--font-bold);
  text-transform: uppercase;
  font-size: var(--font-size);
  margin: 0 0 1rem 0;
  text-wrap: balance;
  letter-spacing: 0.5px;

  @media (width < 1023px) {
    font-size: var(--font-size);
    color: var(--bg);
  }
}

#hero p {
  font-family: var(--font-title-italic);
  font-style: italic;
  font-size: var(--font-size-large);
  margin: 0;
  text-wrap: balance;
  line-height: 110%;

  @media (width < 1023px) {
    font-size: var(--font-size-medium);
    color: var(--bg);
  }
}

#hero .background {
  position: absolute;
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
  z-index: -1;
  mask: linear-gradient(#fff 80%, #fff3);
}

#artist-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;

  @media (width < 1200px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (width < 1023px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

#artist-selector a {
  position: relative;
  aspect-ratio: 2/3;
  text-align: center;
  text-decoration: none;
  align-content: center;
  transition: outline 750ms ease;
  overflow: clip;
  align-items: flex-end;
  align-content: flex-end;
  display: flex;
  background-size: cover;
  outline: 2px solid var(--text);
}

#artist-selector .name {
  position: relative;
  z-index: 3;
  width: 100%;
}

#artist-selector a:hover {
  outline: 2px solid var(--color);
}

#artist-selector .name {
  padding: 6rem 1rem 1rem 1rem;
  background: linear-gradient(transparent, var(--text-5) 20%, var(--text-10) 30%, var(--text-20) 40%, var(--text-50) 60%, var(--text-60) 80%, var(--text-80));
  color: var(--bg);
  font-family: var(--font-title);
  font-size: var(--font-size-medium);

  @media (prefers-color-scheme: dark) {
    padding: 8rem 1rem 1rem 1rem;
    color: var(--text);
    background: linear-gradient(transparent, var(--bg-5) 20%, var(--bg-10) 30%, var(--bg-20) 40%, var(--bg-50) 60%, var(--bg-80) 80%, var(--bg));
  }
}

#artist-selector .name span {
  display: block;
  font-size: var(--font-size);
  color: var(--bg-60);

  @media (prefers-color-scheme: dark) {
    color: var(--text-60);
  }
}

#artist-selector a[href="uzsaly-marton"] {
  background-image: url(images/uzsaly-marton.webp);
}

#artist-selector a[href="kecskes-orsolya"] {
  background-image: url(images/kecskes-orsolya.webp);
}

#artist-selector a[href="edocs-marta"] {
  background-image: url(images/edocs-marta.webp);
}

#artist-selector a[href="varga-flora"] {
  background-image: url(images/varga-flora.webp);
}

#artist-selector a[href="denes-petra"] {
  background-image: url(images/denes-petra.webp);
}


@media (width < 1024px) {

  #artist-selector {
    gap: .5rem;
  }

  #artist-selector a {
    height: 100%;
  }

  #artist-selector .name {
    font-size: var(--font-size);
  }

  #artist-selector .name span {
    font-size: var(--font-size-small);
  }

}

#artist-selector-small {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  background: var(--bg);
  border-radius: 4rem;
  font-family: var(--font-title);
  padding: .25rem;
  box-shadow: 0 0 1rem var(--text-5);

  @media (width < 1200px) {
    display: none;
  }
}

#artist-selector-small a {
  text-transform: none;
  text-align: center;
  border-radius: 4rem;
  padding: .25rem;
  transition: background 500ms ease;
}

#artist-selector-small a.active,
#artist-selector-small a:hover {
  background: var(--text-2);
  color: var(--text);

  @media (prefers-color-scheme: dark) {
    background: var(--text-10);
  }
}

#artist-selector-small span {
  display: block;
  font-size: var(--font-size);
  color: var(--text-50);
}

.artist {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;

  @media (width < 1200px) {
    grid-template-columns: 1fr;
  }

  &:has(.artist-video.wide) {
    grid-template-columns: 1fr 1fr;

    @media (width < 1200px) {
      grid-template-columns: 1fr;
    }
  }
}

.artist-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.artist-links {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  @media (width < 1200px) {
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
  }
}

.artist-links>div>a {
  display: block;
  margin-top: 0.5rem;
}

.email {
  background: url(images/email.svg) 0px 1px no-repeat;
  background-size: 20px;
  padding-left: 24px;
}

.ig {
  background: url(images/ig.svg) 1px 1px no-repeat;
  background-size: 18px;
  padding-left: 24px;
}

.link {
  background: url(images/link.svg) 1px 3px no-repeat;
  background-size: 18px;
  padding-left: 24px;
}

.artist-links .btn {
  padding: 0.5rem 1rem 0.4rem 1rem;

  @media (width < 1200px) {
    align-self: center;
  }
}

.artist-video,
.artist-video video {
  aspect-ratio: 9/16;
  object-fit: cover;
}

.artist-video.wide,
.artist-video.wide video {
  aspect-ratio: auto;
}

.artist h2 {
  margin-bottom: 0;
}

.artist h3 {
  margin-top: 0;
  color: var(--text-50);
  font-size: var(--font-size-medium);
}

.event {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--text-10);

  @media (width < 1200px) {
    grid-template-columns: 1fr;
  }
}

.event:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.event h3 {
  text-align: left;
  margin-top: 0;
}

.small {
  font-size: var(--font-size-small);
  color: var(--text-50);
}

.event-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.event-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;

  @media (width < 1023px) {
    grid-template-columns: 1fr;
  }
}

#shop>.btn.gray {
  @media (width < 1023px) {
    margin: 0 auto;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    width: fit-content;
  }
}

#categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
  gap: 1rem;
}

#categories a {
  display: block;
  aspect-ratio: 1/1;
  text-align: center;
  text-decoration: none;
  overflow: clip;
  background: var(--text-20);
  align-content: center;
  background-size: cover;
  outline: 2px solid var(--text);
  transition: outline 500ms ease, color 500ms ease;
}

#categories a:hover {
  outline: 2px solid var(--color);
  color: var(--color);
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
  gap: 1rem;
  text-align: center;
}

.shop-items a {
  text-decoration: none;
  display: block;
  position: relative;
}

.shop-items a img {
  display: block;
  outline: 2px solid var(--text);
  transition: outline 500ms ease, color 500ms ease;
  margin-bottom: .5rem;
}

.shop-items a:hover img {
  outline: 2px solid var(--color);
  color: var(--color);
}

.shop-items span {
  font-size: var(--font-size-small);
  padding: .25rem .5rem;
  background: var(--bg);
  opacity: .5;
  position: absolute;
  top: 4px;
  left: 4px;
}

.shop-item {
  display: grid;
  grid-template-columns: 1fr 1.68fr;
  gap: 1rem;
  margin-top: 2rem;

  @media (width < 1023px) {
    grid-template-columns: 1fr;
  }
}

.shop-item p {
  max-width: 100%;
}

.shop-item-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.shop-item-images a:first-child {
  grid-column: span 2;
}

.shop-item-images a {
  display: block;
  outline: 2px solid var(--text);
  transition: outline 500ms ease, color 500ms ease;
}

.shop-item-images a:hover {
  outline: 2px solid var(--color);
  color: var(--color);
}

.shop-item-images a img {
  display: block;
}

.shop-item-text {
  display: flex;
  flex-direction: column;
  height: fit-content;
  justify-content: flex-start;
  gap: 4rem;
}

.shop-item-desc h2 {
  font-size: var(--font-size-large);
  margin-bottom: 1rem;
  text-align: left;
}

.shop-item-desc-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.shop-item-desc-title div:last-child {
  padding: .25rem .5rem;
  background: var(--bg);
}

.shop-item-info {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  width: fit-content;
}

.shop-item-info>div {
  background: var(--bg);
  padding: 1rem;
  text-align: center;
}

.shop-item-info>div>div:first-child {
  margin-bottom: .5rem;
}

.shop-item-info>div>div:last-child {
  font-weight: bold;
}

.shop-item-buy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--text-10);
  padding-top: 1rem;

  @media (width < 1023px) {
    flex-direction: column;
    align-items: flex-start;
  }
}

.shop-item-buy-price {
  text-align: right;
  font-size: var(--font-size-large);
}

.shop-item-buy-text {
  grid-column: span 2;
  background: var(--bg);
  padding: 1rem;
  border: 2px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;

  @media (width < 1023px) {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

.shop-item-buy-text a {
  text-transform: none !important;
}



/* 
MARK: FOOTER
*/

footer {
  text-align: center;
  font-size: x-small;
  margin: 4rem 2rem;
  position: relative;
  overflow: hidden;
  opacity: 0.25;
}

footer img {
  height: 2.5rem;
}