/* ======================================================
   EPIKUS 
   ====================================================== */

:root {
  --bg: #ffffff;
  --text: #707070;
  --dark: #222222;
  --accent: #ffb000;
  --link: #505050;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadowdark: rgba(0, 0, 0, 0.2);
  --success: #28a745;
  --error: #dc3545;

  --font-main: Verdana, Arial, sans-serif;

  --radius: 10px;
  --transition: 0.25s ease;
}

/* ======================================================
   RESET
   ====================================================== */

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

/* ======================================================
   HEADER
   ====================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
}
.site-header img {
  display: block;
  max-width: 1024px;
  margin: 0 auto;
}

/* ======================================================
   BODY
   ====================================================== */

body {
  font-family: var(--font-main);
  color: var(--text);

  font-size: 14px;

  margin: 0;
  padding: 0;
}

/* ======================================================
   CONTENT
   ====================================================== */

.content {
  background-color: var(--bg);
  max-width: 1024px;
  border-image: url("images/backmain.jpg") 30 / 30px round;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ======================================================
   TYPOGRAPHY
   ====================================================== */

body,
td,
div,
p,
ul {
  font-family: var(--font-main);
  color: var(--text);
}

p {
  margin-bottom: 16px;
}

ul {
  padding-left: 22px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}

.italic {
  font-style: italic;
}

/* ======================================================
   LINKS
   ====================================================== */

a {
  color: var(--link);
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ======================================================
   HEADINGS
   ====================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  color: var(--dark);
  font-weight: bold;
  line-height: 1.3;
}

h1 {
  font-size: 20px;
  color: var(--accent);

  margin: 20px 0 40px;
  padding-bottom: 10px;

  border-bottom: 3px solid var(--accent);
}

h2 {
  font-size: 16px;
  margin-bottom: 20px;
}

h3 {
  margin-bottom: 15px;
}

h4 {
  margin-bottom: 10px;
}

/* ======================================================
   NAVIGATION
   ====================================================== */

#navigation {
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
  position: sticky;
  top: 189.23px;
  height: 100%;
  background-color: white;
  padding: 10px 0;
  border-top: 1px solid var(--shadow);
  border-right: 1px solid var(--shadowdark);
  border-bottom: 1px solid var(--shadow);
  border-left: 1px solid var(--shadowdark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#navigation ul {
  list-style: none;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 20px;

  padding: 0;
  margin: 0;
}

#navigation li {
  margin: 0;
  position: relative;
}

#navigation li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

#navigation a {
  display: block;
  text-decoration: none;

  padding: 5px 10px;

  border-radius: 1px;

  font-size: 1rem;
  font-weight: bold;

  color: var(--link);

  transition: var(--transition);
}

#navigation a:hover {
  background: var(--accent);
  color: #222;
}

#navigation .active {
  background: var(--accent);
  color: #222;
}

#navigation a.navigation_active {
  background: var(--accent);
  color: #222;
}

/* ======================================================
   BURGER BTN
   ====================================================== */

.burger-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger-btn img {
  width: 24px !important;
  height: 24px;
}
/* ======================================================
   IMAGES
   ====================================================== */

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

/* ======================================================
   AUDIO
   ====================================================== */

audio {
  width: 100%;
  margin-top: 15px;
}

/* ======================================================
   CARDS / CONTENT BLOCKS
   ====================================================== */

.content-box {
  background: #fff;

  border-radius: var(--radius);

  padding: 30px;

  box-shadow: 0 4px 14px var(--shadow);

  margin-bottom: 35px;
}

/* ======================================================
   TABLES
   ====================================================== */

table {
  border-collapse: collapse;
  width: 100%;
}

/* ======================================================
   NEWS
   ====================================================== */
.content {
  margin: auto;
  padding: 60px 60px 70px 60px;
}

.news-item {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.news-item h2 {
  margin-bottom: 10px;
}

.news-item p {
  line-height: 1.6;
}

/* ======================================================
   PHILOSOPHY
   ====================================================== */

.emphasize {
  font-size: 1.3rem;
}

.quote {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.5rem;
}

/* ======================================================
   VIDEO
   ====================================================== */

figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text);
  text-align: center;
}

.video-section {
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/* ======================================================
   FOTOS 
   ====================================================== */
.gallery-group {
  margin: 40px 0;
}

.gallery-group h2 {
  margin-bottom: 1.5rem;
}

.gallery-group h2 span {
  color: var(--text);
  font-size: 0.8em;
  font-weight: 400;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.gallery.portrait {
  grid-template-columns: 120px;
}

.gallery.logos {
  grid-template-columns: repeat(auto-fit, minmax(120px, 140px));
}

.gallery img {
  width: 100%;
  display: block;
  border-radius: 3px;
  border: 1px solid #ddd;
  transition: 0.25s;
}

.gallery.concerts img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top;
}

.gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
}

.gallery a:focus,
.gallery a:active {
  outline: none;
  box-shadow: none;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 12px;
  text-align: center;
  color: var(--text);
}

.credit,
.performers {
  margin-top: 1rem;
  font-size: 12px;
  color: var(--text);
}

