/* ==========================================================
   Vít Žižka — shared styles for every page
   ========================================================== */

:root {
  --bg:   #D0D0D0;
  --ink:  #1a1a1a;
  --soft: rgba(26, 26, 26, 0.68);   /* quieter text */
  --rule: rgba(0, 0, 0, 0.12);      /* thin dividing lines */
  --font: "Open Sans", Arial, sans-serif;            /* regular text */
  --heading: Feijoa, Lora, Georgia, serif;            /* titles: Feijoa if installed below, Lora until then */
}

/* FEIJOA (paid font from Klim Type Foundry, klim.co.nz).
   Once you have the web font files, put them in a folder called "fonts"
   next to this file, check the file name matches, and remove the slash-star
   comment marks around the block below.

@font-face {
  font-family: "Feijoa";
  src: url("fonts/feijoa-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*/

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

body {
  margin: 0;
  padding: 12vh 20px 6vh 20px;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  text-align: center;
  -webkit-font-smoothing: antialiased;
  overflow-y: scroll;
}

h1 {
  margin: 0 0 1.7rem 0;
  font-family: var(--heading);
  font-size: 2.6rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  padding-left: 0.2em;             /* balances the space letter-spacing adds after the last letter */
}

a { color: var(--ink); }

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

/* Buttons (Contact page, ticket links) */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.1s ease, color 0.1s ease;
}
.btn:hover,
.btn-solid {
  background-color: var(--ink);
  color: #e3e4de;
}
.btn-solid:hover {
  background-color: transparent;
  color: var(--ink);
}

/* ---------- Menu ---------- */

.nav-links {
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  transition: opacity 0.1s ease;
}

.nav-links a:hover { opacity: 0.5; }

/* The page you're on gets a thin underline */
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.15em;
  bottom: -6px;
  height: 1px;
  background: currentColor;
}

/* ---------- Social icons ---------- */

.social-icons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
}

.social-icons a {
  display: inline-block;
  transition: opacity 0.1s ease;
}

.social-icons a:hover { opacity: 0.5; }
.social-icons svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* ==========================================================
   Home
   ========================================================== */

.photo-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 4rem auto;
}

.photo-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================
   About
   ========================================================== */

.about {
  width: 100%;
  max-width: 36rem;
  min-height: 48vh;
  margin: 0 auto 3rem auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text p {
  margin: 0 0 1.3rem 0;
  font-size: 1.3rem;
  line-height: 1.6;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text .lead {
  margin-bottom: 2rem;
}

/* Spotify player, shown 30% larger so its text is easier to read */
.listen {
  --scale: 1.3;
  width: 100%;
  max-width: 420px;
  height: calc(152px * var(--scale));
  margin: 3rem auto 0 auto;
}

.listen iframe {
  display: block;
  width: calc(100% / var(--scale));
  height: 152px;
  border: 0;
  border-radius: 12px;
  transform: scale(var(--scale));
  transform-origin: 0 0;
}

/* ==========================================================
   Tour
   ========================================================== */

.tour-list {
  width: 100%;
  max-width: 900px;
  min-height: 46vh;
  margin: 0 auto 3rem auto;
  text-align: left;
}

.tour-section + .tour-section { margin-top: 3.5rem; }

.tour-section h2 {
  margin: 0 0 0.5rem 0;
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-align: center;
}

.tour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
}

.tour-row:last-child { border-bottom: none; }

.tour-date-venue {
  flex: 1;
  letter-spacing: 0.06em;
  line-height: 1.6;
  font-size: 0.95rem;
}

.tour-date-venue strong {
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.tour-location {
  flex: 1;
  text-align: center;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.tour-ticket {
  flex: 1;
  text-align: right;
}

.ticket-price {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.tour-ticket a {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 0.6rem 1.8rem;
  text-decoration: none;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  transition: all 0.1s ease;
}

.tour-ticket a:hover {
  background-color: var(--ink);
  color: #e3e4de;
}

/* Shows that have already happened */
.tour-section.past .tour-row { opacity: 0.55; padding: 1.1rem 0; }
.tour-section.past .tour-ticket { visibility: hidden; }

.tour-empty {
  margin: 1.5rem 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
}

.tour-empty a { text-underline-offset: 0.25em; }
.tour-empty a:hover { opacity: 0.5; }

/* ==========================================================
   Store
   ========================================================== */

.store-container {
  width: 100%;
  max-width: 1080px;
  min-height: 55vh;
  margin: 2.5rem auto 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.5rem 2.5rem;
  align-items: start;
}

.store-container > div { width: 100%; }

.store-note {
  max-width: 34rem;
  margin: 3.5rem auto 3rem auto;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.8;
}

.store-note a { color: var(--ink); text-underline-offset: 0.2em; }
.store-note a:hover { opacity: 0.5; }

/* ==========================================================
   Contact
   ========================================================== */

.contact-info {
  width: 100%;
  max-width: 560px;
  min-height: 48vh;
  margin: 0 auto 2.6rem auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-intro {
  margin: 0 0 1.1rem 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-email {
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: opacity 0.1s ease;
}
.contact-email:hover { opacity: 0.5; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.contact-actions .btn { min-width: 11.5rem; }

/* ==========================================================
   Smaller screens
   ========================================================== */

@media (max-width: 960px) {
  .store-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; }
}

@media (max-width: 600px) {
  h1 { font-size: 2.1rem; }
  .nav-links { gap: 0.6rem 0.85rem; }
  .nav-links a { font-size: 0.98rem; letter-spacing: 0.06em; }
  .nav-links a[aria-current="page"]::after { right: 0.06em; }
  .about-text p { font-size: 1.15rem; }
  .tour-row { flex-direction: column; gap: 0.6rem; text-align: center; }
  .tour-date-venue, .tour-location, .tour-ticket { text-align: center; flex: none; }
  .tour-section.past .tour-ticket { display: none; }
  .store-container { grid-template-columns: minmax(0, 1fr); max-width: 360px; gap: 3.5rem; }
  .contact-email { font-size: 1.15rem; letter-spacing: 0.03em; }
}

/* Home: equal visible space above and below the photo */
.home h1 { margin-bottom: 2.45rem; }
.home .photo-container { margin-bottom: 2.6rem; }
