@import url("fonts.css");

:root {
  --peach: #ffe7d7;
  --peach-text: #ffdfcb;
  --taupe: #99867a;
  --brown: #665951;
  --ink: #332d29;
  --sand: #e6deca;
  --blue: #3f49ac;
  --yellow: #ffdd3f;
  --orange: #ff6640;
  --header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--brown);
  font: 300 18px/2 "Roboto", sans-serif;
  letter-spacing: 0.04em;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--peach);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.35);
}

.site-header__inner {
  max-width: 1120px;
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font: 400 40px/1 "Sacramento", cursive;
  color: #292929;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  font: 400 16px/1.6 "Anton", sans-serif;
  letter-spacing: 0.02em;
  color: var(--taupe);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  text-shadow: 0 0 1px var(--taupe);
}

.nav-toggle {
  display: none;
}

/* Page layout: a photo (or map) half and a text half */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split--wide-media {
  grid-template-columns: 2fr 1fr;
}

.split__media {
  position: relative;
  min-height: 420px;
  background: var(--taupe);
}

.split__media > img,
.split__media > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 48px clamp(24px, 8%, 112px) 64px;
}

.panel > * {
  position: relative;
  max-width: 34rem;
}

.panel--taupe {
  background: var(--taupe);
  color: var(--peach-text);
}

.panel--center,
.text-center {
  text-align: center;
}

.panel--center > * {
  margin-left: auto;
  margin-right: auto;
}

h1,
.lead {
  font-family: "Ubuntu", sans-serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.25;
}

h1 {
  margin: 0 0 1.2em;
  font-size: 38px;
}

.panel--taupe h1 {
  color: var(--peach-text);
}

p {
  margin: 0 0 1.6em;
}

.justify {
  text-align: justify;
  hyphens: auto;
}

h2 {
  margin: 0;
  font: 500 18px/2 "Roboto", sans-serif;
}

h2 + p {
  margin-top: 0;
}

/* Home */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  margin: 0 0 0.9em;
  font-size: 34px;
}

.hero h1 span {
  display: block;
  margin-top: 0.3em;
  font-size: 65px;
}

.hero .lead {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.08em;
  margin-bottom: 2.4em;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-block;
  padding: 8px 18px;
  background: var(--sand);
  color: #000;
  font: 600 15px/1.6 "Bitter", serif;
  letter-spacing: 0;
  text-decoration: none;
  transition: background 0.2s;
}

.button:hover {
  background: #fff;
}

.button--wide {
  min-width: 240px;
  text-align: center;
}

/* Program */

.schedule {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 24px 36px;
  justify-content: center;
  margin: 0;
  text-align: left;
}

.schedule dt {
  font-weight: 500;
}

.schedule dd {
  margin: 0;
}

.subtitle {
  margin-top: -1.6em;
  font-family: "Ubuntu", sans-serif;
  font-style: italic;
}

/* Helyszín */

.map-link img {
  width: 54px;
  height: 54px;
}

/* Galéria */

.gallery {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 96px 16px;
}

.gallery ul {
  margin: 0;
  padding: 0 0 0 clamp(0px, 10vw, 110px);
  list-style: none;
}

.gallery li + li {
  margin-top: 1.2em;
}

.gallery a {
  font: 600 clamp(22px, 3.4vw, 30px)/1.4 "Poppins", sans-serif;
  letter-spacing: 0;
  color: var(--blue);
}

.gallery a:hover {
  color: var(--orange);
}

/* Confetti decoration */

.confetti {
  position: absolute;
  inset: 0;
  max-width: none;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: rotate(var(--r, 0deg));
}

.confetti .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--peach-text);
}

.confetti .bar {
  width: 14px;
  height: 36px;
  background: var(--orange);
}

.confetti .arc {
  width: 64px;
  height: 64px;
  border: 16px solid var(--yellow);
  border-radius: 50%;
  border-top-color: transparent;
  border-left-color: transparent;
}

/* Footer */

.site-footer {
  padding: 10px 16px;
  background: var(--peach);
  box-shadow: 0 -1px 4px rgb(0 0 0 / 0.25);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
  white-space: nowrap;
}

/* Not found */

.not-found {
  flex: 1;
  display: grid;
  place-content: center;
  padding: 64px 16px;
  text-align: center;
}

/* Narrow screens: stack the halves, collapse the menu */

@media (max-width: 1080px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 0;
    background: transparent;
    color: var(--taupe);
    font: 400 16px/1.6 "Anton", sans-serif;
    cursor: pointer;
  }

  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
  }

  .nav-toggle__icon {
    position: relative;
  }

  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    content: "";
    position: absolute;
  }

  .nav-toggle__icon::before {
    top: -6px;
  }

  .nav-toggle__icon::after {
    top: 6px;
  }

  .site-header__inner {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav {
    flex-basis: 100%;
  }

  .js .nav:not(.is-open) {
    display: none;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
  }

  .nav a {
    display: block;
    padding: 6px 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .split,
  .split--wide-media {
    grid-template-columns: 1fr;
  }

  .split__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .split__media--tall {
    aspect-ratio: 3 / 4;
  }

  .panel {
    padding: 36px 16px 48px;
  }

  .confetti {
    display: none;
  }

  .hero h1 span {
    font-size: 52px;
  }

  .gallery {
    padding: 48px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
