/* Shared typography and content layout for personal subpages.
   Loaded before page-local inline styles so local refinements still win. */

.subpage-page{
  color: var(--text, #1f2b30);
  font-family: var(--font-sans, "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
}

.subpage-container{
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 40px);
}

.subpage-hero{
  padding: clamp(32px, 4.5vw, 56px) 0 clamp(24px, 4vw, 48px);
}

.subpage-eyebrow{
  display: inline-block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, var(--brand-purple, #6f4cc8));
}

.subpage-title{
  margin: 0;
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text, #1f2b30);
}

.subpage-lead{
  margin: 0;
  font-size: clamp(17px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.68;
  color: var(--muted, #5d6a70);
}

.subpage-section{
  padding: clamp(28px, 4vw, 48px) 0;
}

.subpage-section-title{
  margin: 0 0 20px;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: var(--text, #1f2b30);
}

.subpage-text{
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted, #5d6a70);
}

.subpage-card{
  background: #ffffff;
  border: 1px solid rgba(31, 43, 51, 0.12);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(31, 22, 64, 0.09);
}

.subpage-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffb454 0%, var(--brand-orange, #ee9631) 48%, #ec8e25 100%);
  box-shadow: 0 16px 34px rgba(248, 161, 58, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.subpage-btn::before{
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: -42%;
  width: 38%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 22%, rgba(255, 255, 255, 0.58) 50%, rgba(255, 255, 255, 0.16) 78%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-180%) skewX(-24deg);
  transition: transform 0.7s ease, opacity 0.25s ease;
  z-index: 1;
}

.subpage-btn:hover{
  background: linear-gradient(135deg, #ffbc62 0%, #f7a239 48%, #e9881d 100%);
  color: #fff;
  transform: translateY(-2px);
}

.subpage-btn:hover::before{
  opacity: 1;
  transform: translateX(360%) skewX(-24deg);
}

@media (max-width: 640px){
  .subpage-title{
    font-size: clamp(30px, 9vw, 40px);
  }

  .subpage-lead,
  .subpage-text{
    font-size: 15px;
    line-height: 1.58;
  }

  .subpage-btn{
    min-height: 48px;
  }
}
