/*
 * main.css — Base styles for munnukka.fi
 */

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

body {
  background: #f2f0eb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: Georgia, serif;
}

/* ── Main image ─────────────────────────────────────────── */
.virityskuva {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

/* ── Cookie consent banner ──────────────────────────────── */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1c1f26;
  color: #e8e4dc;
  padding: 1.2rem 2rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.9rem;
  line-height: 1.5;
  z-index: 1000;
}

#consent-banner.visible {
  display: flex;
}

.consent-text {
  font-family: 'Share Tech Mono', monospace;
  flex: 1;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.consent-text a {
    
  color: #a0b4c8;
  text-decoration: underline;
}

.consent-buttons {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.btn-accept,
.btn-decline {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.btn-accept {
  background: #3d6b8f;
  color: #fff;
  border: none;
  padding: 0.5em 1.2em;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: Georgia, serif;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-accept:hover { background: #2d5070; }

.btn-decline {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #4a5568;
  padding: 0.5em 1.2em;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: Georgia, serif;
  border-radius: 2px;
  transition: all 0.2s;
}

.btn-decline:hover {
  color: #e8e4dc;
  border-color: #9ca3af;
}

/* ── Site header ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 1.4rem;
  left: 1.8rem;
  z-index: 50;
}

.site-name {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.name-first {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #6b7a8a;
}

.name-last {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c1f26;
}

.site-name:hover .name-last {
  color: #3d6b8f;
  transition: color 0.2s;
}

/* ── Main navigation ────────────────────────────────────── */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 1.4rem 2rem;
  /* subtle frosted glass effect */
  background: rgba(242, 240, 235, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(60, 70, 90, 0.08);
}

.main-nav__list {
  list-style: none;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.main-nav__link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b7a8a;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}

/* Animated underline on hover and active */
.main-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #3d6b8f;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav__link:hover,
.main-nav__link.active {
  color: #1c1f26;
}

.main-nav__link:hover::after,
.main-nav__link.active::after {
  transform: scaleX(1);
}

/* Push page content below fixed nav */
body {
  padding-top: 2rem;
}
/* ── Error pages ────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1rem;
  text-align: center;
}

.error-code {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 8rem);
  color: #1c1f26;
  letter-spacing: 0.05em;
  opacity: 0.08;
  line-height: 1;
}

.error-message {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6b7a8a;
}

.error-home {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3d6b8f;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.2s;
}

.error-home:hover { color: #1c1f26; }
