/* ==========================================
   Krakow City Guide — Placeholder Page
   ========================================== */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Design tokens --- */
:root {
  /* Colors — pulled from the ferris wheel night photo */
  --color-bg-overlay: rgba(5, 8, 22, 0.70);     /* deep indigo-blue overlay */
  --color-surface:    rgba(255, 255, 255, 0.06);
  --color-text:       #eef3ff;                   /* cool white */
  --color-text-muted: rgba(190, 210, 245, 0.60); /* muted cold blue */
  --color-accent:     #22d3ee;                   /* cyan from wheel lighting */
  --color-accent-alt: #c026d3;                   /* purple from wheel — for hover/gradient */
  --color-border:     rgba(255, 255, 255, 0.10);

  /* Typography */
  --font: 'Roboto', sans-serif;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
}

/* --- Base --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #050816;
  background-image: url('/assets/img/large_krk_weel.webp');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Dark overlay over the photo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(5, 8, 22, 0.55) 0%,
      rgba(5, 8, 22, 0.80) 60%,
      rgba(5, 8, 22, 0.92) 100%
    );
  z-index: 0;
}

/* --- Fade-in animation --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Layout --- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--sp-lg) var(--sp-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  animation: fadeUp 0.9s ease both;
}

/* Bottom block pinned to the bottom */
.bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

/* --- Logo / Site name --- */
.site-header {
  display: flex;
  justify-content: center;
}

.logo-text {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--color-accent-alt), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hero --- */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  align-self: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.subheadline {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* --- CTA --- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
}

.cta-label {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.cta-email {
  display: inline-block;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  border-bottom: 1px solid rgba(190, 210, 245, 0.25);
  transition: color 0.25s, border-color 0.25s;
  padding-bottom: 1px;
}

.cta-email:hover {
  color: var(--color-text);
  border-color: rgba(190, 210, 245, 0.5);
}

/* --- Footer --- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--color-border);
}

.copyright {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================
   Responsive
   ========================================== */

/* Tablet */
@media (max-width: 768px) {
  :root {
    --sp-lg: 2rem;
    --sp-xl: 3rem;
  }

  body {
    background-attachment: scroll; /* fixed causes issues on iOS */
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --sp-lg: 1.5rem;
  }

  body {
    background-position: 30% 20%;
  }

  .container {
    padding: var(--sp-lg) var(--sp-md);
    text-align: left;
    max-width: 100%;
  }

  .subheadline {
    margin: 0;
  }

  .cta {
    align-items: flex-start;
  }

  .site-footer {
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .cta-email {
    font-size: 0.95rem;
    word-break: break-all;
  }
}

/* Tall screens — don't stretch too much */
@media (min-height: 900px) {
  .container {
    padding-top: var(--sp-xl);
    padding-bottom: var(--sp-xl);
  }
}
