/* ============================================================
   home.css — styles specific to index.html (homepage)
   Requires: base.css
   ============================================================ */

/* ----------------------------------------------------------
   Keyframe animations
   ---------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleXIn {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 0.6; transform: scaleX(1); }
}

/* Initial hidden state — applied in HTML before JS fires */
.will-animate { opacity: 0; }

/* Animation trigger classes — added by animations.js */
.anim-fade-up {
  animation: fadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade-in {
  animation: fadeIn 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-scale-x {
  transform-origin: left center;
  animation: scaleXIn 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.card {
  width: 900px;
  padding: 52px 48px 48px;
}

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.header {
  text-align: center;
  margin-bottom: 44px;
}

.header-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 600;
  color: #f0ede6;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.header-title {
  font-size: 10px;
  font-weight: 500;
  color: #c9a84c;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 8px;
}

.header-divider {
  width: 60px;
  height: 1px;
  background: #c9a84c;
  margin: 16px auto 0;
  opacity: 0.6;
}

/* ----------------------------------------------------------
   Venn diagram
   ---------------------------------------------------------- */
.venn-container {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venn-svg {
  width: 100%;
  height: 100%;
}

.circle-group { pointer-events: none; }

.tag-list {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #d0ccc4;
  white-space: nowrap;
  opacity: 0.85;
}

.tag.gold { color: #c9a84c; font-weight: 600; }

.center-label {
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.center-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 700;
  color: #f0ede6;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ----------------------------------------------------------
   Responsive — mobile only (desktop unchanged above)
   ---------------------------------------------------------- */
@media (max-width: 640px) {
  /* Card fills the screen edge-to-edge */
  body {
    align-items: flex-start;
    padding: 0;
  }

  .card {
    width: 100%;
    padding: 36px 20px 36px;
    border-left: none;
    border-right: none;
  }

  /* Tighten header */
  .header {
    margin-bottom: 24px;
  }

  .header-name {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .header-title {
    font-size: 8px;
    letter-spacing: 2px;
  }

  /* Let the SVG scale naturally to its viewBox ratio (800×475) */
  .venn-container {
    height: auto;
    aspect-ratio: 800 / 475;
  }

  /* Tighten credentials bar */
  .creds-bar {
    gap: 20px;
    margin-top: 24px;
  }

  /* Larger tap target for credential links */
  .cred-item {
    padding: 8px 4px;
    min-width: 70px;
  }
}

/* ----------------------------------------------------------
   Credentials bar
   ---------------------------------------------------------- */
.creds-bar {
  margin-top: 36px;
  border-top: 1px solid #1e1e2e;
  padding-top: 28px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cred-item:hover { opacity: 0.75; }

.cred-icon {
  width: 28px;
  height: 28px;
  border: 1px solid #c9a84c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #c9a84c;
}

.cred-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  max-width: 80px;
  line-height: 1.4;
}
