:root {
  --sepia: #241209;
  --ink: #1a1208;
  --maroon: #7a1f1f;
  --maroon-dark: #551212;
  --cream: #e8d9b0;
  --cream-dark: #cbb888;

  --font-title: 'Rye', serif;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--cream);
  line-height: 1.5;
}

img { image-rendering: pixelated; image-rendering: crisp-edges; }

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(20,10,5,0.55), rgba(15,8,4,0.8)),
    url('/img/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 70px;
  position: relative;
  z-index: 1;
}

/* ---------- Hero / title ---------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.title-flank img {
  width: 64px;
  height: auto;
  filter: drop-shadow(2px 3px 0 rgba(0,0,0,.6));
  animation: spin 4s linear infinite;
}

.title-flank-right img {
  width: 92px;
  animation: spin 3.4s linear infinite reverse;
}

.site-title {
  font-family: var(--font-title);
  font-weight: normal;
  font-size: clamp(2rem, 7vw, 3.6rem);
  text-align: center;
  color: var(--cream);
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 0;
  text-shadow:
    2px 2px 0 var(--maroon-dark),
    -2px -2px 0 var(--maroon-dark),
    2px -2px 0 var(--maroon-dark),
    -2px 2px 0 var(--maroon-dark),
    0 6px 14px rgba(0,0,0,.65);
}

.site-title .title-de {
  display: block;
  font-size: 0.32em;
  letter-spacing: 6px;
  margin: 4px 0;
  opacity: .92;
}

/* ---------- Poster box ---------- */

.poster-box {
  background: rgba(232, 217, 176, 0.62);
  color: var(--sepia);
  border: 5px solid var(--ink);
  box-shadow: 0 0 0 3px var(--cream-dark) inset, 0 10px 24px rgba(0,0,0,.55);
  padding: 26px 30px;
  font-size: 1.3rem;
  line-height: 1.55;
}

.poster-box p:last-child { margin-bottom: 0; }

/* ---------- Arquivo button ---------- */

.arquivo-btn-wrap {
  text-align: center;
  margin: 30px 0;
}

.arquivo-btn, .back-link {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: .75rem;
  color: var(--cream);
  background: var(--maroon);
  padding: 15px 30px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  letter-spacing: 1px;
  transition: transform .1s, box-shadow .1s;
}

.arquivo-btn:hover, .back-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--maroon-dark);
}

/* ---------- Jukebox ---------- */

.jukebox-section {
  text-align: center;
  margin: 36px 0;
}

.jukebox-img {
  width: 190px;
  cursor: pointer;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.6));
  transition: transform .15s;
}

.jukebox-img:hover { transform: scale(1.05); }

.jukebox-hint {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--cream-dark);
  margin-top: 6px;
}

.jukebox-player {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.jukebox-player.hidden { display: none; }

#spotify-frame {
  border-radius: 6px;
  border: 2px solid var(--ink);
}

/* ---------- Ticket / post list ---------- */

.ticket-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket {
  background: rgba(36, 18, 9, .78);
  border: 2px solid var(--cream-dark);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ticket a {
  color: var(--cream);
  font-family: var(--font-pixel);
  font-size: .78rem;
  text-decoration: none;
  line-height: 1.4;
}

.ticket a:hover { color: #ffb400; }

.ticket time {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--cream-dark);
  white-space: nowrap;
}

/* ---------- Post page ---------- */

.post-page h1 {
  font-family: var(--font-title);
  font-size: 2.1rem;
  margin: 0 0 4px;
}

.post-page time {
  display: block;
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: #5a4326;
  margin-bottom: 18px;
}

.post-page .content p { margin: 0 0 1.1em; }

/* ---------- Archive page ---------- */

.archive-header h1 {
  font-family: var(--font-title);
  text-align: center;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--cream);
  text-shadow:
    2px 2px 0 var(--maroon-dark),
    -2px -2px 0 var(--maroon-dark),
    2px -2px 0 var(--maroon-dark),
    -2px 2px 0 var(--maroon-dark),
    0 6px 14px rgba(0,0,0,.65);
  margin: 0 0 26px;
}

/* ---------- Back link ---------- */

.back-link-wrap {
  text-align: center;
  margin: 32px 0 10px;
}
