/* ==========================================================================
   edipurba.com — Calm Matte Dark Minimalist Theme
   Low-contrast tonal palette: soft obsidian, muted slate, warm pewter stone
   ========================================================================== */

:root {
  --bg-canvas: #171719;
  --bg-edge: #131315;
  --text-greeting: #b5b0a7;
  --text-link: #7d7973;
  --text-link-hover: #a7a299;
  --text-dot: #3a393c;
  --text-whisper: #63605b;
  --underline-hover: rgba(167, 162, 153, 0.28);
}

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

html,
body {
  height: 100%;
  background-color: var(--bg-canvas);
  color: var(--text-greeting);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(181, 176, 167, 0.14);
  color: var(--text-greeting);
}

body {
  background: radial-gradient(
    circle at 50% 42%,
    var(--bg-canvas) 0%,
    var(--bg-canvas) 54%,
    var(--bg-edge) 100%
  );
  overflow-x: hidden;
}

.stage {
  min-height: 100dvh;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Portrait — Center of Attention */
.portrait-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 470px;
  user-select: none;
  pointer-events: none;
}

.portrait {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(320px, 58dvh, 520px);
  object-fit: contain;
}

/* Greeting & Portal Links */
.intro {
  position: relative;
  z-index: 2;
  margin-top: -1.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.greeting {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
  line-height: 1.28;
  letter-spacing: 0.015em;
  color: var(--text-greeting);
}

.portal-nav {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.95rem;
  max-width: 760px;
}

.portal-link {
  position: relative;
  color: var(--text-link);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  padding: 0.2rem 0.05rem;
  transition: color 0.32s ease;
}

.portal-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--underline-hover);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s ease;
}

.portal-link:hover,
.portal-link:focus-visible {
  color: var(--text-link-hover);
  outline: none;
}

.portal-link:hover::after,
.portal-link:focus-visible::after {
  transform: scaleX(1);
}

.dot {
  color: var(--text-dot);
  font-size: 0.85rem;
  user-select: none;
}

.status-whisper {
  margin-top: 1.1rem;
  min-height: 1.25rem;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-whisper);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.status-whisper.is-visible {
  opacity: 1;
}

/* Responsive adjustments for smaller mobile screens */
@media (max-width: 640px) {
  .stage {
    padding: 1.5rem 1.25rem 2rem;
  }

  .portrait {
    height: clamp(290px, 50dvh, 410px);
  }

  .intro {
    margin-top: -1.35rem;
  }

  .portal-nav {
    margin-top: 1.35rem;
    gap: 0.65rem 1.15rem;
    max-width: 340px;
  }

  .dot {
    display: none;
  }

  .portal-link {
    font-size: 0.86rem;
  }
}
