@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono[wght].ttf") format("truetype");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

/* ── Contact / Mac Desktop page ── */

.contact-desktop {
  min-height: calc(100vh - 60px);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background:
    radial-gradient(ellipse 100% 60% at 60% 0%,   rgba(120, 180, 240, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 70%  50% at 5%  60%,   rgba(40,  90,  200, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse 60%  40% at 90% 80%,   rgba(80, 140, 220, 0.25) 0%, transparent 50%),
    linear-gradient(170deg,
      #0b172e 0%,
      #132d60 18%,
      #1c4a96 38%,
      #2968b8 58%,
      #4a8ecc 76%,
      #82bce0 90%,
      #b8d9f0 100%
    );
  padding: 3rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  overflow: hidden;
}

/* ── Sticky note ── */

.contact-sticky {
  background: #f7f7f7;
  width: min(440px, 88vw);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 2px 6px  rgba(0, 0, 0, 0.28);
  color: #1a1a1a;
  line-height: 1.85;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

/* ── Traffic-light titlebar ── */
.sticky-titlebar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.55rem 0.85rem;
  background: #e8e8e8;
  border-bottom: 1px solid #d0d0d0;
  user-select: none;
}

.sticky-lights {
  display: flex;
  gap: 0.42rem;
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
}

.sticky-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.sticky-light--red    { background: #ff5f57; border: 1px solid #e0443e; }
.sticky-light--yellow { background: #ffbd2e; border: 1px solid #dfa123; }
.sticky-light--green  { background: #28c840; border: 1px solid #1aab29; }

.sticky-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3a3a3a;
  letter-spacing: 0.01em;
}

/* ── Note body ── */
.sticky-body {
  padding: 1.1rem 1.8rem 1.6rem;
  position: relative;
}

/* faint ruled lines */
.sticky-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent calc(1.85em - 1px),
    rgba(0, 0, 0, 0.06) calc(1.85em - 1px),
    rgba(0, 0, 0, 0.06) 1.85em
  );
  background-position: 0 1.1rem;
  pointer-events: none;
}

.contact-sticky p {
  margin: 0;
  font-size: clamp(0.83rem, 1.7vw, 0.97rem);
  position: relative;
  z-index: 1;
}

.sticky-cursor {
  display: inline-block;
  width: 0.52em;
  height: 1.05em;
  background: #1a1a1a;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ── Desktop icons ── */

.contact-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  max-width: 820px;
  padding: 0 1rem;
}

.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  width: 112px;
  transition: background 0.12s ease;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.contact-icon:hover {
  background: rgba(80, 140, 215, 0.45);
}

.contact-icon:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

/* icon image / svg */
.contact-icon__img,
.contact-icon__svg {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  flex-shrink: 0;
  /* subtle drop shadow so flat pngs have depth */
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}

.contact-icon__label {
  font-size: 0.7rem;
  color: #fff;
  text-align: center;
  /* macOS-style label with dark outline */
  text-shadow:
    0  1px 3px rgba(0, 0, 0, 0.95),
    0  0   8px rgba(0, 0, 0, 0.70),
    0 -1px 2px rgba(0, 0, 0, 0.80);
  line-height: 1.3;
  word-break: break-word;
  max-width: 100%;
}

/*selected label highlight (on hover mirror macOS blue pill)*/
.contact-icon:hover .contact-icon__label {
  background: rgba(10, 80, 195, 0.75);
  border-radius: 3px;
  padding: 0 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

@media (max-width: 600px) {
  .contact-icons {
    gap: 0.4rem 1.25rem;
  }

  .contact-icon {
    width: 88px;
    padding: 0.5rem;
  }

  .contact-icon__img,
  .contact-icon__svg {
    width: 56px;
    height: 56px;
  }
}
