/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ===== TOKENS ===== */
:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --fg: #eaeaea;
  --fg-dim: #9a9a9a;
  --line: #222;
  --accent: #c0392b;     /* FREDY-ish red */
  --accent-warm: #d89435;/* FREEDA-ish amber */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1100px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  justify-content: center;
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  font-weight: 400;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero__content {
  text-align: center;
  padding: 5rem 1.5rem 2.5rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.hero__subtitle {
  margin: 1.5rem auto 2.5rem;
  max-width: 520px;
  color: var(--fg-dim);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.hero__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem 4rem;
}
.hero__pair {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__cover-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.hero__cover-link:hover { transform: translateY(-6px); }
.hero__cover {
  width: clamp(200px, 30vw, 320px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
}
.hero__cover-caption {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.hero__cover-link:hover .hero__cover-caption { color: var(--fg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn--primary:hover {
  background: transparent;
  color: var(--fg);
}

/* ===== SECTION SHARED ===== */
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  text-align: center;
}
.section__lead {
  max-width: 680px;
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--fg-dim);
  font-size: 1.05rem;
}

/* ===== ABOUT ===== */
.about {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ===== PRODUCT ===== */
.product {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--line);
}
.product__banner {
  margin-bottom: 4rem;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}
.product__banner img {
  width: 100%;
  height: auto;
  display: block;
}
.product__content { max-width: 900px; }
.product__meta {
  text-align: center;
  margin-bottom: 2.5rem;
}
.product__eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--fg-dim);
  margin-bottom: 0.8rem;
}
.product__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
}
.product__body {
  max-width: 640px;
  margin: 0 auto;
  color: var(--fg);
  font-size: 1.05rem;
}
.product__body p {
  margin-bottom: 1.2rem;
}
.product__body p:last-child { margin-bottom: 0; }
.product__closer {
  color: var(--fg-dim);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.2rem;
  padding-top: 0.5rem;
}

.product__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 3.5rem 0;
}
.product__gallery img {
  width: 100%;
  border-radius: 8px;
  background: var(--bg-2);
  transition: transform 0.3s ease;
}
.product__gallery img:hover { transform: scale(1.03); }

.product__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}
.product__price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}
.product--fredy .product__price { color: var(--accent); }
.product--freeda .product__price { color: var(--accent-warm); }

/* ===== INVITATION (UNLIMITED) =====
   Distinct from paid products: lighter framing, not discount framing.
   Conveys "entry to the ARXEN universe", not "free = less". */
.invitation {
  padding: 7rem 0 6rem;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.04), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.invitation__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.invitation__eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.45em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.invitation__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}
.invitation__lead {
  margin-top: 1.2rem;
  color: var(--fg-dim);
  font-size: 1rem;
}
.invitation__card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.5rem;
}
.invitation__visual {
  border-radius: 10px;
  overflow: hidden;
}
.invitation__visual img {
  width: 100%;
  height: auto;
  display: block;
}
.invitation__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.invitation__name {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.1em;
}
.invitation__badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
}
.invitation__tagline {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.invitation__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.invitation__bullets li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--fg);
}
.invitation__bullets li:last-child { border-bottom: none; }
.invitation__gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.invitation__gallery img {
  width: 100%;
  border-radius: 6px;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}
.invitation__gallery img:hover { opacity: 1; }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.btn--ghost:hover {
  background: var(--fg);
  color: var(--bg);
}

/* ===== COMPATIBILITY ===== */
.compat {
  padding: 5rem 0;
}
.compat__list {
  max-width: 780px;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--fg-dim);
  line-height: 2;
  font-size: 1rem;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  margin: 3.5rem 0;
}
.carousel--compact { margin: 1.5rem 0 2rem; }

.carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { scroll-behavior: auto; cursor: grabbing; }

.carousel__track img {
  flex: 0 0 100%;
  width: 100%;
  height: 360px;
  max-height: 60vh;
  object-fit: contain;
  scroll-snap-align: center;
  border-radius: 8px;
  background: var(--bg-2);
  user-select: none;
  -webkit-user-drag: none;
}
.carousel--compact .carousel__track img {
  height: 280px;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.carousel__arrow:hover {
  background: rgba(20, 20, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
}
.carousel__arrow--prev { left: -18px; }
.carousel__arrow--next { right: -18px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}
.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel__dot.is-active {
  background: var(--fg);
  transform: scale(1.25);
}

/* Hide arrows on touch devices — swipe is the main interaction */
@media (max-width: 640px) {
  .carousel__arrow { display: none; }
  .carousel__track { gap: 0.6rem; }
  .carousel { margin: 2.5rem 0; }
  .carousel__track img { height: 280px; }
  .carousel--compact .carousel__track img { height: 220px; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  /* Scale up small source images while keeping aspect ratio.
     object-fit contain ensures the image fills as much as it can without cropping. */
  width: min(92vw, 700px);
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  cursor: default;
  background: #1a1a1a;
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.lightbox__close:hover { opacity: 1; }

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: #050505;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__brand {
  font-family: var(--serif);
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  font-size: 0.9rem;
}
.footer__links {
  display: flex;
  gap: 2rem;
}
.footer__links a {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--fg); }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .invitation__card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.8rem;
  }
  .invitation__gallery { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 640px) {
  .hero__content { padding: 3rem 1.5rem 2rem; }
  .hero__pair { gap: 1rem; }
  .hero__cover { width: 44vw; }
  .about, .product, .compat { padding-top: 4rem; padding-bottom: 4rem; }
  .invitation { padding: 4rem 0; }
  .product__banner { margin-bottom: 2.5rem; }
  .product__gallery { grid-template-columns: repeat(2, 1fr); }
  .invitation__gallery { grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
  .invitation__name { font-size: 1.6rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}
