/* ============================================================
   Harriet Turner — Enlaces (harrietturner.net)
   Mismos tokens y ornamentos que harrietturner.com / .org.
   ============================================================ */

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

:root {
  --gold:           #c9a84c;
  --gold-light:     #e8c96a;
  --gold-dim:       #7a5f28;
  --gold-glow:      rgba(201,168,76,0.15);
  --gold-hair:      rgba(201,168,76,0.20);
  --gold-hair-soft: rgba(201,168,76,0.09);
  --black:          #080808;
  --black-card:     #141414;
  --black-border:   #1e1e1e;
  --white-dim:      #ccc9be;
  --white-faint:    #6a6760;
  --font-serif:     'Cormorant Garamond', serif;
  --font-sans:      'Montserrat', sans-serif;
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --transition:     0.3s ease;
}

html { min-height: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

/* ── FONDO ───────────────────────────────────────────── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.backdrop__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.85) contrast(1.04);
  animation: ht-zoom 16s var(--ease-out) both;
}
@keyframes ht-zoom {
  from { transform: scale(1.12); opacity: 0; }
  12%  { opacity: 1; }
  to   { transform: scale(1.04); opacity: 1; }
}
.backdrop__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 75% at 50% 45%, rgba(8,8,8,.6) 0%, rgba(8,8,8,.25) 100%),
    linear-gradient(to bottom, rgba(8,8,8,.35), rgba(8,8,8,.6));
}

/* Marco dorado con esquinas, como el hero */
.frame {
  position: fixed;
  inset: 18px;
  z-index: -1;
  border: 1px solid var(--gold-hair-soft);
  pointer-events: none;
}
.frame span {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--gold);
  opacity: .5;
}
.frame span:nth-child(1) { top: -1px;    left:  -1px; border-width: 1px 0 0 1px; }
.frame span:nth-child(2) { top: -1px;    right: -1px; border-width: 1px 1px 0 0; }
.frame span:nth-child(3) { bottom: -1px; left:  -1px; border-width: 0 0 1px 1px; }
.frame span:nth-child(4) { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ── COLUMNA ─────────────────────────────────────────── */
.tree {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── PERFIL ──────────────────────────────────────────── */
.profile { text-align: center; margin-bottom: 36px; }
.profile__avatar {
  width: 148px;
  height: 148px;
  margin: 0 auto 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--black-card);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(8,8,8,.6), 0 0 0 7px var(--gold-hair), 0 0 40px rgba(201,168,76,0.22);
}
.profile__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.ornament span { display: block; width: 60px; height: 1px; }
.ornament .l { background: linear-gradient(to right, transparent, var(--gold-dim)); }
.ornament .r { background: linear-gradient(to left,  transparent, var(--gold-dim)); }
.ornament .d {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(201,168,76,0.7);
}
.ornament--sm span { width: 36px; }
.ornament--sm .d { width: 4px; height: 4px; box-shadow: none; opacity: .7; }

.profile__name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 8vw, 2.8rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .profile__name {
    background: linear-gradient(175deg, #f4e3ac 0%, #e8c96a 42%, #bb9a45 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.profile__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #b3ab99;
}

/* ── ENLACES ─────────────────────────────────────────── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(20,20,20,0.72);
  border: 1px solid var(--black-border);
  backdrop-filter: blur(6px);
  color: var(--white-dim);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color var(--transition), transform .4s var(--ease-out), box-shadow var(--transition), color var(--transition);
}
/* Barrido dorado sutil al pasar el cursor (como .btn-primary) */
.link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(201,168,76,0.12), rgba(201,168,76,0.03));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.link:hover,
.link:focus-visible {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 24px var(--gold-glow);
}
.link:hover::after,
.link:focus-visible::after { transform: scaleX(1); }

.link__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-hair);
  color: var(--gold);
}
.link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link__title {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.link__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: #a39d8e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link__arrow {
  flex-shrink: 0;
  color: var(--gold-dim);
  transition: color var(--transition), transform var(--transition);
}
.link__arrow svg { width: 14px; height: 14px; }
.link:hover .link__arrow { color: var(--gold); transform: translate(2px, -2px); }

/* Enlace principal destacado */
.link--featured {
  border-color: var(--gold-dim);
  background: linear-gradient(90deg, rgba(201,168,76,0.10), rgba(20,20,20,0.72) 60%);
}
.link--featured .link__icon { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* Entrada escalonada */
@keyframes ht-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.profile            { animation: ht-rise .9s var(--ease-out) both .05s; }
.link               { animation: ht-rise .8s var(--ease-out) both; }
.link:nth-child(1)  { animation-delay: .20s; }
.link:nth-child(2)  { animation-delay: .27s; }
.link:nth-child(3)  { animation-delay: .34s; }
.link:nth-child(4)  { animation-delay: .41s; }
.link:nth-child(5)  { animation-delay: .48s; }
.link:nth-child(6)  { animation-delay: .55s; }
.link:nth-child(7)  { animation-delay: .62s; }
.social, .foot      { animation: ht-rise .8s var(--ease-out) both .75s; }

/* ── REDES Y PIE ─────────────────────────────────────── */
.social { display: flex; gap: 14px; margin-top: 32px; }
.social__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-hair);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(8,8,8,.5);
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}
.social__btn:hover {
  border-color: var(--gold);
  color: var(--black);
  background: var(--gold);
  box-shadow: 0 0 24px var(--gold-glow);
}
.social__btn svg { width: 18px; height: 18px; }
.social__btn .fill { fill: currentColor; }

.foot { margin-top: 36px; text-align: center; }
.foot__logo {
  display: block;
  width: 84px;
  height: auto;
  margin: 0 auto 14px;
  opacity: .8;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.3));
}
.foot .ornament { margin-bottom: 12px; }
.foot p {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white-faint);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 480px) {
  .frame { inset: 10px; }
  .tree { padding: 52px 18px 36px; }
  .profile__avatar { width: 124px; height: 124px; }
  .profile__tagline { font-size: 0.98rem; }
  .link { padding: 12px 14px; gap: 12px; }
  .link__icon { width: 36px; height: 36px; }
  .link__title { letter-spacing: 0.18em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
