:root {
  --lila: #3b3a94;
  --lila-light: #8a89d6;
  --text: #f2f2f7;
  --panel-bg: rgba(16, 14, 40, 0.72);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Full-screen background photo, randomly picked per visit (see js/main.js) */
#background {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#background.loaded { opacity: 1; }

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 30, 0.55) 0%, rgba(10, 8, 30, 0.35) 40%, rgba(10, 8, 30, 0.65) 100%);
  z-index: -1;
}

/* Transparent header: the logo and nav float over the photo, no bar behind them */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
}

.logo img {
  height: 90px;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}

nav {
  display: flex;
  gap: 0.5rem;
  background: rgba(10, 8, 30, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.3rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.2s;
}
nav a:hover { background: rgba(255, 255, 255, 0.15); }
nav a.active { background: var(--lila); }

main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  flex: 1;
}

.panel {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2rem 2.25rem;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--lila-light);
}

h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }

article + article { margin-top: 1.5rem; }
article p + p { margin-top: 0.75rem; }

.lead {
  font-size: 1.1rem;
  color: var(--lila-light);
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: normal;
  background: var(--lila);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.4rem;
  white-space: nowrap;
}

address { font-style: normal; }
address p + p { margin-top: 0.75rem; }
address a { color: var(--lila-light); text-decoration: none; }
address a:hover { text-decoration: underline; }

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: rgba(242, 242, 247, 0.7);
}

@media (max-width: 600px) {
  .panel { padding: 1.5rem 1.25rem; }
  header { flex-direction: column; gap: 0.9rem; padding: 1.25rem 1rem 0.5rem; }
  .logo img { height: 64px; }
  nav a { padding: 0.4rem 0.7rem; font-size: 0.9rem; }
}