/* ======================================================
   AUDIO
   ====================================================== */

.release {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.release-content {
  flex: 7;
  min-width: 0;
}

.release-image img {
  max-width: 200px;
  height: auto;
  object-fit: contain;
}
.release-meta {
  color: var(--text);
  font-size: 0.8em;
  font-weight: 400;
}

/* ======================================================
   BIO
   ====================================================== */
.biography {
  display: flex;
  gap: 1rem;
}
.bio-content {
  flex: 8;
}
.bio-image {
  flex: 2;
  height: auto;
}
.bio-image img {
  border-radius: 3px;
}

.profile dl > div {
  display: grid;
  grid-template-columns: 20% 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
}

.profile dt {
  font-weight: 700;
}

/* ======================================================
   LINKS
   ====================================================== */

.links a {
  display: block;
}

/* ======================================================
   KONTAKT
   ====================================================== */

.contact-form {
  width: 100%;
  max-width: 800px;
  margin-bottom: 40px;
}

.contact-form label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--shadow);
  border-radius: 2px;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 140px;
}

.contact-form button,
.contact-form input[type="submit"] {
  margin-top: 24px;
  padding: 12px 28px;
  border: none;
  border-radius: 2px;
  background: var(--shadow);

  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover,
.contact-form input[type="submit"]:hover {
  background: var(--accent);
}

.contact-details {
  text-align: center;
  color: var(--text);
}

.success {
  color: var(--success);
  display: flex;
}

.success img {
  padding-right: 5px;
  display: inline-block;
  object-fit: contain;
}

.error {
  color: var(--error);
  display: flex;
}

.error img {
  padding-right: 5px;
  display: inline-block;
  object-fit: contain;
}

/* ======================================================
   BOOKS LIST 
   ====================================================== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 30px;
}

.book-card {
  text-align: center;
}

.book-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.book-image {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.book-link:hover .book-image {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
}

.book-link:focus,
.book-link:active {
  outline: none;
  box-shadow: none;
}

.book-title {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.book-detail {
  display: flex;
  column-gap: 4rem;
  margin: 50px 0 50px 0;
}

.book-section {
  margin-top: 40px;
}

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

.book-grid .book-image {
  margin: auto;
}
.book-detail .book-image {
  width: 180px;
}

.book-review {
  display: block;
  margin-bottom: 10px;
  font-style: italic;
}
.book-sample {
  font-style: italic;
}

/* ======================================================
   TEXT
   ====================================================== */
.text-section {
  margin-top: 30px;
}
.text-section .author {
  font-size: 10px;
  font-weight: 300;
  color: var(--text);
}
/* ======================================================
   FOOTER
   ====================================================== */

.site-footer {
  color: #cccccc;
  text-align: center;
}

.site-footer img {
  width: 100%;
  max-width: 1024px;
  margin: auto;
  display: flex;
  margin-bottom: 16px;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
  .site-header img:not(.burger-btn img) {
    width: 100%;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
/* MOBILE */

@media (max-width: 800px) {
  .biography {
    display: block;
  }
  .bio-image img {
    max-width: 180px;
    margin: auto;
  }
  body.menu-open {
    overflow: hidden;
  }
  .content {
    padding: 10px 30px;
    border-image: url("images/backmain.jpg") 10 / 10px round;
  }

  #navigation li:not(:last-child)::after {
    content: "";
  }

  .burger-btn-wrapper {
    border-bottom: 1px solid var(--shadowdark);
    background: var(--bg);
    padding: 10px 30px 10px 30px;
    display: flex;
    justify-content: flex-end;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }

  .burger-btn {
    display: block;
    position: sticky;
    top: 110px;
    background-color: var(--bg);
    color: #000;
  }

  .burger-btn img {
    transition: transform 0.2s ease;
    color: #000;
  }

  .burger-btn[aria-expanded="true"] img {
      transform: rotate(90deg);
  }

  .site-nav.open ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  #navigation {
    position: fixed;
    top: 0;
    border: none;
  }

  #navigation ul {
    flex-direction: column;
    gap: 10px;
  }

  #navigation li a {
    font-size: 14px;
  }

  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
  }

  .site-nav li {
    margin-bottom: 0.5rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem;
    text-decoration: none;
  }

  body {
    font-size: 13px;
    line-height: 1.6;
  }

  #navigation a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  .quote {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1rem;
  }
  .gallery-section h2 span {
    display: block;
    font-size: 0.8rem;
  }
  .release-meta {
    font-size: 0.7rem;
    display: block;
  }
}

@media (max-width: 500px) {
  .profile dl > div {
    display: block;
  }
  .release {
    flex-direction: column;
    gap: 0;
  }
  .release-image {
    display: block;
  }
  .release-image img {
    max-width: 150px;
    height: auto;
    margin: auto;
  }
  .release audio {
    margin-bottom: 15px;
  }
  .book-image {
    margin: auto;
    width: 50%;
    margin-bottom: 20px;
  }
  .book-detail {
    display: block;
    margin: 30px 0 30px 0;
  }

  #navigation ul {
    gap: 5px;
  }
}
