/* ============================================================
   CONNECT PAGE — Cyber-Refined + Academic Undertones (Softened)
   ============================================================ */

body.connect-page {
  background: #000;
  font-family: var(--font-mono);
  color: var(--soft-amber, #d8b465); /* fallback */
  padding-top: 120px;

  --soft-amber: #d8b465;        /* brass */
  --soft-amber-dark: #9e7c38;   /* aged brass */
  --soft-amber-glow: rgba(216,168,64,0.45);
  --soft-border: rgba(216,168,64,0.28);
}

/* Wrapper */
.connect-wrapper {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.8rem 4rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.connect-page h1,
.connect-page h2,
.connect-page h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--soft-amber);
}

.connect-page h1 { font-size: 1.8rem; }
.connect-page h2 { font-size: 1.35rem; }

.connect-page p,
.connect-page ul,
.connect-page li {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.03rem;
  line-height: 1.7;
  opacity: 0.92;
}

/* ============================================================
   HEADER BLOCK (with manuscript left border)
   ============================================================ */

.connect-header {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.6rem;
  padding: 1.8rem 2rem;
  border-left: 3px solid var(--soft-border);
  background: rgba(0,0,0,0.45);
  border-radius: 4px;
  box-shadow:
    inset 0 0 3px rgba(216,168,64,0.06),
    0 0 6px rgba(216,168,64,0.07);
}

.connect-photo {
  width: 400px;
  height: 300px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(216,168,64,0.30);
  box-shadow: 0 0 10px rgba(216,168,64,0.20);
}

.connect-intro p {
  opacity: 0.88;
  margin-top: 0.4rem;
}

/* ============================================================
   CONTENT CARDS (with soft manuscript border)
   ============================================================ */

.connect-card {
  background: rgba(0,0,0,0.45);
  border-left: 3px solid var(--soft-border);
  padding: 1.8rem 2rem;
  border-radius: 4px;
  margin-bottom: 2.4rem;
  box-shadow:
    inset 0 0 3px rgba(216,168,64,0.06),
    0 0 6px rgba(216,168,64,0.08);
}

.connect-card h2 {
  margin-bottom: 1.2rem;
}

/* ============================================================
   SOCIAL LINKS — Image Icons Instead of Boxes
   ============================================================ */

.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
}

.connect-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--soft-amber-dark);
  padding: 8px;
  transition: 150ms ease;
  border: 1px solid rgba(216,168,64,0.18);
}

.connect-links a img {
  width: 24px;
  height: 24px;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(216,168,64,0.25));
  transition: 150ms ease;
}

.connect-links a:hover {
  border-color: var(--soft-amber);
  box-shadow: 0 0 30px var(--soft-amber-glow);
}

.connect-links a:hover img {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--soft-amber-glow));
}

@media (max-width: 900px) {
  body.connect-page {
    padding-top: 10px;
  }

  .connect-wrapper {
    margin: 110px 1.2rem 2.4rem;
    padding: 2rem 1.4rem 2.2rem;
  }

  .connect-header {
    flex-direction: column-reverse; /* PHOTO ON TOP */
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .connect-header {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .connect-wrapper h1 {
    font-size: 1.3rem;
  }

  .connect-wrapper h2 {
    font-size: 1.02rem;
  }

  .connect-wrapper p,
  .connect-wrapper li {
    font-size: 0.92rem;
  }

  .connect-wrapper {
    margin-top: 100px;
  }
}

@media (max-width: 420px) {
  .connect-photo {
    width: 100%;
    height: auto;      /* ← preserves aspect ratio */
    object-fit: cover; /* ← optional depending on whether you want cropping */
    border-radius: 6px;
    border: 1px solid rgba(216,168,64,0.30);
    box-shadow: 0 0 10px rgba(216,168,64,0.20);
  }

  .connect-wrapper {
    margin: 96px 0.8rem 2rem;
    padding: 1.7rem 1.1rem 2rem;
  }

  .connect-links img {
    width: 24px;
    height: 24px;
  }
}

