@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Bebas+Neue&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --bg-color: #faf6ee;        /* Vintage cream paper */
  --primary-color: #0c5a60;   /* 1950s deep teal */
  --accent-orange: #e75a36;   /* Retro vibrant orange-coral */
  --accent-gold: #d19a22;     /* Madison Ave mustard gold */
  --charcoal: #2e2520;        /* Mid-century vintage ink */
}

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

body {
  background-color: var(--bg-color);
  color: var(--charcoal);
  font-family: 'Courier Prime', monospace;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  overflow-x: hidden;
  /* Subtle grid background texture */
  background-image: radial-gradient(rgba(46, 37, 32, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Page Frame/Border mimicking magazine layouts */
.page-frame {
  border: 4px double var(--primary-color);
  outline: 12px solid var(--bg-color);
  box-shadow: 0 0 0 16px var(--primary-color), 0 20px 40px rgba(0,0,0,0.15);
  background-color: var(--bg-color);
  max-width: 1000px;
  width: 100%;
  padding: 3rem 2rem;
  position: relative;
}

/* Diagonal accents */
.page-frame::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 1px solid rgba(12, 90, 96, 0.2);
  pointer-events: none;
}

/* Main Grid Layout */
.ad-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .ad-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Left Column: Visual Area */
.visual-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Retro Backdrop Circle */
.backdrop-circle {
  position: absolute;
  width: 280px;
  height: 280px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  z-index: 1;
  opacity: 0.8;
  transform: translate(-10px, -20px);
  border: 3px dashed var(--bg-color);
  box-shadow: 0 0 0 6px var(--accent-gold);
}

/* Glistening condensing bottle container */
.bottle-showcase {
  position: relative;
  width: 220px;
  height: 380px;
  z-index: 2;
  transform: rotate(-12deg);
  filter: drop-shadow(10px 15px 12px rgba(46, 37, 32, 0.35));
  transition: transform 0.5s ease;
}

.bottle-showcase:hover {
  transform: rotate(-8deg) scale(1.03);
}

/* Pure-CSS Glistening Moxie Bottle (Fallback illustration) */
.css-bottle {
  width: 80px;
  height: 320px;
  margin: 20px auto;
  position: relative;
}

/* Bottle Neck */
.bottle-neck {
  width: 32px;
  height: 90px;
  background: linear-gradient(90deg, #1d4021 0%, #3a753d 30%, #5ba45f 60%, #1d4021 100%); /* Green glass */
  margin: 0 auto;
  border-radius: 8px 8px 4px 4px;
  position: relative;
  border-top: 5px solid #d19a22; /* Gold bottle cap */
}

/* Bottle Body */
.bottle-body {
  width: 84px;
  height: 200px;
  background: linear-gradient(90deg, #112914 0%, #2e5e31 25%, #468c4a 55%, #112914 100%);
  margin-top: -5px;
  border-radius: 18px 18px 15px 15px;
  position: relative;
  overflow: hidden;
}

/* Moxie Vintage Label */
.bottle-label {
  position: absolute;
  top: 50px;
  left: 6px;
  right: 6px;
  height: 90px;
  background-color: #e75a36; /* Bright Moxie orange */
  border: 2px solid #faf6ee;
  transform: skewY(-6deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
}

.bottle-label-text {
  font-family: 'Bebas Neue', sans-serif;
  color: #faf6ee;
  font-size: 22px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0px #0c5a60;
  line-height: 1;
}

.bottle-label-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 8px;
  color: #faf6ee;
}

/* Droplets of light glistening condensation */
.droplet {
  position: absolute;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50% 50% 45% 45%;
  box-shadow: inset -1px -1px 2px rgba(0,0,0,0.4), 1px 1px 1px rgba(255,255,255,0.6);
}
.d1 { width: 5px; height: 7px; top: 120px; left: 15px; }
.d2 { width: 4px; height: 5px; top: 75px; left: 45px; }
.d3 { width: 6px; height: 9px; top: 180px; left: 60px; }
.d4 { width: 5px; height: 6px; top: 140px; left: 55px; }
.d5 { width: 4px; height: 5px; top: 220px; left: 25px; }
.d6 { width: 5px; height: 8px; top: 40px; left: 18px; } /* Neck droplet */

/* Alternate: If they replace with real image */
.real-bottle-img {
  display: none; /* Set display block if image exists */
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Right Column: Copy Area */
.copy-column {
  display: flex;
  flex-direction: column;
}

.top-tag {
  font-family: 'Courier Prime', monospace;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Gigantic 50s Header with off-register drop shadow */
.brand-title {
  font-family: 'Abril Fatface', serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: -2px;
  position: relative;
  margin-bottom: 1rem;
}

.brand-title::after {
  content: 'MOXIE';
  position: absolute;
  left: 4px;
  top: 4px;
  color: var(--accent-orange);
  z-index: -1;
  opacity: 0.4;
}

/* Beautiful slogan styling */
.slogan-banner {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.slogan-banner::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background-color: var(--accent-gold);
  margin-top: 4px;
  border-radius: 2px;
}

.ad-copy {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: justify;
}

/* Starburst decoration */
.starburst {
  width: 26px;
  height: 26px;
  background-color: var(--accent-orange);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* NAVIGATION (Internal Only) */
.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
}

.retro-btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-align: center;
  padding: 0.7rem 1rem;
  border: 2px solid var(--charcoal);
  background-color: var(--bg-color);
  color: var(--charcoal);
  transition: all 0.2s ease;
  box-shadow: 4px 4px 0px var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.retro-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--charcoal);
}

.btn-adguard {
  background-color: var(--accent-gold);
}
.btn-forgejo {
  background-color: var(--primary-color);
  color: var(--bg-color);
}
.btn-jellyfin {
  background-color: var(--accent-orange);
  color: var(--bg-color);
}
.btn-vaultwarden {
  background-color: var(--charcoal);
  color: var(--bg-color);
}

/* Fine-print details at bottom */
.fine-print {
  margin-top: 3rem;
  border-top: 1px dashed rgba(46, 37, 32, 0.2);
  padding-top: 1rem;
  font-size: 0.75rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(46, 37, 32, 0.6);
}
