/* ==========================================================================
   Darkroom — buttons, avatar and icons
   Every link button gets the same quiet "glass" treatment so the photo does
   the talking. Brand colours are intentionally not used.
   ========================================================================== */

/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Avatar
- Social icons
- Buttons
- Brand icons
*/


/* Avatar
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.rounded-avatar {
  border-radius: 50%;
  width: calc(140px * var(--scale));
  height: calc(140px * var(--scale));
  object-fit: cover;
  border: 1px solid var(--line);
  /* thin outer ring, like a lens filter */
  box-shadow: 0 0 0 6px rgba(14, 13, 12, .45), 0 0 0 7px rgba(244, 239, 230, .35), 0 18px 40px rgba(0, 0, 0, .5);
}


/* Social icons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.social-icon {
  font-size: calc(26px * var(--scale));
  padding: 10px;
}
.social-icon-div {
  padding-bottom: 24px;
}


/* Buttons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/* !important is deliberate: it forces one consistent look on every button,
   including ones created with the Button Editor. */
.button,
button,
.button[class*="button-"] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(520px * var(--scale));
  margin: 0 auto 16px;
  padding: calc(24px * var(--scale)) calc(56px * var(--scale));
  height: auto;
  font-family: var(--font-mono);
  font-size: calc(18px * var(--scale));
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  color: var(--ink) !important;
  background: var(--glass) !important;
  background-image: none !important;
  border: 1px solid rgba(244, 239, 230, .38) !important;
  border-radius: 2px !important;
  outline: none;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

/* arrow that slides in on hover */
.button::after {
  content: "\2192";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translate(-8px, -50%);
  opacity: 0;
  font-size: calc(20px * var(--scale));
  letter-spacing: 0;
  color: var(--accent);
  transition: opacity .25s ease, transform .25s ease;
}

button:hover,
.button:hover,
.button:focus {
  color: #fff !important;
  background: var(--glass-strong) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .4);
  outline: 0;
  filter: none;
}
.button:hover::after,
.button:focus::after {
  opacity: 1;
  transform: translate(0, -50%);
}
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.button.button-primary,
.button.button-primary:hover,
.button.button-primary:focus { filter: none; }


/* Brand icons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.icon {
  padding: 0;
  margin: 0;
  vertical-align: middle;
  width: calc(26px * var(--scale));
  height: calc(26px * var(--scale));
  opacity: 1;
}

/* Compact mobile buttons — keep profile and headings unchanged */
@media (max-width: 549px) {
  .button, button, .button[class*="button-"] {
    max-width: calc(520px * var(--button-scale));
    padding: calc(20px * var(--button-scale)) calc(44px * var(--button-scale));
    font-size: calc(18px * var(--button-scale));
    gap: 12px;
    margin-bottom: 12px;
    min-height: 44px;
  }
  .button .icon, button .icon {
    width: calc(26px * var(--button-scale));
    height: calc(26px * var(--button-scale));
  }
}
