/* ===================== Design tokens ===================== */
:root {
  --charcoal-950: #0c0c0d;
  --charcoal-900: #131315;
  --charcoal-800: #1b1b1e;
  --charcoal-700: #262629;
  --charcoal-600: #37373b;

  --gold: #cda45e;
  --gold-bright: #e8c98a;
  --gold-soft: #b79a6f;

  --text: #f1ede4;
  --text-muted: #a9a49b;

  --pastel-gold: #e6d3ac;
  --pastel-taupe: #cdbfae;
  --pastel-steel: #8f97a3;
  --pastel-wine: #a9847e;

  --font-display: "Cinzel", serif;
  --font-body: "Jost", sans-serif;

  --container-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal-950);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

.container.narrow { max-width: 760px; }

/* ===================== Animated background ===================== */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, var(--charcoal-800), var(--charcoal-950) 70%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  mix-blend-mode: screen;
  will-change: transform;
}

.blob-1 {
  width: 55vw;
  height: 55vw;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, var(--pastel-gold), transparent 70%);
  animation: drift1 34s ease-in-out infinite alternate;
}

.blob-2 {
  width: 45vw;
  height: 45vw;
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, var(--pastel-steel), transparent 70%);
  animation: drift2 28s ease-in-out infinite alternate;
}

.blob-3 {
  width: 38vw;
  height: 38vw;
  top: 35%;
  left: 40%;
  background: radial-gradient(circle, var(--pastel-wine), transparent 70%);
  animation: drift3 40s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 10vh) scale(1.15); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, -8vh) scale(1.1); }
}
@keyframes drift3 {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-40%, -55%) scale(1.2); }
}

.grain {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at center, transparent 0, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

/* ===================== Header / Nav ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(12, 12, 13, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(205, 164, 94, 0.15);
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--gold-bright);
  border: 1px solid var(--gold-soft);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 6px;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-bright);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--gold-bright);
  display: block;
}

/* ===================== Sections ===================== */
.section {
  padding: 140px 0 100px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 2px;
  color: var(--gold-bright);
  margin: 0 0 28px;
}

.section-title.centered { text-align: center; }

.section-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--text-muted);
}

.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 28px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== About ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

.photo-frame {
  position: relative;
  padding: 14px;
  border: 1px solid var(--gold-soft);
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(205, 164, 94, 0.35);
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
}

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 13px;
  margin: 0 0 10px;
}

#heroName {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  margin: 0;
  color: var(--text);
}

.tagline {
  color: var(--text-muted);
  font-size: 18px;
  margin: 14px 0 0;
}

#aboutParagraphs p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* ===================== Timeline (Osiagniecia) ===================== */
.timeline {
  margin: 0 auto;
  max-width: 780px;
  border-left: 1px solid var(--charcoal-600);
}

.timeline-group {
  position: relative;
  padding: 2px 0 44px 34px;
}

.timeline-group:last-child { padding-bottom: 0; }

.timeline-group::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--charcoal-950);
  border: 2px solid var(--gold);
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 2px;
  font-size: 22px;
  display: block;
  margin-bottom: 16px;
}

.timeline-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-items li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
}

.timeline-items li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-soft);
}

/* ===================== Info (Q&A) ===================== */
.qa-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--charcoal-600);
}

.qa-item:first-child { padding-top: 0; }
.qa-item:last-child { border-bottom: none; }

.qa-question {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.qa-number {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
  flex: none;
}

.qa-answer {
  margin: 12px 0 0 40px;
  color: var(--text-muted);
}

/* ===================== Astrofoto gallery ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--charcoal-600);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(0.9) contrast(1.05);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.1) contrast(1.1);
}

.gallery-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold-bright);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover .cap {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 7, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox.open { display: flex; }

.lightbox-figure {
  max-width: 88vw;
  max-height: 84vh;
  margin: 0;
  text-align: center;
}

.lightbox-figure img {
  max-width: 88vw;
  max-height: 74vh;
  object-fit: contain;
  border: 1px solid var(--gold-soft);
}

.lightbox-caption {
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: 13px;
  margin-top: 14px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--gold-bright);
  font-size: 26px;
  cursor: pointer;
  padding: 12px;
}

.lightbox-close { top: 18px; right: 24px; font-size: 32px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ===================== Contact ===================== */
.kontakt-inner { text-align: center; }

#contactText {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--gold-soft);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-bright);
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-link:hover {
  background: var(--gold);
  color: var(--charcoal-950);
}

/* ===================== Weather widget ===================== */
.weather-widget {
  text-align: center;
}

.weather-status {
  color: var(--text-muted);
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 28px 20px;
}

.weather-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.weather-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-bright);
}

.weather-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hidden { display: none; }

/* ===================== Footer ===================== */
.site-footer {
  text-align: center;
  padding: 34px 0 48px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ===================== Responsive ===================== */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .photo-frame { max-width: 280px; margin: 0 auto; }
  .divider { margin: 24px auto; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(12, 12, 13, 0.97);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--charcoal-600);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 28px;
    width: 100%;
    padding: 0 40px;
  }

  .section { padding: 110px 0 70px; }
}
