:root {
  --ink: #1f1f1f;
  --muted: #4a4a4a;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 20% -10%, #fff1d6 0%, transparent 60%),
    linear-gradient(180deg, #f9f6f0 0%, #f2eee7 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1100px, 92vw); margin: 0 auto; }

header { padding: 40px 0 10px; }
.logo { max-width: 320px; margin: 0 auto 10px; }

.nav {
  text-align: center;
  margin: 10px 0 30px;
  color: #444;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-size: 0.95rem;
}
.nav a {
  border-bottom: 2px solid rgba(0,0,0,0.18);
  padding-bottom: 2px;
}

.hero { text-align: center; padding: 20px 0 40px; }
.hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }

footer {
  padding: 40px 0 60px;
  text-align: center;
  color: #777;
  font-size: 0.95rem;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border: 2px solid #1c1c1c;
  background: #fff;
  border-radius: 12px 16px 12px 16px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 998;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

figure figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s ease forwards;
}
.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.3s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  background: #fff;
}
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 2px solid #1c1c1c;
  background: #fff;
  border-radius: 12px 16px 12px 16px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.2);
}


.hero-sub {
  margin: 6px 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--muted);
}

.subnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0 0 30px;
  font-size: 0.95rem;
  color: #444;
}
.subnav a {
  border: 2px solid rgba(0,0,0,0.18);
  border-radius: 999px;
  padding: 6px 12px;
}

.cta { padding: 10px 0 60px; }
.cta-card {
  background: #ffffffee;
  padding: 22px 26px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.cta-card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.cta-card p { margin: 0 0 14px; color: var(--muted); }
.cta-btn {
  display: inline-block;
  border: 2px solid #1c1c1c;
  background: #fff;
  border-radius: 12px 16px 12px 16px;
  padding: 8px 16px;
  font-weight: 600;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.2);
}
